1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

AT90s2313 based LED tachometer

Discussion in 'Microcontrollers' started by student1616, Oct 16, 2006.

  1. student1616

    student1616 New Member

    Joined:
    Oct 16, 2006
    Messages:
    60
    Likes:
    0
    hello all,
    i found this site while i was searching for some good microcontroller forum.iam
    trying to make LED based tachometer for my motorcycle.
    http://img230.imageshack.us/img230/4438/1bs4.gif
    i want to drive 20 LEDS using AVR like AT90s2313 or ATTINY2313.why these
    bcz i already have 2 microcontrollers each.
    for input signal to the microcontroller,iam using the method of
    inductive pickup (wounding a thich copper wire over the sparkplug
    cable).
    http://img79.imageshack.us/img79/2688/untitledmy6.gif
    i'll be thankfull if someone could show me a schematic and code for
    this.
    thanks
    student
     
  2. penoy_balut

    penoy_balut New Member

    Joined:
    Sep 12, 2006
    Messages:
    171
    Likes:
    1
    Location:
    Bagong Silang
    schematic would be a simple conditioning of the input voltage not to exceed input level of the MCU, you only need the edge to trigger an interrupt. Out put would be a 2 pin data and clock for shift registers to drive any number of leds you want. Coding would be counting the number of pulse for a certain period of time.
     
  3. student1616

    student1616 New Member

    Joined:
    Oct 16, 2006
    Messages:
    60
    Likes:
    0
    thanks..
    can i have a rough schematic and program for this.
    i know i shld'nt ask like this but iam completely new to these microcontrollers.and this is the only circuit that i need to finish.so can someone help me with this issue.
    thanks
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. penoy_balut

    penoy_balut New Member

    Joined:
    Sep 12, 2006
    Messages:
    171
    Likes:
    1
    Location:
    Bagong Silang

    it takes time to draw the schematic and a little more for coding, where is your location?
     
  6. student1616

    student1616 New Member

    Joined:
    Oct 16, 2006
    Messages:
    60
    Likes:
    0
    basically iam from california.(now iam in india for my project work)
    i'll be waiting for your reply regading the schematic and code.
    once again thanks for the help
     
  7. penoy_balut

    penoy_balut New Member

    Joined:
    Sep 12, 2006
    Messages:
    171
    Likes:
    1
    Location:
    Bagong Silang
    Visit Atmel AVR site, there are plenty of Indian AVR experts listed as consultants.
     
  8. student1616

    student1616 New Member

    Joined:
    Oct 16, 2006
    Messages:
    60
    Likes:
    0
    thanks i mailed a guy regarding this circuit.i did't get any reply till now.
    mean while some help for schematic and code will be appreciated
     
  9. student1616

    student1616 New Member

    Joined:
    Oct 16, 2006
    Messages:
    60
    Likes:
    0
  10. gramo

    gramo New Member

    Joined:
    Oct 2, 2006
    Messages:
    1,221
    Likes:
    23
    Location:
    Newcastle, Australia
    you could make life alot easier getting a serial led display. that way to update data on the 4 displays is done over 4 wires, and the programming in pic basic would be somthing like


    Dim Variable[4] As Byte
    Symbol Data_Line = PortA.1
    Symbol Clock_Line = PortA.1

    Main:

    Variable = COUNTER Input_Pin , 100 ' Count how many cycles occur over 100ms

    Variable = Variable / 200 * 3 ' I have no idea what the equation would be, but convert the value to RPM

    SHIFTOUT Data_Line, Clock_Line, MSBFIRST,[Variable/4] ' Send it out

    Goto Main ' Do it all over again
     

Share This Page