Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 15th November 2006, 06:05 AM   #1
Arrow Pic 16f84a Rotating Led Display Circuit

I just want a program that displaying a word
when the circuit is rotating.same like propeller clock.

same this time also I used pic 16f84a.

I built the circuit and the rotating motor.circuit is ready to
use.need only the program. I wrote a simple program listed below

portB connected to leds.7 leds are connected in single column.

This is a very simple program I Wrote.In this case only the first letter
is displying well & the others hard to read.even i changed the delay.

I didn't use the call table method using RETLW...B cuz I dont know
how to do that.I Search in the web a simple program that displaying
a word all I found clocks in the web even i tried the MINIPOV.

Can anybody pls help me to do this Displaying a word using pic 16f84a..
Attached Files
File Type: txt HELLO.txt (493 Bytes, 412 views)
Gayan Soyza is offline  
Old 16th November 2006, 11:42 PM   #2
Default

you need a reference position before you display your letters because your motor rpm is not exactly the same with your software rpm that's why what you see are blurred letters
penoy_balut is offline  
Old 17th November 2006, 12:19 AM   #3
Default

As stated I would think you need an input from the propeller to your pic chip to tell you when to run LETTERH (start writing to portB). It will sync the motor with your program.

Do you have a schematic or diagram of what you are trying to do? Also, I think there is a Bob Blick or close that has one on the next from way back when.
mramos1 is offline  
Old 17th November 2006, 06:35 AM   #4
Default re Rotating LED Display pic 16f84a

Quote:
Originally Posted by penoy_balut
you need a reference position before you display your letters because your motor rpm is not exactly the same with your software rpm that's why what you see are blurred letters
Is my coding is wright? I dont have instruments to measure my motors rpm is it ok if I adjust some delay.I changed couple of delays but didn't work well..

delays i changed 0.3s,0.1s,0.009s......

How to get a reference possition???????
Gayan Soyza is offline  
Old 17th November 2006, 06:49 AM   #5
Default

Quote:
Originally Posted by mramos1
As stated I would think you need an input from the propeller to your pic chip to tell you when to run LETTERH (start writing to portB). It will sync the motor with your program.

Do you have a schematic or diagram of what you are trying to do? Also, I think there is a Bob Blick or close that has one on the next from way back when.
I want to run the program from the begining with the power supply on..
Hardware part is ok when u power it up the motor is rotating with the circuit.

circuit has 7 led's connected to portB (pic 16f84a)
same as bob blicks clock but i need to display a word not the time...."hello"
Gayan Soyza is offline  
Old 17th November 2006, 09:08 AM   #6
Default

Quote:
Originally Posted by Gayan Soyza
Is my coding is wright? I dont have instruments to measure my motors rpm is it ok if I adjust some delay.I changed couple of delays but didn't work well..

delays i changed 0.3s,0.1s,0.009s......

How to get a reference possition???????
You need to generate a sync pulse from the mechanical rotation of the propeller - an LED and phototransistor could be used?.

The original version by Bob Blick used pulses from the motor brushes.

Quote:
If you look closely at the source code, you'll see that the "dot rate" is adjusted to the speed of the motor to make the display a consistent width regardless of the motor's speed. The motor I used has brushes set 90 degrees apart, and gives two indexes each revolution.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 17th November 2006, 11:28 AM   #7
Default

Quote:
Originally Posted by Gayan Soyza
Is my coding is wright? I dont have instruments to measure my motors rpm is it ok if I adjust some delay.I changed couple of delays but didn't work well..

delays i changed 0.3s,0.1s,0.009s......

How to get a reference possition???????
its just a location in your display circumference, as Nigel said, a LED and phototransistor, when passing on a fixed reference, signals the beginning of outputting to port so your display would be consistent in its position.

in your hardware you have to add one input pin driven by phototransistor while in your code you have to test this pin before looping to display letter H

longer delay causes wider letter or even overlapping and vice versa
penoy_balut is offline  
Old 20th November 2006, 06:27 AM   #8
Default

Ya Thats Right... Now I understood how to get a Reference point.
for this I will use IR sensor & a Ir bulb.

Each time when it passes the reference point it gives a signal to the pic & program gets run.....Before it comes to the reference point again the program must be end....I hope I'm right...any way thank u guys...now I'm trying to make.
Gayan Soyza is offline  
Old 30th September 2009, 07:13 PM   #9
Default

i also want to make a rotating led display...
i hab planned to do it in a different way, i hab made a circular track with 7channel in it to get supply to the LED. i hab attached a foto of it...

I hab understood about the refrence point which we have to use.. what i dont understand is what time delay we need between the successive position of rotating LED i mean what is the appropriate speed of motor.. can any one tell me how fast moving object our brain can detect..

I hab read an article at Wikipedia.com and found that the presistance of vision is 25th of a second....
i hab planned to use AT89s51 microcontroller. M not going to place microcontroller on the rotating disc rather it i'll be placed separate.......

can any one suggest me some idea about this topic..

>>santosh gairhe
Attached Thumbnails
Pic 16f84a Rotating Led Display Circuit-091001-000605.jpg  
santosh gairhe is offline  
Reply

Tags
16f84a, circuit, display, led, pic, rotating

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 10:49 PM
Rotating Display aniket294 General Electronics Chat 2 10th October 2006 07:15 AM
Battery charger cum active circuit driver yagtoby Electronic Projects Design/Ideas/Reviews 0 27th September 2006 03:41 PM
Activating a circuit using a photocell mtrails Electronic Projects Design/Ideas/Reviews 5 10th May 2006 06:13 AM
Ultra low power switching circuit & DC to DC converter t fastenjaw Electronic Projects Design/Ideas/Reviews 15 16th November 2004 10:57 PM



All times are GMT. The time now is 10:12 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker