Pyro Propeller Clock POV

Questions and Comments on All Projects
ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Wed Oct 23, 2013 6:07 pm

Tarneem wrote:Hi

one more question

for high priority interrupt, you have assign this 0xFFE0 value for the Timer0:
WriteTimer0( 0xFFE0 );

what is the purpose of that value and do I have to change it in case of changing the frequency (I am using 20MHZ) ???
for the low priority interrupt, I have calculated the value that I need to assign for Timer0 using the same way you have calculated for 40 MHz.

Thanks in advance


Hi,

That line of code executes after the infrared led/receiver triggers interrupt that we just went over the 'home' location. So writing to the timer clears whatever value was in it previous with a very short delay for a pause, so that we can consistently begin outputting to the LEDs again at the same location with similar timing.

It's possible you could get away without using that, but I never tried.

:: EDIT ::

So you don't really need to modify it for a different clock speed, it's just a synchronizing place holder pause.

Yea, that's right. Two wires from the same RA or RC pin on the pic go to the two different IC's. This is called a data-bus. I don't remember off the top of my head which ones are connected how.
My guess is :

RC7 - H
RC6 - G
RC5 - F
RC4 - E

RA3 - D
RA2 - C
RA1 - B
RA0 - A

You can double check by tracing the wires back in the photos:


http://www.pyroelectro.com/files/prop3.jpg
http://www.pyroelectro.com/files/prop4.jpg
http://www.pyroelectro.com/files/prop6.jpg

or by looking through the code.

Tarneem
Newbie Pyro
Posts: 5
Joined: Wed Aug 21, 2013 9:20 am

Re: Pyro Propeller Clock POV

Postby Tarneem » Sat Oct 26, 2013 8:28 am

I have successfully build the circuit and burn the code

but when I run the project, the shadow or flicker was coming so the output is not really clear :(
here is a photo of what I am getting:

http://www.mediafire.com/?3bb1pxffj91gqj6
http://www.mediafire.com/?dmfdj1csm46d3p7
http://www.mediafire.com/?774z7bpocgv4cw8
my wonder is that the speed of the fan. does it fix for all 12v processor's fan that it has the same speed??
I tried to read any thing regarding its speed but that was not written

which part of my project is guilty? is it the fan or the frequencies (20MHZ)
what do you think?
Is there any way to measure the fan's time per rotation?

Tarneem
Newbie Pyro
Posts: 5
Joined: Wed Aug 21, 2013 9:20 am

Re: Pyro Propeller Clock POV

Postby Tarneem » Sun Oct 27, 2013 6:55 pm

From the videos, I notice that your fan seems to be smaller (mine is 11X11 cm)

Do you think it might be the reason?

christmaskkid
Newbie Pyro
Posts: 2
Joined: Fri Nov 15, 2013 5:39 pm

Re: Pyro Propeller Clock POV

Postby christmaskkid » Mon Nov 18, 2013 5:37 pm

ThePyroElectro wrote:Pyro Propeller Clock POV Project Write-up

The Pyro Propeller Clock POV spins so fast your eyes can't even catch up creating an awesome illusion of floating led lights in the air.



Questions & Comments?


Hi im a student at Bethlehem vo-technical school and im building the POV clock for my senior project but me and my teacher seem to be stuck on finding the right fan too use and what voltage for it. The link on your parts list page is invalid because Jameco no longer has that type of fan, and the one they gave me as a replaceable is a 5volt laptop fan. So i would greatly appreciate it if you could give me the information on the desktop fan you used. ALSO, what about the power for the fan? where is that coming from? and what did you use for it?
pictures of under the cake keeper would be awesome too!
Thank you! :D

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Tue Nov 19, 2013 4:48 pm

Tarneem wrote:From the videos, I notice that your fan seems to be smaller (mine is 11X11 cm)

Do you think it might be the reason?


Hi,

Fan size shouldn't matter as long as it is able to speed up and keep a constant RPM rate of around 3500-3700.

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Tue Nov 19, 2013 4:53 pm

christmaskkid wrote:Hi im a student at Bethlehem vo-technical school and im building the POV clock for my senior project but me and my teacher seem to be stuck on finding the right fan too use and what voltage for it. The link on your parts list page is invalid because Jameco no longer has that type of fan, and the one they gave me as a replaceable is a 5volt laptop fan. So i would greatly appreciate it if you could give me the information on the desktop fan you used. ALSO, what about the power for the fan? where is that coming from? and what did you use for it?
pictures of under the cake keeper would be awesome too!
Thank you! :D


Hello,

You definitely need a desktop fan. Look for one that does 3600 RPM, or very close to that. The key is to make sure you can reach 60 rotations per second, which is 3600 RPM. Most standard desktop fans do this. I'll try to find a link for you, but pretty much any generic fan from amazon.com would do the trick.

The power for the fan was a seperate +12v supply which also powered the infrared LED. You can see this in the top middle part of the schematic:
http://www.pyroelectro.com/projects/pyro_propeller_clock_pov/schematic.html

The project has been disassembled a little bit from when I made it, I'll try to get a photo of underneath later today.

christmaskkid
Newbie Pyro
Posts: 2
Joined: Fri Nov 15, 2013 5:39 pm

Re: Pyro Propeller Clock POV

Postby christmaskkid » Mon Nov 25, 2013 7:10 pm

Hello,

You definitely need a desktop fan. Look for one that does 3600 RPM, or very close to that. The key is to make sure you can reach 60 rotations per second, which is 3600 RPM. Most standard desktop fans do this. I'll try to find a link for you, but pretty much any generic fan from amazon.com would do the trick.

The power for the fan was a seperate +12v supply which also powered the infrared LED. You can see this in the top middle part of the schematic:
http://www.pyroelectro.com/projects/pyr ... matic.html

The project has been disassembled a little bit from when I made it, I'll try to get a photo of underneath later today.


Thank you for replying to me! Me and my instructor have figured out the fan issue, (it does say a 3800rpm fan in the parts list but we can order a 3600 fan if thats the case) and the 12 volt connection was also resolved. It would be very helpful if a picture of the 12 volt connection was posted because i would need to know weather to connect all the off board parts(switch,fan,etc.) to another smaller protoboard under the cake keeper. but if not, we may just be able to work it out. But my finale obstacle to overcome is the programming part. now i have MPLAB IDE and it is quite difficult to understand :| im just confused on making the clock program for the PIC.
Thank you so much for responding! your help is greatly appreciated! :)

