Good afternoon,This is my first post here. I am just a hobbyist, but starting playing with PICs over a year ago. My current project needs to take an analog signal and convert it to PWM.
So this is for an automotive project. It's supposed to take a 0-5V variable voltage from the throttle input and the converter should send a variable duty cycle (0-100) to the transmission control module so it knows when to shift the transmission.
It works as its supposed to on the bench using a POT connected to the converter.
When I hook it up to the vehicle is where i have issues. I have verified correct voltage from the TPS input, but it will only create a 10 percent duty cycle no matter what voltage the PIC sees from the input. I'm using a Labrador to verify the PWM (oscilloscope) on my laptop. The Labrador is also grounded to the vehicle. I'm literally ripping my hair out and cannot figure this out, its been months! Makes no sense.
Hopefully someone here can finally solve this. Thanks!