HELP! Camera robot being very difficult!

If you need technical help with anything you've bought from Dawn Robotics, please post here.

HELP! Camera robot being very difficult!

Postby Madams » Sat Jul 12, 2014 1:59 pm

Dear Dawn Robotics

I have purchased the Raspberry Pi camera robot bundle and have had some problems and am in need of urgent help to get everything working. Here is the process of events I have gone through:

1) Bought the entire chassis bundle package.

2) Built the robot and everything was working fine apart from the camera stream. Full movement of the wheels and the camera tilt/pan was working and all fine with controlling the movement from a browser.

3) I tried everything I could to fix the camera stream, but nothing worked. Therefore I tried starting from scratch by formatting the SD card and writing the Dawn robotics image from your website to the SD card again.

4) I follow the same process with plugging the SD card into the camera robot and expanding the file system etc. Now when I connect to the camera robot from a browser, the camera stream is working fine so I jumped for joy! however only to find shortly after that that now there is no control of movement of the wheels or camera tilt/pan, they are seemingly dead. Even though I have battery power to the motor and power to the Pi which worked fine previously. So now I have the complete opposite of the first problem I had. Now the camera is working fine, but the motors are dead!

It just seems impossible to have everything working on this robot at the same time. What can I do now to try and get the wheels and camera motors working again as they were previously? I am a teacher and my intention is to order some more of these robots for my computing students to work with, but I need to know I can get this one fully working first.

Many thanks in advance for your help.

Mark
Madams
 
Posts: 7
Joined: Sat Jul 12, 2014 1:52 pm

Re: HELP! Camera robot being very difficult!

Postby Alan » Mon Jul 14, 2014 11:31 am

Hi Mark,

Welcome to the forum. Sorry to hear you're having trouble with your robot.

That is odd that you had everything working, apart from the camera stream. Although at least you've seen both aspects of the robot working, we now just need to get them working in unison. :)

A few things to try with your new SD card

  • You may just need to wait for the mini driver to be programmed by the software on the new SD card. This can take a couple of minutes the first time it's booted. Can you give that a go please?
  • If after waiting for 3 minutes or so the motors and pan/tilt are still not responding, can you send me logs which you can find at 192.168.42.1/logs.html please?

With your regards to your robot

  • What type of batteries are you using to power it?
  • What wifi dongle are you using?

Regards

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

Re: HELP! Camera robot being very difficult!

Postby Madams » Mon Jul 14, 2014 2:32 pm

Hi Alan

Tried waiting 3 minutes, but still no joy. Here is the log:

Main Log
DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server...
INFO:tornado.access:200 GET / (192.168.42.15) 91.46ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 106.69ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.69ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.42.15) 8.39ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 7.92ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.42.16) 10.77ms
INFO:tornado.access:304 GET / (192.168.42.16) 9.39ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 7.84ms
INFO:tornado.access:200 GET /logs.html (192.168.42.16) 14.42ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 7.76ms

The batters I am using are brand new energizer AA batters connecting to the motors through the battery unit that comes with the bundle. I am using the TeckNet iEP387 Power Bank to power the Raspberry Pi. I have however tried to power it from the mains to make sure the problem was not down to a lack of power.
The wirless dongle I am using is the Edimax one that was recommended with the bundle.

Many thanks

Mark
Madams
 
Posts: 7
Joined: Sat Jul 12, 2014 1:52 pm

Re: HELP! Camera robot being very difficult!

Postby Alan » Mon Jul 14, 2014 4:50 pm

Hi Mark,

The should be a record in the log of the Pi trying to talk to the Mini Driver to check that it's got the correct firmware on it. This should look something like

INFO:root:Read 0XACED 0.28 # Version read from mini driver
INFO:root:Expected 0XACED 0.28 # Expected version

But there's no sign of this in your logs.

Can you check that the USB cable from the Pi to mini driver is plugged in. Also, try leaving the robot for a bit longer after boot. If you sit on the log page and refresh, you should hopefully see evidence of a connection with the mini driver. ~If the version numbers don't match then there will be a delay of about a minute or so as the correct firmware is automatically compiled and uploaded to the mini driver.

If after sitting on the log page for a while you still don't get notice of the Pi talking to the mini driver we can try some command line debugging. Hopefully we won't get to that though. :)

