Sunday, July 27, 2025
HomeElectronicsControlling a drum machine with the Arduino Opta

Controlling a drum machine with the Arduino Opta


Controlling a drum machine with the Arduino Opta

Arduino StaffJune twenty fifth, 2024

Makers have lengthy requested the query “why trouble with an costly PLC after I can simply use an Arduino?” The reply comes right down to the priorities and wishes of commercial purchasers. In a manufacturing facility automation setting, the shopper will prioritize sturdiness, reliability, and serviceability over the one-time buy value of the system itself. However to show that Arduino’s skilled turnkey options are simply as simple to make use of as their developer-focused academic counterparts, Jeremy Cook dinner leveraged an Arduino Opta micro PLC to construct a drum machine.

This isn’t any outdated drum machine that performs sound samples or synthesized notes, however relatively a robotic drum machine that makes noise by banging on stuff like a real percussion instrument. Cook dinner might have constructed this with any Arduino board and some relays, however as a substitute selected to implement the Opta and new Opta Digital Enlargement. That’s sturdy sufficient for critical business and industrial purposes, however remains to be easy to program with the acquainted Arduino IDE. Programmers may also use standard PLC languages if they like.

On this case, Cook dinner made noise with relays and solenoids. The Opta has 4 built-in relays and Cook dinner’s sketch flips one in all them to make a sound analogous to a hi-hat. Cook dinner added an Arduino Professional Opta Ext D1608S module with its solid-state relays for the opposite two “drums.” A type of fires a solenoid that faucets a small hand drum (the kick drum sound), whereas the opposite controls a solenoid that hits an influence provide enclosure (the snare sound).

Collectively, these three sounds can cowl the fundamentals of a drum monitor. Cook dinner’s sketch is a drum sequencer program that shops every sound sequence as array, looping by them till turned off. 

An Opta could also be overkill for a venture like this one, however this does a terrific job of demonstrating the benefit at which an Arduino person can transition to skilled PLC work. 



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments