Buzzing, Vibrating Device
An Arduino tutorial of a buzzing, vibrating device, consisting of both the piezo buzzer and DC motor from the original SparkFun tutorials
What Is This Tutorial About?
This tutorial includes the materials, code and overall difficulty of creating a buzzing, vibrating device. It’ll include diagrams of the circuits themselves, pictures of the actual model itself as well as explanations upon how the components work as well as real life applications of this tutorial. The overall difficulty of this tutorial is a 5-6 out of 10, as the creation of the model is not necessarily difficult, but the coding can be confusing for first timers.
- 7x Jumper Wires
- 1x DC Motor (with any heavy material taped to motor to create vibration)
- 1x 330Ω Resistor
- 1x Transistor
- 1x Diode
- 1x Piezo Buzzer
Relations of input/output and coding
Although there are no inputs shown within this design, it is only as future materials added would have allowed the Arduino to work based upon real-time and react on times given to it, instead of glitching out. Two outputs, the piezo buzzer, and the DC motor, work upon the same coding but co-exist to allow each to sustain itself. The coding allows the motor to understand that it will only go upon the ringing of the buzzers, which allows both outputs to work simultaneously, becoming a conjoined unit. The entire code is related towards these two outputs to allow for complete synchronization of the two. Changing the frequencies within the coding will change the tune the piezo buzzer emits, while extending or shortening tunes modifies the length of spinning done by the DC motor. The transistor used acts as a switch for the circuit, spreading the power given from the RedBoard to both the piezo buzzer and the DC motor. No input is shown in this as this is manually activated, but the implementation of an Arduino real-time clock module, it can be used as an input to make the code work automatically.
Real World Applications
This device can and is used within many devices, namely alarm clocks, which synchronizes both the ringing and the vibrating to create a repetitive action. Mobile phones also contain codes synchronizing both vibrations and the buzzing together. Both of these require coding and materials such as these, as with the implication of an Arduino real-time clock module as an input, the sequence of code can repeat as long as a time is set for the code to activate.