TV on/off monitor using TV USB port
-
Welcome to the forum @tomvanderputte
The TPS2051BDVR can deliver 500mA according to https://www.digikey.com/product-detail/en/texas-instruments/TPS2051BDBVR/296-21265-1-ND/1219985 so powering the Arduino and radio should be fine.
@mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.
-
@mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.
@tomvanderputte both approaches probably work.
An alternative could be to clip a current sensor around the power supply for the TV. Doing that would probably make it possible to sense whether the tv is on, in standby or completely off. something like https://www.sparkfun.com/products/11005
If the tv has a led showing its status, you could use a LDR to measure it.
-
@mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.
@tomvanderputte - some service port announces events on the data lines. You could use this to (if they are present) to determine if the tv is on or off and send a binary sensor. The issue with the ping approach is the amount of traffic, in balance with some lag in the update on your sensor. I guess you dont want to ping the tv every second and therefore it might be some time before your controller sense your power goes off - and this might cause issue if you want to use the sensor in any automation.
-
Thanks everyone for the suggestions, I'll consider my options!
-
Thanks everyone for the suggestions, I'll consider my options!
@tomvanderputte
I don‘t like the idea of shutting off the node once USB power turns off... but you could use the Expire-Binding in OH for finding out.
I‘d rather mount a photo cell to the front LED (if it turns off once powerded on) or on a scart interface, you could sense power once turned on. Or of course the USB if it turns on/off. -
@tomvanderputte
I don‘t like the idea of shutting off the node once USB power turns off... but you could use the Expire-Binding in OH for finding out.
I‘d rather mount a photo cell to the front LED (if it turns off once powerded on) or on a scart interface, you could sense power once turned on. Or of course the USB if it turns on/off.@parachutesj is from a design perspective that you don't like it? Or because it can actually damage the node?
I like the expire binding, thanks for the tip. The ldr is usable, but for estethic reasons I'll see if I can find a different solution, thanks.
-
Just brainstorming: a Door/Window sensor with 2xAA batteries may last ~2 years, if you remove the led and regulator. You just need to connect the USB - to GND and USB + to D3 via a diode.
Another option is to replace the 2xAA by a small lithium battery, with one of these cheap TP4056 charger boards, so the USB from TV will keep the battery charged. You just need to connect +VCC (from the USB connector side) to D3 via a diode.
https://www.aliexpress.com/w/wholesale-board-tp4056.html
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20200427084513&SearchText=small+lithium -
@parachutesj is from a design perspective that you don't like it? Or because it can actually damage the node?
I like the expire binding, thanks for the tip. The ldr is usable, but for estethic reasons I'll see if I can find a different solution, thanks.
@tomvanderputte I don‘t think it will harm the hardware if it powers down. I just don‘t like „to be out of control“. You don‘t know if it powered down or just dropped a heartbeat. Also I do some things in the evening once the TV powers down. This will obvious be delayed if you just kill the node and for traffic pollution you should not send updates to often.
-
Just brainstorming: a Door/Window sensor with 2xAA batteries may last ~2 years, if you remove the led and regulator. You just need to connect the USB - to GND and USB + to D3 via a diode.
Another option is to replace the 2xAA by a small lithium battery, with one of these cheap TP4056 charger boards, so the USB from TV will keep the battery charged. You just need to connect +VCC (from the USB connector side) to D3 via a diode.
https://www.aliexpress.com/w/wholesale-board-tp4056.html
https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20200427084513&SearchText=small+lithium@rvendrame battery powered should work. Always sleep and only wake on change. My door/window sensors run ‚since forever‘ on the first battery.
-
Sometimes though, you may experience problems if your monitor or TV screen is set to disable USB power during standby. Monitors and TVs can often switch to standby very quickly if they don’t find an active source of content, and devices can often not turn on without power, causing a bit of a chicken and egg scenario. Add to this the fact that your device may be at the back of your monitor or TV in a spot that is hard to reach and you may find yourself in quite a frustrating scenario quite quickly.