Hello Friends,
I am building a simple RC servo controller for my ESC to run a BLDC motor.
Do not want a pot to control, Basic Motor On and Off circuit.
Did not find any without the analog pot control so decided to build one based on 12f675.
PIN1 = VSS
PIN2= PWM out
PIN3 = LED
Pin4 = Digital Input
PIN5 = NIL
PIN6= NIL
PIN7= NIL
PIN8=VDD
THE WORKING REQUIRED.
When 5v on pin 4 the PWM does 2ms when 0v on pin4 the PWM does 1ms @ 50~60Hz. Simple working.
Attached is my code for reference.
Problem all works well in simulation, in real life the LED does not blink, just constantly on.
any idea what am i doing wrong ?
Cheers
Mastero
I am building a simple RC servo controller for my ESC to run a BLDC motor.
Do not want a pot to control, Basic Motor On and Off circuit.
Did not find any without the analog pot control so decided to build one based on 12f675.
PIN1 = VSS
PIN2= PWM out
PIN3 = LED
Pin4 = Digital Input
PIN5 = NIL
PIN6= NIL
PIN7= NIL
PIN8=VDD
THE WORKING REQUIRED.
When 5v on pin 4 the PWM does 2ms when 0v on pin4 the PWM does 1ms @ 50~60Hz. Simple working.
Attached is my code for reference.
Problem all works well in simulation, in real life the LED does not blink, just constantly on.
any idea what am i doing wrong ?
Cheers
Mastero
Attachments
Last edited: