Switching from 5V phone charger to 9V battery as power source

I made a device that detects the soil moisture and uses a PIR sensor and DF player mini and speakers to askes the person walking by when water is needed and thanks when it got watered.

I used a normal 5V phone charging cable where I cut the wires free at one end and it worked just fine when I pluged it to VIN and the GND line on the breadboard on my Arduino UNO.

The problem: I want to use a 9V battery but it doesn't work.
The soil moisture sensor seems to work right but the PIR sensor doesn't react anymore.

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.


Vin needs 7-9v

9V batteries are for smoke alarms, and cannot power an Arduino, a DF player and speakers for more than a few minutes.

DF Player Mini:
image
RX = 10 (with resistor)
TX = 11

SPK1 = - from speaker
SPK2 = + from speaker

VCC = 5V
GND = GND


LED:
long end = 13
short end = GND


PIR:


VCC = 5V
GND = GND

OUT = 2


Soil Moisture Sensor:


GND = GND
VCC = 5V
AOUT = A0


To be clear, everything workes, when connected with power through a wall socket by a 5V phone charging cable cut open so the vcc and gnd cable can be directly plugged in the breadboard.
But when powered with a 9V battery it doesn't work.


All plugged in it looks like that:

  • LEDs require a series dropping resistor, example a 220R to 470R should work nicely.

  • You should be using a prototyping PCB.

Example

As already mentioned, 9V batteries are intended for very low power devices, like smoke alarms, and cannot provide enough current for things like motors and audio amplifiers/speakers.

So what could be used for powering this device?

I would use a 4xAA battery pack and a low dropout voltage regulator to produce 5V, like this one.

Or a buck/boost regulator to get the most of the battery. Some examples

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.