Go Down

Topic: Using AC/DC converter to power Arduino from Vin (Read 565 times) previous topic - next topic

compnaion

May I ask where you live?

Two things:
1) You can use the USB of the Arduino to just power it (for example from a charger or power bank). You do the same when you charge your phone ;) And a good charger is a easy and safe long term solution.
2) You don't need to use the USB on the Arduino when you use a charger. You can cut a USB cable and solder the power just to the 5V and the GND pin. That way the USB is still free. But connecting it to a PC while also supplied with 5V from another source you feed 5V back to the PC. Most PC's don't like that. So if you want to connect it to the PC while connected to the charger (for example during debugging or changing the code later) you can use a USB cable with the (red) 5V cable cut. Alternatively you can cut the trace on the Arduino for the 5V from USB (but that's kind of a permanent solution) or not connect the USB while it's power from another source. BUT, that's pretty easy to forget ;)
I'm from Turkey. Cutting an usb cable and connecting it to the converter seems really good idea. I would use a usb charger but, it would make the system a lot bigger than I desire. What I am planning to do is, I will take mains from under the electric switch and connect it to the converter. This way there won't be any cable to be seen in the environment (I will make a 3d printed case for the system). Thank you very much for all of your helps :).

septillion

Mm, Turkey is indeed one of the countries I'm not sure :D

You can also cut the charger open and use the bare PCB. It's just that the module inside of a brand charger is known to be safe whereas for a China model you just don't know what you get.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed


septillion

Don't know how to handle what?

They kind of look like what you linked but better quality. Power in goes to where the prongs where connected, power goes out of the USB connector of which you can get info. Probably has explaining silkscreen on it as well.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

compnaion

Don't know how to handle what?

They kind of look like what you linked but better quality. Power in goes to where the prongs where connected, power goes out of the USB connector of which you can get info. Probably has explaining silkscreen on it as well.
Well then, you are right about quality, I will try to make one. Thank you for the advise :).

Go Up