Author Topic: lm328 tester killed  (Read 1506 times)

0 Members and 1 Guest are viewing this topic.

Offline p.larnerTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 690
  • Country: gb
lm328 tester killed
« on: September 24, 2023, 03:17:30 pm »
Long story but i was testing some caps for leakage using an old hunts orb condensor tester from about 1945(magic eye version),after that i decided to stick one on my lm 328 led component tester,like a fool i forgot to charge the cap!,there was a spark when i connected said cap now the tester is dead,any idea if its fixable,if so where to start?,not a big issue as they are cheap,it just would be good to get it going again tho,at the moment its dead and the lcd display has no illuminaton and is blanc.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: lm328 tester killed
« Reply #1 on: September 24, 2023, 04:24:57 pm »
Just about all '328 three terminal component testers use a similar circuit, with the test pins going direct to its ATmega328P MCU 'brain' (+ to a resistor network connected to the MCU).  Odds are close to 100% you've zapped the MCU, and replacement with a correctly programmed new one will fix it.  However before doing that you should check the 5V supply, (which may be being pulled down by a failed MCU).

See: https://www.eevblog.com/forum/beginners/atmega328-component-tester-killed-with-400v-cap/
and the mega-thread on '328 component testers:
https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/
 
« Last Edit: October 14, 2023, 03:19:57 am by Ian.M »
 

Offline p.larnerTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 690
  • Country: gb
Re: lm328 tester killed
« Reply #2 on: September 25, 2023, 03:58:36 am »
Thanks ian,i suspected that,would it of killed the lcd too?,ive ordered a new tester but just wondered.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: lm328 tester killed
« Reply #3 on: September 25, 2023, 04:29:30 am »
Its hard to say - hook it up to an Arduino, find a library for whatever model display it is, and try the library's demo examples.

The display is on different pins to the component test ones, so it is less likely to have been damaged directly, but if the 5V rail spiked too high it could have blown it.
 

Offline p.larnerTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 690
  • Country: gb
Re: lm328 tester killed
« Reply #4 on: October 14, 2023, 01:07:06 am »
just an update on this,i ordered an identical kit,i built it using my old display from the dead tester,it works ok,is there anyway to clone a 328 ic,or suck its fw?.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: lm328 tester killed
« Reply #5 on: October 14, 2023, 03:45:28 am »
The ATmega328P in the kit *shouldn't* be protected because its based on an open source project: https://www.mikrocontroller.net/articles/AVR_Transistortester
but some manufacturers are ar5eholes and turn on protection anyway, making the chip virtually impossible to clone.  However, odds are you can find a firmware version at the above site that will work.

In all cases you'll need an AVR programmer + software to run it.  This could be as cheap and simple as an Arduino running the ArduinoISP sketch, + the command line AVRDUDE, or could be a full-featured universal programmer with its own GUI software or anything in-between.
 

Offline p.larnerTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 690
  • Country: gb
Re: lm328 tester killed
« Reply #6 on: October 15, 2023, 07:41:37 am »
so how do i copy the fw from the new 328 ic?
 

Online kripton2035

  • Super Contributor
  • ***
  • Posts: 2696
  • Country: fr
    • kripton2035 schematics repository
Re: lm328 tester killed
« Reply #7 on: October 15, 2023, 07:53:33 am »
seeing the price of these transistor-led-everything testers nowadays, it would be simplier to buy a new one
it will cost you the same price if not more in programming devices to TRY to repair it !
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: lm328 tester killed
« Reply #8 on: October 15, 2023, 08:02:30 am »
That depends on which AVR programmer you have.   If its intended for in-circuit programming and your component tester doesn't have a six pin AVR ISP header, you may also need a breadboard, and some jumpers and possibly a 100nF disc ceramic capacitor (for Vcc decoupling).   Basically you need to hook up the ATmega328P Gnd, Vcc, /Reset and all the SPI pins to your programmer and run its software, then read the FLASH (program memory), EEPROM and FUSES, which may be separate operations. 

As I  mentioned earlier, an Arduino programmed with the ArdinoISP sketch can be used, with this hookup:


If your programmer uses AVRDUDE, you may find AVRDUDESHELL useful to let you run it from a GUI rather than the command line.  http://matrex-notes.blogspot.com/2015/01/avrdudeshell-atmega.html
 

Offline p.larnerTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 690
  • Country: gb
Re: lm328 tester killed
« Reply #9 on: October 15, 2023, 08:49:47 am »
thanks for the replys but you seem to be missing the point,i want to read the fw from the working 328 not rite to it!,is that possible even?.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13179
Re: lm328 tester killed
« Reply #10 on: October 15, 2023, 09:05:16 am »
The hardware setup and equipment needed to read the chip is exactly the same as that to write (program) it  The only difference is the actions you use the programmer software to perform.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf