How to turn off some pins of Arduino to reduce power consumption?

I want to reduce the power consumption of my board so one way is turn of the pins and flags that i don't use...

Do you know how can I turn of some pins of Arduino?

Which board is that?

The datasheet is your friend here. For example, my datasheet for an ATMEGA328P has a section 9 titled Power Management and Sleep Modes. That provides details of power reduction techniques.

1 Like

No, you can't turn pins "off". Leave them unconnected and they won't use any power. If they are being used to power some external circuit, setting the pin to LOW will usually switch that circuit off. If they are being used as inputs, they won't use any power (ok, a tiny, tiny amount, but only advanced Arduino users need to worry about that).

What do you mean by "flags"?

1 Like

What is the board you used? How much it consumed now and what consumption do you want to achieve? Do you use power saving modes?

Set them as INPUT, make them LOW, don't read the pin and it does nothing.
An INPUT LOW pin looks electrically neutral to circuits.

You can save a lot if you can run slower. A lot of sketches could run as well at 1 MHz.
You may have to roll your own duino, it's an open-source goal to make a custom stand-alone. AVR chips are so self-contained that Power, GND, and 1 or 2 bypass caps are the minimal parts to make it run... but some IO, even just a status led makes it more interesting.

Single-chip duinos. Check the pins on the Evolution.

Nick Gammon's Compleate Breadboard Duinos.
The second example is the ATmega1284P with 16K RAM, 32 IO pins and 2 serial ports.

You choose the clock, the speed and the voltage.

The board is important. You can conserve CPU power all you like, but if there are additional power consuming circuits on the board, those will continue to consume...

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