[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • help with the screen - Page 5
Page 5 of 6

Re: help with the screen

Posted: Tue Jun 26, 2012 8:40 pm
by brad
bitfogav wrote:
nodoubtman wrote:Hi! :)
i have seen the a red led is use in great race game? so, in your connection of the drawing, there is only green connection... :(

i dont understand.. :O ;s
Yes you are correct, I left out the RED led connection in the drawing to save confusion as it is not needed at this point and it is something we can add when you have your matrix working with a smiley face.

If the matrix still fails to display a smiley face then has Brad said can you post a picture of your circuit?, We may be able to spot something connected incorrectly. That would be a big help for us to help you..
It would be a Huge help!

Re: help with the screen

Posted: Mon Jul 02, 2012 11:31 pm
by nodoubtman
brad wrote:
bitfogav wrote:
nodoubtman wrote:Hi! :)
i have seen the a red led is use in great race game? so, in your connection of the drawing, there is only green connection... :(

i dont understand.. :O ;s
Yes you are correct, I left out the RED led connection in the drawing to save confusion as it is not needed at this point and it is something we can add when you have your matrix working with a smiley face.

If the matrix still fails to display a smiley face then has Brad said can you post a picture of your circuit?, We may be able to spot something connected incorrectly. That would be a big help for us to help you..
It would be a Huge help!
is it suppose to scrool or a fix brad smile?

thanks!
marC:)

i will do it soon .. :)

Re: help with the screen

Posted: Tue Jul 03, 2012 10:57 am
by nodoubtman
I tried it again, and it did something like that : http://www.youtube.com/watch?v=NpuOACfo ... e=youtu.be

here's a few images from my breadboard :
Image
Image
Image
Image

the mark on the matrix is : XSM-D1088BRG

so, i don't think you have the same matrix as me...
what is the number of the matrix you use??

thanks!
marC:)

Re: help with the screen

Posted: Wed Jul 04, 2012 3:18 am
by bitfogav
Im sorry to say this but your images aren't great? its hard to tell where the wires go. Im pretty sure its not a problem with your matrix has ive got several XSM-D1088BRG and they work fine.

But looking at your images the best I can, looks like 1 of the data lines from the microchip to the 7442 is missing? from pin 1 of the microchip to pin 13 of the 7442?.
bb4v2.jpg
bb4v2.jpg (62.92 KiB) Viewed 43455 times

Re: help with the screen

Posted: Wed Jul 04, 2012 3:59 am
by nodoubtman
thanks! :)

i always forget this pic 1 to 7442 13..

i will try it again, and i will post a video of it

thank you again!
marC:)

Re: help with the screen

Posted: Wed Jul 04, 2012 6:33 am
by brad
unfortunately those photo's are really dark and don't really show us what we need to see. Can you turn on the flash or a get a light close to it? Also can you try and spread the wires out evenly.

We just need to be able to see where everything goes. Here is a great example:
Image

(Not that you need to label everything)

Re: help with the screen

Posted: Wed Jul 04, 2012 2:23 pm
by nodoubtman
hi!
looks like i got it finally : http://www.youtube.com/watch?v=ZCUI2qMG ... e=youtu.be

can i have the drawing for the great race?

thank you gain guys you have really help me through this! :)
marC:)
have a good night! :)

Re: help with the screen

Posted: Thu Jul 05, 2012 10:11 pm
by nodoubtman
is it OKay for the smile?

thanks!
marC:)

Re: help with the screen

Posted: Sat Jul 07, 2012 7:22 am
by brad
nodoubtman wrote:hi!
looks like i got it finally : http://www.youtube.com/watch?v=ZCUI2qMG ... e=youtu.be

can i have the drawing for the great race?

thank you gain guys you have really help me through this! :)
marC:)
have a good night! :)
Is that video supposed to be of the smiley face? Because it certainly isn't working correctly.

Unfortunately again, I can't really tell you what the problem is without seeing your circuit.
What code have you loaded onto the pic? Because if it was just the smiley face, it wouldn't be scrolling through the graphic data that slow.

Re: help with the screen

Posted: Sat Jul 14, 2012 1:39 am
by nodoubtman

Re: help with the screen

Posted: Sat Jul 14, 2012 7:39 am
by brad
Yes you've got it!

All you need to do now is decrease the delay that it draws each of the eight columns. Here is the original delay in the smiley face code:

Code: Select all

delay
	movlw d'255'				        ;	try decreasing this number and see what effect it has on the display
	movwf delay_1				        ;	the number stored in w will now be copied into our two delay variables
	movwf delay_2				        ;	the higher the number means the longer the delay time
delay_loop						;	We come back to this label when we have not yet reached zero.
	decfsz delay_1, f			        ;	decrement whatever is in delay_1 by 1 and store the answer back in delay_1
		goto delay_loop			;	if the answer is not zero, then go back to the delay_loop label. but if the
	decfsz delay_2, f			        ;	answer is zero then decrement delay_2 by one and store the answer in delay_2
		goto delay_loop			;	if the answer is not zero, then go back to delay_loop label. but if the answer
	return						;	is zero, then we have completed our delay and now we can return to our main program!
Try Changing the number 255 to something smaller - like 5 (maybe you could keep experimenting with different numbers and see what point the screen stops flickering and gives you a nive steady smiley face picture)

By the way - what was the problem in the end? was it a wiring problem or a code problem?

Re: help with the screen

Posted: Sat Jul 14, 2012 12:00 pm
by nodoubtman
it was the wiring... :PP

thank yoU!
marC:)

i have tried the scroller :
;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Draw data on matrix

; HERE IS WHERE YOU ENTER YOUR DATA TO DISPLAY ON THE 8x8 MATRIX


retlw b'00000000'
retlw b'00000000'
retlw b'00000000' ; space before we draw the data on the Matrix
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'


; one ; depending on what we have in our program counter
retlw b'00000000' ; will determine which number (or graphic) we
retlw b'00111000' ; draw on the screen
retlw b'01111000'
retlw b'00011000'
retlw b'00011000'
retlw b'00011000'
retlw b'01111110'
retlw b'01111110'

retlw b'00000000' ; space between numbers
retlw b'00000000'


; two
retlw b'00011000' ; this draws the number 2
retlw b'00111100'
retlw b'01000110'
retlw b'00001100'
retlw b'00011000'
retlw b'00110000'
retlw b'01111110'
retlw b'01111110'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; three
retlw b'00111100' ; this draws the number 3
retlw b'01111110'
retlw b'00000110'
retlw b'00111110'
retlw b'00111110'
retlw b'00000110'
retlw b'01111110'
retlw b'00111100'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; four
retlw b'01100110' ; this draws the number 4
retlw b'01100110'
retlw b'01100110'
retlw b'01111110'
retlw b'01111110'
retlw b'00000110'
retlw b'00000110'
retlw b'00000110'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; five
retlw b'01111110' ; this draws the number 5
retlw b'01111110'
retlw b'01100000'
retlw b'01111100'
retlw b'01111110'
retlw b'00000110'
retlw b'01111110'
retlw b'01111100'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; six
retlw b'00111100' ; this draws the number 6
retlw b'01111110'
retlw b'01100000'
retlw b'01111100'
retlw b'01111110'
retlw b'01100110'
retlw b'01111110'
retlw b'00111100'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; seven
retlw b'01111110' ; this draws the number 7
retlw b'01111110'
retlw b'00000110'
retlw b'00000110'
retlw b'00001100'
retlw b'00011000'
retlw b'00110000'
retlw b'01100000'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; eight
retlw b'00011000'
retlw b'00111100' ; this draws the number 8
retlw b'01100110'
retlw b'01100110'
retlw b'00111100'
retlw b'01100110'
retlw b'01100110'
retlw b'00111100'
retlw b'00011000'

retlw b'00000000' ; space between numbers
retlw b'00000000'

; nine
retlw b'00111100' ; this draws the number 9
retlw b'01111110'
retlw b'01100110'
retlw b'01111110'
retlw b'00111110'
retlw b'00000110'
retlw b'01111110'
retlw b'00111100'


;scolls off the screen
retlw b'00000000' ; space at end
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'
retlw b'00000000'


it was provided by bigof, but i don't see any numbers scrolling, thanks for all brad! :)

thanks again to you and to bigof ! :)
you are very helpful! :)
marC:)

Re: help with the screen

Posted: Sat Jul 14, 2012 12:03 pm
by nodoubtman
i would like to scroll some text like : happy birthday ... is it possible to do that with the same wiring as the brad's smile :)

you make me smile :)
ehhehe

CYa!
marC:)

Re: help with the screen

Posted: Sun Jul 15, 2012 9:47 pm
by brad
Have a look through the great race code and modify the track data to suit your text. (The great race just scrolls a table of data - so putting text in there will scroll the text)

Re: help with the screen

Posted: Tue Jul 17, 2012 11:06 pm
by nodoubtman
brad wrote:Have a look through the great race code and modify the track data to suit your text. (The great race just scrolls a table of data - so putting text in there will scroll the text)
is it possible to have a draw of the great race like bigof did for me the other day?

thanks a lot! :)
marC:)