I just bought an Arduino mini 04 with a mega 328 and its USB adapter.
I wired it up according to the online plans.
As it was plugged into the computer, it was accepted and the driver loaded, and I was able to select its COM port in the Arduino environment. I then selected the “Arduino Mini W/ ATmega 328” from the Arduino IDE. However when I tried to load the blink sketch, the Arduino IDE never got to the “Done uploading”, it just gets stuck on the “Uploading…” and the RX led on the USB adapter blinks about twice a second. I never get an error message, it just keeps displaying “Uploading”.
I then tried to reset the mini by connecting the reset to ground. If I reset before the sketch starts to upload, it does not make a difference, and if I reset it while the sketch is trying to upload I get the error message: “Yikes! Invalid device signature. Double check connections and try again, or use –F to override”
I am using arduino 1.0 on a windows 64 bit machine. The Loop-Back Test worked fine.
What am I doing wrong?
Thank you in advance for your help.
I think Mini doesnt have autoreset so you have to push reset when compile stops and uploading starts. Timing is quite critcal there is about 1sec or less time window to push that reset when uploading starts.
Thank you. I have now tried many times to get the timing right, still with the same result:
If I press reset too soon (any time before: about 2 seconds before the Sketch starts to upload), the Arduino IDE gets stuck in the “Uploading…”
If I press reset too late (any time after: about 2 seconds before the Sketch starts to upload), I get the error message: “Yikes! Invalid device signature. Double check connections and try again, or use –F to override”
What does this error message mean, and what can one do about it?
Could the problem be a missing Bootloader?
Could it be a defective arduino mini?
If reset pressed too early IDE never detect it and acts like no reset at all, and if resettig too late IDE thinks there is no device at all.
I dont know what error messages means but all options are possible maybe broken hardware or missing bootloader or only timing on press reset. Igot same kind of problem with atmega328&arduino bootloader on STK500 HW, uploading was quite tricky jus becaus of reset timing.
Now I have mini+usb adapter and reset prosedure during upload can be timed by USB adapters activityled.
I had this exact problem which was fixed by going back to IDE version 0022 and adding this to boards.txt which I found elsewhere on this forum:
mini328.name=Arduino Mini with ATmega328
mini328.upload.protocol=stk500
mini328.upload.maximum_size=28672
mini328.upload.speed=115200
mini328.bootloader.low_fuses=0xff
mini328.bootloader.high_fuses=0xd8
mini328.bootloader.extended_fuses=0x05
mini328.bootloader.path=bt
mini328.bootloader.file=ATmegaBOOT_168_atmega328.hex
mini328.bootloader.unlock_bits=0x3F
mini328.bootloader.lock_bits=0x0F
mini328.build.mcu=atmega328p
mini328.build.f_cpu=16000000L
mini328.build.core=arduino
After doing this it worked fine. It might be worth mentioning that I'm using 32-bit Ubuntu. I'd love to know why this isn't working with the newer version of the IDE