Step 6: Add the Binary Inputs

An easy way to do this is just to use some tiny jumper wires for this, so that you don't have them in your way when you insert other components.

Digital Pin 8 of the Arduino connected to: pin 1 of 4511 (Binary pin 2)

Digital Pin 9 of the Arduino connected to: pin 2 of 4511 (Binary pin 3)

Digital Pin 11 of the Arduino connected to: pin 6 of 4511 (Binary pin 4)

Digital Pin 12 of the Arduino connected to: pin 7 of 4511 (Binary pin 1)

<p>Thanks for the tutorial, it was nice having all the information in one place to follow along with. I coded it a little differently for brevity: https://gist.github.com/myanaros/7bd3b39e1d29836cc9c50315be3839af</p>
IIRC, a 4511 should go to 15, as it should support HEX.<br /> So it would be 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.<br />
<p>The '4511 chip does not support HEX -- it shows a blank display for inputs above 9. Perhaps you are thinking of other very similar seven-segment decoder-driver chips? Perhaps the Motorola MC14495 chip, which displays all 16 HEX digits? Or chips that at least show unique symbols for inputs above 9 -- such as the 74LS47, 74LS48, 74LS49, 74LS247, 74LS248, etc.?</p>
the chip I worked with did not support letter readouts
<div> Thanks for the wonderful info. Kindly could you help me with information/schematics on how I can use the CD4511 chip with ARDUINO MEGA 2560 R3 to RUN a 3 digit seven segment display.I want to display 0---999. please feel free to email me: mrshorty105@gmail.com. Thank you.<br> <br> &nbsp;</div>
this is so funny, i did the exact same thing when i first got my arduino and wanted to control a 7 segment led display. and i had the electronics learning lab from radioshack, and the IC which came with it. i love that lab, it is so useful for prototyping.
Couple questions.. Wouldn't it be easier to map the 10bits of CdS values to 0 - 9 and have the if statements just say if(val == 0 ){ // send 0 in binary} and i believe the analog inputs are between 0 - 1023 rather than to 1029
Yes, actually much easier. If I were to go back and make the code again I would make a lot of changes. I made this instructables when I was relatively new to Arduino.

About This Instructable




Bio: All of my life I have been interested in learning the way things work. It was always hard for me to use something and just ... More »
More by spel3o:How to Build an 8-Bit Computer Make a Pocket Watch Chain for Your iPod How To Change Your MAC address (Snow Leopard) 
Add instructable to: