I did this in 3 days staring for zero.
I just saw the pictures of this toy at 'hackaday page' and i decided to do one too.
Now I know this is working, I´ll reduce the size for about 25% and use led´s more powerful ( I´m thinking use blue leds)
Powered by a pic16f84A (just 4 a little while) at 4Mhz
(the pictures I taked moving the camera, not the POV, but the inverse works too :p )
More pictures, take a look..
http://www.maxtour.com.br/pics/pov-01.jpg
http://www.maxtour.com.br/pics/pov-03.jpg
http://www.maxtour.com.br/pics/pov-04.jpg
http://www.maxtour.com.br/pics/pov-06.jpg
[forgive-me, my english is almost poor]
My first prototype of a POV
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- fr3d-
- Posts: 9
- Joined: Tue Feb 21, 2006 4:14 pm
I need some light here...
I´m using this code to play my Pov
...
;tempo = time -> time function
portab MACRO argumento
movlw argumento
movwf portb
endm
X Macro
portab b'11100011'
call tempo
portab b'00010100'
call tempo
portab b'00001000'
call tempo
portab b'00010100'
call tempo
portab b'11100011'
call tempo
endm
Y Macro
portab b'00000011'
call tempo
portab b'00000100'
call tempo
portab b'11111000'
call tempo
portab b'00000100'
call tempo
portab b'00000011'
call tempo
endm
...
Main
X
Y
end
But in minipov, I found this
HEART
addwf PCL
retlw B'00000000';
retlw B'00000000';
retlw B'11111111';
retlw B'10000001';
retlw B'10000001';
retlw B'10000001';
retlw B'11111111';
retlw B'00000000';
retlw B'00000000';
What´s PCL ?
How the retlw will outputs in portb ?
My way spend much more memory, right ?
I´m using this code to play my Pov
...
;tempo = time -> time function
portab MACRO argumento
movlw argumento
movwf portb
endm
X Macro
portab b'11100011'
call tempo
portab b'00010100'
call tempo
portab b'00001000'
call tempo
portab b'00010100'
call tempo
portab b'11100011'
call tempo
endm
Y Macro
portab b'00000011'
call tempo
portab b'00000100'
call tempo
portab b'11111000'
call tempo
portab b'00000100'
call tempo
portab b'00000011'
call tempo
endm
...
Main
X
Y
end
But in minipov, I found this
HEART
addwf PCL
retlw B'00000000';
retlw B'00000000';
retlw B'11111111';
retlw B'10000001';
retlw B'10000001';
retlw B'10000001';
retlw B'11111111';
retlw B'00000000';
retlw B'00000000';
What´s PCL ?
How the retlw will outputs in portb ?
My way spend much more memory, right ?
-
- Posts: 7
- Joined: Thu Feb 23, 2006 1:16 pm
ADDWF PCL
PCL = Program Counter Location
Used to access tables of data stored in the PIC memory... I beleave you should be able to store the data for a "heart image" and return it with...
ADDWF PCL
RETLW 'Heart' ; don't know if you can use a string or not
RETLW 0
Don't quote me on any of this I'm just learning myself.
Used to access tables of data stored in the PIC memory... I beleave you should be able to store the data for a "heart image" and return it with...
ADDWF PCL
RETLW 'Heart' ; don't know if you can use a string or not
RETLW 0
Don't quote me on any of this I'm just learning myself.
Please be positive and constructive with your questions and comments.