Go Down

Topic: Shift Register (Read 450 times) previous topic - next topic



I'm trying to build a carpet of 50 pressure pads sensors using and Arduino and Processing.
In order to do that I'm using a shift register (TEXAS INSTRUMENTS model CD4021BE), but I dont know how to write the Arduino code to read the data from the register.

Untill now, I found and example in "Physical Computing" book, using the same shift register but with an example code for basic stamp or pic basic and BX-Basic.

I'm stucking with a way of doing the Shift in....

Can anyone help? please!!!!!!!!!!!!!!!!!!!!
Carolina Briones


It sounds like you need to be using quite a few analog mux IC's. You'd scan through them looking for a change.  You'd be hard pressed to get enough pins on the arduino to run that many without expanding the digital IO as well.


This will run 8 of the pads and eat three digital pins for the address.

PulseIn flat out sucks as a command. Try and avoid it.
If it was designed by man it can be repaired by man.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131