American Cheaper Alarm S6
![download (5).jpg](/proxy/?url=https://content.instructables.com/FNZ/BBLA/JOOO3ZMU/FNZBBLAJOOO3ZMU.jpg&filename=download (5).jpg)
![download (6).jpg](/proxy/?url=https://content.instructables.com/FUZ/6FZO/JOOO3ZN3/FUZ6FZOJOOO3ZN3.jpg&filename=download (6).jpg)
![download (7).jpg](/proxy/?url=https://content.instructables.com/F37/DERS/JOOO3ZN5/F37DERSJOOO3ZN5.jpg&filename=download (7).jpg)
![download talquei.jpg](/proxy/?url=https://content.instructables.com/F8V/9V6B/JOOO3ZQP/F8V9V6BJOOO3ZQP.jpg&filename=download talquei.jpg)
We decided to do a movement sensor that is cheaper than the normal one, and the poor people can buy it because it works perfectly. We used those components:
. Female-female wires and male-male wires;
. Buzzer;
. Sensor of movement;
. Arduíno UNO;
Creating the Hardware
![2z7o375.gif](/proxy/?url=https://content.instructables.com/FAK/FULI/JOOO416A/FAKFULIJOOO416A.gif&filename=2z7o375.gif)
We use the motion sensor and we connect the three sensor pins on several female-to-female wires and then connect these wires to the male-male wires. These wires were connected to the Arduino ONE. All the (arduino) holes that were numbered are being cited in the code made in the arduino. In the next page we are going to see the code that we used.
The First Code
![download 8000.png](/proxy/?url=https://content.instructables.com/FNI/V95K/JOSXW8ND/FNIV95KJOSXW8ND.png&filename=download 8000.png)
#define pinPIR 7
const int buzzer = 5;
void setup() { pinMode(buzzer, OUTPUT); pinMode(pinPIR, INPUT); Serial.begin(9600); }
void loop() { bool valorPIR = digitalRead(pinPIR);
if (valorPIR) { Serial.println("FDS"); digitalWrite(buzzer, HIGH); } else { Serial.println("-----"); digitalWrite(buzzer, LOW); } }
This was the first code, but it didin´t make a sound, because we were able to do it on the second try.
Final Version
![IMG-20181122-WA0179 (2).jpg](/proxy/?url=https://content.instructables.com/F08/V2JS/JOSY58JY/F08V2JSJOSY58JY.jpg&filename=IMG-20181122-WA0179 (2).jpg)
![IMG-20181122-WA0180.jpg](/proxy/?url=https://content.instructables.com/FV0/U9IO/JOSY58K1/FV0U9IOJOSY58K1.jpg&filename=IMG-20181122-WA0180.jpg)
We just add new codes for the Buzzer to make the sound.
Reflections
![porra.gif](/proxy/?url=https://content.instructables.com/FUN/IFXY/JOSY58LK/FUNIFXYJOSY58LK.gif&filename=porra.gif)
We used a lot of help from those sites, but we could do it, because we gave our blood on the project.