autolight

command
v0.0.0-...-d12e797 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 12 Imported by: 0

README

Auto Light

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 |
                              +-----------+
          

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL