Forum Index > Projects > Clock Kits
 stopped working after 16 months
 |  Printable Version
By: bastard (offline) on Sunday, May 22 2011 @ 11:56 AM PDT (Read 7676 times)  
bastard

Hi,

one of my bulbdial clocks stopped working after 16 months. There are no LEDs light. Dead. This happened once before in summer last year. But a powercycle helped.

I tried to upload beady2.pde, but I get errors regarding the time functions with arduino 22.

What else can I do? Power is good, tried two other supplies.

Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: Windell (offline) on Monday, May 23 2011 @ 12:18 AM PDT  
Windell

I'm sorry to hear about the trouble. There is an issue with older bulbdial clock kits where it appears that memory corruption can occur in very rare cases-- it's been observed in well under 1% of kits.

Since you have programming hardware (I'm guessing a USB-TTL interface), you can try to reprogram the clock with any standard Arduino sketch, for example the basic digital "blink" sketch.

If it programs okay, then the CPU and bootloader are still intact, and you should try to reprogram the regular firmware. (You will need to download the older time library to make it work, or we can send you the necessary firmware.)

If it does not program correctly, then the bootloader likely needs to be reflashed. You can do this with an AVR ISP programmer, for example a USBtinyISP, or with another Arduino (or Arduino compatible), using the Arduino as ISP sketch. In a pinch, the USB-TTL cable can also be used as an ISP programmer.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bastard (offline) on Monday, May 23 2011 @ 12:33 AM PDT  
bastard

Hi Windell,

I'll try the "blink" sketch as soon as I'm at home.

Would you please point me to the "old" time library - or just email me.

I already own an USBtinyISP - so it should be possible to do all the recommended steps.

Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: Windell (offline) on Monday, May 23 2011 @ 12:43 AM PDT  
Windell

Hi Stefan,
I'll contact you directly by e-mail, then. You should definitely be able to get it working by reflashing it with the USBtinyISP.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bastard (offline) on Monday, May 23 2011 @ 10:11 PM PDT  
bastard

Hi,

I had no luck with the arduino environment. So I tried my USBtinyISP. With no luck too. At the end I'm getting this:

Reading | ################################################## | 100% 8.86s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0086
0x61 != 0x60
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done. Thank you.

make: *** [isp] Error 1

Then I read the contents of my chip and made a compare. There are several bytes different.

I think, my chip is bad.

Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: Windell (offline) on Monday, May 23 2011 @ 10:44 PM PDT  
Windell

First, this doesn't sound like the same error that we've seen before. In every case where the known error happened, it was immediately cured by reprogramming.

Second, I've never heard of the chip "going bad" all by itself. So, I suspect that it's not hopeless yet.

Is the error consistent at that location in memory, or does it change if you try again? If you get errors like these at different memory locations, then it's likely that there is either (1) a flaky solder joint at fault (2) a loose connection while programming or (3) the power supply is not stable enough.

Something else to try would be to run a different program. I'd suggest using the "burn bootloader" command within Arduino, to see if you can program it once successfully. Again, see if the problem is at the same memory location, if one occurs.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bastard (offline) on Tuesday, May 24 2011 @ 12:16 AM PDT  
bastard

Hi,

I'll resolder the ISP and AVR pins and try it again.

Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: bastard (offline) on Thursday, May 26 2011 @ 09:59 AM PDT  
bastard

Hi,

I changed from Windows 7 to Linux. And I tried with my other programmer. Same result:

PHP Formatted Code

avrdude -c usbtiny -p m168 -P usb -b 9600 -e -u -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xdd:m -U lfuse:w:0xff:m

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified

avrdude done.  Thank you.

avrdude -i 10 -c usbtiny -p m168 -P usb -b 9600 -U flash:w:flash.bin -U lock:w:0x0f:m

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0086
         0x61 != 0x60
avrdude: verification error; content mismatch



And now with avr isp mkII

PHP Formatted Code
avrdude -c avrisp2 -p m168 -P usb -b 9600 -e -u -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xdd:m -U lfuse:w:0xff:m

avrdude: AVR device initialized and ready to accept instructions

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified

avrdude done.  Thank you.

avrdude -i 10 -c avrisp2 -p m168 -P usb -b 9600 -U flash:w:flash.bin -U lock:w:0x0f:m

avrdude: AVR device initialized and ready to accept instructions

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0086
         0x61 != 0x60
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

 



It's the same address everytime.

Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: Windell (offline) on Thursday, May 26 2011 @ 10:21 AM PDT  
Windell

Have you tried the other thing that I suggested, to use the "burn bootloader" command? It's possible that there's corruption in the file that I sent.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bastard (offline) on Friday, May 27 2011 @ 10:38 AM PDT  
bastard

Hi,

Quote by: Windell

Have you tried the other thing that I suggested, to use the "burn bootloader" command? It's possible that there's corruption in the file that I sent.



yes I did. But it worked not inside Arduino 022. So again I tried the commandline:

PHP Formatted Code
avrdude -c usbtiny -p m168 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0xF8:m
avrdude -c usbtiny -p m168 -B 1 -D -U flash:w:ATmegaBOOT_168_diecimila.hex:i
avrdude -c usbtiny -p m168 -B 5 -V -U lock:w:0xCF:m



what gives

PHP Formatted Code
avrdude: 16294 bytes of flash written
avrdude: verifying flash memory against ATmegaBOOT_168_diecimila.hex:
avrdude: load data flash data from input file ATmegaBOOT_168_diecimila.hex:
avrdude: input file ATmegaBOOT_168_diecimila.hex contains 16294 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 6.42s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0086
         0xff != 0xfe
avrdude: verification error; content mismatch



Bye

Stefan


Forum Apprentice
Apprentice

Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   
By: Windell (offline) on Friday, May 27 2011 @ 11:28 AM PDT  
Windell

Well, that sounds pretty conclusive. I've never seen anything like it. Frown I'll contact you by e-mail to discuss a replacement of some kind.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bastard (offline) on Thursday, June 09 2011 @ 01:16 PM PDT  
bastard

Hi,

thank you very much for sending me the repair parts. Got them on tuesday. Repaired the clock just now.

And it's back to life!

I'm very happy now.

Bye from Bavaria,

Stefan


Forum Apprentice
Apprentice


Status: offline

Registered: 12/20/08
Posts: 13
Bavaria, Germany

Profile Email Website  
   



 All times are PDT. The time is now 01:51 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?