Вы находитесь на странице: 1из 7

SOFTWARE PART

INSTALLING THE ARDUINO IDE:

1. Download and install the Arduino IDE from the link below:

https://www.arduino.cc/en/Main/Donate

2. Open the IDE then configure the Board and Port from the Tools option; Select the

Board: “Arduino/Genuino Uno”. Then select the proper port where you like to plug in

your Arduino Uno.

SETTING UP THE LIBRARY:

1. Download the library from the link below:

https://goo.gl/KehFmd

2. After downloading the library, it is a ZIP file. Include it on your Sketch.


3. Select the library ZIP file and then go back again to sketch. You can see your added

library at the very bottom of the selection. It is under “Contributed Libraries”. Click the

library and then the Arduino IDE will automatically add a short script that includes the

library.

4. Download the code from the link below:

https://drive.google.com/file/d/18Qq9nO6zV15aW9hkp7MqBTu4QOOIMDDG/view?u

sp=sharing

5. Open the file then copy and paste it under your previous sketch. Your code should

look like this:


SETTING UP WARNING SPEECH:

We can’t use mp3 in our speech so we need to convert it first into wav.

1. Open the site below:

https://audio.online-convert.com/convert-to-wav
2. Select your audio file and change the settings into this:

3. Start the conversion and download your audio file. Make sure you follow the settings

above for it to works perfectly! Move the audio file to your sd card (it must be 2 or 4

gb memory card) and insert it to your sd card module.

HARDWARE PART

SD CARD MODULE & SPEAKER CONNECTION:

1. Using a jumperwire, connect the SD CARD MODULE to your Arduino with this

following PINS:
SD CARD MODULE ARDUINO BOARD

VCC 5V

GND GND

CS Digital PIN 10

SCK Digital PIN 13

MOSI Digital PIN 11

MISO Digital PIN 12

Actual picture:

2. Connect the speaker as well with this following PINS; The speaker has a jack

output so what we’re going to do is solder or glue the jumperwire using hot glue stick

in the jackoutput:

3.5mm jack outputs usually have these 3 parts. Top, Middle, and Bottom;

SPEAKER ARDUINO BOARD

Top part of the jack GND

Bottom part of the jack Digital PIN 9


Actual picture:

HC-04 SENSOR CONNECTION:

1. Using a jumperwire, connect the SENSOR to your Arduino with this following

PINS:

HC-04 SENSOR ARDUINO BOARD

VCC 5V

Trig Digital PIN 6

Echo Digital PIN 7

GND GND

Actual picture:
POWER SUPPLY:

1. Connect the switch to battery’s circuit. And plug in the power cable to the power

outlet in Arduino Board:

UPLOADING THE PROGRAM TO ARDUINO BOARD

1. Connect the Arduino Board to your computer using Arduino Cable. Then upload

the program by clicking the Upload button in your Arduino IDE. Wait for it until it is

done uploading:

Вам также может понравиться