Bluetooth LED strip arduino control Android App
Vložit
- čas přidán 7. 09. 2024
- Create this app and control the brightness of each RGB colors of a LED strip. Send data via bluetooth with your smartphone using a created App, a bluetooth module and receive data with the arduino. You will learn how to create an Android app in AppInventor. Using a bluetooth client you will connect to a bluetooth module of the arduino. A PWM signal will control each of the 3 red, green and blue color of the strip.
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.co...
Canal en Español: / electronoobs en español
-----------------LINKS-------------------
Tutorial webpage: www.electronoob...
Download the Led Strip Android App: www.electronoob...
Create the Android app video: • Create a Bluetooth App...
App inventor: ai2.appinventor...
---------------MATERIAL---------------
HC-06 bluetooth module: www.ebay.com/it...
BD681 transistor: www.ebay.com/it...
BD140 transisitor: www.ebay.com/it...
5m RGB Led Strip: www.ebay.com/it...
---------------SCHEMATICS-----------
NPN schematic: www.electronoob...
PNP schematic: www.electronoob...
-------------------CODES-------------------
NPN code: www.electronoob...
PNP code: www.electronoob...
Bluetooth serial data read code: www.electronoob...
my Q&A page: electronoobs.co...
!!►EXTRA◄!! See receiving blocks example: www.electronoob...
-------------------OTHER APPs-------------------
Room control App download: www.electronoob...
BadAss Tank App download: www.electronoob...
See this in order to know what character each button sends
BadAss Robot app datasheet: www.electronoob...
Visit my webpage for more tutorials:
www.electronoob...
SUBSCRIBE and motivate me!!!
Great, I made your project and it works very well. Thank you very much.But can you add an auto changing color besides the bluetooth control in your code? for example when you connect the project to 12V DC it begins blinking or changing the colors while waiting the smartphone control, thats all.
ELECTRONOOBS YOU SHOULD DEFINITELY MAKE A VIDEO EXPLAINING HOW TO BUILD A CIRCUIT, CODE, APP AND ZERO CROSSING CIRCUIT WHICH CAN CONTROL AT LEAST 5 AC LIGHT BULBS AND BE ABLE TO NOT ONLY TURN THEM ON/OFF BUT DIM EACH ONE OF THEM SEPARATELY VIA BLUETOOTH HC-06 AND ANDROID APP. THAT WILL BE A CHALLENGE!!!
Sir you have gotten my subs, great work. I learn so much each day
Cool! I dit it . Now I have to make it with MSP430 as a school project. But it seems to be much harder.
Your videos are awesome. You deserve a lot of views.
weirdbeardmt thank you very much
Cool I'm just making the same thing but I'm using a Picmicro
great video dude :)
First timer here and I have a question: Is there a way to take this code and turn the LED's into a wave or flash between each color?
Of course. Just change the PWM values. Create some sort of loop that should wave the colors!
Thank you, I was wondering why my lights were not working.
1st of all great work on the video.
secondly i'd like to know if you can add a dimming feature on this project
thanx
Yes, Controling the duty cycle of the applied PWM signal you control the brightness.
Hello, great video, very clear!
What length can the led strip be? Would this work for a 10m led strip (i guess not).. What would your solution be? A second transformer ?
Thank you very much . Your tutorial is very useful . I love it .
amazing project thank you from algeria
Hey, could you make a video on how to make music reactive RGB lights.
It's easy. Similar mechanisms.
In the MIT App Inventor you can get real time audio with the Realtime spanish extension.
Send that data through Bluetooth client to the Arduino and the led strip's brightness can be controlled with that data.
I enjoyed your video. It was very helpful. Thank you!
Why u dont use combination colour in your apps ?
Hi man, great video!! For the 12V power supply have you just cut the connector off the end and put the live and ground wires in the breadboard? I'm very new to electronics and this seems a bit dangerous
Yes. If you have 12V DC (NOT AC) you have nothing to worry about. Jut make sure you have no short circuits.
Sweet! thanks
Hey!!!...do u connect the 12V DC transformer directly to the arduino using the power jack?
I assume the BT serial data reader code works only when the app connects to the HC BT module? However, Certain apps send data only to their BT ID devices (comes preconfigured from manufacturers).. In such cases, how can we read BT data please?
Sooper project and very nice tutorial.
And also the HC-06 module's UART is not 5 volt tolerant use resistors to step down the Tx signal from arduino from 5 volt to 3.3 volt... You can easily kill the bluetooth module
Ok but what to do if i want to dim ledstrip a little bit? e.g. Red collor 255 0 0, but that's full strength light. Shoul i add another transistor to 12V+ line and control it by pwm?
Sir I want to ask you that in this project are you using arduino uno or arduino nano and can you help me with the circuit diagram of this project.
This is awesome...
Can i have the project files (.aia) and code for this bluetooth led strip please?
Can a simple LED connected to usb port be programmed as a notification led without any circuit?
Nice one! Only I think Mosfets would be more efficient.
Vibhore Jain to control brightness is better to use bjt due to its current control!
Ohh I suggested that because as far as I know the on resistance of a mosfet is in the range of miliohms which is lesser than on resistance of transistors but ohh well if it does not heats up then no issues at all
Vibhore Jain you are correct; N channel MOSFETs would be better than BJTs for this because of their low drain to source resistance. BJTs would be better in linear mode if the arduino had analog outputs.
is it possible to create an individual color widget on android desktop? Thanks
Hi guys,
its really cool demonstration and the great video
I couldnt upload the sketch to my MICRO USB Nano V3.0 ATmega328P CH340G 5V 16M
which could be a reason. Thanks for replay
You have to select the pro mini board in the board setup of the Arduino IDE and use an FTDI module to upload the sketch. There should be no problems. Dose the IDE give you an error?
Yes it does, but I think you are right. Let me see if I can change the setting for different boards. Cross fingers
Hi again,
It looks good, I could upload the code, i have the schematics OK
I have doubts that, if the Bluetooth module is engadged with cellphone, and in the moment I select the color . . . it should blink RX TX sign LED's??? Becouse the LEd STRIP since the begining is ON and mixing colours ;(( it also is not good
HELP GUYS ;)
Linas Kulvietis yes when you send data of the connection works the Rx and TX LEDs fron the Arduino should blink for a fraction of time. if they don't the Arduino doesn't receive the data. also what schematic did you use? NPN or PNP? I recommend the NPN for less problems!
Actualy I dont know if its funny or what, but the Bluethooth module I have it has 5 Pins (State and EN) . . . . ;( How you know or how you modify the code to accept the module???
Thanks so much
hello electronoobs, i already try using BD140 PNP but the light is not bright enough.
Do you have solution for that?
in my case the light is bright but for (255,255,255) combination the led is not totally off. I wonder how to fix it.
There is something I can't quite understand. The LED strip working current is 5A / per 5 meters. Is a 12V - 1.5 A adapter really enough to power the whole 5m strip?
nope. It can't
Very Nice Bro.. Thanks!
Can i have 5v led strip ? Is it problem or i must bus 12 v led or change schematic
i'm really happy to be here in your channel , i have a project ( smart home ) 3 Leds and moteur to open door , and security system (gas detector ) , can you help me in this project and thanks
Of course. What is the problem? I will be doing a gas/fire detector and wifi security soon so stay tuned.
can you give me your email to contact you ?
my project will be end soon , and i need some help
of course, send me a mail at info@electronoobs.com
oh that's so sweet brother , I sent a message !
How do I do this with RGBW light strips with an Arduino Feather M0? (built in bluetooth on arudino)
I have a question can we make a clock using this plz reply
i want to join 3 5m strip how to do i join it? in series or parallel and how much power does i have to supply in both cases.
Awesome video :) keep up the good work man :) Cheers!
Hey I'm your old viewer like 2 months old i have a question can i use any npn and PNP transistor pl tell it will help me a lot
great vid mate, very informative :)
awesome demonstration:D
Thank you for cool project. I've built PNP version and using your app as well. Works great except black color , instead of it glows slightly red and green. I send 255 but no luck. Please help. TY
Maybe for black, instead of 255 just place digital write high!
@@ELECTRONOOBS TY for answer, but it didn't help. Result is the same. I drive it with 3 PNPs SS8550DBU www.mouser.it/ProductDetail/ON-Semiconductor-Fairchild/SS8550DBU?qs=ljbEvF4DwOMXWCcWk1BrJA== with 3 1K resistors, I bet it might be it, can you help me with right resistor value for these PNPs? TY
Lol 5:15 you also like your own videos like I do like my own videos :D
ganda sotaque tuga !
How can I modify thic code to work with ws2812b addressable LEDs ?
hey can you upload the schematics for the arduino nano and i don't understand by the ground in your schematics. Is the ground connected to the ground of the power source? Please reply as soon as possible. Thank you in advance.
czcams.com/video/hXt2JIHCUu8/video.html
Do this works with hc05?
can i use tip31 transestor?
the BD140 PNP version doesn't turn off the LEDs all the way. I probably have really cheap strips though.
Paul D better used non connected between the strip and gnd
Thanks for sharing :-)
Why u use a 1K resistor in front of the Base? i think its to big
Are there no specific rgb led strip?
How are you connecting your LED strip to your breadboard, I am building this for a school project and may have a lot more questions in the future, Thank you.
To connect it to the breadboard I've used some male pins. Then I've build my own pck and soldered the 4 wires to each transistor. Keep up. Check the webpage for more info : www.electronoobs.com/eng_arduino_tut13.php
czcams.com/video/hXt2JIHCUu8/video.html
which transiter is this
Can I use Arduino nano
Can we do it with nodemcu
Hello, i want this project with 5v 1.5a strip led. I made your system with 5v strip led, but it did not work. What should I change, what should I use?
czcams.com/video/hXt2JIHCUu8/video.html
HI, i've got a problem in my circuit i think... The led strip is blinking when i set it to White or disconect, then i tried an auto-changing color code and the led strip is perma-blinking. I'm using BD681 transistor and chinese "1k" resistences
The problem is just with the white color? If yes it could be a power problem. At white color all LEDs are ON and there is a maximum current draw. Maybe that resets your arduino or is not enough. Make sure that your PS can deliver more than 1.5A of current atr 12V.
Case1: to much current draw resets the Arduino:
I recommend you to add a 16V 100uF or more between GND and the main input or Vin of the arduino. That will remove noise and prevent the micro to restart at full current draw.
Case2: Pins and circuit:
Also make sure that the circuit is OK and that the used pins are defined as OUTPUT.
Case3: Main 12V input has 1.5A or more
Case4: Tne transistors are OK?
If you use the BD681 you should use the NPN schematic and you will have a max brightness with 255 PWM and OFF with 0 PWM. Make sure that the BJT are not burned and try using new ones.
ALWAYS try your circuit on a breadboard till you are sure it is OK.
I hope this will solve the problem. I'm sure that the code is OK because it works for me so it must be a problem of power, circuit or components.
ELECTRONOOBS Thank you!! I will try this ASAP. My PS gives 12v 3A. And I think the arduino it's not getting reset because the color still changes(automatic Code), it just blinks... so I will check again the circuit and change transistors and resistors
Make it auto-change colours :)
I will update this version a lot! Thanks!
I have a question. Is there no problem if I use bluetooth module hc-05?
No, That is also good!
jasper i just try and work with hc 05
how to do it with common cathode.
excuse me sir.....i want an projects using arduino uno or nano which deals with humidity, temperatur,carbondioxide level,methane and gases level ...can you suggest me some projects like this because i cant find any like this...so could you help me sir. thank you
I have no project on that. But I can suggest this module to start with:
Gas sensor: create.arduino.cc/projecthub/gokulpsamy/interfacing-arduino-with-node-red-f07882
IR light/ fire sensor: www.google.es/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&ved=0ahUKEwig5fmB6ZDUAhWLshQKHZL6DqgQjhwIBQ&url=https%3A%2F%2Fdarkbluebit.com%2Farduino%2Ffire-detector%2F&psig=AFQjCNFsVL9uXqqalXkcp4GdRZZmVnWFdQ&ust=1496000157746799
temperature: learn.adafruit.com/tmp36-temperature-sensor/using-a-temp-sensor
Combine these tutorials together and see what you could get! keep up!
how can we change the brightness......????
how to control the brightness?
Nice vid
we cant use bc547
bro can u plz add the circuit diagram for this project
this should work with the arduino nano right?
Ange Einstein yes
Maybe I should have watched the video till the end before commenting
Ange Einstein lol
u make nice videos
Hi. If I write exactly the same code as yours it says 'color' was not declared in this scope. As per my knowledge of C, we need to declare the datatype of a variable too which we've not done in this case. Your code is working, but my code isn't.
Sorry, there was an error when I've uploaded the code. Just change the type of "color" from int to char. I've changed the code here: www.electronoobs.com/eng_arduino_tut13_code1.php just copy and compile!
The code's uploading without errors now. But the system's not working. On the serial monitor just the blue, cyan and yellow tiles are producing a horizontally inverted question mark, no other colors are producing any response. The connections are right.
Make sure that on the serial monitor you have the 9600 baud rate selected, if isn't that, well I don't know, it should work.
Electronoobs If you can share your email id, I can share more details. Need help. The project is important for me to complete.
led stif scrolling text in arduino sir
wow , nice
thanks you
U welcome!
I made it today. but there's a problem...in your schematic you have shown to link 1k resistor to base...and When I tried it doesnt worked...but in this video resistors is connected to emitter, ground to base, and collector to LED...by doing this it worked and its changing colors but after switiching OFF the arduino the LED starts glowing white...and even setting pwn signal to zero it glows...what to do??? NEED HELP...and every LED(r,g,b) is always glowing even changing to solid single color.
In my schematic resistor is connected to the base wich for BD681 NPN is the 3rd pin as you can se here 04:53
Then the emitter, which is pin 1, is connected to ground and the colector, pin2, is connected to the RGB led strip pins. If whan turn off the arduino they glow white that means that you've connected wrong the base and all the 3 colors are ON.
Be careful, if you use the PNP BD140 transistor to turn the led OFFuse 255 signal and 0 to turn ON.
Connect the transistor as shown in the schematic in the description! For the PNP schematic use the PNP code and for the NPN schematic use the NPN code. Keep up!
yes I have connected the same way you have mentioned...but when I press for off it glows with medium brightness...it's never completely OFF...is there problem with the BD140 transistor or anything else...either just selecting single color(like red) , red glows at full brightness and other two at medium....
Shubham Sharma try better the NPN transistors. I hope it will work better. it's clearly that even when your circuit is off your PNP is still feeding some current to the LEDs so maybe NPN would be better for you
ELECTRONOOBS it worked finally...changed the transistor with TIP31...Now working like a charm...thank You...but I was thinking how to make it blink synced with music???
Shubham Sharma one way would be to connect the music output to an OPAM and the opam output to one of the analog inputs of the Arduino and map the voltage to be always between 0 and 5
Can I control the led 1 by 1
If they do not use WS28X LED driver then you can't control the LED 1 by 1.
excuse me sir..i am a beginner andi have some problem in my arduino uno board. my tx indicator is continously glowing so can you help me..thank you sir
SURYA MURALIDHAR you have used the code from this video and the tx led blinks?
No sir unknowing i have coded something and it started to glow
ELECTRONOOBS sir how can i rectify the mistake
SURYA MURALIDHAR if it glows always and it doesn't depend of the uploaded code then the board may be broken
ELECTRONOOBS sir but its a new board i bought it this morning only sir
👍👍👍
My Bluetooth can't connect to the app other things are fantastic
Blue toot coo neck shin
not ws2812 or ws2811.....disappointed.
Sir
I don't need these materials I use MI smartphone
Here is a better version of the project with self made android app.
czcams.com/video/9jZYULcZwNY/video.html