logo elektroda
logo elektroda
X
logo elektroda

Circuit design for tracking 0-12V deep cycle battery voltage with 5-min interval logging

168 21
Best answers

How can I measure a 0–12 V deep-cycle battery every 5 minutes and store each voltage reading in memory on a chip?

Use a microcontroller with an ADC to sample the battery voltage through an appropriate resistor divider, then save each reading to EEPROM every 5 minutes [#21659293][#21659305][#21659306] If the MCU has enough non-volatile memory onboard, you can store the values there; otherwise use an external EEPROM [#21659293][#21659299][#21659312] Choose an EEPROM large enough for your data and one that matches a bus your microcontroller can master, such as SPI or I2C [#21659299] You can generate the 5-minute interval from the CPU clock or use a real-time clock (RTC) [#21659306] If you want wireless transmission too, look at an integrated module or microcontroller with built-in RF and EEPROM, such as the examples mentioned in the thread [#21659305][#21659312]
Generated by the language model.
ADVERTISEMENT
  • #1 21659292
    Victor Ocheri
    Anonymous  
  • ADVERTISEMENT
  • #2 21659293
    Olin Lathrop
    Anonymous  
  • #3 21659294
    Victor Ocheri
    Anonymous  
  • ADVERTISEMENT
  • #4 21659295
    Cody Miller
    Anonymous  
  • #5 21659296
    Victor Ocheri
    Anonymous  
  • ADVERTISEMENT
  • #6 21659297
    Victor Ocheri
    Anonymous  
  • #7 21659298
    Cody Miller
    Anonymous  
  • ADVERTISEMENT
  • #8 21659299
    Alec
    Anonymous  
  • #9 21659300
    Victor Ocheri
    Anonymous  
  • #10 21659301
    Victor Ocheri
    Anonymous  
  • #11 21659302
    Victor Ocheri
    Anonymous  
  • #14 21659305
    David Deleonardo
    Anonymous  
  • #15 21659306
    Dennis Bauer
    Anonymous  
  • #16 21659307
    Alec
    Anonymous  
  • #17 21659308
    Victor Ocheri
    Anonymous  
  • #18 21659309
    Victor Ocheri
    Anonymous  
  • #19 21659310
    Victor Ocheri
    Anonymous  
  • #20 21659311
    Victor Ocheri
    Anonymous  
  • #21 21659312
    Cody Miller
    Anonymous  
  • #22 21659313
    Victor Ocheri
    Anonymous  

Topic summary

✨ The discussion focuses on designing a circuit to measure and log the voltage of 0-12V deep cycle batteries at 5-minute intervals, with data storage and remote transmission capabilities. The solution involves using a microcontroller (MCU) with an integrated analog-to-digital converter (ADC) to sample battery voltage, employing a resistor voltage divider for calibration within the 0-12V range. Data storage can be handled by either the MCU's internal EEPROM or an external EEPROM chip communicating via SPI or I2C, with the MCU acting as the bus master. For timing, either the MCU's internal clock or an external real-time clock (RTC) module can generate the 5-minute measurement intervals. Wireless data transmission to a remote database is considered, with options including RF link transmitters and integrated RF transceiver modules. Powering the measurement circuit from the monitored deep cycle batteries is uncertain due to high capacity and potential risks; thus, separate low-amperage batteries are suggested. Recommended components include microcontrollers with built-in ADC and EEPROM, or modules combining ADC, MCU, RF transceiver, and flash memory for simplified integration. Examples and references include SparkFun RF Link Transmitter, Digikey RF modules with 32k flash memory, Microchip microcontrollers with 10-bit ADC and ASK/FSK RF transmitters, and Synapse Wireless SNAP system for streamlined wireless communication and data handling.
Generated by the language model.

FAQ

TL;DR: Log a 0–12 V battery every 5 minutes (288 records/day). “Use a RTC” and sample with a microcontroller ADC, then store to non‑volatile memory or transmit by RF. [Elektroda, Dennis Bauer, post #21659306]

Why it matters: Field techs need simple, reliable 5‑minute battery‑health logs they can store locally or send wirelessly.

Quick Facts

What’s the simplest way to log 12 V battery voltage every 5 minutes?

Use a microcontroller with an ADC to read a resistor‑divided 0–12 V input, then timestamp each sample using a CPU timer or RTC and store it in non‑volatile memory. A 5‑minute cadence is straightforward with a hardware timer or RTC alarm. [Elektroda, Dennis Bauer, post #21659306]

Do I need an external EEPROM, or can I use the MCU’s built‑in memory?

If the MCU’s non‑volatile memory is small, add an external EEPROM or Flash. Choose a part that speaks a bus your MCU can master, like I²C or SPI. Check both datasheets to set addresses, timing, and page‑write sizes before coding your driver. [Elektroda, Alec, post #21659299]

How do I scale 0–12 V safely into an ADC?

Use a resistor divider to keep the ADC input within its maximum (often 3.3 V or 5 V). Add an input filter and consider clamping diodes. Sample at your 5‑minute interval, then store or transmit the result. “Measure with an ADC” was the recommended starting point. [Elektroda, Olin Lathrop, post #21659293]

How can I transmit readings about 50 meters on site?

A low‑power RF link or a module with integrated radio works. Define payload size and interval (every 5 minutes) to pick data rate and duty cycle. For ~50 m, simple OOK/FSK links or integrated transceivers are common choices for pole‑mounted nodes. [Elektroda, Victor Ocheri, post #21659300]

Is there an all‑in‑one chip with ADC, RF, and some EEPROM?

Yes. For example, a Microchip device combines a 10‑bit ADC, an ASK/FSK RF transmitter, and 128 bytes of EEPROM. This reduces BOM count and eases firmware integration for periodic telemetry. “This is the first device I came across,” noted an expert. [Elektroda, Cody Miller, post #21659312]

What if I want a module that handles networking for me?

Use a pre‑certified wireless module running a mesh/stack and script it to sample via a resistor divider. Synapse SNAP modules were suggested for rapid deployment, with simple Python scripts and PC‑host integration. That offloads RF protocol work from your MCU. [Elektroda, David Deleonardo, post #21659305]

How do I power the logger from the same deep‑cycle battery I’m measuring?

Regulate the battery down to the MCU’s supply and protect against transients. Capacity (e.g., 100 Ah) doesn’t harm small circuits; voltage and surges do. Add a regulator, input protection, and fusing. Avoid direct connection without conditioning to prevent damage. [Elektroda, Victor Ocheri, post #21659301]

Do I really need an RTC for 5‑minute timing?

Not strictly. You can derive 5 minutes from the MCU clock using a timer, or use an RTC for drift‑resistant scheduling and time‑stamping. An RTC simplifies sleep‑wake cycles and keeps accurate intervals during long deployments. [Elektroda, Dennis Bauer, post #21659306]

How much storage do I need for a day of logs?

At 5 minutes per sample, you store 288 records/day. Even small EEPROMs handle many days if each record is compact (e.g., 2–4 bytes plus time). Consider wear‑leveling if you retain logs locally for long periods. [Elektroda, Dennis Bauer, post #21659306]

What’s a practical RF part to start with for basic links?

An off‑the‑shelf RF Link Transmitter like the SparkFun unit can work for short, low‑data telemetry. Pair it with a compatible receiver and design for your 5‑minute duty cycle. Validate range on your site with antennas mounted at pole height. [Elektroda, Victor Ocheri, post #21659297]

How do I wire the MCU as the I²C/SPI master to an EEPROM?

Pick one bus, set the MCU as master, and the EEPROM as slave. Match voltage levels, pull‑ups for I²C, and clock rates per datasheets. Implement byte or page writes with required delays, and verify with a logic analyzer during bring‑up. [Elektroda, Alec, post #21659299]

Is there a module that bundles MCU, ADC, and RF for multi‑node deployments?

Yes, integrated modules include an MCU with ADC and a radio, plus onboard Flash for code and logs. A cited example provides 32 kB of Flash, easing local storage and OTA updates in clustered streetlight installs. [Elektroda, Alec, post #21659304]

What’s an edge case that can break my logger?

Unregulated power from the measured battery can over‑voltage the MCU during charge peaks, corrupting logs or killing the radio. Always include regulation and surge protection before field trials. Treat capacity as a source of large fault energy. [Elektroda, Victor Ocheri, post #21659301]

How do I get data into a remote database from the pole?

Log locally, then forward via RF to a gateway PC or base station that inserts records into your database. Modules like SNAP can send directly to a host app, reducing custom protocol work between logger and server. [Elektroda, David Deleonardo, post #21659305]

Three steps: how do I build a 5‑minute voltage logger fast?

  1. Divide 0–12 V to ADC range; add input filter.
  2. Use MCU timer or RTC to trigger 5‑minute samples.
  3. Store each sample to EEPROM or transmit by RF. [Elektroda, Dennis Bauer, post #21659306]

What did experts suggest for first‑time builders?

Start simple: MCU with ADC, log to EEPROM, and add RF only after storage works. Read the MCU and memory datasheets to configure the bus with the MCU as master. “What exactly are you stuck on?” helps focus effort. [Elektroda, Olin Lathrop, post #21659293]
Generated by the language model.
ADVERTISEMENT