Project work2: materials

As the concept of “Music Garden” I have mentioned before,  so I want to talk about the devices I have discovered recently that I might apply to my project.

First of all, I want to introduce the simple progress to realise the “Music Garden” :


1Using the Arduino Mage to write code to control the ultra sound,when people approach to the ultra sound,the ultra sound would reflect to the computer

2Once Arduino received the signal from the computer, it will send message to the sound card,which would turn on the sounder of the sound card.


Secondly, I want to list the materials I might  use to realise this project:

1 Arduino Mega 2560

The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. It has 54 digital input/output pins (of which 14 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. The Mega is compatible with most shields designed for the Arduino Uno, Duemilanove or Diecimila.


2Infrared Avoid blocker Sensor


This is a kind of sensor that can make a combination of  emission and  receiving of signal and the sensor distance can be controlled by changing settings.

3 Sound Card

It is similar to the sound card in the Musical greeting cards,I can record the music I need in advance.



Arduino Practice1

Aim : Through writing the Arduino code,I want to make two red lights blink automatically and the blue light blink by pressing the button on the breadboard.

Arduino code:

const int redled1=5;

const int redled2=4;

const int blueled=3;


const int switchPin=2;


void setup(){







void loop(){

int switchState;




















Project work1: Early idea about “music garden”


Music Garden

What’s inspired me?

In real life, plants in gardens always keep silence, so I want to create a music garden that the plants in that place can sing a song by interaction with humans.

The approaches for me to explore the idea:

1 Put a sound device in the flower pot

2 When people stand in front of the plants, by the trigger of infrared sensor, the flower pot will make a sound, the first pot is “1”, the second is “2” and so on, through going to different pots in different order, people can make various of music


1 How can I make a connection between the sound device and infrared sensor?

2 How can I control the range of infrared sensor, to be more specifically, I want to one sensor just control one pot.

3 Can the sound device not only be a sound card, how can I combine the sound devices with electronic organ?

4 Can I set some installation on the ground to control the sound devices in the pot?