home-automation/hardware/arduino/i2c_dip
KemoNine 3d0dbe28fe Tweak dashboard update interval to help with battery life, add status LED just in case something pops up during operation for better indication of state, add DIP switch code and tweak the DIP switch i2c code to support two 8 pin DIP switches and report data via i2c (not integrated into dashboard yet) 2019-05-30 19:56:49 -04:00
..
master_reader Tweak dashboard update interval to help with battery life, add status LED just in case something pops up during operation for better indication of state, add DIP switch code and tweak the DIP switch i2c code to support two 8 pin DIP switches and report data via i2c (not integrated into dashboard yet) 2019-05-30 19:56:49 -04:00
schematic Tweak dashboard update interval to help with battery life, add status LED just in case something pops up during operation for better indication of state, add DIP switch code and tweak the DIP switch i2c code to support two 8 pin DIP switches and report data via i2c (not integrated into dashboard yet) 2019-05-30 19:56:49 -04:00
slave_sender Tweak dashboard update interval to help with battery life, add status LED just in case something pops up during operation for better indication of state, add DIP switch code and tweak the DIP switch i2c code to support two 8 pin DIP switches and report data via i2c (not integrated into dashboard yet) 2019-05-30 19:56:49 -04:00
README.md Update arduinio sources, overhal some basic folder structures, further implementation of plant dashboard/monitor build 2019-05-27 13:29:03 -04:00

README.md

i2c_dip

A simple i2c based dip switch that can be queried as a sensor.

This build uses an ATTiny 2313 / 4313 for the i2c slave with an 8 pin dip switch. The status of all 8 pins on the dip switch are returned via i2c as a single byte that can be used to determine state of all 8.

Folders

slave_sender

The main ATTiny code that reads the dip switch states and sends back a single byte with each dip's state encoded as a 0 for off and 1 for on.

master_reader

Sample code used on an Arduino for testing purposes.