Hello Alan
I seem to be having the same trouble as that outlined in this thread. I have used your latest SD card image (Feb) and expanded it. I can connect and view the web page and I can see the camera view, but neither joystick control works, which makes me think the mini driver is the issue. This has the solid red and intermittent flashing blue LEDs working. Here's what I've done so far.
First, here is logs.html:
Main Log
DEBUG:tornado.general:sockjs.tornado will use json module INFO:root:Starting web server... INFO:root:Read 0X0 0.0 INFO:root:Expected 0XACED 0.38 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 0X0 0.0 INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 17.07ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 10.23ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 8.90ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 8.79ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 11.23ms INFO:tornado.access:304 GET / (192.168.42.13) 110.51ms INFO:root:SockJS connection closed INFO:root:SockJS connection closed INFO:root:SockJS connection closed INFO:root:SockJS connection closed INFO:root:SockJS connection closed INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.13) 157.24ms INFO:tornado.access:304 GET /css/style.css (192.168.42.13) 17.61ms INFO:tornado.access:304 GET /css/modal.css (192.168.42.13) 13.85ms INFO:tornado.access:304 GET /js/jquery.js (192.168.42.13) 43.27ms INFO:tornado.access:304 GET /images/ajax-loader.gif (192.168.42.13) 15.84ms INFO:tornado.access:304 GET /js/jquery.joystick.js (192.168.42.13) 14.08ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 9.30ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 10.93ms INFO:tornado.access:304 GET /logs.html (192.168.42.13) 15.69ms INFO:root:SockJS connection closed INFO:tornado.access:304 GET /js/jquery.js (192.168.42.13) 10.65ms INFO:tornado.access:304 GET /js/sockjs-0.3.min.js (192.168.42.13) 15.78ms INFO:tornado.access:200 GET /robot_control/info (192.168.42.13) 9.19ms
Ino Build LogSecond, I tried to burn the bootloader of the mini driver using an Arduino UNO - this kept giving me an error saying that it could not connect.
Third, I read that I needed to use a 10uF cap to disable the autoreset on the UNO, so I used Nick Gammon's ATMEL programmer sketch from here
http://www.gammon.com.au/forum/?id=11635 (which circumvents the autoreset I believe) which completed and verified the bootloader succesfully. However, I was still unable to load the Blink sketch on to the mini driver, truncated error message log:
Arduino: 1.6.4 (Windows 7), Board: "Arduino NG or older, ATmega8"
Build options changed, rebuilding all
Sketch uses 830 bytes (11%) of program storage space. Maximum is 7,168 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 1,015 bytes for local variables. Maximum is 1,024 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x02
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x02
avrdude: stk500_recv(): programmer is not respondingFinally, as it looked like my logs.html was incomplete, I connected via Putty, stopped and restarted the web service, here is the output:
pi@raspberrypi ~/raspberry_pi_camera_bot $ sudo ./robot_web_server.py
sockjs.tornado will use json module
Starting web server...
200 GET /robot_control/info (192.168.42.15) 19.75ms
200 GET /robot_control/info (192.168.42.15) 20.31ms
200 GET /robot_control/info (192.168.42.15) 9.93ms
200 GET /robot_control/info (192.168.42.15) 9.99ms
200 GET /robot_control/info (192.168.42.15) 10.13ms
200 GET /robot_control/info (192.168.42.15) 29.54ms
200 GET /robot_control/info (192.168.42.15) 13.26ms
200 GET /robot_control/info (192.168.42.15) 18.24ms
Read 0X0 0.0
Expected 0XACED 0.38
Unable to connect to correct firmware, uploading...
No file copy needed
Building sketch in dir /root/.ino_uploader/mini_driver_firmware
200 GET /robot_control/info (192.168.42.15) 18.01ms
200 GET /robot_control/info (192.168.42.15) 18.64ms
Image encoder buffer num 3, buffer size 81920
Image encoder buffer num 3, buffer size 81920
Trying to upload /root/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex
done with autoreset
avrdude-original: stk500_recv(): programmer is not responding
uploadResult = 0
Read 0X0 0.0
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "./robot_web_server.py", line 71, in createRobot
r = robot_controller.RobotController( robotConfig )
File "/home/pi/raspberry_pi_camera_bot/robot_controller.py", line 61, in __init__
raise Exception( "Unable to connect to the mini driver" )
Exception: Unable to connect to the mini driverSo, I'm not sure what to do next, I'm hoping I've missed something obvious with getting the mini driver working.
Thanks for any help
Regards
Ray
PS I first encountered this problem at the weekend and posted most of this message then (from a Chromebook), but it never appeared on the thread. I've been saving drafts this time..