Hello, I would like some help from the community about my problem with reading rpm from a capacitive pickup of the sparkplug.
Background and info:
This is from a school club called SAE Baja which has certain parameters. The engine has to be a Briggs and Stanton modle 19 and no modifications can be made to the engine and can not go beyond 3600 rpms.
On a previous post, Capacitive RPM Sensor for Data Aqc. - General Electronics - Arduino Forum , I was helped and lead in the direction to use a capacitive pick up where I made a timing light circuit through the links people sent me and a schematic I found on a different post. The schematic I used will be down in the attachments.
The problem I am having is that I am not getting numbers at times and sometimes I do, and if I do get numbers they are all over the place. Guessing the signal is still noisy. I have experimented with the number of windings on the toroid ring and distance from the sparkplug. Experiment - 5 windings, 7 windings, 10 windings, and 15 windings.
Questions:
How do I smooth the signal, if that is the problem?
Does the inner diameter of the toroid ring matter for picking up signals?
Reason I ask this is because the first time I tried this circuit I had a smaller ring and worked pretty good but tried using it after soldering the circuit together and it didn't work. I proceed to remake the circuit back on the bread board and still had no results from either the smaller ring and the bigger ring. The difference in the rings is the smaller one is tight against the sparkplug lead wire and the bigger ring has a gap of about 0.1" to 1/4" between the ring and the sparkplug lead wire if the ring were pulled up against the wire on one side, I think.
Can I use the capacitive pick up circuit with a 555 monostable circuit similar to what this article I found that was made by another Baja team? Or would it be better to use the 555 circuit instead of the one I am currently using?
Notes:
Now because of lockdown of the pandemic I do not have direct excess to the testing the circuit on the engine, so testing results will take some time to do as I have to send it to a friend who has the engine. The code will also be in the attachments in case something might be wrong with that, but I don't think so . I seemed to be a pretty solid code I found and tweaked and unfortunately don't remember who to credit it to at this time.
Thanks for anyone who helps!
Tachometer_Using_micros.ino (12.2 KB)
Baja Tach and Wheel Speed[2643].pdf (830 KB)