autofan

command
v0.0.0-...-791007e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 5 Imported by: 0

README

Auto Fan

Auto-Fan let you the fan working with a relay and a temperature sensor together. The temperature sensor will trigger the relay to control the fan running or stopping.

Connect

temperature sensor:

  • vcc: phys.1/3.3v
  • dat: phys.7/BCM.4
  • gnd: phys.9/GND

realy:

  • vcc: phys.2/5v
  • in: phys.26/BCM.7
  • gnd: phys.34/GND
  • on: fan(+)
  • com: bettery(+)

 o---------o
 |         |
 |temperature
 |sensor   |                                           o---------------o
 |         |               +-----------+               |fan            |
 |         |     +---------+ * 1   2 * +---------+     |    \_   _/    |
 o-+--+--+-o     |         | o       o |         |     |      \ /      |
   |  |  |       |  +------+ * 4     o |         |     |   ----*----   |    +----------+    +----------+
 gnd dat vcc     |  |  +---+ * 9     o |         |     |     _/ \_     |    |          |    |          |
   |  |  +-------+  |  |   | o       o |         |     |    /     \    |    |          |    |          |
   |  |             |  |   | o       o |         |     |               |    |       o-----------o      |
   |  +-------------+  |   | o       o |         |     o-----+---+-----+    |       |  -    +   |      |
   |                   |   | o       o |         |           |   |          |       |           |      |
   +-------------------+   | o       o |         |           |   |          |       |   power   |      |
                           | o       o |         |           |   +----------+       o-----------o      |
                           | o       o |         |           |                                         |
                           | o       o |         |           |    +------------------------------------+
                           | o    26 * +------+  |           NO   COM
                           | o       o |      |  |           |    |
                           | o       o |      |  |     o-----+----+---o
                           | o       o |      |  +-vcc-+        relay |
                           | o    34 * +--+   |        |    /         |
                           | o       o |  +--------gnd-+   /          |
                           | o       o |      |        |  o  ------o  |
                           | o 39 40 o |      +-----in-+              |
                           +-----------+               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