Dawn Robotics Forum Support and community forums for Dawn Robotics Ltd 2015-03-25T15:00:40+01:00 http://forum.dawnrobotics.co.uk/feed.php?f=10&t=1344 2015-03-25T15:00:40+01:00 2015-03-25T15:00:40+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1344&p=1709#p1709 <![CDATA[Re: usb camera and GPIO pins.]]>
Welcome to the forums. :) Apologies that it's taken so long to answer your post.

I see that you've found the forum thread describing the code, that's the main 'documentation I'm afraid.

The file that you need to alter to control GPIO pins for motor control is robot_controller.py. You should see that in the update() routine (line 254) we call routines on a miniDriver class to set motor speeds and pan/tilt angles. You can replace this with calls to set GPIO pins.

Camera streaming on the Raspberry Pi is handled by a separate C program, raspberry_pi_camera_streamer, which is started and stopped automatically by the CameraStreamer class. I think that in order to use another camera you would need to change raspberry_pi_camera_streamer to work with a USB camera or alternatively alter camera_streamer.py to use a different camera program.

Hope that helps.

Regards

Alan

Statistics: Posted by Alan — Wed Mar 25, 2015 3:00 pm


]]>
2015-03-21T15:59:30+01:00 2015-03-21T15:59:30+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1344&p=1705#p1705 <![CDATA[usb camera and GPIO pins.]]> So my question is, Can any one point me to where/which PY files I can manipulate to control the GPIO outputs instead of the Dagu unit for motor controls. ( I have a L298N chipset ) And also, where in the streaming programs can I switch the camera to a USB camera ( I would like my robot to have the ability to switch cameras ) so I have a second camera which I will make a program afterwards to switch.

Any help would be greatly appreciated.

Statistics: Posted by darkerdude — Sat Mar 21, 2015 3:59 pm


]]>