saransound
Newbie Pyro
Posts: 11
Joined: Thu Aug 29, 2013 6:56 am

Re: Pyro Propeller Clock POV

Postby saransound » Thu Dec 26, 2013 11:05 am

Hello , I want to know if the LED's have to be connected in an order to latch. The circuit shows 16 LEDs but i have used 13 LEDs so which latch do i fill up first. And how to wire the remaining 5 leds to the other latch.
Attachments
schematic_large.png
schematic_large.png (34.5 KiB) Viewed 11691 times

saransound
Newbie Pyro
Posts: 11
Joined: Thu Aug 29, 2013 6:56 am

Re: Pyro Propeller Clock POV

Postby saransound » Sun Dec 29, 2013 12:37 pm

I have followed all the steps but after everything the project isn't working please help ???

chiragjn
Newbie Pyro
Posts: 1
Joined: Sun Jan 12, 2014 3:14 pm

Re: Pyro Propeller Clock POV

Postby chiragjn » Sun Jan 12, 2014 3:51 pm

Bro please understand my urgency
i have only two days to complete this
i am a rookie,please answer me

1.Are there two latches?
parts list show only one

2.is the code for 13 Led's ?

3.Can you please post a schematic of latches connection
for 373 (i am confused as where to connect what)Schematic says A,B,C while 373 latch explaination diagram shows different namings,Also the pins are numbered in a different pattern rather than usual IC numbering system,Can you post Schematic of latch connections pin number wise ..confused...

4. In schematic where is phototransistor base connected ?

5. the +5v reg circuit(leftmost in schematic) is only connected to main pic circuit through 5v supply?
And there is extra supply to that circuit shown in schematic?what is voltage for that?

6.can i solder all connections?

please answer these Asap..i am extremely thankful in advanced
I wish there was step by step connection tutorial too,

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Sat Feb 15, 2014 6:06 pm

