trevorboultwood
Member
Well as the days go on, I always have a project going then get bored and want to carry on with my experiance. I remember a few months ago when I was posting really idiotic comments. Ahhaa that made me chuckle just then infact. I think the most complex circuit I have made is either the OLED screen, or a binary counter which was really cool.
Recently I saw some sales at maplin for a bargraph LED arrangement, as I had some spare change I bought a couple and believe it or not it turned out to be one of the most fancyiest components I had in my box of many other types. I played around and made many codes not really understanding any think differant to what I alreadu knew...
Codes I first made:
10 Bit binary counter for 20M2
And A simple experimental code I made:
Any way back to the point. Like I said I managed to get a LCD screen working which was pretty cool. But due to my liking of the bar graph I wanted to experiment with a 8 x 8 dot matrix and display a 1,2,3,4,5,6,7,8,9 counter or something small but really awesome to watch. I was originally going to connect them all the IO ports of my 20M2 but that wasn't very challenging .
I thought of using the MAX7219 which looks very difficult to use :/ I tried looking through many forums and it explains why it is so hard etc... (Power, expensive...) Any way, I saw some one who said that another member of the site created a post to help people like me but I cannot find it any where! Could some one give me a little help at all I have never had experience controlling a chip like this with a PIC I have never successfully been able to do it ever believe it or not :l (well apart from a 555 and a 4017 ).
Thank you all, I will one day make it to the finished zone! Trust
Recently I saw some sales at maplin for a bargraph LED arrangement, as I had some spare change I bought a couple and believe it or not it turned out to be one of the most fancyiest components I had in my box of many other types. I played around and made many codes not really understanding any think differant to what I alreadu knew...
Codes I first made:
10 Bit binary counter for 20M2
Code:
Init:
high 0,1,2,3,4,5,6,7,8,9
pause 500
low 0,1,2,3,4,5,6,7,8,9
pause 500
high 0,1,2,3,4,5,6,7,8,9
pause 500
low 0,1,2,3,4,5,6,7,8,9
pause 500
high 0,1,2,3,4,5,6,7,8,9
pause 500
low 0,1,2,3,4,5,6,7,8,9
pause 500
main:
low 0,1,2,3,4,5,6,7,8,9
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
gosub first6
gosub first7
gosub first8
gosub first9
gosub first10
stop
first1:
high 0
pause 1000
return
first2:
low 0 high 1
pause 1000
gosub first1
return
first3:
low 0,1 high 2
pause 1000
gosub first1
gosub first2
return
first4:
low 0,1,2 high 3
pause 1000
gosub first1
gosub first2
gosub first3
return
first5:
low 0,1,2,3 high 4
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
return
first6:
low 0,1,2,3,4 high 5
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
return
first7:
low 0,1,2,3,4,5 high 6
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
gosub first6
return
first8:
low 0,1,2,3,4,5,6 high 7
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
gosub first6
gosub first7
return
first9:
low 0,1,2,3,4,5,6,7 high 8
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
gosub first6
gosub first7
gosub first8
return
first10:
low 0,1,2,3,4,5,6,7,8 high 9
pause 1000
gosub first1
gosub first2
gosub first3
gosub first4
gosub first5
gosub first6
gosub first7
gosub first8
gosub first9
return
And A simple experimental code I made:
Code:
Main:
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub rollacross
gosub loadlike
gosub loadlike
gosub scan
gosub scan
gosub scan
gosub scan
gosub scan
goto main
rollacross:
high 0,9
pause 100
low 0,9
high 1,8
pause 100
low 1,8
high 2,7
pause 100
low 2,7
high 3,6
pause 100
low 3,6
high 4,5
pause 100
low 4,5
high 3,6
pause 100
low 3,6
high 2,7
pause 100
low 2,7
high 1,8
pause 100
low 1,8
return
loadlike:
high 0
pause 500
high 1
pause 500
high 2
pause 500
high 3
pause 500
high 4
pause 500
high 5
pause 500
high 6
pause 500
high 7
pause 500
high 8
pause 500
high 9
pause 500
low 0,1,2,3,4,5,6,7,8,9
pause 500
return
scan:
high 0
pause 200
low 0
high 9
pause 200
low 9
high 1
pause 200
low 1
high 8
pause 200
low 8
high 2
pause 200
low 2
high 7
pause 200
low 7
high 3
pause 200
low 3
high 6
pause 200
low 6
high 4
pause 200
low 4
high 5
pause 200
low 5
pause 700
return
Any way back to the point. Like I said I managed to get a LCD screen working which was pretty cool. But due to my liking of the bar graph I wanted to experiment with a 8 x 8 dot matrix and display a 1,2,3,4,5,6,7,8,9 counter or something small but really awesome to watch. I was originally going to connect them all the IO ports of my 20M2 but that wasn't very challenging .
I thought of using the MAX7219 which looks very difficult to use :/ I tried looking through many forums and it explains why it is so hard etc... (Power, expensive...) Any way, I saw some one who said that another member of the site created a post to help people like me but I cannot find it any where! Could some one give me a little help at all I have never had experience controlling a chip like this with a PIC I have never successfully been able to do it ever believe it or not :l (well apart from a 555 and a 4017 ).
Thank you all, I will one day make it to the finished zone! Trust