Here’s what I started with.
How to wire up a number display
Now for the fun stuff. To wire up the number display and the transistors that determine which digits are showing I used this diagram that I made ages ago.
Here’s basically all I need to know.
There are 16 pins on the number display. The ones below need to be wired to the C leg of transistors. In this case I just used good old BC547s.
Pin 1 is gnd no1
Pin 4 is gnd no 2
pin 5 is gnd no 3
pin 14 is gnd no 4
When I say ground I mean that when these pins are connected to ground the digit that they correspond to (i.e. pin 4 turns on the second digit) turns on. By using transistors we can control this and have numbers and other stuff display on the digits.
So for example if we want to control when we want the first digit to light up we do it like this.
B to number display pin 1
C to analog pin 1
E to ground
When we switch on analog pin 1 in our program our first number lights up. Simple.
(oh yeah and if this way of wiring these displays isn’t right then sorry but I just figured out this way from experimenting.
I know it looks messy and I could have just used a number shield or shift registers but I like it like this. It kind of adds a mad scientist look to my room and makes me look a bit like this guy:
Next up, debugging the circuit using serial.