Inspiration: LED light strip with remote control
Finally, a break from cat projects (kind of). I have this led strip controlled by an IR remote control which I use to set a pleasant mood in the work/gaming room at our house. So, for this task I got this idea to control both a servo motor and change the colours of the leds using a Bluetooth module instead of the remote control.
Arduino IDE
Arduino Bluetooth controller mobile app (Android)
Arduino Uno 3
Breadboard
Bluetooth Module.
Servo motor
RGB LED
Voltage regulator
9V adapter
Jumper wires
330 Ohm Resistor
Software & Componenets
Trial & Error: Reviewing circuit design
I initially tried to work with the existing led strip that I had. I was also a bit confused on how to make my circuit work and being lazy that day, I thought I'd give ChatGPT a try. Big mistake. I was instructed to create this circuit (first diagram) and copy a certain code with a very clear logic. and on turning on the power, nothing worked and connecting via Bluetooth, nothing worked (expected!) I then decided to examine each component. I realised that the led strip required 12V to work while I was feeding the Arduino 9V. I also was a bit suspicious about the wiring diagram proposed. So, I went back to the wiring diagram we used last Saturday (second diagram) and replaced the led strip with an RGB led from our kit.
After adjusting the wiring and components, I started reviewing the code. Somehow, it still won't work. I asked for help and apparently with some little tweaks, the code was up and running and circuit came to life. In a sense, ChatGPT provided a valid logic but some of the functions needed to be rephrased.
Trial & Error: Reviewing code
I applied this virtual design on the actual bread board and components.
Connecting circuit's module to mobile app and adjusting buttons
Title of Media
Voltage: It was important to understand the amount of voltage required by each component before investing in building the circuit and code. As mentioned, I realised that the led strip required 12V to work while I was feeding the Arduino 9V.
Don't fully rely on ChatGPT: Initially used as a shortcut, I reliased that using ChatGPT to create a code will not be 100% guaranteed to produce a clean working code. I resolved to the lecture slides, the internet, and my notes as reference.
Circuit Design: Controlling RGB led & servo motor using Bluetooth module and mobile app
Circuit Design: Controlling RGB led & servo motor using Bluetooth module and mobile app
Title of Media
Title of Media