patrakov 6 hours ago

To add to the article: both circuits are mere converters of a single analog input to PWM, which is not the best way to drive DC motors.

A good driver would also take the current consumed by the motor into account and adjust the duty cycle based on that to compensate for the slowdown due to the mechanical load and the coil resistance. Basically, a PWM driver that also emulates negative output resistance. If a motor has a known coil resistance, it is possible to achieve this both with a 555 (especially since there is also an unused op amp) and with a microcontroller.

And here is where a microcontroller with good software would shine and a 555 would not be capable of doing this:

* Adapting to unknown DC motors

* Tracking the motor speed not based on the estimated EMF (i.e., not on the voltage applied minus the estimated resistive drop in the coil), but on the periodic variations of the consumed current due to the changes of the relative orientation of the coils and the permanent magnets, i.e., using the motor itself as a crude angular position sensor

  • fuzzfactor 5 hours ago

    Good approach to gain more usefulness out of the microcontroller version.

    Now if you look outside the schematic to the power supply, a 9V battery can be considered ideal for so many demo circuits like this. So there is nothing outside that box unless you wanted to run it on line power or something.

    A simple power supply is needed to substitute for a 9V battery, having a stable clean performance ideal for microcontrollers, they are very common and not very expensive but can often actually have more components than the experimental PCB.

    On both schematics notice he has a 7805 to reduce & regulate the raw 9V supply anyway.

    OTOH there are 555's robust enough to run directly on very poorly filtered & rectified AC line voltage, some of the roughest half-wave. Using only 3 passive components and not even a step-down transformer. Yes it could be quite shocking if you are not careful.