Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another example is how garage door opener trip-beams work (the sensors that detect if something is in the way before lowering the door).

The transmitter and receiver are wired in parallel and connected to a power supply through a series resistor. When the receiver receives the signal from the transmitter, it pulls the supply voltage down, which then causes the transmitter to stop transmitting, which then causes the receiver to stop pulling the supply down, and the cycle continues. The end result is that if there's no obstruction, the supply voltage pulses and the system checks for this. If there's any other type of condition, the signal is either 0 or VCC. Basically, the system is designed so that false positives are extremely unlikely since that's the worst case scenario.

There's some capacitors in the transmitter/receiver to control the frequency.



Gas central heating boilers use something similar to control the gas solenoid - the solenoid is fed through a biggish capacitor, which has a diode and a capacitor to "smooth" the pulses from the microcontroller. If the microcontroller output latches itself on, the capacitor charges fully, there are no more pulses, and the solenoid drops out.


That sounds very complicated. What advantage does it have over wiring the two in series and having an open circuit indicate an obstruction?

edit: it gets you protection against one of the two failing closed, duh




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: