Page 3 of 6

Re: Pyro Propeller Clock POV

Posted: Thu Feb 07, 2013 5:24 am
by ThePyroElectro
r_d_m wrote:Hi,

Can i use the 74HC373 chip instead 74LS373 without rewrite the code?

Another question...

In your schematic picture, you have 16 leds. But, in project, you only use 13 leds.
The three remaining leds that you are removed is from the closest point of the center fan or the farthest point of the fan?

Thanks for the help

r_d_m


Hello,

74HC373 will work without any changes.

The 3 LEDs removed were from the farthest point of the center of the fan.

Good luck!

Re: Pyro Propeller Clock POV

Posted: Thu Feb 21, 2013 9:07 pm
by sirfreed
Hi Pyro! This is an awesome project but I have few problem...I tried to compile your software with mplab xc8 but it doesn't work, I have this error: "unknow pragma" in the interrupt control...where is the problem? Thanks!

p.s. I use pic18f2520, but it's almost the same right?
p.p.s. sorry for my bad english :P

Re: Pyro Propeller Clock POV

Posted: Sun Feb 24, 2013 7:47 pm
by ThePyroElectro
sirfreed wrote:Hi Pyro! This is an awesome project but I have few problem...I tried to compile your software with mplab xc8 but it doesn't work, I have this error: "unknow pragma" in the interrupt control...where is the problem? Thanks!

p.s. I use pic18f2520, but it's almost the same right?
p.p.s. sorry for my bad english :P


Hello sirfreed,

The firmware for this project was written using the older C18 compiler. I don't believe it will work with the brand-new XC8 compiler.

C18 can still be downloaded and used with MPLABX:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014

Re: Pyro Propeller Clock POV

Posted: Wed Apr 10, 2013 10:11 am
by sirfreed
Ok thanks I solved, but in the datasheet of the pic, if I want to have an oscillation of 40MHz, I need to use a crystal with 10 MHz(with PLL).. Why you use a 40MHz crystal?

Re: Pyro Propeller Clock POV

Posted: Wed Apr 10, 2013 1:50 pm
by ThePyroElectro
sirfreed wrote:Ok thanks I solved, but in the datasheet of the pic, if I want to have an oscillation of 40MHz, I need to use a crystal with 10 MHz(with PLL).. Why you use a 40MHz crystal?


Glad to hear its solved!

:lol: you have to choose a frequency, that's the crystal that I had nearby to use ^_^. Any frequency works but you need to redo the timing in the code so you'd have to do a little math. 40 MHz is also the maximum speed of the PIC I used, the faster it runs, the better!

Re: Pyro Propeller Clock POV

Posted: Wed Aug 21, 2013 9:25 am
by Tarneem
Hi

First of all I would like to say thanks a lot for your effort. It is really clear and well organized !! God bless you

I need the code for the digital clock, would you please upload it??

Also, the libraries that you are using like: delays.h, timers.h, capture.h and stdlib.h. Are they exist in the MPLAB and C18 compiler? or shall I download them??

Regars
Tarneem

Pyro Propeller Clock POV

Posted: Thu Aug 29, 2013 7:01 am
by saransound
Hi,

I ordered all the parts as given in the parts list. I noticed you used 2 resistors in the pictures and also 2 different 10 pin sockets apart from the 30-pin socket. So can you please tell me what are those resistors so I can purchase them and where are they used. Also you have mentioned only 1x74LS373 whereas you used 2 ??\

Thank You,
Saran

Re: Pyro Propeller Clock POV

Posted: Thu Aug 29, 2013 7:08 am
by saransound
Hi,
1 more question, In the schematic what is the arrow after the leds mentioning +5v

Thank You.

Re: Pyro Propeller Clock POV

Posted: Sat Sep 28, 2013 10:32 pm
by KrX
hi

i have some questions about your tutorial but because this is my first time doing something like this some questions will be rubbish:

---------------------------------------------

like here: http://imageshack.us/photo/my-images/716/4hiq.png/

i dont understand how it is connected to the other parts

----------------------------------------------
this: http://imageshack.us/photo/my-images/31/v4dr.png/

should be 2 resistors 10k right? they arent listed on the material list
----------------------------------------------

is this: http://imageshack.us/photo/my-images/547/8l0d.png/

a resistor too? if yes its a 47 ohm ?

----------------------------------------------

what is this: http://imageshack.us/photo/my-images/202/s5vm.jpg/

and where is it connected?

----------------------------------------------

and last. do you still own your clock? is it possible to do a good close picture of the bottom of it? so i could see how you wired all the things.

i really hope you can help me. i know myself that this project is maybe not for beginners but i did some times ago a really good led cube (4x4x4) and i am understanding things fast.


btw sorry if my english isnt so good.

so far

KrX

Re: Pyro Propeller Clock POV

Posted: Fri Oct 04, 2013 4:38 am
by ThePyroElectro
KrX wrote:[1]
---------------------------------------------

