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





Bookmarks