LCR-T4 MTester v2.07 LCR Meter - Black Block Issue - How to program ATMEGA328P? - Page 1
Forum section: electronics / testgear

author: gorgamin
author_rank: Contributor
timestamp: February 17, 2016, 12:17:22 am
content: Does anyone know of a fix for the following issue:LCR-T4 MTester v2.07 LCR Meter - Black Block IssueTurns on with quickly saying MTester v2.07, quickly displays "contrast" and then one solid black block and no backlight. Can't test at all. Think the firmware has an issue. Anyone have any ideas on how to flash through SPI?I'm arranging a replacement through the seller on ebay, but in the meantime I thought I'd tinker with it.Its almost as if the "contrast" part wants to go into a menu of some sort. I read through the original plans and it seems there is an option to add a rotary pulse encoder for menu access. Would adding this help?http://www.mikrocontroller.net/wikifiles/8/8f/Ttester_eng111k.pdf2.2.5 Using of a rotary pulse encoder - p11I'm guessing corrupt firmware, but I've got no experience with SPI or ISP serial flashing. I've flashed firmware through JTAG before though.This is the ATMEL ATMEGA328P based one.Battery is still good at 8.9v (these testers work fine down to 6.5v)The non-working backlight should be a dead giveaway that something isn't right. I've checked the SMD components and they seem ok.Any help would be vastly appreciated. And if I'm doing something daft, please tell me.

author: CustomEngineerer
author_rank: Frequent Contributor
timestamp: February 18, 2016, 06:00:56 am
content: I seem to remember reading about people having an issue like that early on in the master threadhttps://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/Sorry I don't remember exactly where in there, but the issue I saw described was that the default contrast is set too high. Somewhere in that thread a couple of people discussed the button sequence to press to get to the menu setting for the contrast, and once that was turned down it looked fine. Another option if you are comfortable with it would be to download and compile the firmware. Before you compile it you can set what you want the default contrast to be on boot up. Although if you are building one of the newer versions of the firmware code I believe the contrast is now already set to a sensible value.If it is a case of having the contrast set to high on boot up a rotary encoder won't really help you much (actually would probably make it a little more difficult to blind navigate the menu system). Maybe try searching that thread for "contrast" or "boot up contrast" or something like that. Also you can find a lot of talk of how to compile/upload the firmware in that thread as well.

author: jleg
author_rank: Contributor
timestamp: February 18, 2016, 01:57:33 pm
content: afair, with this variant, contrast can be adjusted by pressing the button and shortening all 3 probes...

author: gorgamin
author_rank: Contributor
timestamp: February 18, 2016, 04:31:05 pm
content: Quote from: jleg on February 18, 2016, 01:57:33 pmDo you remember how to do it?

author: gorgamin
author_rank: Contributor
timestamp: February 18, 2016, 06:11:38 pm
content: Ok so I've wired up the SPI pads on the tester as follows:They're actually labelled if you look under the LCD. (You'd have to remove the LCD)The LCD is model number is LX-12864B11, 128x64 resolution with backlight. And uses SPI mode to function. The one on the tester uses the 0.8mm pitch FPC connector.More info here:http://wiki.mcselec.com/bavr/ST7567_display_library_-_128x64When tested with a multimeter, it seems the backlight only gets 0.8V. Could this be the reason why the backlight doesn't work? Or faulty LED?How would I go ahead to program the firmware to it?I have an Ardiuno Uno R3, but its the SMD version.Any ideas?

author: gorgamin
author_rank: Contributor
timestamp: February 18, 2016, 06:27:20 pm
content: Ok to the other noobs just getting started:https://en.wikipedia.org/wiki/Atmel_AVRThe in-system programming (ISP) programming method is functionally performed through SPI, plus some twiddling of the Reset line. As long as the SPI pins of the AVR are not connected to anything disruptive, the AVR chip can stay soldered on a PCB while reprogramming. All that is needed is a 6-pin connector and programming adapter. This is the most common way to develop with an AVR.Here's some more info:http://www.engineersgarage.com/articles/avr-microcontrollerAs I'm teaching myself, I'm going to morph this thread to a guide on how to fix it. Any input or pointers are appreciated^^

author: tom666
author_rank: Regular Contributor
timestamp: February 18, 2016, 09:39:01 pm
content: Quote from: gorgamin on February 17, 2016, 12:17:22 amProbably is corrupted firmware or damaged MCU and this causes a fault with switching ON and LED backlight of the display. Seecircuit diagram(port PD6 of the MCU).For inspirationhttps://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg793722/#msg793722

author: gorgamin
author_rank: Contributor
timestamp: February 18, 2016, 11:56:11 pm
content: Thanks for the reply and pointing me in the right direction^^

author: tom666
author_rank: Regular Contributor
timestamp: February 27, 2016, 11:20:36 am
content: Quote from: gorgamin on February 18, 2016, 04:19:13 pmOnly these steps you need to be done:1. Upload to Arduino the ArduinoISP sketch.2. Connect Arduino along with a tester.3. Connect Arduino to the USB port and then execute the file "flash.bat" (part of the archive "Flasher + Firmware.zip"). For proper operation, it is necessary to set the correct serial port number of the Arduino (parameter COMx).4. That's all

author: gorgamin
author_rank: Contributor
timestamp: March 11, 2016, 07:08:25 pm
content: Thanks to you sir, my tester is now working^^ Thank you for the guide and the pics. They really helped.Tried both firmwares, the Mtester one didn't work, just kept saying MTester and then contrast, but at least solidly for 2 seconds? The Flash K-version (v1.12kr647) did the trick.Can I ask though, how do I change the selection menu option? Rotary encoder with a push switch and debounce chip?I think my lcd backlight led is shot, but that's easily fixed with a replacement LX-12864B11, 128x64 lcd from ebay.Do you have a bitcoin address so I can buy you a coffee/beer?

author: estenioxavier
author_rank: Newbie
timestamp: August 08, 2016, 07:49:29 am
content: hi TomThis BAT file is giving error in AVRDUDE.EXE file. It has no alternative to the Arduino

author: stj
author_rank: Super Contributor
timestamp: August 08, 2016, 12:54:42 pm
content: to program with AVRdude and USBasp use:avrdude -c USBasp -P usb -p m328p -U flash:w:TransistorTester.hex \-U eeprom:w:TransistorTester.eep \-U lfuse:w:0xf7:m \-U hfuse:w:0xd9:m \-U efuse:w:0xfc:m(copy & paste)

author: vinceroger
author_rank: Regular Contributor
timestamp: August 08, 2016, 04:11:59 pm
content: Quote from: gorgamin on March 11, 2016, 07:08:25 pmwhat seems wrong with your lcd? can you post a picture of it turned on as maybe we have saw this fault before.

author: estenioxavier
author_rank: Newbie
timestamp: August 09, 2016, 07:25:24 am
content: I'm not using the USBASP but the arduinoisp with MEGA 2560 and is not up the program. It makes the whole process but when I turn the tester is the same interface.

author: BobLiang
author_rank: Newbie
timestamp: August 10, 2016, 01:52:29 am
content: ?V2.07????PCB??IC??738349686@qq.com

author: t1nk3rnat
author_rank: Newbie
timestamp: November 09, 2016, 03:38:03 am
content: Hi all, just got hold of this LCD meter, this post is very informative - just in case if something goes wrong.I'm itching to tinker with the HEX fileHow do I extract or make a backup copy of the HEX & EEP file for this tester? - so I can restore it just in case.Thanks

author: MosherIV
author_rank: Super Contributor
timestamp: November 09, 2016, 10:14:54 am
content: Hi t1nk3rnatWelcome to the forum.QuoteThere is probably no way to backup what is programmed, being a commercial product they have probably set the read protect bit (stops you reading out the contents).

author: Gyro
author_rank: Super Contributor
timestamp: November 09, 2016, 06:53:10 pm
content: You need to look at the main $20 ESR Transistor Tester thread:Member Tom666 captured the original files for the LCR-T4. Check in this page of the thread:https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/939/Edit: Damn, I can't get the links to edit correctly.Look in the $20 ESR Transistor Tester thread, page 38, reply #939. (Assuming they haven't changed the version they are shipping in these units now)