Also, while I think about it, does the red power LED come on on the mini driver? And does a blue LED flash as it powers on?

Regards

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

Re: HELP! Camera robot being very difficult!

Postby Madams » Mon Jul 14, 2014 5:24 pm

Hi Alan

The mini driver has a red LED consistently on all the time while it is on and a blue LED flashes as you power on the mini driver so that is all OK.

I have now made sure the USB cable is connecting the PI to the mini driver (didn't have it in properly last time around!), however I still have no power to control the motors of the robot.

This is the new log code it is showing now:

Main Log DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server...
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
INFO:root:Read 0X0 0.0
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
INFO:root:Expected 0XACED 0.28
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
INFO:root:Unable to connect to correct firmware, uploading...
INFO:root:No file copy needed
DEBUG:root:Building sketch in dir /root/.ino_uploader/mini_driver_firmware
DEBUG:root:Trying to upload /root/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex
DEBUG:root:uploadResult = 0
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
INFO:root:Read 0X0 0.0
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
WARNING:root:Got unrecognised response id - 4
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 12.28ms
INFO:tornado.access:304 GET / (192.168.42.16) 104.51ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.16) 145.61ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.16) 17.40ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.16) 13.20ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 8.79ms
WARNING:tornado.access:404 GET /logs (192.168.42.16) 9.80ms
INFO:root:SockJS connection closed
WARNING:tornado.access:404 GET /log (192.168.42.16) 9.43ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.16) 8.98ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.65ms
INFO:tornado.access:204 POST /robot_control/544/or4xpw3e/xhr_send (192.168.42.15) 60.14ms
INFO:tornado.access:204 POST /robot_control/544/or4xpw3e/xhr_send (192.168.42.15) 14.56ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 POST /robot_control/544/or4xpw3e/xhr_streaming (192.168.42.15) 2178.09ms
INFO:tornado.access:304 GET / (192.168.42.15) 9.87ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 12.56ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 11.16ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 10.88ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.76ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.42.15) 10.33ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.46ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.52ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.25ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.25ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.44ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.06ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.53ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.45ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.39ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.73ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.95ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.91ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.69ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 15.18ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.89ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.48ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.73ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.76ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.30ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.18ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.02ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.33ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.93ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 24.17ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.83ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.52ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.24ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 17.89ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.50ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.82ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.16ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 16.62ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.59ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.54ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.79ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.37ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.97ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 22.28ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.00ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.00ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 13.39ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.38ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.50ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.10ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 14.77ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.35ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.50ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 25.48ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.56ms
INFO:tornado.access:204 POST /robot_control/720/e8314pt5/xhr_send (192.168.42.15) 12.32ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 POST /robot_control/720/e8314pt5/xhr_streaming (192.168.42.15) 19777.63ms
WARNING:tornado.access:404 GET /log.html (192.168.42.15) 9.27ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.42.15) 9.54ms
INFO:tornado.access:200 GET /logs.html (192.168.42.15) 15.48ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.42.15) 9.70ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.48ms

Ino Build Log
Madams
 
Posts: 7
Joined: Sat Jul 12, 2014 1:52 pm

Re: HELP! Camera robot being very difficult!

Postby Alan » Mon Jul 14, 2014 5:47 pm

Ok,

This line

WARNING:root:Got unrecognised response id - 4

Is I think because you actually had a newer version of the firmware installed on your mini driver (and messages were being sent back which weren't recognised). What date was on the SD card image that you downloaded? The mini driver firmware for the SD image date 15th May should have version 0x29.

Having said that it looks like an upload was attempted

INFO:root:Unable to connect to correct firmware, uploading...
INFO:root:No file copy needed
DEBUG:root:Building sketch in dir /root/.ino_uploader/mini_driver_firmware
DEBUG:root:Trying to upload /root/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex
DEBUG:root:uploadResult = 0

But it seems to have been unsuccesful :( As after that there is

INFO:root:Read 0X0 0.0

This could be a problem with trying to go back in firmware numbers. But it should be able to upload the firmware eventually...

My suggestion would be to first check that you have the latest version of the SD card image. Try that with your robot and check the log page to see that a connection is successfully made to firmware version 0x29. I suspect that this will get your motors working, and then we may need to work out why your camera isn't working. Although the camera should work better with the new SD card image, not worse... :P

Regards

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

Re: HELP! Camera robot being very difficult!

Postby Madams » Tue Jul 15, 2014 8:54 pm

Hi Alan

I now have the latest SD card image on the card - I didnt have the most recent image on the SD card, however I still have the same problem.

I have made sure to download the image zip file 15-5-2014 and extracted the file and wrote the image to the SD card using Win32DiskImager. I then started the Raspberry pi with my usb hub connected so I could have the wireless dongle, keyboard and mouse all plugged in and connected it to a monitor using an HDMI to VGA adapter. I then opened the terminal and expanded the file system. I then disconnected the USB hub and the HDMI cable from the Pi so that only the wireless USB dongle was in and connected the Pi to the mini driver through the USB cable. I powered the Pi and the minidriver switch on and left it for 4 to 5 minutes. I then connected to the robots wi-fi connection went to 192.168.42.1 address and now have a shutdown button which i didnt have before and the camera stream works very well. However there is no reaction at all to moving the joysticks so I still can't move the motors at all. The log still says the robot will not connect to the firmware.

Any ideas for what to try next?

Here is the latest log:

Main Log
DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server...
INFO:root:Read 0XACED 0.31
INFO:root:Expected 0XACED 0.29
INFO:root:Unable to connect to correct firmware, uploading...
INFO:root:No file copy needed
DEBUG:root:Building sketch in dir /root/.ino_uploader/mini_driver_firmware
DEBUG:root:Trying to upload /root/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex
DEBUG:root:uploadResult = 0
INFO:root:Read 0XACED 0.31
INFO:tornado.access:304 GET / (192.168.42.15) 94.62ms
INFO:tornado.access:304 GET /css/style.css (192.168.42.15) 107.69ms
INFO:tornado.access:304 GET /css/modal.css (192.168.42.15) 12.75ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 32.15ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 12.38ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 13.41ms
INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.15) 13.00ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.89ms
INFO:tornado.access:200 GET /logs.html (192.168.42.15) 14.87ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.70ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 10.06ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.79ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 8.90ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.03ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 9.63ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.39ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 8.89ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.34ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 8.89ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.45ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 18.93ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.55ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 8.86ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.37ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 8.82ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 8.93ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 9.30ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.23ms
INFO:tornado.access:304 GET / (192.168.42.15) 8.34ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.15) 9.53ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 8.78ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 9.03ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 8.78ms
INFO:tornado.access:304 GET /css/modal.css (192.168.42.15) 10.65ms
INFO:tornado.access:304 GET /css/style.css (192.168.42.15) 8.81ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.74ms
INFO:tornado.access:304 GET / (192.168.42.15) 9.78ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.15) 10.48ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.24ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 8.90ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 9.30ms
INFO:tornado.access:304 GET /css/modal.css (192.168.42.15) 10.91ms
INFO:tornado.access:304 GET /css/style.css (192.168.42.15) 13.17ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.33ms
INFO:tornado.access:304 GET / (192.168.42.15) 8.10ms
INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.15) 9.99ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.17ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 11.45ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 9.68ms
INFO:tornado.access:304 GET /css/modal.css (192.168.42.15) 9.05ms
INFO:tornado.access:304 GET /css/style.css (192.168.42.15) 9.27ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.72ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 9.24ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.00ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 11.29ms
INFO:root:SockJS connection closed
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.20ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 8.79ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.31ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 8.80ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 7.36ms
Ino Build Log
Madams
 
Posts: 7
Joined: Sat Jul 12, 2014 1:52 pm

Re: HELP! Camera robot being very difficult!

Postby Alan » Tue Jul 15, 2014 9:37 pm

Ah, now that's interesting. It looks like your mini driver actually has the absolute latest version of the firmware installed on it (the one from bitbucket). This makes me think that the reason the camera didn't work the first time is because you may have had the latest version of the robot web server (raspberry_pi_camera_bot), but the raspberry_pi_camera_streamer program may not have been the most up to date version.

That's something for later though. I can see that I'm going to have to put some work in to make sure that the mini driver firmware downgrade properly, but for now you should be able to fix this by performing these steps.

  • Connect your hub, USB mouse, keyboard and monitor again and boot into the Pi's desktop
  • Start the Arduino IDE (hopefully somewhere in the start menu)
  • Load the blink sketch by opening File > Examples > Basics >Blink
  • Choose the mini driver as the board by selecting Tools > Board > Arduino NG or older w/ Atmega8
  • Select the USB serial port by selecting Tools > Serial Port > ttyUSB0
  • Press the Upload button (arrow button pointing right)
  • Wait for the program to upload. If it's successful then about 30 seconds after the upload is complete you should see a blue LED on the mini driver start to blink
  • Power off your Pi
  • Unplug everything apart from Wifi and the mini driver (i.e. get your robot ready to run) and restart the Pi
  • This time everything should upload and fingers crossed you'll finally be able to start enjoying your robot... :)

What I think is going wrong with the firmware upload is the excessive serial traffic is stopping the upload from working properly for some reason. Uploading the blink sketch should stop the serial traffic and allow the firmware upload to go ahead.

Regards

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

Re: HELP! Camera robot being very difficult!

Postby Madams » Tue Jul 15, 2014 10:41 pm

Tried that, the program seems to upload OK and the blue light on the mini driver flickers as the upload finishes, but still no joy when I connect to the robot and try to use it. The camera is still working fine as always. After the upload I just performed there were some verification errors that appeared on the output box just below where the upload bar is on the arduino IDE window. Not sure if this is normal?

Sorry to keep being a pain!

here is the most recent log when i connect to the robot:

Main Log
DEBUG:tornado.general:sockjs.tornado will use json module
INFO:root:Starting web server...
INFO:root:Read 0XACED 0.31
INFO:root:Expected 0XACED 0.29
INFO:root:Unable to connect to correct firmware, uploading...
INFO:root:No file copy needed
DEBUG:root:Building sketch in dir /root/.ino_uploader/mini_driver_firmware
DEBUG:root:Trying to upload /root/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex
DEBUG:root:uploadResult = 0
INFO:root:Read 0XACED 0.31
INFO:tornado.access:304 GET / (192.168.42.15) 105.73ms
INFO:tornado.access:304 GET /css/style.css (192.168.42.15) 128.60ms
INFO:tornado.access:304 GET /css/modal.css (192.168.42.15) 11.14ms
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 31.61ms
INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.15) 12.31ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 13.76ms
INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.15) 12.81ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.85ms
INFO:tornado.access:304 GET /logs.html (192.168.42.15) 14.82ms
INFO:root:SockJS connection closed
INFO:tornado.access:304 GET /js/jquery.js (192.168.42.15) 10.60ms
INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.15) 9.61ms
INFO:tornado.access:200 GET /robot_control/info (192.168.42.15) 8.95ms
Ino Build Log
Madams
 
Posts: 7
Joined: Sat Jul 12, 2014 1:52 pm

Re: HELP! Camera robot being very difficult!

Postby Alan » Wed Jul 16, 2014 10:24 am

Ok, that's a bit worrying, I haven't seen a mini driver get 'stuck' like that before.

One option we have is to update you to the latest software from the bitbucket repository (i.e. firmware version 0x31). Then the robot web server would find the correct firmware when it attempted to connect and should be able to talk to the mini driver.

This won't do you much good however if you want to update the software on the mini driver further in the future, so if you've got the patience then I've got some more steps you can take to try to fix this.

First I'd like to try to fix things from the command line. I've attached a zipped hex file (mini driver executable) to this post, built from the blink example. Can you please copy it to your SD card and then run the following from the command line of the Raspberry Pi

sudo service robot_web_server stop
unzip Blink.cpp.hex.zip
avrdude -p atmega8 -P /dev/ttyUSB0 -c arduino -b 19200 -D -U flash:w:Blink.cpp.hex:i

The first line will stop the web server (thinking about it, this may have interfered with the Arduino upload yesterday). The next line unzips the hex file and the final line aims to upload the hex file to the mini driver as it's done behind the scenes by the Arduino IDE.

Please let me know what output avrdude gives you. If it looks like it's worked then you should be able to get your robot working as described earlier. If it doesn't work then there's a possiblity that the bootloader on your mini driver is corrupt. (The bootloader is a small program that listens for communications to allow new programs to be uploaded). Do you have an other Arduinos lying around? Because if you do we can use that to rewrite the bootloader. Fingers crossed it doesn't come to that though...

Regards

Alan
Attachments
Blink.cpp.hex.zip
(1.01 KiB) Downloaded 58 times
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Next

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest