Build a Plant Sound Interface With ESP32 and CJMCU-6701
by tetherpro in Circuits > Speakers
18 Views, 0 Favorites, 0 Comments
Build a Plant Sound Interface With ESP32 and CJMCU-6701
Building something that can take tiny electrical pulses and turn them into audio is something I've heard of but never researched. With this competition, I thought it would be the perfect time to make something that reads the micro voltage from a plant and turns it into a kind of audio pitch. I already had a big speaker laying around, so I thought, why not?
Supplies
Tools needed for this include the following:
Soldering Iron: Used to solder IO pins onto the microcontrollers and to splice and connect wires.
Computer: Must be able to use the Arduino IDE and connect to the ESP32.
Supplies needed include the following:
Speaker: These will work, but if you want a bigger one, you can use the second linked one.
ESP32: The main controller that processes the sensor data and controls sound output.
CJMCU GSR Sensor: Detects tiny electrical signals from the plant, similar to a biofeedback sensor.
ADS1115 16-bit ADC Module: Converts the weak analog signal from the GSR sensor into clear digital data for the ESP32.
100W Audio Amplifier: Boosts the ESP32’s audio output to drive the speaker.
Speaker: Converts the amplified signal into audible sound. You can use a small one or a large speaker for more impact.
Wires (M-M, M-F, F-F): For connecting all the modules and signal paths.
EKG Pads / Electrodes: Attach to the plant leaves or stems to pick up electrical signals.
10v power supply: Used for powering the amplifier.
Solder the IO Pins That Come With the Microcontroller
- Grab both of your microcontrollers and the IO pins that come with them.
- Align the pins, then solder them.
Prepare the CJMCU Sensor
- Grab the CJMCU-6701 and the EKG sensor wires.
- Solder your wires from the EKG sensor onto the back of the CJMCU on the pads labeled GSR.
- My sensors had red and black wires, but the order doesn’t matter.
- Make sure your solder joints are shiny and not connected.
Wire the CJMCU to the ESP32
- Grab both microcontrollers.
- Connect 5V on the CJMCU to 3V3 on the ESP32.
- Connect the GND of both together.
Wire the CJMCU to the ADS1115
- Grab the two microcontrollers.
- Attach the OUT from the CJMCU to A0 on the ADS1115.
Put Together the Amplifier
- Follow the instructions on how to assemble it. When you’re done, it should look like this.
Get a Headphone Jack
In this, I used an old pair of headphones—but that’s the hard way since you have to figure out which wire is signal and which is GND.
I would recommend using a ready-made jack instead like this.
- Once you identify GND and signal, make large solder joints on those.
Connect the ADS1115 to the Esp32
This is a big one.
- Splice a wire from VDD with the 5V from the CJMCU so both go to 3V3 on the ESP32.
- GND goes to GND on the ESP32 (there are two slots for it).
- SCL goes to D23.
- SDA goes to D21.
- ADDR splices with the headphone GND and GND.
Connect Audio to ESP32
- Solder the headphone jack wire that wasn’t ground to D26 on the ESP32.
Connect the Amplifier
- Plug the audio jack into the amplifier.
- Get your speaker and add + and – wires to the left channel of the amplifier.
- Hook up your 10V power supply to the amplifier, but don’t plug it in yet.
Attach the EKG Pads
- Unpeel the sticky pads on the sensors, then press them onto two different stems of the plant.
Program the ESP32
- Install the Arduino IDE.
- Grab the ESP32 and plug it into your computer.
- Then upload the plant.ino code file to the IDE.
- Finally, install that onto the ESP32.
Downloads
Use the Plant
This is My device working!