IoT-Arduino Project

by yyang67 in Workshop > 3D Printing

770 Views, 1 Favorites, 0 Comments

IoT-Arduino Project

7277ea0ae07d61f664b87bf2f3b91d8.jpg

This is a remote interactive device. Two people each own a device. When your device senses your presence, the other party's device will light up. In this way we want people to connect with each other.

Supplies

Two ESP8266/two infrared detector/two red LEDs/two yellow LEDs/some resistors/some wires/some fabrics

Make Some Sketches

微信图片_20201111012728.jpg
微信图片_20201111012725.jpg

I hope it is a desktop component. It's best only the size of a milk carton. Use the power cord to supply power and be able to connect to the Internet.ght up. In this way we want people to connect with each other. Here are some design sketches.

Build the Circuit

1.jpg
ir-distance-sensor.jpg

I‘m using the ESP8266 NODEMCU board. So the circuit can be built in this way.

The black sensor in the circuit is GP2Y0A02YK0F20 Infrared distance sensor.

Use Adafruit.io

QQ截图20201218124250.jpg
QQ截图20201218125413.jpg
QQ截图20201218125459.jpg

Use adafruit.io to get an online information transportation. That's how the two devices talking to each other.

https://io.adafruit.com/

Create two new feed command1 and command2.
Find your IO_KEY information in My Keys.

Write the Program

QQ截图20201218130010.jpg
QQ截图20201218130402.jpg
QQ截图20201218130753.jpg

Algorithms are attached under. There's three parts that you have to write by yourself.

The first one is the IO_USERNAME and IO_KEY. Use the username and key we got from previous step.

The second is your WIFI name and WIFI passport.

The last one is the sensitive range of your sensor. It's in the loop. Change the number(in picture is 400) after the word "if value" to have the sensitive ranhe you would like to have.

Upload these two programs to two ESP8266 boards.

Also make sure you have these libraries in your Arduino.

Downloads

Assemble Parts

微信图片_20201125060107.jpg
微信图片_20201125060305.jpg
微信图片_20201125060308.jpg

Use a breadboard to test the components. The first test is the detector. Use the serial monitor to determine whether the detector can work normally, and what its sensing value is (my feedback number is about 400)

Make sure you have these SYB-170 micro breadboard(35mmx47mm). Or other size might not fit into the model later.

Quick Check

WeChat 20201202210739

Before final assembly, we must ensure that all components can run smoothly.

3D Printed Shell

QQ截图20201201230829.jpg
QQ截图20201201230752.jpg
rBVaI1kCoZaAQQiWAACktAmxECo809.jpg
微信图片_20201216011708.jpg

Use rhino to make a 3D printed shell. All dimensions fit the device just right. The two stl files of parts are attached.

Use a white ping-pong ball as it's head.

Also you can use whatever you like:)

Final Assembly and Effect

IoT Arduino project Yiwu Yang 2020

This is the final video, including the assembly process.