Hi, i'm trying to build a little power supply for my experiments. knowing that a phone charger can be driven from 3.6 to 12V (or 20 for some models) i acquired a silvercrest phone charger with 4 usb ports ( 5-9V) and 1 QC 3.0 port. The problem is i cant get any voltage different from 5V.
working on some try, with voltage dividers and manual connections i had 12v and 9v out of there, but non of arduino projects works. and i know that a QC 3.0 can select increments of 0.2V. its frustrating.
It's not a solution for my objectives. The final project has a potentiometer and some buttons wired to the arduino as input for the voltage selection, and the 0.2V step is not possible with a pc power supply
void loop() {
//And you can change it on the fly
delay(1000);
quickCharge.set9V();
delay(1000);
quickCharge.set5V();
delay(1000);
quickCharge.setMilliVoltage(6000);
delay(1000);
for (int i = 0; i < 10; i++) quickCharge.decrementVoltage();
delay(1000);
quickCharge.set12V();
}
nothing happens, the charger stays on 5V. tried different charger and different ports
with the posted setup and posted code, my charger gives 5V.
if i delete the loop part of the code (to force the charger to still at 12V) the charger give me 5V. but if i disconnect the white QC cable and i re insert in the board, the voltage go to 12V. so the problem is not the setup. i think the problem is code-related, like the nano dont do the handshake with my QC controller (and i dont know why he does if i disconnect and reconnect the white wire)
problem was not in the setup or in the code. looking on internet to find the cables of the usb i found loots of images that said "white is data+ and green is data-" like this image
thinking about at why the handshake goes when i disconnect the "white" cable i looked more about usb pinout and i found an image who says the opposite thing. i switched the white and green cables in my setup and now works