This idea mainly is an application for my final project's idea.
As the origami pieces open the star will be lighted-up with a white color (White LED) and when someone gets closer the smaller triangles will be lighted up with different colors according to the distance between the person and the object (RGB led).
My assignment idea for this week is to connect a servo motor with an ultrasonic sensor and RGB led.
At the same time, connected is the white led and the PIR Sensor.
Steps:
1- Connect the RGB led to resistors then to Arduino (ground to the ground)
2- Connect the ultrasonic sensor to the breadboard and Arduino
3- Connect the led to Arduino
4- Connect the motor to the breadboard and Arduino
5- Connect the PIR sensor to the breadboard and Arduino
6- Finally connect the breadboard to Arduino (5V and GND)
Input 1: Ultrasonic sensor.
Input 2: PIR Sensor
Action component 1: Servo Motor
Action component 2: RGB Led
Action component 3: led
The change in the code was making the RGB led light with different colors instead of red and green only.
And also the PIR and the other led were added to the code to work simultaneously.
To fit my project...
Someone else's idea was to use libraries to facilitate the process and help us out
The instructor showed us how to correct the errors in the text code and how to understand the problem and be able to solve it.
I couldn't understand how to write a code and edit it at the beginning but then I made it finally and it worked and I am so proud
I can use all the applications of this week combined together to form the functions of my project.
How to make objects smart + Interactive =)