At some point of time we built together with my daughter a simple mechanical elevator and then I had an idea – why not to make it motorized and have just couple of buttons and have a bit of experience with the H bridges and motors.

At some point of time we built together with my daughter a simple mechanical elevator and then I had an idea – why not to make it motorized and have just couple of buttons and have a bit of experience with the H bridges and motors.
Task: To study the PWM module usage for LED brightness control
Tools: PIC18f1230, scope
Below is the procedure of a PWM veriloga controller created in Verilog-A language (behavioral description language)
So, I need a PWM controller which is basically the block the duty cycle of which will vary in dependence of the control pin voltage. The previous picture shows the output of the controller (red) with input applied control voltage (green). The frequency is constant.
Continue readingThe goal: To adjust the LED brightness using the PWM module.
What we have: PIC16f628a and devboard + proteus.