loading

We've just found a great module that can give you more possibilities and this is Laser Detector. It can detect laser with the transparent sensor and send high or low output to Arduino. Using with KY-008 Laser Module together you can make it as a switch and instruct Arduino turning on / off something. You can also find a set with this link.

ISD1820 Voice Recording Module is another very interesting stuff. You don't need to prepare a speaker and a mic - both are included in this module! After connecting to the power, you can press REC to record a 10 second voice. Press PLAYE to play the complete voice once. Press and hold PLAYL it will play the voice and it stop when the button is released. It can also be controlled by Arduino. Combined with Laser Detector and Laser Module, you can make a doorbell, security system, and power-saving light along corridor for instance.

eLab Peers Einsboard is fully compatible with Arduino UNO R3 and SparkFun RedBoard with much better pricing. Improvement of LEDs location and reset signal from FTDI are also made on this board.

Step 1: ISD 1820 Voice Recording Module

You can control this module by either pressing buttons directly or by Einsboard. For controlling onboard connecting VCC and GND to the power source. For Einsboard, the wiring is as follow:

VCC > 5V on Einsboard

GND > GND on Einsboard

REC > Digital 11 on Einsboard

P-E > Digital 13 on Einsboard

The following is the code of instructing this module, you can also download it in:

https://www.elabpeers.com/isd1820-voice-recording-...

int Rec = 11;

int Play = 13;

void setup()

{

pinMode(Rec, OUTPUT);

pinMode(Play, OUTPUT);

}

void loop()

{

digitalWrite(Rec, HIGH);

delay(10000);

digitalWrite(Rec, LOW);

delay(5000);

digitalWrite(Play, HIGH);

delay(100);

digitalWrite(Play, LOW);

delay(10000);

}

Step 2: KY-008 Laser X Laser Detector

You can make a switch with this set with just a few steps. The wiring is as follow:

+ on Laser Module > 5V on Einsboard

- on Laser Module > GND on Einsboard

S on Laser Module > Digital 6 on Einsboard

VCC on Laser Detector > 5V on Einsboard

GND on Laser Detector > GND on Einsboard

OUT on Laser Detector > Digital 7 on Einsboard

Check the code with this link:

https://www.elabpeers.com/ky-008-laser-x-laser-det...

int Laser = 6;

int Detector = 7;

void setup()

{

Serial.begin (9600);

pinMode(Laser, OUTPUT);

pinMode(Detector, INPUT);

}

void loop()

{

digitalWrite(Laser, HIGH);

boolean val = digitalRead(Detector);

Serial.println(val);

}

Step 3: Doorbell and Alarm

Let’s combine two components into one project.

Wiring them to Einsboard as follow:

VCC on Voice Recording Module > 5V on Einsboard

GND on Voice Recording Module > GND on Einsboard

P-E on Voice Recording Module > Digital 8 on Einsboard

+ on Laser Module > 5V on Einsboard

- on Laser Module > GND on Einsboard

S on Laser Module > Digital 6 on Einsboard

VCC on Laser Detector > 5V on Einsboard

GND on Laser Detector > GND on Einsboard

OUT on Laser Detector > Digital 7 on Einsboard

And the code is as below:

int Laser = 6;

int Detector = 7;

int Play = 8;

void setup()

{

Serial.begin (9600);

pinMode(Laser, OUTPUT);

pinMode(Detector, INPUT);

pinMode(Play, OUTPUT);

}

void loop()

{

digitalWrite(Laser, HIGH);

boolean val = digitalRead(Detector);

Serial.println(val);

if (val == 0)

{

digitalWrite(Play, HIGH);

delay(1000);

}

else

{

digitalWrite(Play, LOW);

}

}

Step 4: Result

Let’s try it and create your own project!

<p>thanks for share</p>
<p>can this be used to activate a servo motor?</p>
<p>I want to use but in my motorcycle , with PIR sensor, (i gonna recorded a dog barking ) xD thanks for instructable</p>
<p>This is so cool! Thanks for sharing! </p>

About This Instructable

15,307views

38favorites

License:

More by eLab Peers:KY-008 Laser Module x Laser Detector x ISD1820 Voice Recording Module 
Add instructable to: