Misha's Blog

Arduino Cricket Emulator

Posted in Research by Misha on February 20, 2015

Did you know that plants can be stimulated by flashing light, sound, and even electricity and magnetism? Google Electroculture or check out this site for crazy stories of people trying to stimulate plants in funny ways. I am building a plant synthesizer where the plant is cultured by colored moving light. I found out that plants enjoy 3 khz blasts of sound, and luckily Signal Culture had some piezo speakers kicking around that output at that exact rate. I decided to articulate the sound into something humans and plants would be able to relate to: the sound of a cricket. I experimented with an Arduino Uno board and came up with this:

int crickets = analogRead(1) * (5 / 1023.0);
int chirp = 50;

On analog pin 1 you have a potentiometer that sets the number of crickets (all the way left is none, all the way up is like a whole field of the bugs). It only works if there is no other code being executed due to the subtle interplay between the board, the speaker, the delay, and the PWM pulse. Below is the recording of what it sounds like when the knob is turned from left to right.

2 Responses

Subscribe to comments with RSS.

  1. Steve said, on August 3, 2016 at 1:48 pm

    Hello, I’m an artist and new to arduino. I’m working on a project and have been desperately trying to create something similar to this but haven’t had much success since programing is not my area of expertise at all. Would you be willing to share the code and the basics of the circuit that creates this? It would save me a lot of frustration and angst and I would be very grateful!!


    • Constance said, on May 9, 2017 at 1:35 am

      I want to send you an award for most helpful inteenrt writer.

Leave a Reply