simonmonk / raspirobotboard2

Software for the RaspiRobot Board Version 2
MIT License
41 stars 15 forks source link

Raspberry PI rebooting when executing rr.forward #5

Closed Nick-B31 closed 9 years ago

Nick-B31 commented 9 years ago

When I try to execute the below the Raspberry Pi crashes. I have installed the appropriate libraries and followed the readme.

from rrb2 import * rr = RRB2() rr.forward()

Using a Rapsberry Pi Model B Revision 2.0 (512MB) with an Edimax EW-7811Un USB Wi-Fi adapter with the RaspiRobot v2 board and two 6v DC motors.

I am able to control the LEDs with these commands:

rr.set_led1(1) rr.set_led2(1) rr.set_led1(0) rr.set_led2(0)

Thanks in advance.

simonmonk commented 9 years ago

What are you using for a battery pack?

On 15 Jun 2015, at 21:52, Nick-B31 notifications@github.com wrote:

When I try to execute the below the Raspberry Pi crashes. I have installed the appropriate libraries and followed the readme.

from rrb2 import * rr = RRB2() rr.forward()

Using a Rapsberry Pi Model B Revision 2.0 (512MB) with an Edimax EW-7811Un USB Wi-Fi adapter with the RaspiRobot v2 board and two 6v DC motors.

Thanks in advance.

— Reply to this email directly or view it on GitHub.

Simon Monk. http://www.simonmonk.org

Nick-B31 commented 9 years ago

Thank you very much for the quick response! I am powering it from the Raspberry Pi USB power. Nothing connected to the power terminals on the RaspiRobot Board.

simonmonk commented 9 years ago

OK, that's your problem. You need a battery pack or 9-12V power supply connected the the RRBv2 screw terminals.

Si.

On 15 Jun 2015, at 22:03, Nick-B31 notifications@github.com wrote:

Thank you very much for the quick response! I am powering it from the Raspberry Pi USB power. Nothing connected to the power terminals on the RaspiRobot Board.

— Reply to this email directly or view it on GitHub.

Simon Monk. http://www.simonmonk.org

Nick-B31 commented 9 years ago

I had a spare PSU available. I've used one of the 12v power lines and GND on it.

I am able to get both motors to work with this command now instead of crashing.

rr.forward()

Thanks again