Fork me on GitHub

Project Notes

#108 RingCounterController

Control the classic CD4017 walking-ring counter with an Arduino

Here’s a quick video of the circuit in action:

RingCounterController

Notes

The RingCounter project demonstrated the classic walking ring circuit using a 555 timer to send clock pulses to a CD4017 Decade Counter/Divider with 10 Decoded Outputs.

This project replaces the 555 with a microcontroller for more dynamic effects. The program demonstrates a few effects achieved by controlling the CLOCK, RESET and CLOCK ENABLE pins of the CD4017.

Digital IO pins are connected to the CLOCK, RESET and CLOCK ENABLE pins via 1kΩ resistor. The resistor is not strictly necessary as the CD4017 draws at most 1µA on the inputs. But they provide some over-current protection for the Arduino should anything be going wrong in the circuit.

The minimum clock pulse with is 250ns when operating at 5V. The program ensures a minimum clock pulse of 1ms which is very conservative. In fact the sketch works equially well with no delay when pulsing the clock - just digitalWrite HIGH immediately followed by digitalWrite LOW.

When operating, the circuit draws about 2mA in total.

Note that since only a single LED should be on at a given time, the 10 x 1kΩ current-limiting resistors could be replaced by a single resistor on a common cathode ground link for the LEDs. But it depends on the specific LED ratings, as this subjects all the “off” LEDs to a reverse voltage equal to the voltage drop across the resistor.

Construction

Breadboard

The Schematic

The Build

Credits and References

About LEAP#108 CMOSArduino

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader