Concept
Ideation
Luminous Hanger
The idea of this product is a lighted hanger that can be placed in your bedroom or in your wardrobe. Once it senses your presence in front of the dressing room, it will automatically light up to help you choose and change clothes. You can also control the color of lighting that suits you, and you can control the direction in which the lighting is turned on because it can be illuminated from several directions. This can alert a blind person to his presence and help him know the colors of the clothes he is wearing
Inspiration
This week's task is to create a smart product or device to solve a problem or perform a specific function, with the permission to choose to work on your project idea. I chose this. I am making a prototype for the final project, which is an illuminated hanger.
software : Tinkercad
It is online software from Autodesk, I think it is a discovery for me. It is used in modeling and building electronic circuits and simulating them, and this is the best part about using it. It allows you to build any electronic circuit because it has a large library of electronic components and the wonderful feature of writing codes through blocks that are built, in addition to the usual method of writing using text.
This program is used through which we transfer to the Arduino, where the code was copied from the Tinker Cad and checked to ensure that there are no errors. Then the download was done and made sure to choose the Arduino Uno from the drop-down list at the top.
components
RGB LED
Buzzer
Jumpers Wires
Breadbord
IR Sensor
3 resistor
Arduino UNO
slidebutton
Tools of the crafting
Glaw Gun
Cutter
Sissor
caardboard
Output Components
Buzzer
Buzzer is one of the output components, which is often used to provide some kind of warning or produce music with different pitches. It requires 5 volts
RGB LED
There are two kinds of RGB LEDs: common anode LED and common cathode LED. The figure below illustrates a common anode and a common cathode LED.
In a common cathode RGB LED, all three LEDs share a negative connection (cathode). In a common anode RGB LED, the three LEDs share a positive connection (anode).
This results in an LED that has 4 pins, one for each LED, and one common cathode or one common anode.
The best way to distinguish between a common cathode and common anode RGB LEDs is using a multimeter.
Put you multimeter is in continuity mode.
Place the red multimeter tip on the longest LED lead. Then, place the black tip on one of the other leads.
If the LED lights up, this means you have a common anode LED.
Input Components
Otherwise known as the IR sensor, it’s an optoelectronic component that’s sensitive to radiation. With the help of an IR sensor, you can detect motion in your immediate surroundings, or measure the amount of heat being emitted by an object.
An infrared signal transmitter sends waves that collide with an obstacle and bounce back and are received by an infrared receiver.
slidebutton
The operating switch has three legs, the middle leg is common, and the two ends are given one positive and the other negative. When moved to one of the positive terminals, current passes and vice versa when moved to the other terminal.
The breadboard is considered one of the solutions through which electronic circuits and smart circuits can be created using Arduino without having to make welds between wires and using complex boards, as it is used in Prototype.
As is clear in the pictures, how to connect, the difference between the slots, and how to use them
step 1
step 4
step 2
step 5
step 3
Step 1: Assemble the bottom base in the form of a box and insert and install the electronic components inside it, taking care to make holes for the buzzer, the control switch, the power input, and a hole to show the sensor.
Step 2 & 3 : Install the upper part, which has a small hole to show the LED
Step 4 : A triangle-shaped piece was cut after measuring the required length and appropriate shape
Step 5: I made several copies of this triangle so that they could be placed on top of each other and thus obtain the thickness of this triangle. As for these small pieces, they were cut to be supports from the inside, as we will notice in the product image.
Coding / preparation process
I connected the 5V pin to the positive row of the bread board and connected the grounder to the negative row
Connect the common terminal of the ignition switch to pin 7, one terminal to the positive and the other to the negative
I connected the signal end of the sensor to pin 6, the power end to the positive, and the other to the negative
Connect the positive terminal to pin 5
Connect the blue end of the LED to a resistor and connect it to pin No. 9
Connect the green end of the LED to a resistor and then connect it to pin No. 10
Connect the red end of the LED to a resistor and from there to pin No. 11, and connect the cathode end to the negative.
Arduino C Code
part 1
part 2
Code function description
If the switch is turned on, the LED will light up white
In this case, when the sensor senses the presence of a person approaching the lighting unit, the buzzer will emit music for 2 seconds, and the LED will light up in three sequential colors: red, blue, and green, between each of them for 2 seconds.
If no one approaches, the LED will only light white until I turn off the switch
Assembly 🛠️
When the sensor senses the presence of someone, it turns on the buzzer for a few seconds and lights up the LED colors successively for a few seconds as well. Then the light stays on white, and all of this can be turned off using an on/off switch.
Final 🤩
....finally
A simulation of the final project was made, as is clear in terms of design and function, with some differences that I will modify to suit the final product.
Challenges 🥹
It was a big challenge for me, and with the help of (Lecturer/Israa Rajeh), this challenge was overcome.
The challenge is: using only one resistor with the LED, and this resulted in a problem, which is that each color did not appear as desired. I wanted the lighting to stay on white after the alert, but this did not happen, so it was fixed to a color that is closer to red.
The solution: I placed three resistors with the same value for each color, such as red, green, and blue, and thus I obtained white lighting
Files & Resources💾