author: edavid
author_rank: Super Contributor
timestamp: November 09, 2016, 07:16:22 pm
content: Quote from: Gyro on November 09, 2016, 06:53:10 pmHere's the link, but that doesn't seem like the right post:https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/939/

author: Gyro
author_rank: Super Contributor
timestamp: November 09, 2016, 07:27:55 pm
content: Thanks edavid.I can't see why it's pointing to reply #925. You need to scroll down the page to reply #939 by tom666. (at least I managed to find the right page)

author: edavid
author_rank: Super Contributor
timestamp: November 09, 2016, 07:40:58 pm
content: Quote from: Gyro on November 09, 2016, 07:27:55 pmOK, this should work:https://www.eevblog.com/forum/testgear/$20-lcr-esr-transistor-checker-project/msg659867/#msg659867

author: t1nk3rnat
author_rank: Newbie
timestamp: November 10, 2016, 02:51:43 am
content: thank you for your responses.yep, i already secured the files by tom666, though i'm not sure that mine is the same version...i prefer to capture what is currently on my unit or i might end up downgrading (i think i have a newer firmware)anyways, just a thought, thanks for help guys....edit:or another option might be buying another controller, programming it, installing the new chip and removing the original chip, so I can keep a hard backup. your thoughts please.

author: MattMatt
author_rank: Newbie
timestamp: March 18, 2017, 06:32:32 pm
content: Quote from: tom666 on February 27, 2016, 11:20:36 amI'm having a bit of trouble with this. I'm using an arduino uno and I've connected everything as you've shown and successfully uploaded the sketch. When I ran the bat file it said I was missing libusb0.dll. I managed to fix that with this linkhttp://www.visualmicro.com/post/2014/01/17/AvrIsp-MkII-Usb-Driver-for-Arduino.aspxBut now I can't get the arduino to be seen on a port in the arduino software. Before I solved the libusb0 missing issue I simply selected com4 in order to upload the sketch, is this what you meant by setting the correct serial port? (parameter COMx). That option is now greyed out with the arduino plugged in, so it's no longer seeing it since "solving" the missing libusb0.dll. I have a feeling I never solved that problem.

author: hussamaldean
author_rank: Unknown
timestamp: January 26, 2018, 06:43:43 pm
content: Hi,when I launch the flash.bat, the libusb0.dll is not found so I add it to the folder then this accuredThe Application was Unable to Start Correctly (0xc000007b)any solution ?

author: Alone GREYWOLF
author_rank: Newbie
timestamp: January 01, 2021, 11:01:59 am
content: LCR-T4 test cihazının orijinal dosyası bende mevcut isteyen arkadaşlara göndere bilirim. LCR-T4 ORGINAL CODE.mpj (Flash + Eeprom + Fuse + Lock)Programlayıcı olarak TL866 II Plus'ı kullandım.İrtibat: Spring14430@gmail.com