home-automation/hardware/arduino/i2c_dip
KemoNine 75afe4becd Update calibration jig schematic 2019-06-30 16:00:24 -04:00
..
schematic Update calibration jig schematic 2019-06-30 16:00:24 -04:00
README.md Add missing schematics, add bill of materials for arduino based builds, remove unneeded data sheet 2019-06-11 14:00:25 -04:00
i2c_dip.ino Cleanup hardware docs and mostly finalize the calibration jig software setup 2019-06-11 13:01:23 -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.

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.

Hardware / Bill Of Materials

Quantity Hardware
1 ATTiny 4313
2 8 pin DIP switch
1 0.1uF Capacitor