Chancy99
Computer
- May 13, 2002
- 104
Hi All -
I have a 10kW diesel generator here that feeds into a Xantrex/Trace inverter for power backup at the house. Unfortunately, the generator is fairly simplistic in that it only has a few (lousy) analogue gauges on it, with no protection/detection circuitry at all.
I would like to build a monitoring box for this setup. A microcontroller (probably an AVR) watching various sensors, and if something goes out of spec for too long, trip the shutdown relay to shut down the diesel.
Items to watch would be :
Generator voltage out
Generator current out
Diesel rpm
Output AC frequency
Oil pressure
Oil temp
Coolant temp
I can do the micro stuff, interfacing to the oil senders, the temp sensors etc, the LCD code and so on. But I'm not sure about measuring AC volts or current. I've done some internet digging, and come up with this.
It looks like I will have to read the AC voltage at an ADC input (scaled) and watch for the peak readings for simple peak-peak measurements, or do all the calculations to generate true RMS readings. So question 1 is
(1) What is the best/safest way to interface to 120VAC for voltage and frequency measurements ?
Frequency shouldn't be too hard. Feed that same signal into a peak-detector opamp configuration and count. Simple timer stuff.
For current, it looks like an open-loop hall-effect sensor is the way to go. Get a ferrite toriod, cut a notch in it for a hall-effect sensor, and put one of the generator output conductors through it, maybe with one or two loops if they will fit. Question 2 is
(2) Ummm, what exactly do I measure here ? I know a voltage will be generated proportional to the current through the primary conductor, flicking back and forth in AC like the primary. What am I looking for ? The peak V seen, or an integration across time ?
The end result of all this will be an info panel at the generator shed. An LCD will show current measurements of all sensors, and allow you to set limits for emergency shutdown. It will also have an RS485 link back into the house for a remote display panel. Maybe RS232 for logging too.
Dean.
I have a 10kW diesel generator here that feeds into a Xantrex/Trace inverter for power backup at the house. Unfortunately, the generator is fairly simplistic in that it only has a few (lousy) analogue gauges on it, with no protection/detection circuitry at all.
I would like to build a monitoring box for this setup. A microcontroller (probably an AVR) watching various sensors, and if something goes out of spec for too long, trip the shutdown relay to shut down the diesel.
Items to watch would be :
Generator voltage out
Generator current out
Diesel rpm
Output AC frequency
Oil pressure
Oil temp
Coolant temp
I can do the micro stuff, interfacing to the oil senders, the temp sensors etc, the LCD code and so on. But I'm not sure about measuring AC volts or current. I've done some internet digging, and come up with this.
It looks like I will have to read the AC voltage at an ADC input (scaled) and watch for the peak readings for simple peak-peak measurements, or do all the calculations to generate true RMS readings. So question 1 is
(1) What is the best/safest way to interface to 120VAC for voltage and frequency measurements ?
Frequency shouldn't be too hard. Feed that same signal into a peak-detector opamp configuration and count. Simple timer stuff.
For current, it looks like an open-loop hall-effect sensor is the way to go. Get a ferrite toriod, cut a notch in it for a hall-effect sensor, and put one of the generator output conductors through it, maybe with one or two loops if they will fit. Question 2 is
(2) Ummm, what exactly do I measure here ? I know a voltage will be generated proportional to the current through the primary conductor, flicking back and forth in AC like the primary. What am I looking for ? The peak V seen, or an integration across time ?
The end result of all this will be an info panel at the generator shed. An LCD will show current measurements of all sensors, and allow you to set limits for emergency shutdown. It will also have an RS485 link back into the house for a remote display panel. Maybe RS232 for logging too.
Dean.