Good afternoon,
I am hoping someone can help with this simple project.
I want to interface my thermostat to a computer to monitor my heating usage. My thermostat has two pins that would be used: Pin (1) Ground and Pin (2) Heating On.
When the heat is on, Pin (2) is +24V AC. When the heat is off the pin is 0V.
The Microcontroller I am using (HC11) recognizes only 0 or 5VDC. How can I convert the 24VAC signal to a clean 0 or 5VDC signal for the microcontroller? I have a separate 5VDC source
My thoughts:
Option 1) Use some kind of relay. Attach the 24VAC and Ground pins to the coil and switch using the 5VDC supply I have. Do they even make relays like this?
Option 2) Use a diode bridge to convert the voltage to DC then a voltage regulator to reduce it to 5VDC.
Any other options? What is the smartest and simplest approach for this? Thank you in advance for your help!
David
I am hoping someone can help with this simple project.
I want to interface my thermostat to a computer to monitor my heating usage. My thermostat has two pins that would be used: Pin (1) Ground and Pin (2) Heating On.
When the heat is on, Pin (2) is +24V AC. When the heat is off the pin is 0V.
The Microcontroller I am using (HC11) recognizes only 0 or 5VDC. How can I convert the 24VAC signal to a clean 0 or 5VDC signal for the microcontroller? I have a separate 5VDC source
My thoughts:
Option 1) Use some kind of relay. Attach the 24VAC and Ground pins to the coil and switch using the 5VDC supply I have. Do they even make relays like this?
Option 2) Use a diode bridge to convert the voltage to DC then a voltage regulator to reduce it to 5VDC.
Any other options? What is the smartest and simplest approach for this? Thank you in advance for your help!
David