like here: http://imageshack.us/photo/my-images/716/4hiq.png/

i dont understand how it is connected to the other parts

[2]
----------------------------------------------
this: imageshack.us/photo/my-images/31/v4dr.png/

should be 2 resistors 10k right? they arent listed on the material list

[3]
----------------------------------------------

is this: imageshack.us/photo/my-images/547/8l0d.png/

a resistor too? if yes its a 47 ohm ?

[4]
----------------------------------------------

what is this: imageshack.us/photo/my-images/202/s5vm.jpg/

and where is it connected?

----------------------------------------------

[5]
and last. do you still own your clock? is it possible to do a good close picture of the bottom of it? so i could see how you wired all the things.


[1]

The power supply connects everywhere in the circuit, because of that we can't easily draw the entire circuit, instead we use the triangle and +5v to denate where else in the circuit the +5v power is connected. Similarly, the GND is connected to the 3 lines which represents ground. Everywhere in the circuit that a ground connecting is necessary you'll see that -|l symbol.

[2]

Yes, those are 10kΩ pull up resistors.

[3]

47Ω current limiting resistor. This resistor may need to be larger or smaller, depending upon the max power of the IR Emitter that you are using. Too large of a resistor and the emitter may not be powerful enough, too small of a resistor and you might burn out the IR LED by letting too much current flow through it.

[4]

That's not used in the project as I documented it. It was used for a remote control that I added later on to the project.

[5]

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

Good luck!

Re: Pyro Propeller Clock POV

Posted: Fri Oct 04, 2013 12:48 pm
by KrX
[2]

Yes, those are 10kΩ pull up resistors.

[3]

47Ω current limiting resistor. This resistor may need to be larger or smaller, depending upon the max power of the IR Emitter that you are using. Too large of a resistor and the emitter may not be powerful enough, too small of a resistor and you might burn out the IR LED by letting too much current flow through it.


questions:

[2] is a pull up resistor a specal resistor? if yes is it possible to post a link to one?

[3] i bought this one (german website): http://www.conrad.de/ce/de/product/1845 ... nge-950-nm

Tecnical PDF: http://www.produktinfo.conrad.com/daten ... _DIODE.pdf

Typ TSUS 5202 (CQW 13)
Wellen-Länge 950 nm
Abstrahlwinkel ±15 °
Ie typ. 30 mW/sr
IF 150 mA
UF typ. 1.3 V
Abm. (Ø) 5 mm
Gehäuse 5 mm

on the internet i found some calculations to get the right resistor:

5V - 1,3V =3,7V
3,7Vx50mA =185 Ohm !!


so if the power is: 5v
my IR is: UF typ. 1.3 V
and : IF 150 mA

it should be :

5V - 1,3V =3,7V
3,7V x 150mA = 555 Ohm ????

i think its a bit high or not?

sorry again for such questions but linke i said im just a beginner...

Re: Pyro Propeller Clock POV

Posted: Fri Oct 04, 2013 5:47 pm
by ThePyroElectro
Hello,

[2]
10kΩ pull up resistors are not special. 'Pull-up' or 'Pull-down' tells you what the resistor is doing. For example: The 10kΩ resistor connecting to the PIC microcontroller is pulling up the voltage to that pin on the pic microcontroller to +5v since nothing else connects to it.

[3]

Looks like the same IR led I used...

5V - 1,3V = 3,7V

(V = I * R => R = V / I)

3,7V / 150mA = 24.6Ω

That's the minimum resistor you could use. This website ( http://ledcalc.com/ ) agrees, and gives some other useful information like the "Power dissipated by the Resistor" 507mW. This means if you use a 1/4 Watt resistor, which are the standard type, it will burn up (1/2 Watt or 1 Watt would be fine). However, because of that I bumped it up to 47Ω

3,7V / 47Ω = 79mA

The IR emitter won't run at full blast which limits your range a little bit, but it worked for me.


~Grüße~

Re: Pyro Propeller Clock POV

Posted: Fri Oct 04, 2013 11:40 pm
by KrX
really big THANKS

i will try to get that all done tomorrow. but sadly i need to wait for my PIC starter kit because of delivery delay till the end of october...

but one last question. is there anywhere the source code of your project available?

Re: Pyro Propeller Clock POV

Posted: Sun Oct 13, 2013 3:33 pm
by Tarneem
hi

I have one question regarding the connection
for the schematic of the circuit, you are connecting A0 -A3 to pins 3,4,7,8
is it like:
A0 connected to8
A1 to 7
A2 to 4
A3 to 3
??
also for Port C
are they connected to the same order like Port A ??
Also, are the same pins that are coming from the PIC are connected to both latches?
meaning I will take two wires from single pin (for example A0) and connected them to first and the second latche? (example pin 8 of both latches).

Best Regards
Tarneem

Re: Pyro Propeller Clock POV

Posted: Mon Oct 21, 2013 8:22 am
by Tarneem
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