chiragjn wrote:Bro please understand my urgency
i have only two days to complete this
i am a rookie,please answer me

1.Are there two latches?
parts list show only one

2.is the code for 13 Led's ?

3.Can you please post a schematic of latches connection
for 373 (i am confused as where to connect what)Schematic says A,B,C while 373 latch explaination diagram shows different namings,Also the pins are numbered in a different pattern rather than usual IC numbering system,Can you post Schematic of latch connections pin number wise ..confused...

4. In schematic where is phototransistor base connected ?

5. the +5v reg circuit(leftmost in schematic) is only connected to main pic circuit through 5v supply?
And there is extra supply to that circuit shown in schematic?what is voltage for that?

6.can i solder all connections?

please answer these Asap..i am extremely thankful in advanced
I wish there was step by step connection tutorial too,


I think I e-mailed you the answers to these questions already. Still need help?

RyanV
Newbie Pyro
Posts: 3
Joined: Mon Feb 24, 2014 5:52 pm

Re: Pyro Propeller Clock POV

Postby RyanV » Mon Feb 24, 2014 5:58 pm

I had emailed about some assistance with code. I will include the schematic for the pic I used and the code I modified. Unfortunately, nothing is happening.


CODE:

/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** Test.c
**
** Description:
**
** This is based off of the Pyro Propeller Clock POV but is modified to
** use a PIC18F14K50 instead of a PIC18F252. It still detects the home
** position via a high priority interrupt on IOCB4, falling edge and
** begins the output to PORTC using a set_leds function everytime a
** timer0 low priority interrupt is triggered.
**
** Original Author: Chris @ PyroElectro.com
** Date: APR. 14, 2011
** Revision Author: Ryan Vibert
** Revision Date: FEB. 02, 2014
******************************/

#include <p18f14k50.h>
#include <delays.h>
#include <timers.h>
#include <capture.h>
#include <stdlib.h>

void InterruptHandlerLow (void);
void InterruptHandlerHigh (void);

void set_leds(unsigned long int);

#define LED_LATCH_H PORTAbits.RA0
#define LED_LATCH_L PORTAbits.RA1

unsigned long int led_count = 12;
unsigned int int_count=0;
unsigned int long led_all = 0x0000;

unsigned int add_dir = 0;
unsigned int add_cnt = 0;

unsigned int long sin_array[]={
0b1111111111111110,
0b1111111111111101,
0b1111111111111011,
0b1111111111110111,
0b1111111111101111,
0b1111111111011111,
0b1111111110111111,
0b1111111101111111,
0b1111111011111111,
0b1111110111111111,
0b1111101111111111,
0b1111011111111111,
0b1110111111111111,
0b1101111111111111,
0b1011111111111111,
0b0111111111111111
};

void main(void)
{

unsigned long int i=0;
int test1=0;

//PORTA All Digital Outputs
ADCON1 = 0b00000111;

//Setup Output/Inputs
TRISA = 0x00; //Output
TRISBbits.RB4=1; //Input
TRISC = 0x00; //Output

PORTA = 0x00;
PORTB = 0x00;
PORTC = 0x00;


//Setup Interrupts
RCON = 0b10000000; //Enable Priority Interrupts
IOCB = 0b00010000; //Enable RB4 as an Interrupt
PIE1 = 0b00000000; //Disable Peripherial Interrupt

//TMR0 Interrupt Low-Priority & RAB4 to High-Priority
INTCONbits.RABIE = 1;
INTCON2bits.RABIP = 1;
INTCON2bits.TMR0IP = 0;

//Clear LED Display
set_leds(0x0000);

//OpenTimer0( TIMER_INT_ON & T0_16BIT & T0_SOURCE_INT & T0_PS_1_1 );
//WriteTimer0( 0xFF94 ); //0x3CAF );

while(1)
{
//Delay10KTCYx(20);
//LED Flash Test Cycle 0x0000 to 0xFFFF
set_leds(test1);
test1++;

}

}

void set_leds(unsigned long int leds)
{

PORTC = leds & 0xFF;

LED_LATCH_L = 1;
LED_LATCH_L = 0;

PORTC = (leds>>8) & 0xFF;

LED_LATCH_H = 1;
LED_LATCH_H = 0;

}

