Close

Supplies

A project log for Sound-activated Counting Light

This is a guide for new of esp32 and arduino, in this article, I will share how to make a sound-activated counting light.

makerfabsMakerfabs 01/20/2024 at 08:010 Comments

In this demo, a sound module, a WS2812 module, and a MaESP ESP32 OLED are needed, and they all ccan find in MaESP dev kit.

Sound module is the most sensitive to the environment sound intensity, commonly used to detect the intensity of the sound of the surroundings.

This sensor has three pins, two of which are power pins leveled VCC and GND and the other one is digital pin. It has an onboard power LED and a signal LED. The power LED turns on when power is applied to the board and the signal LED turns on when the circuit is triggered. This board also has a comparator Op-amp that is responsible for converting the incoming analog signal to digital signal. We also have a sensitivity adjustment potentiometer; with that, we can adjust the sensitivity of the device. Last, we have the condenser microphone that is used to detect the sound. All these together make the total Sound Sensor Module.

When module in the intensity of the sound environment can not reach set threshold, the OUT will output high level, when the intensity of the sound from the outside environment more than set threshold, the module OUT output low level;

Small digital output board OUT can be directly to the microcontroller, through single chip microcomputer to detect the high and low level, thus to detect sound environment;

The WS2812B RGB LED Module is a small module with BIG color. The module has a special LED on board that contains three separate LEDs – red, green, and blue – as well as a smart control IC that can individually drive each LED. Each color has 256 intensity levels which allows the module to produce 24-bit color, or more than 16 million colors.

Each module is instructed by using a special serial protocol. This protocol allows many modules to be daisy-chained together so that one microcontroller can control the whole lot – with a single data signal.

Any number of these modules can be chained together by connecting one module’s data-out (DO) pin to another’s data-in (DI) pin.

In the document, you can know how it work.

MaESP ESP32 OLED is a perfect board for beginners, the back of the board is labelled with the multiplexed functions of each pin,it is easy to learn& use. In this demo, we will use two GPIO and one I2C of it. And you can cheak the datasheet of ESP32(esp32 wroom datasheet and esp32 wrove datasheet).

This board has detailed guide/demos both in MicroPython/Arduino, so the learners can step into ESP32 easily. There all the 12 experiments in the guide are achieved by both MicroPython/Arduino, so get one our MaESP dev kit, to start your ESP32 word in 20 hours.

Discussions