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

 

 

 

 

 

 

 

arduino 9v output Social

 

 

 

 

official.arduino
2019-09-13T20:23:14+0000

See the world through the eyes of this camera-equipped, snake-like robot.
safe image.php?d=AQB2kdm3zOD71KQX&w=720&h=720&url=https%3A%2F%2Fblog.arduino.cc%2Fwp content%2Fuploads%2F2019%2F09%2FUntitled 2 3 - arduino 9v output
official.arduino
2019-09-13T16:58:23+0000

This 3D-printed prosthesis uses computer vision to adjust its grip depending on the object.
safe image.php?d=AQD dQbotzfS6mLl&w=720&h=720&url=fbstaging%3A%2F%2Fgraph.facebook - arduino 9v output

Heart Rate Monitor Imp

kevin.hoyt photo

Energy meter

ben barker photo

2016-04-15T14:35:45



 photo

2016-04-15T14:35:40



 photo

2016-04-15T14:35:36



 photo

 

 

(Visited 20 times, 1 visits today)

About The Author

You might be interested in

Comment (13)

  1. Nice! But I think you could do it with just 2 pins 🙂 Just connect the voltage divider for D+ between GND and Vcc (3,3V) and a line from D+ straight to a pin. For the D-, connect the top of the divider directly to Vcc and the bottom to a pin.

    1. Thanks! I’m quite sure you are right! During handshaking, power supply will try to discharge the voltage on D- line through an internal pull-down resistor. I don’t recall how strong that pull-down is… If in your configuration the top of the D-‘s voltage divider is connected to a pin and the bottom to ground, strength of that PSU’s pull down shouldn’t matter. When pin is input, nothing is fighting against that pull-down.
      It’s getting late here, but I will definitely look into this and test it tomorrow.
      Thanks again for very helpful comment.

    2. No problem! I don’t have a QC2.0 unit so I can’t test it. And it’s getting late here as well (Netherlands) but I’m just watching YouTube before I’m off to bed :p

    3. I tested the configuration you described, but for D- connected top of the divider to pin and bottom to ground. It indeed works.
      I am not sure about maximum voltages allowed in D- and D+ lines, so I don’t know if this is suitable for 5V Arduinos. For me that isn’t a problem.

    4. Nice! That saves two pins. 🙂 If you want I can wrap it in a nice Arduino library if you want to.
      And I think
      Under normal conditions the data lines have a max voltage of 3,3V. But that said it is already powering it via a resistor which you can probably make 10x higher without a problem. That would limit the possible current a lot. Also, instead of the D+ going straight to a pin you could add a resistor. 1k if you want to use a 5V Arduino. But a 680R should also work for both 3,3V and 5V and will keep the D+ voltage at a max of 3,3V 🙂

    1. Hi! If I remember correctly, QC3.0 power supplies are backwards compatible with QC2.0. So, this should work with QC3.0 power supplies, as long as 5V, 9V and 12V are only voltages that are needed. To get other voltages that are supported by the QC3.0 power supply, this gadget would need some changes… I don’t have QC3.0 power supplies, so I have no idea what those required changes are.

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *