Here is my implementation of the multimeter designed by Markus F. It's a neat tool, that can be used to detect (good for unknown components or those that have the labels erased) and measure:
- Transistors: Bipolar/Mosfet
- Diodes and Double Diodes
- Capacitors: between 0.2nF to 7300μF
The Multimeter board
To build one you will need:
- an Atmega8 microcontroller
- a 2x16 HD44780 LCD
- a 5V regulator
- some resistors
The multimeter schematic:
The PCB Layout (and complete project details) is also available here.
I designed my multimeter on a test board, and put everything together in a nice metal box:
I connected a power switch, and a reset button (the pulls the RESET pin to GND), and a 3 PIN connector for the components to be measured.
To program the Microcontroller (write the software), I use a parallel programmer. It uses the LPT1 port (printer port), and a 5 wire cable. The connection is as follows:
I use 460Ohm resistors. My connector is a 5pins array in the following sequence [Ground, Reset, SCK,MISO,MOSI].
For this programmer, in Ponyprog you can select Parallel/LPT1/AVR ISP I/O:
The code is available here (and can be compiled with AVR Studio), or ready compiled here.
To program the Atmega8, connect it to the parallel programmer, open Ponyprog, go to File->Open Program (FLASH) File and select the .hex (TransistorTestNew_UART_not_inverted.hex), then go to File->Open Data (EEPROM) File and select the .epp file (TransistorTestNew_English.eep). Next press Command->Write all and make sure the software is successfully written to your Atmega8.
Alternatively you can use avrdude instead of Ponyprog: avrdude -p atmega8 -c stk200 -U flash:w:TransistorTestNew_UART_not_inverted.hex:i
The code is configured to work with a stock 1MHz Atmega8, so make sure the fuses are not changed (or if they are revert them to the default values). No quartz crystal is required. Here are the settings as seen in Ponyprog:
The multimeter is ready to go. If there is no component connected, you will see "No, unknown or damaged part". If you connect a component, it will detect it (transistor, capacitor, etc) and display the most important parameters.