Forum Replies Created
-
AuthorPosts
-
fphMember
And here is a video of our final result http://www.youtube.com/watch?v=D4JH9kWmt-c&feature=youtu.be
fphMemberWe made it work with two Arduino UNOs, and poll serial! Thanks for the help Michael 🙂
fphMemberSorry, the reason both motors worked was cause we had one of them connected to d2, not d3. So it got some values from the VE code. Only one motor works when we connect like this:
int E1 = 5; //M1_PWM
int E2 = 3; //M2_PWM
int M1 = 10; //M1_EN
int M2 = 11; //M2_ENSo our last hope seems to be to use two arduinos and transmit the coordinates from the one running the VE to the one running the motors, but we are not really sure how to do it with pollserial. We need to #include
only on the arduino running the TVout code? But not the arduino running our motors? Could you give us an example of what our code should look like on the transmitter and reciever end? fphMemberChanging the code to what you recomended, and pin outs accordingly, only helped partially. We got both motors working, but they ran at different speeds. Do you have any idea why that is? Now M1 was acting up. Direction control was ok, but the speed control was faulty. M2 seems to be working as intended.
We also tried to use 2 UNO’s, and send coordinates with serial, but we wont get that to work either. As soon as we implement the VE setup code it breaks down. We are using rx on the arduino with the VE stacked on it, and tx on the other arduino. And we have them connected via ground. The transmission works flawless as long as we are not implementing any of the VE setup code.
fphMemberOh.. We will try it out on Sunday. We came up with a backup plan of using one UNO for the tracking, and one for the motors, and just send the coordinates via serial, but hopefully it is this simple! Thanks for the swift reply Michael! 🙂
-
AuthorPosts