-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4defdc7
commit c0d458b
Showing
8 changed files
with
324 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+20.3 KB
L298 Motor Driver library for Proteus/UNO_L298_Stepper_1/UNO_L298_StepperMotor_1.pdsprj
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
L298 Motor Driver library for Proteus/UNO_L298_Stepper_1/UNO_L298_Stepper_1.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <Stepper.h> | ||
|
||
const int stepsPerRevolution = 20; | ||
|
||
// initialize the stepper library on pins 8 through 11: | ||
Stepper myStepper(stepsPerRevolution, 8,9,10,11); | ||
|
||
void setup() { | ||
// set the speed at 40 rpm: | ||
myStepper.setSpeed(40); | ||
} | ||
|
||
void loop() { | ||
// step one revolution in one direction: | ||
myStepper.step(~stepsPerRevolution); | ||
delay(20); | ||
} |
131 changes: 131 additions & 0 deletions
131
L298 Motor Driver library for Proteus/UNO_L298_Stepper_1/UNO_L298_Stepper_1.ino.standard.hex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
:100000000C945D000C947A000C947A000C947A00A5 | ||
:100010000C947A000C947A000C947A000C947A0078 | ||
:100020000C947A000C947A000C947A000C947A0068 | ||
:100030000C947A000C947A000C947A000C947A0058 | ||
:100040000C941C020C947A000C947A000C947A00A4 | ||
:100050000C947A000C947A000C947A000C947A0038 | ||
:100060000C947A000C947A00000000080002010051 | ||
:100070000003040700000000000000000000000072 | ||
:10008000250028002B0000000000240027002A0083 | ||
:10009000040404040404040402020202020203032E | ||
:1000A0000303030301020408102040800102040836 | ||
:1000B00010200102040810206A0311241FBECFEF94 | ||
:1000C000D8E0DEBFCDBF21E0A0E0B1E001C01D92CD | ||
:1000D000A332B207E1F710E0CDE5D0E004C02197EC | ||
:1000E000FE010E94D203CC35D107C9F70E946602F7 | ||
:1000F0000C940E040C94000090E0FC01EC55FF4FB2 | ||
:10010000249180579F4FFC018491882399F090E0BF | ||
:10011000880F991FFC01EA57FF4FA591B491FC018C | ||
:10012000E458FF4F859194918FB7F894EC91E22BAE | ||
:10013000EC938FBF089590E0FC01E859FF4F2491A4 | ||
:10014000FC01EC55FF4F3491FC01E057FF4FE49167 | ||
:10015000EE23C9F0222339F0233001F1A8F4213035 | ||
:1001600019F1223029F1F0E0EE0FFF1FE458FF4FA4 | ||
:10017000A591B4918FB7F894EC91611126C0309598 | ||
:100180003E233C938FBF08952730A9F02830C9F053 | ||
:10019000243049F7809180008F7D03C080918000DA | ||
:1001A0008F7780938000DFCF84B58F7784BDDBCFDE | ||
:1001B00084B58F7DFBCF8091B0008F778093B000A6 | ||
:1001C000D2CF8091B0008F7DF9CF3E2BDACFCF9385 | ||
:1001D000DF93EC018091110190911201029749F493 | ||
:1001E000C130D10509F43BC06CF560E0209709F4FB | ||
:1001F00037C08091110190911201049749F4C130E8 | ||
:10020000D10509F45CC00CF037C0209709F442C056 | ||
:100210008091110190911201059709F0E5C0CA3053 | ||
:10022000D10508F0E1C0FE01E85EFE4F0C94D20358 | ||
:10023000770183019401AA01C501C701CE01DA014A | ||
:10024000EB01F201C230D105A9F060E0C330D10565 | ||
:1002500081F6809115010E949B0060E006C061E07C | ||
:10026000809115010E949B0061E0809117010E941E | ||
:100270009B00BFCF61E0EDCFC230D10539F1C33073 | ||
:10028000D10509F0C5CF61E0809115010E949B0066 | ||
:1002900060E022C061E0809115010E949B0060E057 | ||
:1002A000809117010E949B0061E0809119010E94DA | ||
:1002B0009B0060E080911B010E949B00A9CF60E041 | ||
:1002C000809115010E949B0061E0EACF60E080917F | ||
:1002D00015010E949B0061E0809117010E949B0024 | ||
:1002E00060E0809119010E949B0061E0E3CF60E033 | ||
:1002F000809115010E949B0061E0809117010E948E | ||
:100300009B0061E00BC060E0809115010E949B00A2 | ||
:1003100061E0809117010E949B0060E080911901CB | ||
:100320000E949B0060E010C060E0809115010E9477 | ||
:100330009B0061E0809117010E949B0060E080912A | ||
:1003400019010E949B0061E080911B010E949B00AB | ||
:1003500061E015C060E0809115010E949B0061E0A2 | ||
:10036000809117010E949B0060E0809119010E941A | ||
:100370009B0061E080911B010E949B0060E08091E6 | ||
:100380001D01DF91CF910C949B0061E0E4CF61E00F | ||
:10039000809115010E949B0060E0E2CF61E08091B6 | ||
:1003A00015010E949B0060E0809117010E949B0054 | ||
:1003B00061E0DBCF61E0809115010E949B0060E06D | ||
:1003C000809117010E949B0061E0809119010E94B9 | ||
:1003D0009B0060E0CFCF61E0809115010E949B00FF | ||
:1003E00060E08BCF60E0F8CFDF91CF9108953FB709 | ||
:1003F000F8948091050190910601A0910701B091B8 | ||
:10040000080126B5A89B05C02F3F19F00196A11D34 | ||
:10041000B11D3FBFBA2FA92F982F8827BC01CD014E | ||
:10042000620F711D811D911D42E0660F771F881FAD | ||
:10043000991F4A95D1F708951F920F920FB60F9208 | ||
:1004400011242F933F938F939F93AF93BF938091EA | ||
:10045000010190910201A0910301B091040130913A | ||
:10046000000123E0230F2D3758F50196A11DB11D82 | ||
:10047000209300018093010190930201A093030156 | ||
:10048000B09304018091050190910601A0910701AC | ||
:10049000B09108010196A11DB11D809305019093B3 | ||
:1004A0000601A0930701B0930801BF91AF919F91FE | ||
:1004B0008F913F912F910F900FBE0F901F90189525 | ||
:1004C00026E8230F0296A11DB11DD2CF789484B5E2 | ||
:1004D000826084BD84B5816084BD85B5826085BD40 | ||
:1004E00085B5816085BD80916E00816080936E00CE | ||
:1004F00010928100809181008260809381008091C0 | ||
:100500008100816080938100809180008160809370 | ||
:1005100080008091B10084608093B1008091B00030 | ||
:1005200081608093B00080917A00846080937A002B | ||
:1005300080917A00826080937A0080917A00816055 | ||
:1005400080937A0080917A00806880937A0010927C | ||
:10055000C10020910F0130911001032E000C440BBB | ||
:10056000550B60E077E883E993E00E94B303CA018A | ||
:10057000B90128E230E040E050E00E94B30320934C | ||
:100580000B0130930C0140930D0150930E0194E048 | ||
:10059000E92EF12C2AE0C22ED12C00E010E01092BE | ||
:1005A0000A0110920901C5E1D0E0209709F467C063 | ||
:1005B0000E94F70180901F0190902001A0902101DE | ||
:1005C000B09022012B013C01481859086A087B08A9 | ||
:1005D00080900B0190900C01A0900D01B0900E0145 | ||
:1005E000481459046A047B0400F360931F0170935C | ||
:1005F0002001809321019093220180911301909119 | ||
:1006000014012091090130910A012130310519F5B9 | ||
:100610000196909314018093130120910F01309162 | ||
:1006200010018217930721F4109214011092130104 | ||
:100630002197809113019091140120911101309123 | ||
:100640001201B6012530310509F0B7010E949F0360 | ||
:100650000E94E700AACF892B41F480910F0190916D | ||
:1006600010019093140180931301809113019091D4 | ||
:10067000140101979093140180931301D9CF0E9424 | ||
:10068000F7012B013C0184E1882E912CA12CB12C87 | ||
:100690000E94F7016419750986099709683E73403D | ||
:1006A00081059105A8F321E0821A9108A108B108FB | ||
:1006B00088EE480E83E0581E611C711C8114910461 | ||
:1006C000A104B10429F70115110509F468CF0E94AE | ||
:1006D000000065CFCF93DF93C9E0D1E01B861A8677 | ||
:1006E000198218821E8A1F8A188E198E84E190E062 | ||
:1006F0009F838E8388E090E09D878C8789E090E0DF | ||
:100700009F878E878AE090E0998B888B8BE090E0C2 | ||
:100710009B8B8A8B88E00E947C008E850E947C00E7 | ||
:1007200088890E947C008A890E947C001D8A1C8A1C | ||
:1007300084E090E099878887DF91CF91089597FBB7 | ||
:10074000072E16F4009407D077FD09D00E94D80335 | ||
:1007500007FC05D03EF4909581959F4F08957095C4 | ||
:1007600061957F4F0895052E97FB1EF400940E941B | ||
:10077000CA0357FD07D00E94EC0307FC03D04EF4D8 | ||
:100780000C94CA0350954095309521953F4F4F4F9B | ||
:100790005F4F089590958095709561957F4F8F4F2D | ||
:1007A0009F4F0895EE0FFF1F0590F491E02D0994DF | ||
:1007B000AA1BBB1B51E107C0AA1FBB1FA617B70787 | ||
:1007C00010F0A61BB70B881F991F5A95A9F78095A3 | ||
:1007D0009095BC01CD010895A1E21A2EAA1BBB1B66 | ||
:1007E000FD010DC0AA1FBB1FEE1FFF1FA217B307FD | ||
:1007F000E407F50720F0A21BB30BE40BF50B661F13 | ||
:10080000771F881F991F1A9469F7609570958095D6 | ||
:1008100090959B01AC01BD01CF010895F894FFCFE5 | ||
:00000001FF |
Binary file added
BIN
+29.9 KB
L298 Motor Driver library for Proteus/UNO_L298_Stepper_1/UNO_L298_Stepper_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
L298 Motor Driver library for Proteus/UNO_L298_Stepper_2/UNO_L298_Stepper_2.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <Stepper.h> | ||
|
||
#define SWITCH 3 | ||
const int stepsPerRevolution = 20; | ||
|
||
// initialize the stepper library on pins 8 through 11: | ||
Stepper myStepper(stepsPerRevolution, 8,9,10,11); | ||
|
||
void setup() { | ||
pinMode(SWITCH, INPUT_PULLUP); | ||
// set the speed at 40 rpm: | ||
myStepper.setSpeed(40); | ||
} | ||
|
||
void loop() { | ||
if(digitalRead(SWITCH) == 0){ | ||
// rotate motor anticlockwise | ||
myStepper.step(stepsPerRevolution); | ||
delay(20); | ||
} | ||
else{ | ||
// rotate motor clockwise | ||
myStepper.step(~stepsPerRevolution); | ||
delay(20); | ||
} | ||
} |
150 changes: 150 additions & 0 deletions
150
L298 Motor Driver library for Proteus/UNO_L298_Stepper_2/UNO_L298_Stepper_2.ino.standard.hex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
:100000000C9462000C947F000C947F000C947F0091 | ||
:100010000C947F000C947F000C947F000C947F0064 | ||
:100020000C947F000C947F000C947F000C947F0054 | ||
:100030000C947F000C947F000C947F000C947F0044 | ||
:100040000C9418030C947F000C947F000C947F0098 | ||
:100050000C947F000C947F000C947F000C947F0024 | ||
:100060000C947F000C947F00000000002400270007 | ||
:100070002A0000000000250028002B0000000000DE | ||
:1000800023002600290004040404040404040202DA | ||
:100090000202020203030303030301020408102007 | ||
:1000A0004080010204081020010204081020000012 | ||
:1000B0000008000201000003040700000000000027 | ||
:1000C0000000F70311241FBECFEFD8E0DEBFCDBF85 | ||
:1000D00021E0A0E0B1E001C01D92A332B207E1F738 | ||
:1000E00010E0C2E6D0E004C02197FE010E94630444 | ||
:1000F000C136D107C9F70E9462030C949F040C9487 | ||
:100100000000833081F028F4813099F08230A9F02A | ||
:1001100008958730A9F08830C9F08430B1F4809117 | ||
:1001200080008F7D03C0809180008F778093800056 | ||
:10013000089584B58F7784BD089584B58F7DFBCFF6 | ||
:100140008091B0008F778093B00008958091B000C7 | ||
:100150008F7DF9CF1F93CF93DF93282F30E0F901E4 | ||
:10016000E255FF4F8491F901E656FF4FD491F90112 | ||
:10017000EA57FF4FC491CC23A9F0162F81110E949A | ||
:100180008100EC2FF0E0EE0FFF1FEE58FF4FA5911E | ||
:10019000B4918FB7F894EC91111108C0D095DE237B | ||
:1001A000DC938FBFDF91CF911F910895DE2BF8CFA5 | ||
:1001B000CF93DF93EC01809111019091120102978E | ||
:1001C00049F4C130D10509F43BC06CF560E02097DB | ||
:1001D00009F437C08091110190911201049749F4FC | ||
:1001E000C130D10509F45CC00CF037C0209709F488 | ||
:1001F00042C08091110190911201059709F0E5C06C | ||
:10020000CA30D10508F0E1C0FE01E75FFE4F0C9453 | ||
:1002100063046801740185019B01B601B801BF0147 | ||
:10022000CB01DC01E301C230D105A9F060E0C330AD | ||
:10023000D10581F6809115010E94AA0060E006C0F8 | ||
:1002400061E0809115010E94AA0061E08091170190 | ||
:100250000E94AA00BFCF61E0EDCFC230D10539F1D5 | ||
:10026000C330D10509F0C5CF61E0809115010E942E | ||
:10027000AA0060E022C061E0809115010E94AA00FE | ||
:1002800060E0809117010E94AA0061E0809119014D | ||
:100290000E94AA0060E080911B010E94AA00A9CFE1 | ||
:1002A00060E0809115010E94AA0061E0EACF60E061 | ||
:1002B000809115010E94AA0061E0809117010E94BF | ||
:1002C000AA0060E0809119010E94AA0061E0E3CFDA | ||
:1002D00060E0809115010E94AA0061E08091170101 | ||
:1002E0000E94AA0061E00BC060E0809115010E94AD | ||
:1002F000AA0061E0809117010E94AA0060E080914D | ||
:1003000019010E94AA0060E010C060E08091150110 | ||
:100310000E94AA0061E0809117010E94AA0060E09B | ||
:10032000809119010E94AA0061E080911B010E9446 | ||
:10033000AA0061E015C060E0809115010E94AA004A | ||
:1003400061E0809117010E94AA0060E0809119018C | ||
:100350000E94AA0061E080911B010E94AA0060E057 | ||
:1003600080911D01DF91CF910C94AA0061E0E4CF50 | ||
:1003700061E0809115010E94AA0060E0E2CF61E097 | ||
:10038000809115010E94AA0060E0809117010E94EF | ||
:10039000AA0061E0DBCF61E0809115010E94AA0014 | ||
:1003A00060E0809117010E94AA0061E0809119012C | ||
:1003B0000E94AA0060E0CFCF61E0809115010E9409 | ||
:1003C000AA0060E08BCF60E0F8CFDF91CF91089575 | ||
:1003D000CF93DF9390E0FC01E656FF4F24918A57BC | ||
:1003E0009F4FFC0184918823D1F090E0880F991FE2 | ||
:1003F000FC01E859FF4FA591B491FC01EE58FF4F65 | ||
:10040000C591D491623071F49FB7F8943C91822FDA | ||
:10041000809583238C93E8812E2B28839FBFDF91C7 | ||
:10042000CF9108958FB7F894EC912E2B2C938FBF1A | ||
:10043000F6CF3FB7F8948091050190910601A09105 | ||
:100440000701B091080126B5A89B05C02F3F19F000 | ||
:100450000196A11DB11D3FBFBA2FA92F982F882744 | ||
:10046000BC01CD01620F711D811D911D42E0660F1F | ||
:10047000771F881F991F4A95D1F708954F925F9271 | ||
:100480006F927F928F929F92AF92BF92EF92FF9264 | ||
:100490000F931F93CF93DF93EC0197FF04C0CC27FA | ||
:1004A000DD27C81BD90B181619060CF061C081E0B6 | ||
:1004B00090E090930A018093090104E010E08AE043 | ||
:1004C000E82EF12C209709F46FC00E941902809049 | ||
:1004D0001F0190902001A0902101B09022012B01DA | ||
:1004E0003C01481859086A087B0880900B019090DD | ||
:1004F0000C01A0900D01B0900E01481459046A043B | ||
:100500007B0400F360931F0170932001809321010D | ||
:10051000909322018091130190911401209109017F | ||
:1005200030910A012130310559F50196909314015B | ||
:100530008093130120910F013091100182179307CE | ||
:1005400021F410921401109213012197809113014C | ||
:10055000909114012091110130911201B7012530C1 | ||
:10056000310509F0B8010E9430040E94D800AACFDA | ||
:10057000892B09F4A2CF10920A01109209019DCF94 | ||
:10058000892B41F480910F019091100190931401F7 | ||
:10059000809313018091130190911401019790931E | ||
:1005A000140180931301D1CFDF91CF911F910F914F | ||
:1005B000FF90EF90BF90AF909F908F907F906F9043 | ||
:1005C0005F904F9008958F929F92AF92BF92CF927B | ||
:1005D000DF92EF92FF920E9419024B015C0184E1CD | ||
:1005E000C82ED12CE12CF12C0E941902681979092E | ||
:1005F0008A099B09683E734081059105A8F321E0B3 | ||
:10060000C21AD108E108F10888EE880E83E0981E2E | ||
:10061000A11CB11CC114D104E104F10429F7FF901D | ||
:10062000EF90DF90CF90BF90AF909F908F90089504 | ||
:100630001F920F920FB60F9211242F933F938F9317 | ||
:100640009F93AF93BF938091010190910201A0917C | ||
:100650000301B09104013091000123E0230F2D37F5 | ||
:1006600058F50196A11DB11D209300018093010151 | ||
:1006700090930201A0930301B093040180910501BE | ||
:1006800090910601A0910701B09108010196A11D6A | ||
:10069000B11D8093050190930601A0930701B093CB | ||
:1006A0000801BF91AF919F918F913F912F910F9032 | ||
:1006B0000FBE0F901F90189526E8230F0296A11DDC | ||
:1006C000B11DD2CF789484B5826084BD84B5816039 | ||
:1006D00084BD85B5826085BD85B5816085BD80910D | ||
:1006E0006E00816080936E00109281008091810085 | ||
:1006F000826080938100809181008160809381007D | ||
:10070000809180008160809380008091B10084603E | ||
:100710008093B1008091B00081608093B00080919F | ||
:100720007A00846080937A0080917A00826080935E | ||
:100730007A0080917A00816080937A0080917A00BB | ||
:10074000806880937A001092C10062E083E00E948A | ||
:10075000E80120910F0130911001032E000C440B91 | ||
:10076000550B60E077E883E993E00E944404CA01F6 | ||
:10077000B90128E230E040E050E00E9444042093B8 | ||
:100780000B0130930C0140930D0150930E01C1EB0E | ||
:10079000D0E00DE910E099E8E92E90E0F92E20E094 | ||
:1007A000C22E20E0D22EFE018491F801A490F70120 | ||
:1007B000B490BB2081F081110E948100EB2DF0E00C | ||
:1007C000EE0FFF1FE458FF4FA591B4918C91A82222 | ||
:1007D0008BEE9FEF11F484E190E00E943E020E94B4 | ||
:1007E000E302C114D104F9F20E940000DCCFCF93E0 | ||
:1007F000DF93C9E0D1E01B861A86198218821E8A0F | ||
:100800001F8A188E198E84E190E09F838E8388E082 | ||
:1008100090E09D878C8789E090E09F878E878AE0B3 | ||
:1008200090E0998B888B8BE090E09B8B8A8B61E0CA | ||
:1008300088E00E94E80161E08E850E94E80161E0A5 | ||
:1008400088890E94E80161E08A890E94E8011D8A86 | ||
:100850001C8A84E090E099878887DF91CF91089582 | ||
:1008600097FB072E16F4009407D077FD09D00E945D | ||
:10087000690407FC05D03EF4909581959F4F08953B | ||
:10088000709561957F4F0895052E97FB1EF4009497 | ||
:100890000E945B0457FD07D00E947D0407FC03D033 | ||
:1008A0004EF40C945B0450954095309521953F4F44 | ||
:1008B0004F4F5F4F089590958095709561957F4F4C | ||
:1008C0008F4F9F4F0895EE0FFF1F0590F491E02D7D | ||
:1008D0000994AA1BBB1B51E107C0AA1FBB1FA61787 | ||
:1008E000B70710F0A61BB70B881F991F5A95A9F7D9 | ||
:1008F00080959095BC01CD010895A1E21A2EAA1B06 | ||
:10090000BB1BFD010DC0AA1FBB1FEE1FFF1FA217BF | ||
:10091000B307E407F50720F0A21BB30BE40BF50BBC | ||
:10092000661F771F881F991F1A9469F76095709545 | ||
:10093000809590959B01AC01BD01CF010895F8947D | ||
:02094000FFCFE7 | ||
:00000001FF |
Binary file added
BIN
+20.7 KB
L298 Motor Driver library for Proteus/UNO_L298_Stepper_2/UNO_L298_Stepper_Button.pdsprj
Binary file not shown.
Binary file added
BIN
+30.8 KB
...Motor Driver library for Proteus/UNO_L298_Stepper_2/UNO_L298_Stepper_Button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.