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 » Mon Mar 24, 2014 3:33 pm

Deepak21 wrote: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


Hi,

Please follow my advice in the previous post to debug any hardware issues, if your simple program does not work.

I took a quick look at 18F258 vs 18F252, it looks like it should work. , however I cannot verify 100% because I do not have a 18F258.

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

Re: Pyro Propeller Clock POV

Postby Deepak21 » Mon Mar 24, 2014 5:45 pm

#include <p18f452.h> //originally created for 18f4455
#include <timers.h> // sorry I ran out of 18f452's for testing!

void main(void)
{

TRISB = 0x00;
PORTB = 0x00;

OpenTimer0(TIMER_INT_OFF & T0_16BIT & T0_SOURCE_INT & T0_PS_1_1);
OpenTimer1(TIMER_INT_OFF & T1_16BIT_RW & T1_SOURCE_INT & T1_OSC1EN_OFF & T1_SYNC_EXT_OFF);
OpenTimer2(TIMER_INT_OFF & T2_PS_1_16 & T2_POST_1_1);
OpenTimer3(TIMER_INT_OFF & T3_8BIT_RW & T3_SOURCE_INT & T3_PS_1_1 & T3_OSC1EN_OFF & T3_SYNC_EXT_OFF);

WriteTimer0(0x0000);
WriteTimer1(0x0000);
WriteTimer2(0x00);
WriteTimer3(0x00);

while(1){

if(ReadTimer0() >= 0xFFF0){
PORTBbits.RB1 = ~PORTBbits.RB1;
WriteTimer0(0x0000);
}

if(ReadTimer1() >= 0xFFF0){
PORTBbits.RB3 = ~PORTBbits.RB3;
WriteTimer1(0x0000);
}

if(ReadTimer2() >= 0xF0){
PORTBbits.RB5 = ~PORTBbits.RB5;
WriteTimer2(0x00);
}

if(ReadTimer3() >= 0xF0){
PORTBbits.RB7 = ~PORTBbits.RB7;
WriteTimer3(0x00);
}


}

}



IN THE ABOVE CODING WHILE BUILD ITS SHOWING ME
Error [1105] symbol 'T3_OSC1EN_OFF' has not been defined
how shall i define it

nikhil04.arora
Newbie Pyro
Posts: 5
Joined: Tue Mar 25, 2014 8:29 pm

Re: Pyro Propeller Clock POV

Postby nikhil04.arora » Tue Mar 25, 2014 8:59 pm

hello
I have made an exact replica of the project given by you.
The hardware is fully ready.
I am finding very difficulties in generating the hex files for the same.
Can you please mail me the hex files so that i can directly load them in the PIC18F252.
Please reply asap.
I have to submit it as my BE project.
Thank you.

software using-MPLAB X IDEv2.05
compiler- C18
Tool-PICkit2

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

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Tue Mar 25, 2014 9:16 pm

Hi,

I no longer have the hex file for this project as I built it many years ago.

Sorry.

nikhil04.arora
Newbie Pyro
Posts: 5
Joined: Tue Mar 25, 2014 8:29 pm

Re: Pyro Propeller Clock POV

Postby nikhil04.arora » Tue Mar 25, 2014 9:48 pm

Thank you so much.The problem is solved. There was some library issue.
I rectified it. :)

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

Re: Pyro Propeller Clock POV

Postby Deepak21 » Wed Mar 26, 2014 3:51 pm

hey nikhil did ur project was successful
plz need help

nikhil04.arora
Newbie Pyro
Posts: 5
Joined: Tue Mar 25, 2014 8:29 pm

Re: Pyro Propeller Clock POV

Postby nikhil04.arora » Mon Mar 31, 2014 2:23 pm

hey Deepak
no its not working :(

nikhil04.arora
Newbie Pyro
Posts: 5
Joined: Tue Mar 25, 2014 8:29 pm

Re: Pyro Propeller Clock POV

Postby nikhil04.arora » Mon Mar 31, 2014 2:28 pm

Hello again
The voltage supplies are proper everywhere proper power is given.
The led's are glowing properly. But there is no proper display.
Instead of a digital clock its displaying only concentric circles.
Can you tell me what might be the problem.
Thank you.

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

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Mon Mar 31, 2014 4:47 pm

nikhil04.arora wrote:Hello again
The voltage supplies are proper everywhere proper power is given.
The led's are glowing properly. But there is no proper display.
Instead of a digital clock its displaying only concentric circles.
Can you tell me what might be the problem.
Thank you.


Hello,

It sounds like the LED drivers aren't changing. Perhaps the timing is off for the timers to tell the LED drivers when to switch to the next values or perhaps the IR interrupt isn't working to tell the system to reset.

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

Re: Pyro Propeller Clock POV

Postby Deepak21 » Tue Apr 01, 2014 2:02 am

hey,
nikhil can u give me ur contact num i wajnt some help regarding this project..
admin i tried each part out but m unable to find any output plz plz guide me where muct have went wrong

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

Re: Pyro Propeller Clock POV

Postby Deepak21 » Tue Apr 01, 2014 2:05 am

hey admin,
i made build the circuit as per the diagram and downloaded the hex file in my ic but m nt getting any output nor single led is glowing where muct me the fault plz help asal

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

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Tue Apr 01, 2014 8:27 pm

Deepak21 wrote:hey admin,
i made build the circuit as per the diagram and downloaded the hex file in my ic but m nt getting any output nor single led is glowing where muct me the fault plz help asal


Please follow the advice in my previous post to debug the problem you are having.

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 » Thu Apr 03, 2014 2:13 am

hi again,
I have check the features of pic 18f252 it consists of 2 pwm modules and the IC which i am using pic 18f258 it consists of 1pwm module does it affect the output...??
plz do help

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

Re: Pyro Propeller Clock POV

Postby ThePyroElectro » Thu Apr 03, 2014 5:39 pm

Deepak21 wrote:hi again,
I have check the features of pic 18f252 it consists of 2 pwm modules and the IC which i am using pic 18f258 it consists of 1pwm module does it affect the output...??
plz do help


Hello,

I just looked at my source code and the pwm modules aren't used, only the timer modules are used.

So 1 or 2 pwm modules shouldn't matter for you.

lukeee
Newbie Pyro
Posts: 1
Joined: Tue Apr 08, 2014 9:30 pm

Re: Pyro Propeller Clock POV

Postby lukeee » Wed Apr 09, 2014 6:56 pm

Hi, I'm working on a project in college and I've based it on your Propeller clock. Which is great btw, its the only one I've found that is detailed and guided so well. :)
I'm making a PCB instead of wire-wrapping and I've come across a couple of problems..

I couldn't work out from your pictures or schematic which 74ls373 held the LEDs farthest away from the centre. is it the one connected to RB5 or RB4? I really need to know this because I'm taking away the last 3 LEDs as you did, and I don't want to remove the ones of the wrong 74ls373. The picture should explain what I'm on about. If you could get back to me that would be great.
Attachments
schematic overview.png
schematic overview.png (151.63 KiB) Viewed 11963 times


Return to “Projects”

Who is online

Users browsing this forum: No registered users and 6 guests