//INTERRUPT CONTROL
#pragma code InterruptVectorHigh = 0x08 //interrupt pointer address (0x08 low priority)
void InterruptVectorHigh (void)
{
_asm //assembly code starts
goto InterruptHandlerHigh //interrupt control
_endasm //assembly code ends
}
#pragma code
#pragma interrupt InterruptHandlerHigh //end interrupt control

//INTERRUPT CONTROL
#pragma code InterruptVectorLow = 0x18 //interrupt pointer address (0x18 low priority)
void InterruptVectorLow (void)
{
_asm //assembly code starts
goto InterruptHandlerLow //interrupt control
_endasm //assembly code ends
}
#pragma code
#pragma interrupt InterruptHandlerLow //end interrupt control



void InterruptHandlerLow()
{
if(INTCONbits.TMR0IF) //check if TMR0 interrupt flag is set
{
WriteTimer0( 0xFE00 ); //Reset Timer0 for 20mS Delay
if(led_count > 0)
{
if(add_cnt > 12)
add_dir = 0;
else if(add_cnt < 1)
add_dir = 1;
if(add_dir == 1)
add_cnt++;
else
add_cnt--;

led_count--;
set_leds(sin_array[add_cnt]);
}
else
{
set_leds(0xFFFF);
}
INTCONbits.TMR0IF = 0; //Clear TMR0 Flag
}

INTCONbits.GIEL = 1; //Re-enable all interrupts
}

void InterruptHandlerHigh()
{
if(INTCONbits.RABIF) //check if RABIF interrupt flag is set
{
led_count = 180;
WriteTimer0( 0xFFE0 );
INTCONbits.TMR0IF = 0; //Clear TMR0 Flag
INTCONbits.RABIF = 0; //Clear RB4 Flag

}
INTCONbits.GIEH = 1;
}
Attachments
Schematic.PNG
Schematic.PNG (48.77 KiB) Viewed 11548 times

Deepak21
Newbie Pyro
Posts: 7
Joined: Sun Mar 23, 2014 7:39 pm

Re: Pyro Propeller Clock POV

Postby Deepak21 » Sun Mar 23, 2014 7:47 pm

hi, i have done all the all the connections as per the schematics and build the hex file and downloaded it in ic but the problem is that i am not getting any output, nor any leds r glowing...
In the video u showed the circuits works only after it rotates than only led glows..
can u tel me how can i know if ma program is downloaded in ic and working..
n 1 more question how can check if my hardware dont have any problem..
plz help

ThePyroElectro
PyroElectro Admin
Posts: 1181
Joined: Mon Nov 12, 2007 9:24 pm
Location: Earth
Contact:

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Sun Mar 23, 2014 8:41 pm

Deepak21 wrote:hi, i have done all the all the connections as per the schematics and build the hex file and downloaded it in ic but the problem is that i am not getting any output, nor any leds r glowing...
In the video u showed the circuits works only after it rotates than only led glows..
can u tel me how can i know if ma program is downloaded in ic and working..
n 1 more question how can check if my hardware dont have any problem..
plz help


Hello,

Make a simple program to toggle one of the output bits on PORTA and then use an LED or digital-multimeter to test if that bit toggles. If this happens you know your program was downloaded to the PIC.

Similarly, you can use an oscilloscope to test output pins on the PIC to make sure they are toggling as they should be with the real POV program.

The LEDs will only toggle for a short time because the IR emitter/detector reset the timer that is used to tell which configuration the LEDs should output and when.

Deepak21
Newbie Pyro
Posts: 7
Joined: Sun Mar 23, 2014 7:39 pm

Re: Pyro Propeller Clock POV

Postby Deepak21 » Mon Mar 24, 2014 3:33 am

hey,
I am unable to find any output in the circuit..
what maybe the reason, have done hardware as per the schematic and compiled the c file into hex n via pickit2 i downloaded program into IC..But no output
n 1 more question i have use PIC 18F258 IC instead of PIC18F252.
does that program go with 258??
plz do help urgent needed
I need to submit my project day after


Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests