I'l add more details as we go, but just got a quick question really.
**broken link removed**
I'm using the above essential circuit to count flywheel passes using an inductive sensor, the idea was to route the voltage output to the adc on a pic so I could display the speed on an lcd.
Everything in my circuit is identical with the above, including values, except for one thing....
I calculated that idling my flywheel would make the input frequency around 50hz. I was happy with this, that'd allow me to go up to about five times the speed of idle as the diagram states 66hz per volt, which is about the window i wanted and still be in the 0-5v range of the pic adc input.
Excellent
However it wasn't to be, in practice the circuit works, and apart from a few niggles it works quite well - however the voltage at idle was 3v. Thinking I'd made an error in my calculations I installed a trimmer pot as a voltage divider between the lm2917 and the pic. I now calibrated the idle speed down to about 50 on my display (8 bit adc reading) and if I rev up it goes up, if I let it idle it then goes back to around 50.
So I'm getting very close to the solution, there just is a problem now as the output isn't linear. For example:
RPM -> ADC Reading (through voltage divider)
800 -> 50
1600 -> 100
3200 -> 110
4000 -> 170
I'm just wondering what could cause the non-linear output at the 3200 mark. I'm wondering if this could be a noise issue on the inductive sensor side, or a noise issue on the adc side, maybe the voltage being output is too high for the lm2917? (remember it gives out 3v at 800rpm).
Just looking for ideas really, I've put a small cap on the adc pin which has helped smooth the readings at a fixed speed, but there is still this problem with linear ridings at high rpm.
Any thoughts appreciated!
**broken link removed**
I'm using the above essential circuit to count flywheel passes using an inductive sensor, the idea was to route the voltage output to the adc on a pic so I could display the speed on an lcd.
Everything in my circuit is identical with the above, including values, except for one thing....
I calculated that idling my flywheel would make the input frequency around 50hz. I was happy with this, that'd allow me to go up to about five times the speed of idle as the diagram states 66hz per volt, which is about the window i wanted and still be in the 0-5v range of the pic adc input.
Excellent
However it wasn't to be, in practice the circuit works, and apart from a few niggles it works quite well - however the voltage at idle was 3v. Thinking I'd made an error in my calculations I installed a trimmer pot as a voltage divider between the lm2917 and the pic. I now calibrated the idle speed down to about 50 on my display (8 bit adc reading) and if I rev up it goes up, if I let it idle it then goes back to around 50.
So I'm getting very close to the solution, there just is a problem now as the output isn't linear. For example:
RPM -> ADC Reading (through voltage divider)
800 -> 50
1600 -> 100
3200 -> 110
4000 -> 170
I'm just wondering what could cause the non-linear output at the 3200 mark. I'm wondering if this could be a noise issue on the inductive sensor side, or a noise issue on the adc side, maybe the voltage being output is too high for the lm2917? (remember it gives out 3v at 800rpm).
Just looking for ideas really, I've put a small cap on the adc pin which has helped smooth the readings at a fixed speed, but there is still this problem with linear ridings at high rpm.
Any thoughts appreciated!
Last edited: