Skip to content

Southern Fried Science

Over 15 years of ocean science and conservation online

  • Home
  • About SFS
  • Authors
  • Support SFS

Charging the OpenCTD is annoying, so we fixed it.

Posted on April 9, 2024 By Andrew Thaler
Open Science

Last month, I wrote a heartwarming little story about how doing a fun weekend hardware project with my daughter led to fixing one of the most annoying non-critical problems with the OpenCTD. After a month of testing, we have fully implemented the new power management system into the next iteration of the OpenCTD.

Currently, there are hundreds of OpenCTDs scattered around the world that don’t have the new implementation, so in addition to updating the guide and files, I’ve spent the last few days putting together a hackers guide to upgrading your OpenCTD if you have the older rev 6 carrier board. This will, of course, all go up on the OpenCTD GitHub repository imminently, but, since the blog reaches far more OpenCTD users, I am also posting it in its entirety, here.

Enjoy!


OpenCTD Power Management Upgrade

One of the more frustrating problems with the current OpenCTD is that in order to charge, the device must be turned on. This is due to the use of an electromechanical switch that breaks contact with the battery to power down the device. The design results in users failing to charge their device if they forget to turn it on or producing massive, empty data files if their OpenCTD is left on and charging for long period of time. This is bad design. We can fix it.

Fortunately, we have developed a solution that has be implemented in the next revision of the OpenCTD carrier board. Unfortunately, almost all of the carrier boards currently in circulation are the OpenCTD rev 6 carrier boards with the annoying charging protocol. The good news is that we have a workaround.

If you have an OpenCTD custom carrier board labeled OpenCTD 7c, congratulations, you have the new and improved board. There are a few changes to the current build guide (Construction and Operation of the OpenCTD, Fourth Edition) that will make the build a tiny bit simpler. In Chapter 8 – Power the CTD, you can ignore steps 2 and 3, the two pins labeled J1 no longer exist and the power is routed through board to the EN pin on the Adalogger M0, the switch is also in a slightly different location.

Figure 1. OpenCTD 7c carrier board (board color can vary).

If you have an OpenCTD custom carrier board labeled OpenCTD rev 6, then you have the older power management solution that only charges the battery when the entire device is turned on. There are a few steps involved in re-routing the power management to make the board charge while the batteries are off. You will have to solder jumper wires between a few pins and break the trace which connects the Atlas EZO EC chip to the battery. To do this, you will need a knife, a soldering iron, wire cutters, and some short solid core or stranded wire to jump the pins.

Figure 2. OpenCTD rev 6 carrier board (board color can vary).

It is easiest to do this after you’ve populated the custom carrier board with header in Chapter 6.2 Prepare the Carrier Board.

Rerouting power to the Atlas EZO EC Chip.

The first step is to break the connection between the Atlas EZO EC chip and the battery so that you can connect it directly to the 3V3 output on the Adalogger M0.

  1. Expose the +BATT trace under the Atlas EZO EC chip. Using a knife scrape away the coating over the large trace that runs from the pin labeled +BATT on space the Atlas EZO EC chip. This trace is the only trace on the topside of the board between the two 3-pin headers for the EZO EC chip. You will know that you have scraped down far enough when you reveal the bare copper underneath.
  • Break the +BATT trace under the Atlas EZO EC chip. Using the same knife, scrape away the copper trace, as shown in figure 3, to break the connection between the EZO EC chip and the battery.
Figure 3. OpenCTD rev 6 board populated with headers, resistors, and the 3-pin switch, with the trace connecting the Atlas EZO EC chip to the battery pin broken.
  • Jump the +BATT pin to the 3V3 pin for the Adalogger M0. On the reverse side of the board, solder a lead wire to the +BATT pin for the Atlas EZO EC chip and the pin labeled 3V3 on the headers for the Adalogger M0. Refer to figure 4 below.

Redirecting the 3-pin toggle switch to GND and EN

Neither GND nor EN are labeled on the Rev 6 custom carrier board, but both are labeled on their corresponding pins on the Adalogger M0, which can be used for reference.

GND is the fourth pin from the left on the longer of the two pin rows for the Adalogger M0. If you flip the board over, you will see that the traces for the GND pin form an X, connecting the pin to the universal ground for the board.

EN is the second pin from the left on the shorter of the two pin rows for the Adalogger M0. It is next to the pin labeled +BATT. EN is short for “engage” and it is a signal pin which tells the board to turn on when the pin is connected to GND.

  1.  Connect one of the pins labeled J1 to GND. It does not matter which of the J1 pins you route to the pin labeled GND on the headers to the Adalogger M0. Refer to figure 4 below.
  • Connect one of the pins labeled J1 to EN. Route the unused J1 pin to the header pin for EN, which is to the right of the pin labeled +BATT. This pin is unlabeled on the carrier board but its corresponding pin on the Adalogger M0 is labeled. Refer to figure 4 below.
Figure 4. Reverse side of OpenCTD rev 6 carrier board with the necessary jumper cables to enable power of charging.

Your board is now ready to charge, even when powered down. Populate the board with components according to the manual and plug the battery directly into the JST connector. You no longer need to cut the battery wire.  

Congratulations, you’ve just hacked your OpenCTD for improved functionality!

A new 3D printable chassis will shortly be available on the OpenCTD GitHub Repository. It replaces the existing chassis and work with either board.

Share this:

  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Mastodon (Opens in new window) Mastodon

Related

Tags: hacking how-to OpenCTD soldering

Post navigation

❮ Previous Post: Space Crabs, Big Boats, and Fake Sharks: What you read on Southern Fried Science in March
Next Post: Here’s what I teach my students about finding jobs in marine biology and conservation ❯

You may also like

Science
What does an OpenCTD mean to marine ecologists?
July 26, 2013
Education
Getting your kids started in conservation technology: a quick guide for parents who have no idea where to begin.
March 16, 2022
Conservation
Make for the Planet with Conservation X Labs and the Earth Optimism Summit!
April 11, 2017
Featured
I built a DIY hardware store pressure vessel to test ocean science tools from the comfort of my shed.
June 11, 2024

Recent Popular Posts

It's 2025. Why do so many scientific journal articles still display weird when shared on social media?It's 2025. Why do so many scientific journal articles still display weird when shared on social media?May 20, 2025David Shiffman
Shark of Darkness: Wrath of Submarine is a fake documentaryShark of Darkness: Wrath of Submarine is a fake documentaryAugust 10, 2014Michelle Jewell
Our favorite sea monsters – Ningen (#4)Our favorite sea monsters – Ningen (#4)September 7, 2010Andrew Thaler
Alberta, Canada is the proud owner of the largest man-made pyramid on the planetAlberta, Canada is the proud owner of the largest man-made pyramid on the planetOctober 16, 2012Andrew Thaler
Deep-sea Mining: It’s science fiction, until it isn’t.Deep-sea Mining: It’s science fiction, until it isn’t.May 14, 2025Andrew Thaler
What is a Sand Shark?What is a Sand Shark?November 12, 2017Chuck Bangley
A quick and dirty guide to making custom feeds on BlueskyA quick and dirty guide to making custom feeds on BlueskyFebruary 7, 2024Andrew Thaler
Here's what I teach my students about finding jobs in marine biology and conservationHere's what I teach my students about finding jobs in marine biology and conservationApril 10, 2024David Shiffman
What can the funniest shark memes on the internetz teach us about ocean science and conservation?What can the funniest shark memes on the internetz teach us about ocean science and conservation?November 8, 2013David Shiffman
I turned my woodshop into a personal solar farm.I turned my woodshop into a personal solar farm.June 21, 2021Andrew Thaler
Subscribe to our RSS Feed for updates whenever new articles are published.

We recommend Feedly for RSS management. It's like Google Reader, except it still exists.

Southern Fried Science

  • Home
  • About SFS
  • Authors
  • Support SFS


If you enjoy Southern Fried Science, consider contributing to our Patreon campaign.

Copyright © 2025 Southern Fried Science.

Theme: Oceanly Premium by ScriptsTown