fph

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: VE and L298P motor shield #1848
    fph
    Member

    And here is a video of our final result http://www.youtube.com/watch?v=D4JH9kWmt-c&feature=youtu.be

    in reply to: VE and L298P motor shield #1924
    fph
    Member

    We made it work with two Arduino UNOs, and poll serial! Thanks for the help Michael 🙂

    in reply to: VE and L298P motor shield #1918
    fph
    Member

    Sorry, 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_EN

    So 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?

    in reply to: VE and L298P motor shield #1916
    fph
    Member

    Changing 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.

    in reply to: VE and L298P motor shield #1915
    fph
    Member

    Oh.. 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! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)