mrsyake
Posts: 3
Joined: Mon May 02, 2016 2:59 pm

Robobutler connecting to pi

Mon May 02, 2016 5:58 pm

We are having trouble connecting the motorboard to the pi. We don't know what to do. We have this motor board http://www.amazon.com/dp/B018VOIMGA?psc=1 We have this tank http://www.amazon.com/dp/B00C0Q79EW/ref ... J5RGMY3MSY and we have this Pi http://www.amazon.com/dp/B00T2U7R7I/ref ... R6DY&psc=1. We connected the motorboard to the tank and got a light to come on. In the robobutler instructions is says connect the board to the Pi it should look like "this" but the board in the pictures is not the board in the "things you need" section. Also, I don't know how to attach this board to the Pi. I got a breadboard out but I don't know how to use it to connect either. Please advise.

mthomason
Posts: 113
Joined: Sun Apr 24, 2016 12:28 pm

Re: Robobutler connecting to pi

Mon May 02, 2016 11:07 pm

For that L298N board, using the Robobutler tutorial (assuming you mean the one at https://www.raspberrypi.org/learning/robo-butler/), you'll need to connect the pins using dupont jumper cables.

Pi pin 17 to L298N board IN1
Pi pin 18 to L298N board IN2
Pi pin 22 to L298N board IN3
Pi pin 23 to L298N board IN4

Keep the jumpers on ENA and ENB (these are normally used to control motor speed via PWM, but the robobutler and pi can't do that without additional hardware, only backwards+forwards, so the jumpers just set them to be on full speed permanently)

If one or both motors rotate the opposite direction to expected, rewire the motor +/- in the other way around on the L298N board.

If your board is labelled differently to IN1/2/3/4, yell :)

Return to “Automation, sensing and robotics”