I don't mind having a different kind of vibe. I'm someone who loves my room a lot, and I like to have different things and decorations in it. So, I don't mind having RGB lighting that lets me choose different colors for the room depending on my mood. I also don't mind having the fan on a remote control for those lazy times🥱.
Tinkercad
Fritzing software
Arduino IDE software
Buletooth module
Fan
Ardunio
Jumpers
Resistance
RGB led
Input:-
buletooth module .
Output:-
RGB LED and Fan
First, I connected the positive and negative (5V and GND) from the Arduino to the breadboard. Then, I placed the RGB LED, which is the first output device. I placed a 330-ohm resistor on each leg (anode) for the red, blue, and green LEDs. I then connected them to pins 10, 11, and 12 respectively.
After that, I connected the Bluetooth module(Input device) as follows:
The positive (VCC) to the positive (5V) on the Arduino.
The negative (GND) to the negative (GND) on the Arduino.
I also took a wire from its TX pin connected to a 1K ohm resistor, and then to a point on the breadboard which is connected to the Arduino's RX pin.
Then, from that same point, I connected a 660-ohm resistor to the Arduino's TX pin.
The final pin, which is the RX of the Bluetooth module, I connected directly to the TX of the Arduino.
The last thing was the fan. One of its wires is connected to the Arduino's ground (GND), and the other wire is connected to pin number 9. As an alternative to it, I used a DC motor.(that the 2nd output)
First, I started by defining the pins for each color (of the RGB LED) and the fan pin. Then, I set their pinMode to OUTPUT, and they were all outputs.
After that, I set a condition that as long as no data has been sent yet, the values shouldn't appear on the monitor.
Then, I started setting the conditions:
If the incomingData is equal to '1', pin 10 should turn ON (HIGH) and the other pins should be LOW, and so on.
Until the condition that if the value '4' is sent, the fan turns ON.
The last condition was that if any value other than the specified ones is received, all pins should turn ON (HIGH) except fan .
Finally, the code prints the value of the data being sent to the Serial Monitor.
The last condition was that if any value other than the specified ones is received, all pins should turn ON (HIGH) except fan .
Finally, the code prints the value of the data being sent to the Serial Monitor.
I connected the Bluetooth sensor (module) to the breadboard. I connected the VCC pin to the 5V(the power source value) pin on the Arduino, and also connected the Bluetooth module's GND to the Arduino's GND.
I then took the TX pin from the Bluetooth module and connected it to a common point between two resistors: one 1K ohm and the other 330 ohm. Between the second resistor (the 330 ohm) and a third resistor (also valued at 330 ohms), I made a connection to the Arduino's TX pin.
After that, I connected the common cathode of the RGB LED to the Arduino's GND. I connected each of the three remaining legs (anodes) to a 330-ohm resistor. Then, I connected the other ends of the resistors to Arduino pins 10, 11, and 12 respectively.
input components:-
Buletooth module
output components:-
RGB and fan
Then, I opened the 'Arduino Bluetooth Control' app on my phone (after pairing with the Bluetooth module) and started sending values from the buttons. I printed the result to the Serial Monitor, and it was displayed clearly at the top of the code screenshot.
The last thing was the fan. I connected its negative wire to the Arduino's GND and the positive wire to pin number 9.
Yeah, I had a challenge because I didn't know how to properly connect a voltage divider resistor, so the circuit wasn't working. Then I started paying close attention to the connections, and the problem was that I wasn't connecting the common part, which is the ground of buletooth sensor, with the resistor.
I can use the knowledge of electronics to prepare the final project for the fabrication process also I can use online sources to choose the outline of my design .
The coolest thing for this week was Micro Robot Arm