Auto-Light let you control a led light working with a infared detector together.
the led light will light up when the infared detector detects objects.
and the led will turn off after 30 seconds.
Connect
infrared detector:
vcc: phys.1/3.3v
out: phys.3/BMC.2
gnd: phys.9/GND
led:
positive: phys.36/BMC.16
negative: phys.34/GND
+---------+
| |
| infrared|
| detector|
| |
+-+--+--+-+
| | |
gnd out vcc
| | | +-----------+
| | +-----------+ * 1 o |
+--|--------------+ * 3 o |
| | o o |
| | o o | \ | | /
+--------------+ * 9 o | ___
| o o | / \
| o o | |-------|
| o o | | led |
| o o | | |
| o o | +--+-+--+
| o o | | |
| o o | gnd vcc
| o o | | |
| o o | | |
| o o | | |
| o o | | |
| o 34 * +-----------+ |
| o 36 * +-------------+
| o o |
| o o |
+-----------+