another question...
all the examples if found for the mini are using D10/D12/D13 for uploading the bootloader (because the "standard" minis don't feature an ISP header).
My mini does feature an ISP header - so do i have to use the ISP header or just the standard pins ?
ok...tried to boatload the mini - so far without success.
As a programmer, i used a arduino nano and the isp sketch from the ide.
Connections were
Nano -> Mini
D13 -> D13
D12 -> D12
D11 -> D11 D10-> D10 (also tried reset and dtr)
Edit: D10->Reset is correct
after the cable/loopback test and posting here i rehooked everything again and suddenly - like a miracle - it worked.. I'm pretty sure i had the connections right before (but you never know)... The only thing i relay changed was, connecting vcc for the mini directly to the cp21xx/usb adapter instead of using 5v supply/output of the nano.
if anyone stumbles across the same problem, here is a list what worked in my case:
Download the ISP-sketch to your programmer arduino (a nano in my case)
Follow the instructions in the sketch description to wire the status leds
Connect Nano and Mini (Nano->Mini, D13->D13, D12->D12, D11->D11, D10->Reset)
Connect Vcc and Gnd from the USB2Serial adapter (cp12xx in my case, or any other puwer suply) to the mini
In the IDE, choose the com port, select Board->Mini or Mini Pro, Programmer->Arduino as ISP
shasha:
Would like to know did your Dswy Robot Mini Pro have a bootloarder before ?
You mentionned the led was blinking (at a low frequency).
Do you think all the Dswy Robot Mini Pro should be first programmed with a bootloader to start with ?
i'm not sure whether my Mini had a bootloader or not. I don't think the need to be generaly bootloaded - if it's working out of the box, then just use it. But if it isn't working - then flash it. I just know about 7pcs which had to be flashed - might be just a bad lot
Thanks for your reply.
I did try to download a sketch from the IDE thu an UNO used as a FTDI (wo the chip) but no success I got the error:
avrdude: stk500_getsync(): not in sync: resp=0x00
Therefore I think there is no bootloader on the mini. (but why does the led blinks with this 16s period ?? any clue ?)
I will try to flash one using the UNO as an ISP (guess I should flash my UNO with the ISP sketch and use the IDE to download
the bootloader). Any specifc bootloader? if not the command from the IDE should do the job I think.
I just got a handfull of those Dswy Robot Pro Minis today. They showed the same 16 secs. blink behaviour. When I read the flash via the ISP port, I found that in fact they have a bootloader (seems to be the same as for the Nano), but no fuses or lock bits had been set. Clock was set to 8 Mhz internal oscillator plus CKDIV8 still set. So in fact the chip ran at 1 Mhz only. That made the 16 secs blink although the sketch was meant to be for a 16 Mhz clock chip. Since the lock bits are not set either, the bootloader can get overwritten easily. Oh, and of course the Boot Reset Vector bit wasn't set so no way for the bootloader to run.
Well my deek/robot mini pro works pecfectly by now.
Using my UNO as an ISP (with the ISP sktech) I downloaded a new bootloader.
Then still with UNO as an ISP I downloaded several sketches to test it.
Perfect it works.
I did that with the IDE.
However I am not fully satisfied as I wanted to use avrdude to read the various memories eeprom flash & the fuses.
If I use avrdude in command line it seems the only things I can get are the memories from the UNO and not from
the targeted avr ! any clue ?
Just to add a "me too" regarding this %&**^ Arduinos.
I got a batch of 10 that arrived yesterday. They are labeled Dswy_Robot and have all the pin labels on the UNDERSIDE of the board. So when it is plugged into a prototype board, you can't see which pin has which function.
As in Cider's photo, there are the standard "serial" connections on one short side and the opposite one has 10 more pins in 2 rows of 5.
When I applied +5V to the device the Red LED lights and the Green one flashes with 16 seconds ON and 16 seconds OFF. None of them will accept a download.
I have reflashed one of these, using a (working ATMega328 Pro Mini) per. the instructions. I loaded the ArduinoISP sketch, put 3 LEDs on the host Arduino's pins 7,8 & 9 to show progress. I connected the "dead" Dswy_Robot device via its 6 ISP pins as directed in the Sketch. I kept the same description for the target board i.e. ATMega328 Pro Mini, made sure Tools->Programmer was set to Arduino as ISP. After that it was just a case of selecting tools->Burn_bootloader and it successfully reprogammed the device.
Now when I switch it on I can download sketches to it every time.
Hi,
Same problem for me, with exaclty the same board and same symptoms. I got this Arduino pro mini on eBay and this si what the (eBay) seller has just replied to me:
In fact, we have found the problem in this version board, in the bottom, it mark " DSWY-ROBET"
the bootloader in the mini board have some problem. Here are the instructions for somebody else having trouble:
Using USBasp programmer, first the IC should be re-set before burning the bootloader and this id done by the following command:
This will erase the IC and then can be programmed using just the arduino IDE. We have stop to sell this version.
We get another version like your first shopping, it mark "DEEK-ROBET", it will never happen such thing again
Regards
Hi,
thanks so much for posting the solution!! A life saver!
I bought 5 of these Arduinos, already installed some of them in my project and then wasn't able to upload any sketches. The Nano as ISP method worked perfectly! All 5 Minis saved!
below is my output when I use my UNO as ISP to burn the bootloader.
the error is
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
and now, the dswy robot does not blink, seems die.
I have no idea how to solve. any advice?
May I know how to use this command.
"avrdude -p m328p -c USBasp -P USB -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m -B4"
really need a brief instruction.
thank you.
grmis:
Hi,
Same problem for me, with exaclty the same board and same symptoms. I got this Arduino pro mini on eBay and this si what the (eBay) seller has just replied to me:
In fact, we have found the problem in this version board, in the bottom, it mark " DSWY-ROBET"
the bootloader in the mini board have some problem. Here are the instructions for somebody else having trouble:
Using USBasp programmer, first the IC should be re-set before burning the bootloader and this id done by the following command:
This will erase the IC and then can be programmed using just the arduino IDE. We have stop to sell this version.
We get another version like your first shopping, it mark "DEEK-ROBET", it will never happen such thing again
Regards