Speedometer

Discussion in 'The Projects Forum' started by u5Al3, Dec 24, 2010.

  1. u5Al3

    Thread Starter New Member

    Dec 24, 2010
    21
    0
    Hellowall;
    I try to build speedometer by using AVR atmega16 .
    using the logic 'read switch is press when it close to magnetic field '
    a count in register and then this will shown on output.Any other if u know please sugges me .
     
  2. marshallf3

    Well-Known Member

    Jul 26, 2010
    2,358
    201
    Must be 1,000 ways to do this. From your post it sounds as if you're wanting to use a reed switch and a magnet as the input to the circuit.

    The trick will be to determine exactly what amount of closures of the switch equate to what speed. You can even do this in analog but it wouldn't be anywhere nearly as accurate. Are you dead set on using the Atmega chip? Might be some people in the programming section that will be able to figure out the simple code required but I think most around here are more familiar with the PIC series of microprocessor chips.

    Sorry that I can't be of more help, the last actual machine code I wrote was for Z-80 and 6502 chips and it's been so long that I'd have to completely start over learning it.
     
  3. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    What problems are you experiencing with your design? Provide us with a schematic and some details on the system whose speed you are monitioring. I'm sure we can provide suggestions for you to consider.

    hgmjr
     
  4. u5Al3

    Thread Starter New Member

    Dec 24, 2010
    21
    0
    Hellow;
    thanks to every one . Now i am working upon this logic ,making code and hardware as well ,if i find any problem then i will post with circuit and code.

    If any one know another logic to count speed of vehicles in digits then plz reply
     
  5. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    The one thing that I would recommend is that you feed your speed rate signal into the ICP input on the ATMEGA16. ICP is the input capture pin. Internal to the ATMEGA16, this pin has a counter/timer capture register connected to it which will facilitate the accurate timing of the incoming signal.

    hgmjr
     
    u5Al3 likes this.
Loading...