Is it safe to supply Arduino power with 12v through USB-B port?
No.
Hi @rafa-akbar. You can use the barrel jack for that purpose.
Okay, thanks for the reply.
I had a 12v fan for my arduino project and i want to use only 1 adaptor, and my fan using an 5v to 12v step up. So, my Arduino will be using the 5v to 12v, or just the regular usb to jack (5v), or just usb-a to usb-b. Sorry for my bad english
You might use 12V for power with a step-down converter to 7V to feed the barrel jack and make less heat. Some Arduinos won't let you power them 5V to the 5V pin.
Why is to not power the fan through the Arduino at all but turn the fan on/off through a FET (field effect transistor) connected to a pin or just fan always on with 12V.
The hardware gurus here know more than I do about this.
This might help:
Gil's Crispy Critter Rules for Processor Hardware:
- Rule #1: An Arduino is NOT a Power Supply!
- Rule #2: Never connect anything inductive (motors, speakers) directly to an Arduino!
- Rule #3: Avoid connecting or disconnecting wires while the power is on.
- Rule #4: Do not apply power to any pin unless you are certain of what you're doing.
- Rule #5: Do not exceed the maximum voltage ratings.
- Rule #6: Many Arduinos cannot power transmitters directly.
- Rule #7: Before powering your project, take a break and double-check the wiring.
LaryD’s Corollaries:
- Coro #1: When starting out, add a 220Ω resistor in series with both input and output pins to protect against shorts.
- Coro #2: Invest in a Digital Multi-Meter (DMM) to measure voltages, currents, and resistance.
Note: Violating these rules can turn your Arduinos into crispy critters. For optimal performance, keep your wires under 25 cm (10 inches).
Additional Tips:
- The L293 motor driver, though common, is inefficient as it can lose around 3V as heat when driving both legs of a motor. Consider using a motor driver with MOSFET outputs to reduce heat loss and conserve battery power.
- For more on powering Arduino boards, explore this guide: Powering Alternatives for Arduino Boards.
Do you understand what to do?
Hi better use USB-B Port to develop code and If u want to test voltage 12 volt to arduino is not "really good" bcz usally it´s use to work to 5V.
Also If u use a battery try to use the battery-port i think that it has a voltage regulator