-
#4575 Reply
Posted by
mebel
on 27 Feb, 2018 14:30
-
I can confirm post #4052. I installed it like that in my AY-AT, and it's working fine.
[/quote]
How did you check it?
-
#4576 Reply
Posted by
madires
on 27 Feb, 2018 15:22
-
My main consern is that not everithing that I see on the LCD is sent to the serial port and when I enter the main menu nothing is sent to the serial output.
Only once I was able to see the menu on the serial but I can't replicate it.
This is intended. Just the welcome message, component founds and some error messages are copied to the TTL serial. Menus and tools are shown on the LCD only. I'm trying to add more features for the serial interface, but first I have to figure out what's feasible.
If someone has problems with the bit-bang serial try to add a pull-up resistor (10k?) on the TX pin. While checking components the TX pin might be switched to HiZ. The pull-up resistor should provide the high level when idle.
-
#4577 Reply
Posted by
Miwer
on 27 Feb, 2018 17:06
-
How did you check it?
Do you mean how did I figure it out?
Simply checking the datasheet for the two components. LM4040 and TL431 are NOT pin compatible. The anode and cathode are on different pins. Since the LM4040 doesn't have a REF pin, it doesn't matter where the third pin go since it's not connected internally anyway, and it's not needed for that part, so just match up the anode and cathode, and the last pin just goes in the remaining hole for the heck of it.
If you mean how to verify it, then simply measure voltage on the ATmega pin 27 with a multimeter - it should be 2,5V when the device is on.
-
#4578 Reply
Posted by
boffin
on 28 Feb, 2018 05:21
-
And some good news We proudly present 1.32m:
...
- Driver for TTL serial interface (hardware and bit-bang).
...
Awesome, and Vielen Dank
One thing I did wonder, is there a single page/wiki anywhere with all the details, notes etc etc? Or just pull the tarballs and it's all in there?
-
#4579 Reply
Posted by
RGK
on 28 Feb, 2018 05:23
-
Hmmm, in that case I installed the LM4040 into my AT-AY incorrectly. Post #4052 shows it correctly done? Likely undamaged??
BK
I can confirm post #4052. I installed it like that in my AY-AT, and it's working fine.
Just changed my LM4040 to look like post #4052 and (surprise!) now I get 2.5V on the atmega pin 27, vs. 5V before. A bit embarrassing, but all good now. Glad this came up and thanks!
BK
-
#4580 Reply
Posted by
mauroh
on 28 Feb, 2018 09:16
-
The notes in the code by Markus are really well done and every change is pretty straight forword.
The change I made to enable the serial on my tester (see the first post in this page) are:
Uncoment the following lines in config.h
#define UI_SERIAL_COPY
#define SERIAL_BITBANG
In the config_328.h adjust the port/pin assignament as follow:
/* for hardware RS232 */
#define SERIAL_USART 0 /* use USART0 */
/* for bit-bang RS232 */
#define SERIAL_PORT PORTC /* port data register */
#define SERIAL_DDR DDRC /* port data direction register */
#define SERIAL_PIN PINC /* port input pins register */
#define SERIAL_TX PC3 /* pin for Tx (transmit) */
#define SERIAL_RX PD0 /* pin for Rx (receive, not supported yet) */
This will direct the serial output to PC3 pin on port C of the atmega microcontroller.
Mauro
-
#4581 Reply
Posted by
onre
on 01 Mar, 2018 10:15
-
Hi, I am struggling to compile a correct firmware for a tester I got as a "try if you can make this thing work" kind of project. Apparently the tester has worked at some point, but as arrived it could turn on and after a long delay display random number characters on the screen.
It has an SMT Atmega 328P and the circuit board is marked as follows:
EZM Electronics Studio
MK-328 V1.10
2015.12.14
The display unit seems to be UC1701 based 128x64 display. I use an Arduino as programmer and can successfully flash and verify the MCU contents. However, I can't get the unit to do anything. Upon power-up, I get a blank lit-up screen which won't turn off. With some firmwares I can get some garbled screen output - just some pixels turned on, no legible characters. Unfortunately I accidentally deleted the stock firmware I had in a file, so I can't go back to that anymore, either.
Any ideas how to proceed? I've tried building different firmwares and can get some degree of response from hardware - screen contrast can be changed, and also different garbled patterns appear.
-
#4582 Reply
Posted by
madires
on 01 Mar, 2018 10:45
-
The UC1701 seems to be compatible with the ST7565, but I could be wrong. Have you also programed the EEPROM?
-
#4583 Reply
Posted by
onre
on 01 Mar, 2018 10:52
-
The UC1701 seems to be compatible with the ST7565, but I could be wrong. Have you also programed the EEPROM?
Alright, thanks! I did program the EEPROM and have set the fuses as well to values found in this topic.
-
#4584 Reply
Posted by
onre
on 01 Mar, 2018 14:01
-
Maybe the MCU is just partially burnt? I got to a point where I can enter the menus by the long button press. In the menus I can select the selftest, but end up with a flickering message telling me to "Short probes!", which I do, but the message does not go away.
edit: Additionally, the tester takes tens of seconds to get into the menus. I've checked fuses and used oscilloscope to confirm 8 MHz crystal frequency and no clock division.
-
#4585 Reply
Posted by
madires
on 01 Mar, 2018 18:31
-
It could be a bad pin, but it could be also something else. Do you got another ATmega328?
-
#4586 Reply
Posted by
onre
on 01 Mar, 2018 19:04
-
Yes I do, but different form factor and I really don't want to solder SMT unless I have to. Also, because of typing error looks like I "fused myself out" (set the clock to the low frequency mode, can't read device signature anymore) so that's pretty much the end of the story.
However, the software seems so nice that we will order through-hole kits and build them in proper cases.
-
#4587 Reply
Posted by
JonnieCache
on 06 Mar, 2018 14:15
-
I'm sorry to post such a n00b question. I'm new to embedded devices/micro-controllers. I have 2 of the AY-AT testers and I want to play around with the settings, install the latest firmware (both M and K). I want to try fitting an ST7735 screen to it also.
I'm not asking anyone to hold my hand per se. I'm a former developer so I can try to figure out the code. What I'm stuck with is how to most easily do this stuff on a Mac. I'd rather not run Parallels if I can avoid it. I have found a number of tools that may help, such as Atom with Platformio-IDE, Eclipse for C/C++, and MPLABX. Of course, I have seen avrdude to actually program the ATMega.
What I'm stuck with is how best to edit the appropriate files. I'm used to Xcode and Visual Studio where all files are accessible and you can just click "Build" or "Run" and voila! you have compiled code. With embedded, I have no idea how to begin.
Does anyone here use a Mac? What do you do to update the files and compile them for the LCR?
-
#4588 Reply
Posted by
mauroh
on 06 Mar, 2018 15:00
-
I'm using a Mackbook to edit compile and load the firmware on my tester...
- Edit
Plain and simple text editor
- Compile
Installed CrossPack from
https://www.obdev.at/products/crosspack/index.html I'm using this version:
https://www.obdev.at/downloads/crosspack/CrossPack-AVR-20131216.dmg After you installed it:
Open Terminal
Go in the folder you have the ESR Transistor Tester firmware Makefile and type
make all -f Makefile
Just to be sure everything is working fine, do this without change any file just to see if it compile, then play with the editor...
- Programmer
BusPirate
- Programming software Avrdude (also this is part of the CrossPack)
I'm using this command to program the k-firmware
avrdude -c buspirate -p m328p -B 0.5 -e -P /dev/cu.usbserial -b 115200 -U flash:w:"TransistorTester.hex":a -U eeprom:w:"TransistorTester.eep":a -U lfuse:w:0xF7:m -U hfuse:w:0xD9:m -U efuse:w:0x04:m
I'm using this command to program the k-firmware
avrdude -c buspirate -p m328p -B 0.5 -e -P /dev/cu.usbserial -b 115200 -U flash:w:"ComponentTester.hex":a -U eeprom:w:"ComponentTester.eep":a -U lfuse:w:0xF7:m -U hfuse:w:0xD9:m -U efuse:w:0x04:m
You will have to change only the programmer (if you dont have a BusPirate, I tryed also with an arduino as ISP, but almost everithing will do) and/or the serial name.
Mauro
-
-
-
#4590 Reply
Posted by
madires
on 12 Mar, 2018 20:15
-
I've made some progress on the serial interface and got RX for the hardware based UART working. I think it should be possible to implement RX also for the bit-bang serial. Some users already suggested to add something like SCPI to control the tester. A driver for a serial driven HD44780 might be also an idea and would free up some MCU pins. I'm open for ideas about features using the serial interface.
-
#4591 Reply
Posted by
JonnieCache
on 12 Mar, 2018 20:28
-
I can’t believe I didn’t reply. Thanks to @mauroh and @timelessbeing for your help!
-
#4592 Reply
Posted by
beanflying
on 13 Mar, 2018 09:33
-
Sata conversion mk2. Mk 1 was 8-20V external powered with a dc-dc converter in the box.
Finally got around to squeezing a 2S LiPo 300mAh into my tester. No need for any battery BS saver the tester looks after that.
To save any whining the screws on the front are now black not stainless
3 pin lead set with header is handy too and fits in the bag.
-
#4593 Reply
Posted by
mauroh
on 13 Mar, 2018 16:51
-
-
#4594 Reply
Posted by
mauroh
on 13 Mar, 2018 16:59
-
I can’t believe I didn’t reply. Thanks to @mauroh and @timelessbeing for your help!
You are welcome!! But the most important thing is... Was you able to compile the firmware?
I like the idea of the XCode template linked by timelessbeing but havent tryed it yet.
Mauro
-
#4595 Reply
Posted by
JonnieCache
on 13 Mar, 2018 19:53
-
I can’t believe I didn’t reply. Thanks to @mauroh and @timelessbeing for your help!
You are welcome!! But the most important thing is... Was you able to compile the firmware?
I like the idea of the XCode template linked by timelessbeing but havent tryed it yet.
Mauro
I’m still in progress, but I think I’m close! I’m looking at both options and experimenting.
-
#4596 Reply
Posted by
JonnieCache
on 18 Mar, 2018 03:24
-
So after much playing around, I was finally able to get it to work. At least, I think so.
The biggest problem I had was getting an ATMel-ICE to work with my Mac. I'm going to buy the Adafruit programmer to make things easier in the future.
Everything seems to be working using the M-Firmware (thank you Markus!). The only think I notice is that it takes several seconds (with a white screen) before it shows the "Component Testor" wording. Then, I noticed that it doesn't always boot correctly. Sometimes, the white screen stays on. Sometimes, I have to hold the encoder button in order to get it to finally respond.
I'm guessing this has something to do with the fuses. I have tried the fuses: (E:FD, H:D9, L:F7) as well as (E:FD, H:D8, L:FF). I'm running a 16Mhz crystal.
Any further assistance is appreciated!
-
#4597 Reply
Posted by
madires
on 18 Mar, 2018 11:37
-
Maybe the BOD it's triggered. Do you got a DSO to monitor Vcc while powering on?
-
#4598 Reply
Posted by
JonnieCache
on 18 Mar, 2018 13:42
-
Maybe the BOD it's triggered. Do you got a DSO to monitor Vcc while powering on?
Yes, I have a scope, but I’m new to it. I’m powering the CT with a bench power supply, though so I know it is getting 9V. Maybe it needs more than 1A, though? The same problem occurs when using a 9V battery also.
-
#4599 Reply
Posted by
madires
on 18 Mar, 2018 15:34
-
Vcc is the 5V rail (after the PNP transistor acting as a power switch and the 5V regulator).