Dawn Robotics Forum Support and community forums for Dawn Robotics Ltd 2014-02-22T19:04:35+01:00 http://forum.dawnrobotics.co.uk/feed.php?f=8&t=1225 2014-02-22T19:04:35+01:00 2014-02-22T19:04:35+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1225&p=1244#p1244 <![CDATA[Re: Raspberry Pi Robot problems]]>
Thanks for the write up, and apologies for taking so long to approve this post. As I explained to another couple of posters, I've been very lax in checking the forum this week, and haven't yet worked out how to set up notifications when a post needs approval. :?

Glad to hear that you saw something on your laptop, but sorry to hear that it then seems to have flaked out again! How exactly are you connecting your laptop to the Pi? Is it through a router using a network cable?

If you've got some time to look at it again, are you able to run it off a mains power adapter to rule out power issues? Also, if you're able to ssh in, or to attach a keyboard and monitor, can you send the output of running ifconfig -a?

Regards

Alan

Statistics: Posted by Alan — Sat Feb 22, 2014 7:04 pm


]]>
2014-02-19T00:46:40+01:00 2014-02-19T00:46:40+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1225&p=1236#p1236 <![CDATA[Raspberry Pi Robot problems]]>
We met at the Cam Jam and I bought one of your Pi Robots. I built the robot in the Pi tradition of using what I had rather than buy another similar bits. So, the robot has a mk2 Pi, hand burned SD from the web site image, a Pi cam, WiPi dongle, GP Powerbank 4AH (to power the Pi) and the 4 x AA battery pack (for the motors). I plan to use a Nexus 7 for the hand controller and a Busbi 7 as a cheap backup.

The build was straight forward and the instructions clear.

At power on, the robot twitched and the Pi lights winked but the Nexus didn't pick up the Pi. Or the second or third time. Shuffled the driver board about and pluged in a monitor to see what was going on. During boot, this line appeared which seemed to be germain to the situation:

Starting advanced IEEE 802.11 management: hostapdioctl[siocswmode]: invalid argument
Failed

You were very helpful and quick with your reply to my query, thanks :D

"I believe that replacing the driver line with driver=nl80211 in you /etc/hostapd/hostapd.conf should work. If it doesn't then you may need to remove the patched version of AdaFruit's hostapd (see their tutorial for an explanation). This is done by running the following from the Pi command line

sudo mv /usr/sbin/hostapd /usr/sbin/hostapd.ADA
sudo mv /usr/sbin/hostapd.ORIG /usr/sbin/hostapd "

As it turned out both were required before the Nexus picked up the Pi.

After many attempts involving repowering the robot, the Nexus eventually got an IP address and keying in the server IP (I suppose) into the nexus, got a rather short lived (5 seconds) poor quality video feed from the robot but no controlling joysticks. Further attempts failed to collect an IP address.

As there is no way to close down the Pi cleanly, I was pulling the power to shut down which had the effect of corrupting the SD card about half the time. Ended up with two cards on the go, one in use, the other being reburned.

Using a Maplin USB plug, I made up a short, direct power line between the Pi and the Powerbank. SD card corruption seems to have stopped. I think that a lot of the USB to micro USB leads were not designed to take the current that a Pi takes and so loose vital volts along their length leading to weirdies at the Pi.

I tried using the Busbi and it had more success in getting an IP address but only just. Didn't get a video feed but was able to pan and tilt the camera from the right joystick. But only the once but nothing crashed so I played with it for a while.

Both tablets said that the signal strength was excellent but were constantly trying to obtain an IP address and failing. The information provided by the tablets is a bit sparse for trouble shooting so I fired up my windows 7 laptop which I hoped would give more clues.

The first try came up with an invalid IP address format but the second attempt got through and, using Chrome, gave video feed and both joysticks functioning using the mousepad and left key to drive the joysyicks. :D :D

Pan and tilt tested OK, motor drive right, left tested OK.

However, it seems that this, too, was a once only function. No success since. And the tablets still don't pick up an IP address. Next, I'll try it with the notebook.

Andrew

Statistics: Posted by ayoungtech — Wed Feb 19, 2014 12:46 am


]]>