I received my first Pi a couple days ago (B+ Model). I ordered it and a few other things to give my kids some education about robotics, my kids are homeschooled so I figure it would be great to do this together. I will be using the Pi with the JBtek 8 Channel DC 5V Relay Module
I understand how to turn the motors on and off, but I'd also like to be able to control the direction of the motor. It seems like it would take 2 relays and pins for each motor, but I'm not sure how I would wire them up to the relay board without using additional components. I'm pretty sure it can be done if I remember my electronics correctly. I tried to Google it, but I guess I wasn't using the right keywords. I'm needing a diagram and/or video to point me in the right direction. I will be using 2 motors, and wish it to do this so it can perform sharp turns(one wheel moves forward while the other reverses).
While i'm making this post, I might as well ask another question that I have. Naturally, this will be a mobile robot. What is the best way to power the Pi off batteries? Will a straight 6 volts (batteries) do it? I ordered this
but it says the voltage needs to be more than 1.5v over what I need, so i'm thinking that it may not work. One guy told me he wired 6v batteries straight up to the Pi and it worked fine, but that seems rather risky to me.
Any help would be appreciated, thanks in advance.