Dawn Robotics Forum Support and community forums for Dawn Robotics Ltd 2015-05-25T18:45:51+01:00 http://forum.dawnrobotics.co.uk/feed.php?f=5&t=1356 2015-05-25T18:45:51+01:00 2015-05-25T18:45:51+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1815#p1815 <![CDATA[Re: Unexpected difficulty]]> Thanks.

Statistics: Posted by kevcook — Mon May 25, 2015 6:45 pm


]]>
2015-05-20T11:35:47+01:00 2015-05-20T11:35:47+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1798#p1798 <![CDATA[Re: Unexpected difficulty]]>
Sorry I completely missed the earlier post asking about HC-SR04 support.

I believe (although haven't tried it myself) that it's possible to use the 4 pin sensor instead of the 3 -pin sensor simply by connecting the send and receive lines together (as shown here). If you have a soldering iron then a quick solder bridge should work.

If anyone with an HC-SR04 has time to test this then if all is well I'll update the sensor blog post so that other people know it's possible.

Regards

Alan

Statistics: Posted by Alan — Wed May 20, 2015 11:35 am


]]>
2015-05-16T15:51:07+01:00 2015-05-16T15:51:07+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1793#p1793 <![CDATA[Re: Unexpected difficulty]]>
Did you get the HC-SR 4 pin sensor working via the driver and not the GPIO? I'm looking to do the same thing but am struggling to get it working without risking the Aduino and the Pi?

Kevin.

Statistics: Posted by kevcook — Sat May 16, 2015 3:51 pm


]]>
2015-05-06T19:41:13+01:00 2015-05-06T19:41:13+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1770#p1770 <![CDATA[Re: Unexpected difficulty]]>
Apologies if I've misunderstood, but I'm not sure that trying to connect servo +V to PWM outputs will give you great results I'm afraid. Basically, the problem is that the pins on the mini driver and the Pi can't provide more than a small amount of current (about 40mA for the mini driver). The neck servo motors are small but I would think that they'll still draw a lot more current than this, especially under load.

What you could try instead is using a transistor to swtch the servos on and off as someone else was trying to do here. Although it looks like it could get a bit complicated.

I think that a software change may be your best bet, and probably the easiest place to do it is in your control script. Let me know how you get on with your experiments. I'm a bit snowed under at the moment but I can create a code sample showing a possible solution if you think it'd help.

Regards

Alan

Statistics: Posted by Alan — Wed May 06, 2015 7:41 pm


]]>
2015-05-05T15:39:14+01:00 2015-05-05T15:39:14+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1768#p1768 <![CDATA[Re: Unexpected difficulty]]>
My concern is actually with the mechanics of the servo, nylon cogs might be tough, but the sudden stop start must be putting quite some strain and wear on them.

I do have an idea to adjust the power to the pan servo using another PWM output, basically plugging the servos +v lead to the PWM output, if my theory is right I should be able to slow the servo motor, in theory.

Statistics: Posted by Puma — Tue May 05, 2015 3:39 pm


]]>
2015-05-04T20:07:13+01:00 2015-05-04T20:07:13+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1763#p1763 <![CDATA[Re: Unexpected difficulty]]>
It's not possible to slow it down I'm afraid as the servo motor is just trying to get to the target angle as soon as possible. Sending over the angle change in smaller increments is probably your best bet, although I think that as long as your camera cable is free to move then there shouldn't be any harm in letting the servo turn quickly.

Regards

Alan

Statistics: Posted by Alan — Mon May 04, 2015 8:07 pm


]]>
2015-05-04T16:58:29+01:00 2015-05-04T16:58:29+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1762#p1762 <![CDATA[Re: Unexpected difficulty]]> Statistics: Posted by Puma — Mon May 04, 2015 4:58 pm


]]>
2015-05-02T14:54:34+01:00 2015-05-02T14:54:34+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1760#p1760 <![CDATA[Re: Unexpected difficulty]]>
If I can impose on you for further help, I have a 4 pin ultrasonic sensor with trigger and echo pins, what I'd like to do is connect these to D0 and D1 on the Dagu mini driver board(I won't be using them for serial any time soon) can you advise me on how to set those pins and read/write them please?

Statistics: Posted by Puma — Sat May 02, 2015 2:54 pm


]]>
2015-04-29T16:15:05+01:00 2015-04-29T16:15:05+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1758#p1758 <![CDATA[Re: Unexpected difficulty]]>
I think that instead of using the script robot_control_test.py (which runs on the robot) you may be better of using the py_websockets_bot library which communicates with the robot over WiFi.

This blog post here provides a tutorial explaining how to get started with the py_websockets_bot library. I think that the script closest to the one you want is motor_test.py which shows how to control the motors of the robot.

Keyboard input via the command line for Python is a bit difficult as you can ask for an input string from the user with the input command, but it's hard to continuously read the arrow keys which I suspect is probably closer to what you want. One way that you could do it would be to create a small GUI application using either PyGame or wxPython. You could use that library's keyboard handling routines and then use the py_websockets_bot library to control the robot.

Hopefully that's some help. Let me know if you need more detail on anything.

Regards

Alan

Statistics: Posted by Alan — Wed Apr 29, 2015 4:15 pm


]]>
2015-04-29T10:30:18+01:00 2015-04-29T10:30:18+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1356&p=1757#p1757 <![CDATA[Unexpected difficulty]]>
All I want to do is use the UP/Down/Left/Right arrow keys to control the robots movement, eg Up arrow equals forward, Down arrow equals reverse, no key pressed equals stop

I need to be able to do this via the wifi, I looked at your script robot_control_test.py, but this requires robot_web_server to be stopped.

In summary, I need to know how to read the keyboard and send the commands via wifi, any help is appreciated.

P.S thank you for helping getting me back into my favourite hobby.

Statistics: Posted by Puma — Wed Apr 29, 2015 10:30 am


]]>