- This topic has 2 replies, 2 voices, and was last updated 13 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › How to generate output while input is from 3.8khz to 4.1khz
Hello,
I am doing a project for which i need a help,
Object:
to generate an o/p at any pin when an rotating metal object is sensed by proximity at a speed/frequency between 3.8khz to 4.1khz, below 3.8khz should give 0V and above 4.1khz should give constant 5Vdc.
my ideas:
1. use counter to count pulses but how to calculate the frequency ???
2. use ADC then how to read between the given ranges???
Please share your idea or if you can kindly share the link or coding as soon as possible
Regards,
Umair
can you describe your project in detail. i didnt get your objective….
Situation:
A roller in textile machine is rotating with various frequency, we use inductive proximity to generate a signal per resolution. Therefore on the dia of the roller small metal piece is attached to come infront of sensor and generate signal.
the sensor generates
“”
Now this rotating roller has two attributes: 1. what is the dia of roller (take 12inch) & 2. how fast or at what frequency it is moving (use tachcometer).
Objective:
Program MC to read i/p signal from proximity (low-to-high pulse)-increase in rotation will increase in pulses. the o/p signal should be generated when roller is rotating in the range of 3.8khz to 4.1khz frequecy,
<3.8khz o/p of MC should be 0vdc
>4.1khz o/p of MC should be 5vdc
Looking forward for your earliest reply, I would appreciate the coding in assembly and if more discription is required then your are wellcome.
Regards
Umair