7 segment display with 4511B

nevcams

New Member
Hi, I was wondering if anyone could help me wire this up to my 08M2.... I've read the manual and put in the code but don't know which pins to use from the 08M2 to the 4511B. it makes no sense because on the simulator only pin C.0 is flashing (I'm not very savy with picaxe as I've not really used them that much)
Thanks
nevcams11131796_1608997295981442_854725924_n.jpg11117871_1608997229314782_386527225_n.jpg
 

nick12ab

Senior Member
What code have you put in?

You just need to connect the four output pins on the 08M2 to control it, the order depending on your code.
 

nevcams

New Member
main: for b1 = 0 to 9 ‘ Set up a for...next loop using variable b1
let pins=b1 ‘ Output b1 onto the four data lines
pause 1000 ‘ Pause 1 second
next b1 ‘ Next
goto main ‘ Loop back to start
 

nevcams

New Member
been reading up on it a bit and think this is just a snippet of code ?? need to add some more. in the "David Lincoln" programming book it says I need to add some more code... I THINK??
but he is on about using a 18x chip
 

nevcams

New Member
I am powering the 4511B from the "picamoo board" and the four data inputs need to be hooked up to the 08M2
 

nick12ab

Senior Member
That code there puts the binary count of 0 to 9 on the least significant bits of pins (so C.0 to C.3). For it to have any chance of working you need to set the relevant pins as outputs first.

Therefore to use that code you connect A to C.0, B to C.1, C to C.2 and D to C.3.

Now can C.3 be used as an output?
 

AllyCat

Senior Member
Hi,

Basically, you need to connect the "1s" input (4511 Leg 7) to the PICaxe C.0 output, the "2s" input to C.1 and the "4s" input to C.2. C.3 is not (normally) an output so you would typically connect the "8s" input to C.4 and use a "workaround" in the code (but let's get 0 - 7 working first). Have you got all the other inputs (LE, etc.) to the 4011 biassed correctly?

Your code probably also needs to set the PICaxe pins as outputs. That's usually done with a LET DIRS command, but for a beginner it can be done with commands LOW C.0 : LOW C.1 : etc.. Then changing some/any of the LOWs to HIGH should give different 7-segment digits and some insight into what's happeneing.

Cheers, Alan.
 

nevcams

New Member
Still couldn't sort it so I went for plan"B" (talk about using a sledge hammer to crack a nut lol)11106513_1609277742620064_841733622_n.jpg11134174_1609277692620069_1919307239_n.jpg
code:

;14m2 to seven segment cc display

main:
high B.0,B.1,B.2,B.3,B.4,B.5,C.1
pause 500
low B.0,B.1,B.2,B.3,B.4,B.5,C.1 ;writes the number 0
pause 500
high B.1,B.2,C.1
pause 500
low B.1,B.2,C.1 ;writes the number 1
pause 500
high B.0,b.1,C.0,B.4,B.3,C.1
pause 500
low B.0,B.1,C.0,B.4,B.3,C.1 ;writes the number 2
pause 500
high B.0,B.1,C.0,B.2,B.3,C.1
pause 500
low B.0,B.1,C.0,B.2,B.3,C.1 ;writes the number 3
pause 500
high B.5,C.0,B.1,B.2,C.1
pause 500
low B.5,C.0,B.1,B.2,C.1 ;writes the number 4
pause 500
high B.0,B.5,C.0,B.2,B.3,C.1
pause 500
low B.0,B.5,C.0,B.2,B.3,C.1 ;writes the number 5
pause 500
high B.0,B.5,B.4,B.3,B.2,C.0,C.1
pause 500
low B.0,B.5,B.4,B.3,B.2,C.0,C.1 ;write the number 6
pause 500
high B.0,B.1,B.2,C.1
pause 500
low B.0,B.1,B.2,C.1 ;writes the number 7
pause 500
high B.0,B.1,B.2,B.3,B.4,B.5,C.0,C.1
pause 500
low B.0,B.1,B.2,B.3,B.4,B.5,C.0,C.1 ;writes the number 8
pause 500
high B.0,B.1,B.2,B.3,B.5,C.0,C.1
pause 500
low B.0,B.1,B.2,B.3,B.5,C.0,C.1 ;writes the number 9
pause 500
goto main
 
Top