- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 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 › AVR › HOW to interface a speed sensor (encoder or reed relay)with ATMEGA 8?
I would like to know how to interface an encoder with ATMEGA 8 micro controller. I need the code to detect the speed and generate an interrupt signal for a particular speed. The main purpose is to switch according to that particular speed.
Do help!
Speed of what? We need more details to help you.
Actually we are planning to make a model of an hybrid vehicle,the one that combines electric motor and combustion engine. For switching between this motor and engine speed of the tyre has to be sensed. When speed exceed a certain preset value,system switches from motor to engine. Similar is the case when there is an inclination.
So,here is the case,each time when the sensor detects a preset value,an interupt signal has to be generated which leads to switching. Planning to use an encoder for speed,and mercury switch for inclination sensing.
Please ,do help for using ATMEGA 8