CD4021BC Theory

Status
Not open for further replies.

AtomSoft

Well-Known Member
Ok i dont own one of these but was looking in my jameco catalog and then looked up the datasheet.

"The CD4021BC is an 8-stage parallel input/serial output shift register."

know that you know that do you think its possible to accomplish this?

Connect 8 switches (buttons(tactile)) to each parallel input and then connect another button to the first 2 then another to the next 2 so it end up like when you press button 1 it will send a clock and a 1.

Button 1 = 00000001
Button 2 = 00000010
button 3 = 00000100
...
button 255 = 11111111

I know you would need quite a few transistors to accomplish this but would it work?

The advantage is no ADC needed! and uses about 2-3 wires to PIC .

I got the idea looking at my remote controls PCB when it fell on the floor. You might not need any transistor but i would have to think more on how to wire it lol
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…