Hello all,
I am working on a project where I am trying to control a few things in my car using Arduino. One function is to start the vehicle. As a safety function my code checks to see if the vehicle is running. To do this I am tapping into the engines crank position sensor. Some of these are 5v PWM some are 5-8V peak to peak AC. I would like this to be compatible for both types of systems so I was thinking of converting both signals to an analog voltage. Doesn't need to be super accurate like an actual RPM reading, just looking to see if its running. The 5v PWM I'm just using a RC circuit, the AC I am using a diode to cut off -V then the RC circuit. Where I am getting stuck is making sure the voltage stays under 5v regardless of input voltage so my Arduino don't blow up. I am open to any suggestions. I have attached the tinkercad schematic I was playing with. Thank you in advance.
R: 3.9K
C: 10uF
Zen: 5.10V
Mods Note:
Please don't use .png file for colorful image or too many color scales.
The file has been modified and converted to the .jpg from 584,606 Kb to 73,348 Kb.
I am working on a project where I am trying to control a few things in my car using Arduino. One function is to start the vehicle. As a safety function my code checks to see if the vehicle is running. To do this I am tapping into the engines crank position sensor. Some of these are 5v PWM some are 5-8V peak to peak AC. I would like this to be compatible for both types of systems so I was thinking of converting both signals to an analog voltage. Doesn't need to be super accurate like an actual RPM reading, just looking to see if its running. The 5v PWM I'm just using a RC circuit, the AC I am using a diode to cut off -V then the RC circuit. Where I am getting stuck is making sure the voltage stays under 5v regardless of input voltage so my Arduino don't blow up. I am open to any suggestions. I have attached the tinkercad schematic I was playing with. Thank you in advance.
R: 3.9K
C: 10uF
Zen: 5.10V
Mods Note:
Please don't use .png file for colorful image or too many color scales.
The file has been modified and converted to the .jpg from 584,606 Kb to 73,348 Kb.
Attachments
-
531.1 KB Views: 8
Last edited by a moderator: