Testing python script on robot

Discussion about robot hardware goes here.

Testing python script on robot

Postby DannyM » Mon Dec 08, 2014 6:17 pm

Hi,

Because I'm a noob at Python, I need to test my script a lot on my robot, but since my battery is only goor for 3 hours power I try to setup my robot on AC power with the 'wheels up' so the robot won't drive away. :D

What should I connect to the PI and what to the driver board?
DannyM
 
Posts: 8
Joined: Sun Dec 07, 2014 9:21 pm

Re: Testing python script on robot

Postby Alan » Tue Dec 09, 2014 11:17 am

Hi Danny,

The recommended setup for this would be to leave the battery pack connected to the mini driver with the power switch 'on' and then power the Pi using a wall adapter (1.2A to 2A is best).

In this setup the power adapter will power the Pi, and the battery will power the motors. Because the battery pack is no longer powering the Pi, and also because the motors won't be running continuously, you should find the battery pack lasts much longer (I would hope at least 2 to 3 times longer) giving you much more time for debugging.

If you needed to debug and run the motors for really long times then you could power the motors from a benchtop power supply, but I'd try the battery pack apporach to begin with.

Hope that helps.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: Testing python script on robot

Postby DannyM » Wed Dec 10, 2014 6:08 pm

Thanks Alan,

This was what I was looking for. And indeed my batterypack lastst much longer, enough for me to test my scripts.

Danny
DannyM
 
Posts: 8
Joined: Sun Dec 07, 2014 9:21 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest