Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| projects:i2c_pcf8574_8bit_port_expander [2012/10/21 18:24] elger | projects:i2c_pcf8574_8bit_port_expander [2016/11/16 13:06] (current) | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== The breadboard built ===== | ===== The breadboard built ===== | ||
| + | |||
| + | The four resistors are 100Ω | ||
| + | |||
| + | The four LEDs are regular red 3mm leds | ||
| + | |||
| + | The four buttons are momentary on push buttons | ||
| ==== Fritzing ==== | ==== Fritzing ==== | ||
| Line 14: | Line 20: | ||
| Fritzing can also make a schematic, I've included it here but it looks horrible. When I make the final design on a PCB I will use [[http://www.cadsoftusa.com/|Eagle]] for this. | Fritzing can also make a schematic, I've included it here but it looks horrible. When I make the final design on a PCB I will use [[http://www.cadsoftusa.com/|Eagle]] for this. | ||
| - | {{ :projects:i2c_pcf8574_8bit_port_expander:pcf8574-arduino-io_schem.png?200|}} | + | {{ :projects:i2c_pcf8574_8bit_port_expander:pcf8574-arduino-io_schem.png?200 |}} | 
| ==== Breadboard ==== | ==== Breadboard ==== | ||
| I took a photo of the breadboard build, nice to see but difficult to see where what goes: | I took a photo of the breadboard build, nice to see but difficult to see where what goes: | ||
| - | {{ :projects:i2c_pcf8574_8bit_port_expander:2012-10-21_11-36-11_88.jpg?200 |}} | + | {{ :projects:i2c_pcf8574_8bit_port_expander:2012-10-21_11-36-11_88.jpg?200 | }} | 
| - | {{ :projects:i2c_pcf8574_8bit_port_expander:2012-10-21_15-52-19_558.jpg?200 |}} | + | {{ :projects:i2c_pcf8574_8bit_port_expander:2012-10-21_15-52-19_558.jpg?200 | }} | 
| ==== The code ==== | ==== The code ==== | ||
| Line 27: | Line 33: | ||
| I wrote code that reads the button input and writes this to the LED output: | I wrote code that reads the button input and writes this to the LED output: | ||
| - | <code> | + | <file c PCF8574.ino> | 
| // I2C PCF8574 8 bit i/o port expander | // I2C PCF8574 8 bit i/o port expander | ||
| // by AEP | // by AEP | ||
| Line 79: | Line 85: | ||
| } | } | ||
| - | </code> | + | </file> |