Slightly, but PE (especially PE0 and PE1) should be in HiZ mode by default. Or try to lift the two pins.
Lifting pin 3 & 6 did the trick,
its running now but its dead slow, the initial setup is running but it stuck on capacitor test.
its dead slow
below is flash log with fuses
avrdude -c avrisp -b 19200 -p m328pb -P COM7 -U flash:w:TransistorTester.hex:a -U eeprom:w:TransistorTester.eep:a -v
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, [url]http://www.bdmicro.com/[/url]
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf"
Using Port : COM7
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega328PB
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: safemode: lfuse reads as F7
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "TransistorTester.hex"
avrdude: input file TransistorTester.hex auto detected as Intel Hex
avrdude: writing flash (29732 bytes):
Writing | ################################################## | 100% 33.39s
avrdude: 29732 bytes of flash written
avrdude: verifying flash memory against TransistorTester.hex:
avrdude: load data flash data from input file TransistorTester.hex:
avrdude: input file TransistorTester.hex auto detected as Intel Hex
avrdude: input file TransistorTester.hex contains 29732 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 19.04s
avrdude: verifying ...
avrdude: 29732 bytes of flash verified
avrdude: reading input file "TransistorTester.eep"
avrdude: input file TransistorTester.eep auto detected as Intel Hex
avrdude: writing eeprom (857 bytes):
Writing | ################################################## | 100% 42.34s
avrdude: 857 bytes of eeprom written
avrdude: verifying eeprom memory against TransistorTester.eep:
avrdude: load data eeprom data from input file TransistorTester.eep:
avrdude: input file TransistorTester.eep auto detected as Intel Hex
avrdude: input file TransistorTester.eep contains 857 bytes
avrdude: reading on-chip eeprom data:
Reading | ################################################## | 100% 3.57s
avrdude: verifying ...
avrdude: 857 bytes of eeprom verified
avrdude: safemode: lfuse reads as F7
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
avrdude: safemode: Fuses OK (E:F4, H:D9, L:F7)
avrdude done. Thank you.
its on default 8mhz crystal and running this firmware
https://github.com/svn2github/transistortester/blob/master/Software/trunk/mega328_T4_v2_st7565/
I've checked the clock settings for the 328PB and it doesn't have the full swing crystal option anymore. So you have to set the clock source to low power crystal, i.e. l-fuse should be ff.
I've checked the clock settings for the 328PB and it doesn't have the full swing crystal option anymore. So you have to set the clock source to low power crystal, i.e. l-fuse should be ff.
changed the fuse settings, but no change, should i reflash the firmware ?
avrdude -c avrisp -b 19200 -p m328pb -P COM7 -U efuse:w:0xF4:m -U hfuse:w:0xD9:m -U lfuse:w:0xFF:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: reading input file "0xF4"
avrdude: writing efuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xF4:
avrdude: load data efuse data from input file 0xF4:
avrdude: input file 0xF4 contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: reading input file "0xD9"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xD9:
avrdude: load data hfuse data from input file 0xD9:
avrdude: input file 0xD9 contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.02s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xFF"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xFF:
avrdude: load data lfuse data from input file 0xFF:
avrdude: input file 0xFF contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.02s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: safemode: Fuses OK (E:F4, H:D9, L:FF)
avrdude done. Thank you.
No need to program the same firmware again. Usually the main cause for a slow tester is the CKDIV8 bit. When set the clock is divided by 8, but with l-fuse set to ff CKDIV8 is disabled. You could try to switch the clock source to the internal RC oscillator by setting l-fuse to e2 (just for testing if there's a problem with the crystal oscillator).
No change, still dead slow
avrdude -c avrisp -b 19200 -p m328pb -P COM7 -U flash:w:TransistorTester.hex:a -U eeprom:w:TransistorTester.eep:a -v
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, [url]http://www.bdmicro.com/[/url]
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.conf"
Using Port : COM7
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega328PB
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "TransistorTester.hex"
avrdude: input file TransistorTester.hex auto detected as Intel Hex
avrdude: writing flash (29732 bytes):
Writing | ################################################## | 100% 33.30s
avrdude: 29732 bytes of flash written
avrdude: verifying flash memory against TransistorTester.hex:
avrdude: load data flash data from input file TransistorTester.hex:
avrdude: input file TransistorTester.hex auto detected as Intel Hex
avrdude: input file TransistorTester.hex contains 29732 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 19.14s
avrdude: verifying ...
avrdude: 29732 bytes of flash verified
avrdude: reading input file "TransistorTester.eep"
avrdude: input file TransistorTester.eep auto detected as Intel Hex
avrdude: writing eeprom (857 bytes):
Writing | ################################################## | 100% 42.31s
avrdude: 857 bytes of eeprom written
avrdude: verifying eeprom memory against TransistorTester.eep:
avrdude: load data eeprom data from input file TransistorTester.eep:
avrdude: input file TransistorTester.eep auto detected as Intel Hex
avrdude: input file TransistorTester.eep contains 857 bytes
avrdude: reading on-chip eeprom data:
Reading | ################################################## | 100% 3.46s
avrdude: verifying ...
avrdude: 857 bytes of eeprom verified
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as F4
avrdude: safemode: Fuses OK (E:F4, H:D9, L:E2)
avrdude done. Thank you.
will try to install another crystal tomorow,
could it be a bad chip ?
or the firmware is not for 8mhz ?
Since the internal RC oscillator doesn't resolve the issue the crystal should be fine. And the firmware is compiled for 8 MHz. CFD (Clock Failure Detection) switches the clock to 1MHz (internal RC plus divider) in case of a problem with the external clock or crystal, but CFD is disabled (e-fuse f4). Still, there's something wrong with the clock or clock prescaler.
Is hardware still same?
Docs will answer almost all the questions. But yes, the circuit is still the same, the one in the .pdf document.
Is hardware still same?
Docs will answer almost all the questions. But yes, the circuit is still the same, the one in the .pdf document.
Thanx
But I have stupid question
How to program 16MHz (Arduino) instead 8Mhz quarz?
Thats the AY-AT( same as mine) , the screen is identical as well right down to the J1 symbol next to the pins so its the standard ST7735 Display.
Sorry again
Is MK-328 firmware compartible with some other clones?
Possibly, if the other clone has the same display (ST7565), MCU (328 at 8MHz), pin assignment and hardware options.
Possibly, if the other clone has the same display (ST7565), MCU (328 at 8MHz), pin assignment and hardware options.
What I need to drive it to 16MHz properly?
I don't know if this has been mentioned already, but I just found a huge compilation of photos, firmwares and schematics of a large number of transistor tester implementations.
If you have a look at this video starting at the 5 minute mark you'll see the directory structure of this compilation being traversed:
https://youtu.be/efHyRkTYLrE?t=5mThe URL for the archive is mentioned in the video description:
https://yadi.sk/d/j7lZdKsPrwTq4QOnce you download the archive, look in the Все прошивки directory.
Edit: You don't have to download the archive - you can browse it from that web page.
The URL for the archive is mentioned in the video description: https://yadi.sk/d/j7lZdKsPrwTq4Q
It looks like some russian trojan depository, isn`t it?
Foreign files can get to your Yandex.Disk if you log in to someone else’s mobile device. In this case, when startup is enabled, files from the device will be downloaded to Yandex.Disk.
You can stop downloading other people's files to your Yandex.Disk in the following ways:
Log out on all devices
To prevent other people's files from falling onto your Yandex.Disk, exit Yandex.Disk on all devices.
What I need to drive it to 16MHz properly?
A 16MHz crystal and a small change in the Makefile (or alternatively the precompiled 16MHz firmware from that russian trojan depository
).
I don't know if this has been mentioned already, but I just found a huge compilation of photos, firmwares and schematics of a large number of transistor tester implementations.
If you have a look at this video starting at the 5 minute mark you'll see the directory structure of this compilation being traversed:
https://youtu.be/efHyRkTYLrE?t=5m
The URL for the archive is mentioned in the video description: https://yadi.sk/d/j7lZdKsPrwTq4Q
Once you download the archive, look in the Все прошивки directory.
Edit: You don't have to download the archive - you can browse it from that web page.
I already several times placed the reference to the archive with firmwares placed in the Russian storage
https://yadi.sk/d/yW8xa5NJgUo5zThis archive is brought together personally by me and does not contain any viruses.
The person who showed the video just copied results of my work.
Yep, indman is the creator of that great collection of images, schematics and firmwares of the various clones.
Thats the AY-AT( same as mine) , the screen is identical as well right down to the J1 symbol next to the pins so its the standard ST7735 Display.
Thank you for verifying that, that makes it easier to go through the config files for compiling. I was just being thrown through a loop cause the LCD didn't have any marks on it at all, and the K color firmware while working didn't quite fit into the LCD properly.
There really needs to be a post explaining where all the different measurement points are for calibrating and changing the calibration settings. (if there isn't already 233 pages is a lot to read through)
EDIT: So I finally got something to show up on my tester, it loads and verifies v1.36, however whenever I test anything it just shows
Battery?
2: 3mV
I have no idea what that is suppose to mean, but it's not testing any components.
That means the tester has tried to discharge whatever might be connected and the voltage at probe pin #2 stays at 3mV. Therefore it assumes a battery or other power source. If the self-adjustment doesn't help you could increase the threshold CAP_DISCHARGED.
That means the tester has tried to discharge whatever might be connected and the voltage at probe pin #2 stays at 3mV. Therefore it assumes a battery or other power source. If the self-adjustment doesn't help you could increase the threshold CAP_DISCHARGED.
Alright, at first it started working, set the mv from 3 to 5 just in case, at first when nothing was connected I was correctly getting No Component which was expected. Then when testing a NPN Transistor it correctly identifies. It also worked correctly with a Mosfet. However when I place a 680nF Capacitor across pins 1-3 the thing just shuts down. After that when I removed everything from the tester it now shows up a 29pF Capacitor across 1-2 with nothing being connected.
Also what setting pauses the information screen after it pulls the information? Doesn't seem to sit on it long enough before it tries testing again.