You can't POWER any motors from the Arduino. You can do any number of things in each function. You can only have one setup() and one loop() function. The second motor should run on other motorValue's and delays and also run at the same time as the first one. Our idea was to add an extra void setup and loop but on another pin which then could power the second motor. Looking for help to program our Arduino Uno.įirst step is to figure out which board you really have. Running multiple DC motors with Arduino DUE. We tried to copy the same coding as above and paste it right under, but with other values and pins but when we run the verify / compile button it comes up with a lot of errors.ġ:Do you guys have any suggestion as to how we can run 2-3 DC motors on one Arduino DUE?Ģ:What coding should we use to run several DC motors at the same time (But not with the same input value and delay?) The second motor should run on other motorValue’s and delays and also run at the same time as the first one. This is just a test to see if the coding is right, and not the right intervals and values. We’re a couple of students looking for help to program our Arduino DUE.įor(int motorValue = 0 motorValue = 0 motorValue -=15)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |