ArduinoGeneral

Extend Digital Servo Shield for Arduino (DRI0027)

userHead xiaocrm 2014-05-07 04:05:56 7470 Views9 Replies
Hi,

I plan to extend the slave servo code fro Digital Servo Shield for Arduino (DRI0027); and I have FDTI Basic Breakout 3.3/5V; may I ask if you have any doc or instructions about how to connect and upload Arduino compiled code to the shield? (especially for the breakout, should choose 3.3V or 5V? and which "Board" should be chosen?)

BTW: I have removed solder off from "UART SELECT" (please let me know if I need to short them)

Thanks a lot in advance!
2014-05-21 02:21:21 Thanks Grey, I would try it later; I did try Arduino as ISP, but failed...

My current workaround is: connect RX/TX to Arduino pin 8/9, use SoftwareSerial to control servo
userHeadPic xiaocrm
2014-05-20 18:13:45 Hello xiaocrm,

Do you have an USBtinyISP? If you have, you could upload the the sketch directly.           
userHeadPic Grey.CC
2014-05-17 03:26:52 I tried many other suggested sets of definitions in broad.txt, included Grey's; but none of them worked...

Also tried to use some aurdino sketch (e.g. WestfW's OptiLoader) to detect the bootloader & related settings. However, none of them could read valid signature from the chip (most of them displayed: signature= 00 01 02).

I am thinking maybe DFRobot use some customized bootloader? Go on searching...
userHeadPic xiaocrm
2014-05-13 04:14:42 Thank you so much for the instructions Grey. My Arduino is 1.0.5; I just did a quick try; although still the same problem, but I have feeling that you point out the right dirction. I will do more tests later this week. userHeadPic xiaocrm
2014-05-12 19:29:28 Uhm, I guess Atmega8 chip is not using Atmega8 bootloader.
You know the bootloader of the Atmega8 is very slow, and it has to wait 8s to wake up.
So maybe they change it to the other one, like "optiboot8".

Could you tell me your IDE version?
Please check Your IDE folder-->hardware-->arduino-->bootloaders-->optiboot
Is there two files named "optiboot_atmega8.hex" and "optiboot_atmega8.lst"?

If yes, please go to IDE folder-->hardware-->arduino.
Open the "boards.txt".and paste this words below.
[quote]##############################################################

opti8.name=Arduino Optiboot8
opti8.upload.protocol=stk500
opti8.upload.maximum_size=7680
opti8.upload.speed=115200
opti8.bootloader.low_fuses=0xbf
opti8.bootloader.high_fuses=0xcc
opti8.bootloader.path=optiboot
opti8.bootloader.file=optiboot_atmega8.hex
opti8.bootloader.unlock_bits=0x3F
opti8.bootloader.lock_bits=0x0F
opti8.build.mcu=atmega8
opti8.build.f_cpu=16000000L
opti8.build.core=arduino
opti8.build.variant=standard

##############################################################
[/quote]

Then close IDE, and open again,
You could see the board in the tools: Arduino Optiboot8
This bootloader will reduce the wake up time, and faster.
userHeadPic Grey.CC
2014-05-10 03:57:36 My current issue is: I connected FTDI breakout (jump to 5V) & the shield;  selected 'Arduino NG or older w/ ATmega 8' ; but duing the uploading, I can only see the TX light on the breakout flashed few time, but RX has no response...

Arduino IDE gives the error message: [i]avrdude: stk500_getsync(): not in sync: resp=0x00[/i]

I am now stuck here... :'(
userHeadPic xiaocrm
2014-05-09 18:56:10 Oh, that should be very interesting.
Cheers  :)
userHeadPic Grey.CC
2014-05-08 02:00:46 [quote="Grey"]
"UART SELECT" is prepare for the ATmega8 uploading code, it connect the ATMega8 to the UART. Generally it no need to change it.
[/quote]

Thank you Grey, and that's the part I am interest in, about how to upload customized code to ATMega8 by using UART.
userHeadPic xiaocrm
2014-05-08 00:29:42 Hello Xiaocrm,
You could check the[url=https://www.dfrobot.com/wiki/index.php/Digital_Servo_Shield_for_Arduino_SKU:DRI0027] wiki page[/url].There a tutorial about it.
If you want to connect an slave servo like this:
[img]https://www.dfrobot.com/wiki/images/thumb/4/47/DRI0027_Diagram.png/550px-DRI0027_Diagram.png[/img]
And every servo has it own ID number, you could set them manually to control them.

"UART SELECT" is prepare for the ATmega8 uploading code, it connect the ATMega8 to the UART. Generally it no need to change it.
userHeadPic Grey.CC