Add as many pins to AVR as you want with shift register
Every microcontroller has a limited number of I/O pins. Sometimes when we need more of them we chose bigger MCU. This isn’t the cure for cases like that especially when we don’t need much of processing power – only more pins. It is better to use port expander. Mike Szczys suggests using 74HC595 shift registers that can be controlled directly with microcontroller SPI module. WPvideo 1.10 Using SPI shift register can be controlled with three MCU pins for clocking, sending data and latch. Actually there can be cascaded as many shift registers as you want the only thing you may loos is I/O speed. In following tutorial there are two 595 registers used that gives 16 controllable pins. Great stuff when you need to deal with massive amount of LEDs....
Source: Embedds.com - Monday, 14 November, 2011
Related articles:
- Older News
- 3Vote! 3 Axis Accelerometer based on the Freescale MMA7361L
Hacked Gadgets - Wednesday, 25 April
- 9Vote! How to get 2 extra Pins from an Arduino
Hacked Gadgets - Monday, 19 March
- 3Vote! pyMCU – python controlled MCU
Embedds.com - Thursday, 8 March
- 10Vote! How to interface a MMA8453Q Accelerometer to an ATmega328 MCU
Hacked Gadgets - Saturday, 25 February
- 12Vote! "1234" and Birthdays Are the Most Common PINs
Schneier on Security - Tuesday, 21 February
- 4Vote! Test your reaction with MSP430 reaction game
Embedds.com - Thursday, 16 February
- 12Vote! Driving shift registers with AVR
Embedds.com - Tuesday, 31 January
- 9Vote! Programming AVR pins in AVRStudio5 with C++
Embedds.com - Friday, 20 January
- 13Vote! Turning parallel LCD interface in to serial
Embedds.com - Friday, 6 January
- 11Vote! Beijing orders microbloggers to register real names
PhysOrg - Friday, 16 December
- 13Vote! The Voxel Shield
SparkFun Electronics - Tuesday, 22 November
- 14Vote! Porting ITDB02 LCD shield library to ChipKIT
Embedds.com - Monday, 7 November, 2011
- 15Vote! Serial peripheral interface in AVR microcontrollers
Embedds.com - Friday, 7 October, 2011
- 12Vote! Attiny13 based double dice
Embedds.com - Monday, 3 October, 2011
- 22Vote! Single molecule can shift the phase of a laser beam
PhysOrg - Tuesday, 6 September, 2011
- 22Vote! The Master and Slave in AVR SPI
Embedds.com - Saturday, 23 July, 2011
- 23Vote! Attiny13 drives 16 LEDs with one pin
Embedds.com - Monday, 4 July, 2011
- 22Vote! Common PINs
Schneier on Security - Monday, 27 June, 2011
- 22Vote! Add an extra 8-bit port to your microcontroller with MCP23008
Embedds.com - Wednesday, 8 June, 2011
- 16Vote! 96 Solenoid Waterfall Display
Hacked Gadgets - Monday, 30 May, 2011