Skip to content

Instantly share code, notes, and snippets.

View sabretus's full-sized avatar

Lev Petrushchak sabretus

  • Quiq
  • Ukraine, Lviv
View GitHub Profile
@sabretus
sabretus / reed_switch.c
Created May 11, 2019 10:31 — forked from rgl/reed_switch.c
connect arduino to a reed switch to read the water flow from a water meter
// this is for an arduino uno.
// this was inspired by http://www.instructables.com/id/Arduino-Reed-Switch/?ALLSTEPS but
// changed to use the arduino internal pull up resistor:
//
// +-----------------+
// | arduino GND -----reed_switch----\
// | | |
// | 12 --------------------/
// +-----------------+
//