7 Segment display issue, just looking for some pointers
Hi everybody. I have a segment seven display that I am trying to count from 0 to 9 with.
I was able to do this using 7 bits, but now I am supposed to do this using a 74xx47 ic decoder.
I am having real issues getting this to work.
For example,
' ($STAMP BS2)
' ($PBASIC 2.5)
' ($PORT COM5)
'Define output, set to low
DIRC = (percent sign)1111
OUTC =(percent sign) 0000
'Start looping procedure
Loop1 VAR Word
FOR Loop1 = 1 TO 20
OUTC = (percent sign) 0000
PAUSE 1000
OUTC = (percent sign) 0001
PAUSE 1000
OUTC = (percent sign) 0010
PAUSE 1000
NEXT
END
This code above will cause a "0" to display on my 7 segment display, and it pulses quickly on and off.
If you look at my attachment, that code will get my LED to cylce really fast through numbers "0" "1" "2" then repeats. It never manages to display 3 through 9
Is there something I'm overlooking?
Any help would be much appreciated :P
Thanks!CMG Issue.bs2
I was able to do this using 7 bits, but now I am supposed to do this using a 74xx47 ic decoder.
I am having real issues getting this to work.
For example,
' ($STAMP BS2)
' ($PBASIC 2.5)
' ($PORT COM5)
'Define output, set to low
DIRC = (percent sign)1111
OUTC =(percent sign) 0000
'Start looping procedure
Loop1 VAR Word
FOR Loop1 = 1 TO 20
OUTC = (percent sign) 0000
PAUSE 1000
OUTC = (percent sign) 0001
PAUSE 1000
OUTC = (percent sign) 0010
PAUSE 1000
NEXT
END
This code above will cause a "0" to display on my 7 segment display, and it pulses quickly on and off.
If you look at my attachment, that code will get my LED to cylce really fast through numbers "0" "1" "2" then repeats. It never manages to display 3 through 9
Is there something I'm overlooking?
Any help would be much appreciated :P
Thanks!CMG Issue.bs2
bs2
![](/plugins/FileUpload/images/file.png)
642B
Comments
I have solved my problem, it turns out my batteries were drained. I guess the boe bot would short cycle and restart?
Anyways, I plugged in a 9v supply and it runs like a charm.
For any future "googlers", attached is how I was able to code three IC 7447 chips to work with three 7-segment displays.
Lab_6_02_F_FINAL.bs2
Regards-