7 specific volatges to to 1,n,2,3,4,5,6 numbers in Alpha-num

Anyone know what the code would look like for the 873A?.

I should be able to wire the output voltage from the sensor to the PIC,
and the outputs with resistors to the diplay, but what does the code
look like internally?
 
Also if you look at the following link, do I assume that the PIC is
already programmed? And will an 873A work in place of the 873?

http://www.sportdevices.com/gearindicator/schematics.htm
 
b.clarke@persona.ca wrote:
Also if you look at the following link, do I assume that the PIC is
already programmed? And will an 873A work in place of the 873?

http://www.sportdevices.com/gearindicator/schematics.htm
Yes, they are selling a kit with a pre-programmed PIC. Obviously if you want
to use your own PIC you'll have to write the code yourself. There are many
approaches to coding PICs - I'd suggest you do a Google search on PIC
programming.

As someone else suggested, you should consider using a PICAXE chip as they
are much easier to code and get started with.
 
Going to order the PICAXE, but do I need the 18, 18X or the 18A.

Also can I feed it the voltage right from the sensor output?

Or do I have to do something special to it so it can read acurrately
and do the approriate action.

Who ever said that the PICAXE is easy to learn is right. Fairly basic
programming and compiler that come with it are good to.
 
b.clarke@persona.ca wrote:
What I am attempting is to take 7 specific voltages, and display
certain numbers for these specific voltages on an alpha-numeric
display.

What I currently have is a resistor ladder that breaks up the voltage.
The resistors form a ladder that breaks up the 5v from a voltage
regulator into reference signals to determine at what voltages an
LM339N will use to ground each corresponding LED. It use 1% resistors
to make sure I get exact reference voltages because in the higher gears
the signal is very close and there is not much gap between voltages.
The output voltages from the sensor are as follows
1st gear = 1.782v
2nd gear = 2.242v
3rd gear = 2.960v
4th gear = 3.630v
5th gear = 4.310v
6th gear = 4.660v
Neutral = 5.000v
The comparators in this circuit will turn on each LED as follows:
1st LED = Anything over 1.022v
2nd LED = Anything over 2.043v
3rd LED = Anything over 2.660v
4th LED = Anything over 3.356v
5th LED = Anything over 4.052v
6th LED = Anything over 4.526v

I now want to take thes voltages and convert them to show the proper
gear on an alpha-numeric display.

How can I turn what I have working in to alpha numeric?

Or, Do I have to start a whole new circuit. Something that takes the
voltage and turns it into a digital signal and then sends to an A/N LED
display.
Here is something that might set you going in the right direction if
you decide to use a pic.
http://homepages.kcbbs.gen.nz/moby/atod.asm
this particular widget is a flying spot VU meter using 12 LEDs across 4
port pins of
an 8 pin pic and the onboard a to d converter, but by rejigging the
breakpoints to your voltages (V/5*256) and using different bit patterns
on 7 output lines of a 14 pin pic the job would be done. Oh yes you can
get plenty bright enough 7 seg displays to be daylight readable...or
you could go retro and use a numitron (but you would need something
like a ULN2003 as the little pic doesn't have enough output grunt).
M
 

Welcome to EDABoard.com

Sponsor

Back
Top