DanielOgorchock / ST_Anything

ST_Anything is an Arduino library, sketch, and Device Type that works with your SmartThings ThingShield to create an all-in-one SmartThings device.
GNU General Public License v3.0
438 stars 448 forks source link

voltage help #254

Closed andrewvanlagen closed 3 years ago

andrewvanlagen commented 3 years ago

can i use a XMPT101B type sensor or how can i use this type of sensor in your code

ogiewon commented 3 years ago

@andrewvanlagen - unfortunately, ST_Anything does not support measuring high-frequency AC analog input signals. What is your particular application for using the XMPT101B sensor? Perhaps there are other options to meet your needs?

andrewvanlagen commented 3 years ago

I want to monitor 120v

ogiewon commented 3 years ago

If you simply want to know if 120VAC is present or not, I’d recommend plugging in a simple 5VDC USB power supply (like a phone charger) and then simply monitor the low voltage DC signal to be able to determine is the 120VAC is present or not.

ogiewon commented 3 years ago

Closed due to inactivity. Please feel free to reopen this issue if you'd like to discuss further.