T ThinkEdge Learn

Solar-Powered Devices

A solar-powered device is a power budget problem before it is an electronics problem. Work out how much energy the load needs per day, and the panel size follows from that.

solar device solar powered device solar charger circuit small solar project solar powered sensor
3D Printing, Making and Energy · It is an energy budget problem first

Why the panel alone never works

A solar panel produces a voltage that rises and falls with the light, and it produces nothing at all at night. Wiring one directly to a battery is a common and damaging mistake, because a panel can push current into a battery at any voltage it happens to be producing, including above the battery's charging voltage, and it can also reverse at night and discharge the battery through the panel.

A charge controller sits between them and does three jobs: it stops the battery discharging backwards through the panel, it regulates the charging current, and it disconnects the load when the battery is too flat or too full. It is the part you should never leave out.

The energy budget, worked through

Start from the load. A sensor that draws 10 mA continuously and runs from a 2000 mAh battery gets about eight days, which is useless. The same sensor that wakes 20 times a day, takes a reading and sleeps draws so little that a small panel charges it comfortably, and that is the whole trick.

Duty cycling is the technique to teach. It is also why real low-power devices spend most of their life asleep, and why the microcontroller's sleep current, not its active current, is the number that decides whether a device works. The sleep current of the board is worth looking up before you choose it.

Step by step

  1. Measure the load's energy use

    Current times time. Do it for every mode, including sleep, before you size anything.

  2. Work out the daily energy demand

    Milliwatt-hours per day, including the losses you expect to lose in conversion.

  3. Size the panel from the worst month

    Use the sunniest-day estimate for the worst month of the year, not the average year. Panels are cheap; undersized storage is not.

  4. Add a charge controller

    Set the charge and discharge thresholds for your battery chemistry. Never wire a panel straight to a cell.

  5. Make the load sleep

    Duty cycle it. This is where the order-of-magnitude saving comes from.

  6. Measure the real energy balance

    Log the panel output and the battery voltage together over a week and check the balance holds.

What you'll need

ItemQtyWhy
Small solar panel1Sized from your measured daily load, with headroom for the worst month.
Charge controller1The component that protects the battery and regulates the charging.
Rechargeable battery1Stores the energy between the sun and the load.
Low-power microcontroller board1Its sleep current decides whether the whole budget works.
Light-dependent resistor or light sensor1Lets the device sleep through the day and wake at the right time.
Current and voltage measurement circuit1To record the energy balance rather than guess at it.

Practise it before you build it

Every step above has a matching circuit in the ThinkEdge Learn simulator. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so digitalWrite actually drives the LED on screen and the readings change when you change the wiring — no hardware, no burnt components.

Common questions

How big a solar panel do I need for a sensor?

Work it backwards from the load. A sensor that wakes a few times a day and draws under a milliamp can run from a panel of a few hundred milliwatts with a small battery. A sensor drawing 50 mA continuously needs tens of watts, which is a different project entirely. Measure first, then size.

Can I connect a solar panel straight to a battery?

No. Without a charge controller the panel can overcharge the battery on a bright day and discharge it back through the panel at night, and both of those shorten its life badly. A small charge controller module costs very little and prevents the most common way people ruin a solar battery.

Why does my solar device work on the bench but not outdoors?

Most often because the bench supply is much stronger than the real panel. Check three things: whether the charge controller is actually reaching its charging threshold, whether the load is waking up at all, and whether the battery is at a sensible voltage for the load. The third one catches people, because a battery that looks full at 3.6 V is not much to a sensor that needs 3.3 V plus current.

Related guides

Solar and Renewable Energy ProjectsSolar and renewable energy projects for students: a light tracker, a solar water heater, a wind generator and a home energy monitor, with the physics behind each. Home Energy MonitoringHow to monitor energy use in a home or classroom: clamp meters, energy monitoring modules, the difference between watts and watt-hours, and what the data shows. Electric Bikes ExplainedHow an electric bike works: the hub or mid-drive motor, the battery and its management, the controller, and what the numbers on the spec sheet actually mean. ESP32 IoT Projects: From a Single Sensor to a Live DashboardFive ESP32 IoT projects that teach sensors, MQTT publishing, deep sleep and reconnection, each staged so the logic runs in a browser simulator first.

Try the full simulator with your class

103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. NCERT Science mapping on 47 projects, with Arabic and English copy in the regional builds.