Dual 7-Segment LED Display


Results 1 to 15 of 15

Threaded View

  1. #5
    Join Date
    Jul 2007
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Good stuff, Thanks.

    I have not at all coded before and I just got PBPro.

    I have got this so far to flash an LED on and off

    LED_F: 'LED Flash loop begins here
    if X0 <= 5 then
    LED = 1 'Turns on the warning LED
    pause 500 'Pause 1/2 second with LED on
    LED = 0 'Turns off warning LED
    pause 750 'Pause 3/4 second with LED off
    X0 = X0 + 1 'This adds 1 to variable X0 each time it loops
    goto LED_F 'Returns to begining of LED Flash loop
    else
    LED = 0 'Makes sure LED is off
    X0 = 0
    REturn 'Returns to main code

    Let me know if that would work. Also I am kind of in a bind here trying to figure out how to decipher the input from the knock sensor. Knock sensors are piezo capacitive or something like that, basically they generate small amount of voltage (~2-5mV) from vibration, and generate spikes in the signal when 'knocked' on for lack of better terms. So its an analog signal, and I need to make this thing be able to see the spikes, count them and display on the LED Segments.

    Analogy for Knock sensor (begin)
    Think of the sensor as a doctor with a stethoscope, the doctor listens and hears your heartbeat crisp and clear, when some other sounds are in there its not normal and the doc says "hey there is a problem."

    Same thing for the knock sensor, except it doesnt want to hear a heartbeat, just a smooth nice low vibration of the engine running, now when it hears other sounds the car's engine managment system says "hey there is a problem"
    Analogy for Knock sensor (end)

    When that happens, it pulls timing back, driver experiences a hesistation (lack of power), and it usually, when no damage has been done, picks back up and moves along


    Voltage comparator or AD Converter?

    -Eric
    Last edited by erice1984; - 1st July 2007 at 09:18.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  3. Weird compile issue 7 segment LED display
    By George in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st June 2006, 02:12
  4. 7 segment digit problem (using Mister E's code)
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th September 2005, 20:25
  5. WRITE not working
    By servo260 in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 29th December 2004, 02:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts