Hello Guys,
How to display speed i mean of the sensor is giving pulse per km per min and i want in km i will simply divide it by 1000.
after that display is this right or using capture ?
Hello,
There is a pulse which rise after 10 meters in motor via sensor of 24V etc
so, I have to count the pulse and convert it in km and after that it is to be displayed in display per min km!
Hello,
There is a pulse which rise after 10 meters in motor via sensor of 24V etc
so, I have to count the pulse and convert it in km and after that it is to be displayed in display per min km!
Presumably, if you get a pulse every time the motor moves 10 meters, then the vehicle has also moved 10 meters. Why do you propose dividing by 1000 to get kilometers? Dividing by 100 will give kilometers, plus or minus, but that won't give you your velocity unless you also measure the lapsed time.
Sorry,
Actually i want a led display which will show in 4 digit the speed of machine.
using a proximity sensor of 24V regularly after 10 meters completion of rotating wires on it.
it is converted to km per min speed real time.
using pic16f877 hi tech c compilers
Sorry,
Actually i want a led display which will show in 4 digit the speed of machine.
using a proximity sensor of 24V regularly after 10 meters completion of rotating wires on it.
it is converted to km per min speed real time.
using pic16f877 hi tech c compilers
Unless the speeds being measured are very high it is not practical to count pulses in a specific time period. You will have to measure the time between pulses then divide into a constant to convert the the time period to speed. So IF the last information is correct then if you measure the time between pulses (Using the units of time in seconds) then the speed (Km per minute) will be 0.6 divided by the time between pulses
(1 pulse per second = 10 metres per second = 600 metres per minute = 0.6 Km per minute)
I am not clever enough to write the code for you in "C". I work in assembler.
In my payout meters I use a constant to determine speed and payout... My systems have 16 pulses per revolution and each cable has different rollers... most are around 4 revs per metre so I count 64 pulses per metre.
The constant is changeable in a menu so I can cater for several sizes...
I have used this as a basis for some low RPM projects, It can be readily adapted for extended display or rate, also can be adapted to CCP instead of simple TMR1 capture.
I have the code for the one shown but it is in Assembly as this is also what I work in.
Max.
If you are talking about Max's schematic then it is the shorthand method of drawing the lines that is confusing you. A line with a / across it and a number means there are that number of conductors. For example from RB0:RB6 is actually 7 wires.