Dagu Mini Driver not responding
Posted: Sat Jun 13, 2015 11:24 pm
Hello,
I bought the Raspberry Pi camera robot and got it working fine.
Last week, I got some ultrasonic sensor and wanted to try it, but since it is a 4 pin sensor (HC-SR04), I thought I'd try to modify the Mini Driver firmware to use different pin for Trig and Echo. (I realize now that my plan to use pin D13 for Echo might not be a good idea since D13 is the pin to drive the built-in LED, but I haven't got that far anyway).
I then tried to upload my modified firmware and it started fine, but stopped at the end of the flashing process:
I tried again running the avrdude command manually, but it consistently fails with the following error:
I came to think that my bootloader may be corrupted.
Is there a way to check whether it is the case?
Or could it be that my Mini Driver is "broken"? (the red LED is lit)
Assuming this is the case, I did some research and found it is possible to reburn the bootloader (http://letsmakerobots.com/node/35649), but I do not have another Arduino at hand.
I saw it may be possible to reburn the bootloader using Raspberry Pi:
viewtopic.php?f=5&t=1362&p=1778&hilit=bootloader&sid=f82f1407f11a17ad239898db1b03ffee#p1778
If applicable, could you explain how to wire the Mini Driver to the Pi to perform this operation?
Thanks,
Antoine
PS: The RasPi Camera Robot is a lot of fun
I bought the Raspberry Pi camera robot and got it working fine.
Last week, I got some ultrasonic sensor and wanted to try it, but since it is a 4 pin sensor (HC-SR04), I thought I'd try to modify the Mini Driver firmware to use different pin for Trig and Echo. (I realize now that my plan to use pin D13 for Echo might not be a good idea since D13 is the pin to drive the built-in LED, but I haven't got that far anyway).
I then tried to upload my modified firmware and it started fine, but stopped at the end of the flashing process:
- Code: Select all
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mini_driver
>>> m = mini_driver.MiniDriver()
>>> m.connect()
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9307
avrdude: reading input file "/home/pi/.ino_uploader/mini_driver_firmware/.build/atmega8/firmware.hex"
avrdude: writing flash (7642 bytes):
Writing | ################################################ | 95% 6.02savrdude: stk500_recv(): programmer is not responding
False
I tried again running the avrdude command manually, but it consistently fails with the following error:
- Code: Select all
$ avrdude -p atmega8 -P /dev/ttyUSB0 -c arduino -b 9600 -D -U flash:w:firmware.hex:i -v -v -v -v
avrdude: Version 5.11.1, compiled on May 23 2012 at 11:08:25
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/pi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 9600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.
I came to think that my bootloader may be corrupted.
Is there a way to check whether it is the case?
Or could it be that my Mini Driver is "broken"? (the red LED is lit)
Assuming this is the case, I did some research and found it is possible to reburn the bootloader (http://letsmakerobots.com/node/35649), but I do not have another Arduino at hand.
I saw it may be possible to reburn the bootloader using Raspberry Pi:
viewtopic.php?f=5&t=1362&p=1778&hilit=bootloader&sid=f82f1407f11a17ad239898db1b03ffee#p1778
If applicable, could you explain how to wire the Mini Driver to the Pi to perform this operation?
Thanks,
Antoine
PS: The RasPi Camera Robot is a lot of fun