Ultrasonic Sensor Automatic LED Welcome Animation Lights and LCD Information Screen

by josephraychen120 in Circuits > Arduino

254 Views, 1 Favorites, 0 Comments

Ultrasonic Sensor Automatic LED Welcome Animation Lights and LCD Information Screen

IMG_3648.jpg
New Screen Shot Name 2020-05-25 下午11.47.41.png

When you come back home tiring and trying to sit down and relax, it must be very boring to see the same thing around you over and over again every day. Why don't you add something fun and interesting that changes your mood? Build a super-easy Arduino project that welcomes you with soft relaxing yellowish lights running in a fun animation coming with an LCD screen that can project your own name and what you want to say to yourself.

(THIS IDEA OF THE PROJECT IS ORIGINATED BY ME)

This Arduino project is activated by an ultrasonic sensor that comes up with soft relaxing yellowish lights running in a fun animation and comes up with an LCD screen that projects any information you want.

Supplies

  • Scissors
  • Double-sided tape
  • Paper tape

Constructing the Board

New Screen Shot Name 2020-05-24 上午1.08.02.png

Please follow the picture while constructing the board

On Breadboard:

Connect 5V (on arduino board)->(+) (On breadboard)

Connect GND (on arduino board)->(-) (On breadboard)

For Ultrasonic sensor:

Connect VCC->(+) (On breadboard)

Connect TRIG->Dpin3

Connect ECHO->Dpin2

Connect GND->(-) (On breadboard)

For LED Lights:

Connect Dpin->LED (Longer Leg)

Connect LED (Shorter leg)->10kΩ Resistor->(-) (On breadboard)

For I2C LCD screen:

Connect GND->(-) (On breadboard)

Connect VCC->(+) (On breadboard)

Connect SDA->SDA (on arduino board)

Connect SCL->SCL (on arduino board)

Setting Up Your LCD Screen

New Screen Shot Name 2020-05-26 上午12.14.23.png
New Screen Shot Name 2020-05-26 下午4.20.17.png
IMG_3622.jpg

SETTING UP YOUR LCD SCREEN

  1. Light up your LCD screen and Get a screwdriver
  2. Turn the screw behind the I2C screen and see the changes on the screen
  3. turn the screw to make the LCD screen easy and clear to see

SETTING UP YOUR CODE

  1. You need a ZIP file in order to run your code. Click HERE to download
  2. The ZIP file should be called "LiquidCrystal_I2C
  3. Please DO NOT open the ZIP file
  4. Go In Arduino->Include Libary->Add .ZIP Libary...->ADD YOUR ZIP FOLDER
  5. Now you're OK and can move on to the next step

Write the Code

New Screen Shot Name 2020-05-26 下午4.32.35.png

After your board is constructed, you can start writing the code.

Click here for the code

Annotations are given for changes and if have any questions please comment down below

Set It Up

IMG_3624.jpg
IMG_3625.jpg
IMG_3626.jpg
IMG_3631.jpg
IMG_3632.jpg
IMG_3633.jpg
IMG_3634.jpg

Find a suitable place to set the device up. For me, I set it up behind my computer screen with the ultrasonic sensor and the LCD screen facing towards me.

RULES FOR SETTING UP:

  1. Find a place suitable
  2. The ultrasonic sensor must face towards the user
  3. The nearest object that the ultrasonic sensor can detect shouldn't be less than 100 cm. (You can but you need to change the code written)
  4. The LED should be set up where can be visualized
  5. The LCD screen should face towards the user
  6. Don't set up the device near extreme temperature and humidity
  7. Calculate the space needed for the device, don't bend or crush your cables or device

You're Done!

IMG 3628
IMG 3630

Congratulations, you're done with your Arduino project!

FRIENDLY REMINDER:

  1. Before starting the device, make sure you have connected all cables properly and correctly. When it's not connected all cables properly and correctly, it might cause serious damage to your Arduino board and computer, which might cause them to overheat and might cause fire.
  2. The arrangements of the pins can be changed by yourself, just change the pin number in my Arduino code to fit your scenario.
  3. You can add add-ons by yourself, just add and change my Arduino code to fit your scenario.
  4. You can change my Arduino code, just make sure it fits your scenario.

RECOMMENDED CHANGES:

  1. Change the LED welcome light animation via code
  2. Change the LED welcome light color
  3. Change the ultrasonic sensor detection distance via code
  4. Change the words/information on the LCD screen
  5. Use add-ons (eg. add temperature to LCD, add a clock to LCD......)

How to Use?

Arduino Ultrasonic Sensor LED Welcome Animation Lights and LCD information screen

How to use it?

Just walk in the area the sensor can detect. When the sensor detects you, the device will be activated and will light up all LED lights and the LCD screen.

This device is built precisely and can work/fit in many scenarios.

Scenarios:

  1. You walk in the detected area->the sensor detects you->LED and LCD activated->You still stay in the area->All LED and LCD won't be activated again
  2. You don't walk in the detected area->the sensor won't detect you->All LED and LCD won't be activated
  3. You walk in the detected area->the sensor detects you->LED and LCD activated->You leave the area->All LED and LCD won't be activated
  4. You walk in the area->the sensor detects you->LED and LCD activated->You leave the area->All LED and LCD won't be activated->You walk in the detected area again->the sensor detects you->LED and LCD activated