The hardware block diagram is shown in Fig. 2. The MCU is 89S52, 8kB flash microcontroller.
Download :
Schematic and BOM | schematic.pdf |
C source code | thermistor.c |
Orcad Schematic File | N/A |
Intel-Hex file | thermo.hex |
Simple Power Meter
The project shows how to use an analog AC clamp meter and the 89S52 project board for displaying active power in Watt unit. The 89S52 project board has a 12-bit ADC with 0 to +5VDC input. The AC clamp meter provides output current 100uA per 30A. We can use LM324 opamp to convert input current to voltage. The program computes active power by simply multiplying the RMS voltage to the RMS current. My plan is to hook the circuit to the load center of my house and to provide remote display with RS422.
The current-to-voltage converter using LM324 provides short circuit input for the current source. The 50k resistance gives +5V output for 100uA input. C1 is added to filter 100Hz ripple from AC clamp meter.
Download:C source code | power.c |
Intel-Hex file | power.hex |
Tidak ada komentar:
Posting Komentar