Engineering Project

by AC1 in Circuits > Arduino

166 Views, 1 Favorites, 0 Comments

Engineering Project

socialdistancingsensor.png

The Circuit that I chose to create for this project was a Social Distancing Detector which I found pretty cool after I had done all my research on many different circuits and I thought it was really cool and Interesting the way it used many different parts that we had not used in the course before such as an LCD and a potentiometer and Overall it was just a unique looking project to me.

Supplies

Purpose

The circuit’s purpose is to detect if there’s any person close by as it is a social distancing detector the PIR motion sensor is able to detect any movement and paired with the distance sensor it can alert the LED and LCD that there is close movement which triggers it to say “Stay Away!” or “You are safe” if there is nothing near

Step 2 - the Build (Assembly Process)

socialdistancingsensor.png

This is the whole structure/build of the circuit and how all the components need to be placed

Step 3 - Schematic / How the Circuit Works

Schematic.png

Components :-

The PIR sensor is used to detect any movement that happens and is paired with the Distance sensor to be able to tell the exact distance from an object (in this case other people) which will be displayed on the serial monitor, The potentiometer is used to control the LCD which is meant to display "Stay Away" or "You are safe" respectively when an item is close or far. The RGB LED flashes Red when its danger and green when it is safe. The resistor is used to connect components such as the Piezo Buzzer to GND so it can beep whenever it is a danger. This whole circuit is very cool because it uses many different ways paired up with each other to display generally the same thing such as the buzzer, LED and the LCD.

Code:-

The library for the LCD (Liquid Crystal) must be installed/imported into the Arduino program first in order for it to function properly (all the pins connected from the LCD to the Arduino need to be specified separately from the other functions under a "LiquidCrystal lcd" section before the rest of the pins and functions are listed regularly. (Full Code in the next step which includes the other info that needs to be included such as the void setups and the digital write commands for it to properly function up to its intentional purpose)

Step 4 - Full Code

Down below is the exact code used which should be able to provide more detail on how every component is being connected and how it functions

Conclusion

Overall I hope this was helpful to anyone trying to replicate and learn from this circuit and as a summary its really nice to see many unique and different components all come together for one purpose and I personally got to learn a lot from this project especially about things like LCDs because we had not learnt anything about them in this course and I found it interesting having to download extra things on to the software on top in order for it to function

Working Video Example

This video shows a working example of the circuit actually working as intended and you can see things such as the LCD print stuff and the LED change colors and the buzzer making sounds (no audio unfortunately) And this is how the circuit should look after completed!