Tag arduino

Vibration Motor control

An example to control the intensity of vibration using Pulse Width Modulation (PWM) for the Vibration DC Motor Module. This page has details on controlling this module for both Arduino and the Raspberry Pi Pico (with MicroPython). Further down Pulse…

Using an Optical (IR) sensor with Arduino

This short tutorial introduces the Optical (infrared) distance sensor (Sharp GP2Y0A21YK0F). It is assumed you have installed the Arduino IDE and have some basic understanding of using electronics and wiring a breadboard. If you want to learn more or if anything is…

Sounds and music with Arduino

This article highlights four different ways you can make sounds with the Arduino or play music. It starts with the easiest one: (1) adding a small buzzer, then (2) a standard loudspeaker, then (3) using your smartphone as the speaker…