Maybe I am misunderstanding.
Analog front end.
The pot is connected between the ground and 5+ with the wiper going to the ADC input.
The PWM output goes to the mosfet gate.
The pot is not...
Type: Posts; User: mackrackit; Keyword(s):
Maybe I am misunderstanding.
Analog front end.
The pot is connected between the ground and 5+ with the wiper going to the ADC input.
The PWM output goes to the mosfet gate.
The pot is not...
This should get you started with the ADC part. No LM358 required.
http://www.rentron.com/PIC12C67XAD.htm
Then once you have the ADC reading the pot, take the number generated by the ADC and use...