I have a proyect using an Arduino mega rev3, with an ultrasonic sensor and a RGB LED to indicate the distance(calculated with the sensor), it is powered with a verbatin Powerbank, which is conected to the ground and to a resistor in the PCB, to drain the energy, which is the same as conecting to the VIN
Hi,Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?If you are using a 5V USB powerbank, you can connect it directly to the USB socket on the mega.Thanks.. Tom..
If you are supplying 5V to Vin, then you will not be getting regulated 5V on the Mega, as Vin is connected to the input of the on board 5V regulator.
.. and it would not work at all as the built-in regulator needs at least 7V as mimimum input voltage.
Hi,If you are supplying 5V to Vin, then you will not be getting regulated 5V on the Mega, as Vin is connected to the input of the on board 5V regulator.I do not see how the resistor you are connected to is providing the current needed to keep the bank switched ON.Tom...
If the power bank switches itself off when it considers that there is insufficient load on it, then you can sometimes get away with drawing current sporadically to trick it into remaining on.I got the idea from an Web article somewhere and did some experiments and arrived at the solution of using a 47 Ohm resistor switched for 20mS every 2000mS ( 1% duty cycle) across the output of the power pack I purchased ( a PNY 10400mAh. 10400mAh that is at an undisclosed internal battery voltage).I actually use a small 555 timer circuit for this with a transistor, but it would also be perfectly possible to use spare Arduino pin, maybe with a transistor or different resistor / timing values to stay in spec of the Arduino.
Sorry but with that it is currently working