Hi, im planning to make a compact setup to power my led but I am unsure if my circuit will work without damaging the components.
I want to power my led stick which will consume 5V 480mA each and I'm using two of it.
For my setup I'll be using:
Power Bank (output 5V 2A) (powers the led)
usb to 2-pin adapter (to connect powerbank to the led)
Arduino board (unsure which version I want to get)
ws2812 led (the 8-led stick)
My Arduino will be powered via type c from a separate power source
This is a rough diagram of how my circuit might look like (i haven't purchased the parts yet so i can't show a real-life connection)
Thanks for the quick reply! So for modification i just have to connect another wire from the power bank negative to the gnd pin of my arduino and up the resistor value a little and i'm set?
1. Data line resistor: I typically use a 470-ohm resistor in series with the LED strip data line. It protects that first pixel or so from damage in case there's a data spike. 2. Common Ground: Run a ground wire from the negative of your exterior power supply to an Arduino GND pin. I usually just cut a male jumper wire in half, strip the cut end and solder that to the power supply negative wire. Then, use the remaining end with the male jumper to plug into an Arduino GND pin. 3. Electrolytic Capacitor across the power supply (bonus): I don't know how big your LED project is, but for longer runs I add a large electrolytic capacitor across the + and - of the power supply. This protects your LED strip against damage from any voltage spikes.
No.
You will need to add a large capacitor from the power to ground on the input to the strips. If they are long strips, then adding another at the end is a good idea as well. With very long strips you might have to have another one at the mid point.
Please read the link in post#3.
The other problem you will have is with the sequence of powering up and down using the two power supplies. Best to use a double throw switch to power both at at the same time.
Had I used AI, my explanation probably would have been more "textbook" and worded more accurately. I'm always learning new things by actually building circuits and learning from my mistakes. But, if you ever looked at any of my code, you'd agree that AI probably could have written it better but it works, and I've improved a lot doing my own troubleshooting.
As for the electrolytic capacitor, it would be more accurate to say that it filters out voltage fluctuations to provide a smoother and more stable DC power supply rather to say that it outright prevents voltage spikes.
For convenience, here's the part about how it works with regard to power supplies:
A decoupling capacitor acts as a local electrical energy reservoir. Capacitors, like batteries, need time to charge and discharge. When used as decoupling capacitors, they oppose quick changes of voltage. If the input voltage suddenly drops, the capacitor provides the energy to keep the voltage stable. Similarly, if there is a voltage spike, the capacitor absorbs the excess energy.
To the OP, I hope you got your project up and running - celebrate every win!
Yes it can. Here it is more likely that it is using, and repeating without any additional "thinking", confident assertions of not-facts all over the internets.
Yeah but it is there for another reason, to protect the Arduino against accidental shorts ? (or even bounce) It is a current limiting resistor. To prevent adding capacitance a metal-film is preferred over carbon film.
I want to sincerely apologize for my post accusing you of using ChatGPT's work as your own. Upon further reflection, I realize I jumped to conclusions and acted rashly. I deeply regret making the accusation publicly and any frustration or hurt it may have caused. It was wrong of me to assume without having all the facts.
If there is anything else I can do to make this right, please don't hesitate to let me know. I truly appreciate your understanding, and I apologize once again. Sincerely.
How could we look at your code this was the first time you have posted here and you only posted your first post less than an hour after registering.
I am sorry you have managed to pick up so much misinformation. These voltage spikes that you think things pick up, where do they come from? If you are picking up voltage spikes then the solution is to track where they are coming from add stop them at source.
That is your biggest mistake yet. AI might word it better but it would probably make up a lot more stuff that you would then think is true.
As to decoupling I know all about this. See my tutorial on the subject:-
By the way the first quote
nine time out of ten it is the power supply de-coupling. And you will find that the tenth time, turns out to be power supply de-coupling as well.
Is a parody of a famous English cricketer Geoffrey Boycott, on the subject on advisability of batting first if you win the toss. I thought it fitted very well with the subject of my tutorial.
It is indeed a one-person operation - just me. I write everything on the website, shoot all the videos, and do most of the video editing. As a result, the output is only 1-2 videos/blog posts per month
I use it to document what I'm learning, even if it's rough around the edges sometimes.