ArduinoOBI

Dongle for Makita LTX Batteries

After you prepared the hardware (microcontroller), here is how to upload the ArduinoOBI firmware and get a working Makita dongle.

This YouTube video explains how to build the adapter and provides free 3D printing files for a matching enclosure.

Uploading Firmware to your Adapter

The original author and also the YouTube video uses the Arduino IDE to compile and upload the firmware to the Arduino Nano or UNO.

I prefer platform.io, so here is what I did:

  1. download the ready‑to‑build PlatformIO ArduinoOBI project
  2. Open the folder with the extracted content in VSCode.
  3. In the VSCode platformio extension, click Build.

Manually Creating PlatformIO Project

In PlatformIO, create a new project and select your target microcontroller. Once the project is created, adjust it in the file explorer:

  1. Open platform.ini and review the auto‑generated settings. For an Arduino Nano Clone, use:

     [env:nano_old]
     platform  = atmelavr
     board     = nanoatmega328
     framework = arduino
     upload_speed = 57600
    
  2. In your browser, open Arduino OBI/main.cpp and copy the complete source code.
  3. In VS Code, open src\main.cpp and replace its contents with the copied source.
  4. In the VS Code Explorer, right‑click libNew Folder and name it OneWire2.
  5. In your browser, navigate to ArduinoOBI/lib/OneWire where you find OneWire2.cpp and OneWire2.h.
  6. Open OneWire2.cpp, copy the source, then in VS Code create OneWire2.cpp inside the OneWire2 folder (exact file name and casing) and paste the code. Save the file.
  7. Repeat the previous step for OneWire2.h.
  8. In the Explorer, right‑click the OneWire2 folder → New Folder and name it util.
  9. In your browser, navigate to ArduinoOBI/lib/OneWire/util, which contains OneWire_direct_gpio.h and OneWire_direct_regtype.h.
  10. Copy OneWire_direct_gpio.h, then in VS Code create a file with the same name under OneWire2/util, paste the contents, and save.
  11. Repeat for OneWire_direct_regtype.h.

Now everything is in place; in PlatformIO, choose Upload to build and flash the firmware onto your microcontroller.

Next Steps

To test drive your dongle, run the OpenBatteryInformation python script, or run a PowerShell script.

Slow Website?

This website is very fast, and pages should appear instantly. If this site is slow for you, then your routing may be messed up, and this issue does not only affect done.land, but potentially a few other websites and downloads as well. Here are simple steps to speed up your Internet experience and fix issues with slow websites and downloads..

Comments

Please do leave comments below. I am using utteran.ce, an open-source and ad-free light-weight commenting system.

Here is how your comments are stored

Whenever you leave a comment, a new github issue is created on your behalf.

  • All comments become trackable issues in the Github Issues section, and I (and you) can follow up on them.

  • There is no third-party provider, no disrupting ads, and everything remains transparent inside github.

Github Users Yes, Spammers No

To keep spammers out and comments attributable, all you do is log in using your (free) github account and grant utteranc.es the permission to submit issues on your behalf.

If you don’t have a github account yet, go get yourself one - it’s free and simple.

If for any reason you do not feel comfortable with letting the commenting system submit issues for you, then visit Github Issues directly, i.e. by clicking the red button Submit Issue at the bottom of each page, and submit your issue manually. You control everything.

Discussions

For chit-chat and quick questions, feel free to visit and participate in Discussions. They work much like classic forums or bulletin boards. Just keep in mind: your valued input isn’t equally well trackable there.

  Show on Github    Submit Issue

(content created May 08, 2026)