arduino 9v output
Goal is to keep it simple and make a device that most electronic hobbyists Could replicate., I will show you how to make a device that will automatically switch output of quick charge, 2.0 power supply to 9 or 12 volts.. You can select the output voltage by making simple modifications to the code. I’Ll provide. By combining function calls that change the output voltage with delay functions. You can make tester that will cycle through the output voltages at the delay of your choosing. For this project I used 3.3V Arduino Pro Mini compatible board. I bought from eBay four resistors couple of generic 1n4148 diodes and an old USB cable. Resistors I’ve used are two 2.2kOhm and two 1kOhm.. I made two identical voltage dividers by connecting one of each resistors in series with each other between two gpio pins.. Usb cable’s D is connected to output of one divider and D to the output of the other divider. Divider between pins 2 and 3 controls the voltage on D line and one between 4 and 5 controls the voltage on D line.. I have connected two diodes in series between red wire of the USB cable and RAW input of the Arduino, because at least these clone Pro Minis don’t like voltages over 12V and the tolerance of power, supplies’ 12V output allow them to be little bit higher.. If you have seen the previous video you’ll know, the QC2.0 protocol uses two voltage levels: 0.325, 2 volts and second one is over 2 volts.
. Both of these can be achieved with these voltage dividers. Over 2V by driving, lower pin high and upper pin low and 0.325 2V by driving upper pin, high and lower, pin low. In the sketch I’ll provide. You don’t need to worry about this too much.. There is function for doing the hand, shake and function for selecting the output voltage.. You can easily include these functions to your own sketch and, if needed, you can change the used GPIO pins if these are already used in your applications.. Just remember: the port looks like regular 5V port, but this device can make the output go as high as 12V. That destroy 5V devices, so be careful and use this at your own risk.. I take no responsibilities.
arduino 9v output Video
arduino 9v output news
Posted on Saturday November 03, 2018Arduino Nitrox Analyzer For The Submarine Hacker HackadayFor Hackaday readers who don’t spend their free time underwater, nitrox is a blend of nitrogen and oxygen that’s popular with scuba divers. Compared to … … Continue Reading »
Posted on Saturday March 04, 2017Unlocking 12V Quick Charge On A USB Power Bank Hackaday[Robert Nixdorf] frequently needs to use this high-end audio recorder, but it sucks dry a set of eight AA batteries in just a few hours. Obviously a longer lasting … … Continue Reading »
Posted on Monday January 08, 2018Entropy And The Arduino: When Clock Jitter Is Useful HackadayWhat do you do, when you need a random number in your programming? The chances are that you reach for your environment’s function to do the job, usually … … Continue Reading »
arduino 9v output Social