# LeKiwi's new eyes + more upgrades

At the end of my [audio indicators post](https://kamathrobotics.com/giving-lekiwi-a-voice-audio-indicators), I mentioned that I'd already started planning some hardware upgrades for [LeKiwi](https://kamathrobotics.com/series/lekiwi) - a battery monitor and a docking station. This post is about those upgrades and a few more. LeKiwi was nearly finished, but after using it for a few months, there were some everyday problems I still wanted to fix. The biggest was the [OAK-D S2](https://shop.luxonis.com/products/oak-d-s2) on the [pan-tilt](https://kamathrobotics.com/pan-tilt-controls-using-ros-2), which could brown out the Raspberry Pi, so most of this post is about replacing it with the [Orbbec Gemini 2](https://www.seeedstudio.com/Orbbec-Gemini-2-3D-Camera-p-6464.html?srsltid=AYCX9vIwxnsQrucWmI3DvMIcsusSfmp66yVLbGh9GD7AtSHf6IP8iDHm&sensecap_affiliate=8fjl172&referring_service=link). I also added a battery monitor, and after [ROSCon UK](https://roscon.org.uk), I had a new idea for what to do with the robot next, which led to a tray, a more modular software stack, and a ceiling-facing ToF sensor.

> **Disclosure:** I'm a [Robotics / Physical AI Ambassador](https://www.seeedstudio.com/seeed-physical-ai-global-workshop-partnership-program) for [Seeed Studio](https://www.seeedstudio.com/) and part of the [Seeed Ranger Program](https://www.seeedstudio.com/ranger-program), and Seeed sent me the Gemini 2 for this build. As always, the opinions and experiences in this post are my own.

---

# Switching to the Orbbec Gemini 2

The OAK-D S2 on LeKiwi's [pan-tilt mechanism](https://github.com/adityakamath/pantilt_ros2) was too power-hungry for the Raspberry Pi 5 running this robot. Under heavy load, it could draw enough current to crash the Pi occasionally, and to keep it running from the Pi's USB ports, I had to disable some features and reduce frame rates and image sizes. This reduced the brownout occurrences, but didn't completely eliminate them. The OAK-D S2 is capable hardware, but it needs a dedicated high-current power source that the Raspberry Pi 5's USB ports can't supply. The [`pantilt_ros2` README](https://github.com/adityakamath/pantilt_ros2/blob/main/README.md) even tells you to enable `usb_max_current_enable` in the Pi's `config.txt`, raising the USB max current from 600 mA to 1200 mA, with its own warning about brownouts when other high-current USB devices share the bus. That wasn't a footnote for me; it was the failure mode I was actually living with: LeKiwi's Pi already has a lot else pulling current, and the OAK-D S2 was the thing that tipped it over. So I started looking for a different depth camera for the pan-tilt, and the [Orbbec Gemini 2](https://www.seeedstudio.com/Orbbec-Gemini-2-3D-Camera-p-6464.html?srsltid=AYCX9vIwxnsQrucWmI3DvMIcsusSfmp66yVLbGh9GD7AtSHf6IP8iDHm&sensecap_affiliate=8fjl172&referring_service=link) caught my eye.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/7a68532a-78af-4a99-8a36-79417b56c506.jpg align="center")

[Seeed Studio](https://www.seeedstudio.com/) is a reseller of [Orbbec](https://www.orbbec.com/)'s cameras and kindly sent me one to test, integrate into my build, and write about it. But that's only a small part of what they do in the robotics / physical AI space. Seeed is the [Hugging Face](https://huggingface.co) ecosystem partner for open-source robotics, working together to promote and distribute platforms like the [SO-ARM101](https://www.seeedstudio.com/SO-ARM101-Low-Cost-AI-Arm-Kit-Pro-p-6427.html?sensecap_affiliate=8fjl172&referring_service=link), [LeKiwi](https://www.seeedstudio.com/Lekiwi-Kit-p-6501.html?sensecap_affiliate=8fjl172&referring_service=link), and the [Amazing Hand](https://www.seeedstudio.com/Amazing-Hand-Open-Source-3D-Printable-Robotic-Hand-Kit.html), and they're the official manufacturing partner for [Reachy Mini](https://pollen-robotics.com/reachy-mini/) and [MicroDuck](https://pollen-robotics.com/microduck/), which has been one of the most popular open-source robots lately. I've pre-ordered a MicroDuck myself, and I can't wait for it to arrive next month!

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/900dd71c-26a5-44b6-8a95-acc3217f9151.png align="center")

For my use case, the Gemini 2 is the better fit, mainly because of power. Orbbec quotes a power draw below 2.5 W, and on LeKiwi it runs directly from the Pi's USB 3 port with far fewer brownouts than the OAK-D S2. It's not immune, though: with the default configuration it can still brown the Pi out, even though that has rarely happened in the few months I've been using it, and with the reduced configuration I describe below, it has never happened. It still needed some care: the Pi's full USB current has to be enabled (`usb_max_current_enable=1` in `config.txt`, on a 5 V / 5 A supply), and I set the IR projector to a lower power level, which seems to work fine so far. The OAK-D S2's onboard processing is something the Gemini 2 doesn't have, but LeKiwi's navigation runs on the Pi anyway, so I was paying the power cost for something I wasn't using.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/8a967f26-e0d7-4715-bea6-0fe921c7f09d.png align="center")

The other thing I came to appreciate is the software. Orbbec's [ROS 2 driver](https://github.com/orbbec/OrbbecSDK_ROS2) that supports all their cameras is much more lightweight and easier to work with compared to [`depthai_ros`](https://github.com/luxonis/depthai-ros), which supports the Luxonis lineup.

The Luxonis driver was a struggle, and that had a real cost. I tried to get [RTAB-Map](https://introlab.github.io/rtabmap/) running against the OAK-D S2 for proper SLAM with loop closure, and hit a reproducible segfault in the camera driver's own container process, tied to a depth-alignment feature. I never root-caused it, and fell back to [`octomap_server`](https://github.com/OctoMap/octomap_mapping), which worked but built a static occupancy map with no loop-closure correction. Visual SLAM is still something I want to implement, with [Mike Likes Robots](https://www.youtube.com/@mikelikesrobots)' [work with the Viam rover](https://mikelikesrobots.github.io/blog/autonomous-viam-rover) as my reference.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/ed2f331a-360a-4642-918f-621ebc5aefac.png align="center")

After playing around with the camera and its SDK, I decided on updating `pantilt_ros2` to use the Gemini 2 as the default camera, while still keeping the OAK-D S2 as an option for projects that can power it.

## Getting it running on the Pi

Orbbec's driver doesn't have an apt package for ROS 2 Kilted, so I build it from source in the workspace, using the [`kilted` branch](https://github.com/adityakamath/OrbbecSDK_ROS2/tree/kilted) of [my fork](https://github.com/adityakamath/OrbbecSDK_ROS2), which needed two small patches to build, one in [`CMakeLists.txt`](https://github.com/adityakamath/OrbbecSDK_ROS2/blob/kilted/orbbec_camera/CMakeLists.txt) and one in an [example node](https://github.com/adityakamath/OrbbecSDK_ROS2/blob/kilted/orbbec_camera/examples/multi_camera_time_sync/image_sync_example_node.cpp).

The camera also needs Orbbec's [udev rules](https://orbbec.github.io/OrbbecSDK_ROS2/en/source/camera_devices/2_installation/registration_script.html); otherwise, the SDK can't open the device without root. After that, a [launch file](https://github.com/adityakamath/lekiwi_ros2/blob/main/lekiwi_bringup/launch/gemini2.launch.py) in my LeKiwi stack starts the driver, and the Gemini 2 shows up on the ROS graph under `/gemini2`.

## What it publishes

I've configured the camera to publish 640×360 RGB at 15 Hz and 640×400 depth at 5 Hz, with the depth registered to the color image. These are deliberately the smallest acceptable sizes and rates, because for now I only use the camera for visualization, and with the Pi's power budget this tight, keeping its load low is the safer choice. Even so, the output is still far better than what I got from the OAK-D S2 (as seen below).

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/d6f04f83-5b7a-4f9d-862e-a8257f2bb4d7.png align="center")

Eventually I'll use the camera for obstacle avoidance, detection, and recognition, which will want higher rates and resolutions. Still, LeKiwi is a pretty slow-moving robot, so I'm not in too much trouble in the meantime. The rates and the other camera settings live in a single [config file](https://github.com/adityakamath/lekiwi_ros2/blob/main/lekiwi_bringup/config/gemini2.yaml). The camera also has its own accelerometer and gyroscope, which are off by default since the on-board [BNO055](https://kamathrobotics.com/bno055-imu-hardware-abstraction) already handles that.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/aaec6817-55af-4fd5-a081-7d60b3965ac9.gif align="center")

A colored point cloud is also available, but it's off by default and can be enabled with the `pointcloud` launch argument. A full cloud is a lot of data to look at remotely, which is the same problem I ran into with the OAK-D S2 in my [earlier post on visualizing point clouds in Foxglove](https://kamathrobotics.com/visualizing-pointclouds-in-foxglove), where the 3D panel froze within minutes. The fix then was [Cloudini](https://github.com/facontidavide/cloudini), a point cloud compression library with ROS 2 packages, and it carried over to the Gemini 2 almost unchanged.

The same [small node](https://github.com/adityakamath/lekiwi_ros2/blob/main/lekiwi_bringup/src/pcl_compressor_node.cpp) from that post thins out the colored cloud, drops invalid and duplicate points, compresses the positions at 1 cm resolution, and publishes the result on a separate `compressed` topic, which [Foxglove](https://foxglove.dev) can display directly using the [Cloudini extension](https://github.com/facontidavide/cloudini/tree/main/cloudini_foxglove), as seen below. Fortunately, with the Gemini 2, since reducing the image sizes and rates, the pointcloud publishing and visualization (of compressed and raw pointcloud) have never crashed the Pi. Both cases would eventually have crashed the Pi with the OAK-D S2.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/93137909-b1e7-41b7-b7a0-bebe56572166.gif align="center")

As you can see in the GIFs above, the pan-tilt no longer exists on the robot. I removed it after ROSCon UK, and the Gemini 2 now sits fixed to the base. More on that below.

---

# A fuel gauge for LeKiwi

The camera swap fixed the biggest reliability problem. A smaller one was knowing when to recharge. Since I got the LeKiwi kit, I've used the stock battery, which works fine but has no charge indicator, so I was guessing when to recharge, not ideal for a robot I want to run autonomously. So I decided to add a battery monitor using an [INA260](https://www.ti.com/product/INA260) current/voltage/power sensor.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/c9813578-7e6f-45d1-b5df-f0b332ec598d.jpg align="center")

I picked the [Adafruit INA260](https://www.adafruit.com/product/4226) breakout over boards with a [STEMMA QT/Qwiic connector](https://learn.adafruit.com/introducing-adafruit-stemma-qt), like [Adafruit's INA219](https://www.adafruit.com/product/904), which would have been easier to plug in. But the INA219 is rated for about 3.2 A, and LeKiwi's motors, the Raspberry Pi, and everything else on the battery add up quickly, especially when a motor stalls. The INA260 handles 15 A continuous and up to 36 V, well above my pack's 12.6 V, and its built-in shunt means the battery wire simply passes through the board. The trade-off is that it has no Qwiic connector, so I soldered one on and daisy-chained it off the BNO055 IMU already on the Pi's I2C bus. LeKiwi's stock battery, [Seeed's E326S](https://www.seeedstudio.com/Lekiwi-Kit-p-6501.html?sensecap_affiliate=8fjl172&referring_service=link), is a 3S1P Li-ion pack rated for 2550 mAh, and the default config matches it.

To get the readings onto the ROS graph, I wrote [`ina260_battery_monitor`](https://github.com/adityakamath/ina260_battery_monitor), which publishes the pack's state as a standard [`sensor_msgs/BatteryState`](https://docs.ros.org/en/kilted/p/sensor_msgs/interfaces/msg/BatteryState.html) using a software coulomb counter. I put the INA260 in series with the battery's `+` line, before the split to the charge port and the robot's load, so it sees a single signed number - net battery current - instead of needing two sensors. The [README](https://github.com/adityakamath/ina260_battery_monitor#wiring) covers the wiring, calibrating for a different pack, and the estimator's limits.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/e9dacef6-8573-4239-9b02-e7206d129753.png align="center")

The package also turns the battery percentage into `/battery_low` (25%), `/battery_critical` (10%) and `/battery_full` (98%) events as plain [`SetBool`](https://docs.ros.org/en/kilted/p/std_srvs/interfaces/srv/SetBool.html) services, so the [`indicator_node`](https://github.com/adityakamath/lekiwi_ros2/blob/main/lekiwi_audio/lekiwi_audio/indicator_node.py) from my audio indicators post announces them out loud, like the e-stop and mode changes. `/charger_connected` is inferred from the current alone - enough to know the robot is docked and charging, but specific to my battery and robot.

---

# A tray for LeKiwi, and goodbye pan-tilt

In my [ROSCon UK post](https://kamathrobotics.com/roscon-uk-2026-edinburgh), I talked about an interesting [Open-RMF](https://www.open-rmf.org) demo: a fixed robot arm and a mobile robot working together to transport a colored block. The operator chooses a colored button on a microcontroller, which tells the arm to pick up the corresponding block and place it on a mobile robot, which transports the block back to the operator.

%[https://www.youtube.com/watch?v=hQ_Su_ec5DQ]

Now that I have both the [SO-101](https://github.com/TheRobotStudio/SO-ARM100) and the [LeKiwi base](https://github.com/adityakamath/lekiwi_ros2) working with ROS 2, this felt like the perfect opportunity to try recreating that demo. The first step was to give LeKiwi somewhere to put a block, which meant removing the pan-tilt. So I fixed the Gemini 2 to the base, facing forward (which turns out to matter for the docking station at the end of this post), and added a tray on top using metal spacers.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/6537d2a1-8103-42d3-ac7b-b2f54054df45.jpg align="center")

The tray is a simple PLA print matching the footprint of the base plates, with M3 holes in a 20mm grid for mounting other things. The spacers are 35mm tall, just like the [LiDAR](https://kamathrobotics.com/upgrading-the-lekiwi-into-a-lidar-equipped-explorer) plate, and the top of the tray stops just below the LiDAR's scan plane, so the 360° view of the environment is not occluded.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/d43c3a35-8b5b-4204-bd20-039f6816e6bf.png align="center")

I left the option open to swap the tray for a mounting plate for an SO-101, in case I want to add it in the future. That keeps the whole system modular, which was also inspired by a few of the talks at ROSCon UK.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/c077b989-dc05-456a-b202-cfb82c51d815.jpg align="center")

For now, I've updated [`lekiwi_ros2`](https://github.com/adityakamath/lekiwi_ros2) and removed the pan-tilt completely ([`pantilt_ros2`](https://github.com/adityakamath/pantilt_ros2) itself still supports the Gemini 2 for anyone using it), as adding it would mean moving the Gemini 2, which would be annoying to configure, or adding a second depth camera to the system, which would be overkill. My focus is on the tray for now, and the SO-101 on LeKiwi is something I come back to at the end of this post.

---

# Looking up: a ceiling-facing ToF sensor

Another conversation I remember having at ROSCon was about ceiling-facing cameras for mapping and localization. Since I had a [VL53L5CX sensor breakout from SparkFun](https://www.sparkfun.com/products/18642) lying around, and a Qwiic-based I2C bus, I thought it would be fun to add a ceiling-facing ToF imager to LeKiwi. I had space on the LiDAR plate, so I attached it there

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/76db6150-3f61-44d3-ad14-afd936886601.png align="center")

The VL53L5CX is ST's multizone time-of-flight sensor, which gives an 8×8 grid of distances (or 4×4 at a higher rate). I used my [`tof_imager_ros`](https://github.com/adityakamath/tof_imager_ros) package to drive it, which I developed a few years ago. It was nice to work with a manually written piece of software, with no AI generation or assistance involved, and it worked as I left it.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/25c8bd88-d5b2-435b-9f6c-36900378a1e9.gif align="center")

Honestly, I don't have a real use-case for this sensor, but I have some ideas to try later: it could tell when LeKiwi is driving under a table, pick out features on the docking station as the robot backs in, or even recognize gestures from above. For now, it's an extra lightweight pointcloud that costs almost nothing to keep around.

---

# Modular hardware, modular software

The tray and the swappable plate made me realize that the hardware had become modular while the software was still hard-wired to one particular LeKiwi. The pan-tilt had been a separate payload that the launch files and the robot description both knew about, and every change meant touching several files. [Saga Robotics](https://sagarobotics.com/)' [keynote](https://kamathrobotics.com/roscon-uk-2026-edinburgh) at ROSCon UK made the same point: the same modules, combined into different robots and quick to fix in the field.

So I reorganized [`lekiwi_ros2`](https://github.com/adityakamath/lekiwi_ros2) the same way. The robot is now described in one small file, [`hardware.yaml`](https://github.com/adityakamath/lekiwi_ros2/blob/main/lekiwi_bringup/config/hardware.yaml), with a switch for each assembly: the LiDAR, the [IMU](https://kamathrobotics.com/sensor-fusion-on-lekiwi), the battery monitor, the Raspberry Pi case, the [ReSpeaker Flex](https://www.seeedstudio.com/reSpeaker-Flex-XVF3800-Circular-4-p-6737.html?sensecap_affiliate=8fjl172&referring_service=link), the ToF sensor, the Gemini 2, and the tray. You edit the file and launch as usual, and the same file decides what gets launched, what ends up in the robot description, and what appears in the [MuJoCo](https://mujoco.org) model. Some switches have consequences: without a LiDAR there is no SLAM or [Nav2](https://kamathrobotics.com/autonomous-navigation-with-lekiwi), and without the IMU you launch with `fusion_mode:=odom`, and the robot navigates on wheel odometry alone.

The tests cover each switch on its own, but I haven't tried every combination on the real robot, so expect rough edges. Taking the pan-tilt out was a small change instead of a rewrite, and the ToF sensor in the next section took a switch and a launch file.

---

# What's next?

It's finally time to design a docking station for LeKiwi, inspired by a [blog post by Hello Robot](https://hello-robot.com/stretch-4-autodocking/) about their Stretch docking station. Now that LeKiwi has a fixed, front-facing camera, it's something I can actually do (it would have been possible with the camera on the pan-tilt, but a lot more work). It's a work in progress, so there's not much to show yet, but I've settled on the connector. I started with a cheap magnetic pair for prototyping, but the magnets were so strong that the robot could pull the dock off the wall when undocking. I then found a British company called [Coda Systems](https://coda-systems.co.uk) that makes spring-loaded connectors, including magnetic cases around them, and chose the [SD-ULTRA-2](https://coda-systems.co.uk/product/swift-dock-spring-loaded-multipoint-docking-connectors/swift-dock-ultra-power/sd-ultra-2-l/), a two-pin connector rated for up to 12 A that comes as a flat contact side and a [spring-loaded side](https://coda-systems.co.uk/product/swift-dock-spring-loaded-multipoint-docking-connectors/swift-dock-ultra-power/sd-ultra-2-sc/). At the time of writing, a pair costs about £9.47 excluding VAT.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/7fd89b43-6187-469e-8472-55656965c71b.png align="center")

I've designed robot-side and dock-side mounts around these connectors that align and mate the robot to the dock, and I have CAD models of both. The dock-side mount attaches to the docking station itself, which I haven't modeled yet. The station will have fiducial markers and an identifiable shape so the LiDAR can detect it too. Still to do: the station itself, the electronics on both sides (preventing shorts and back-EMF, and detecting when the robot is connected and charging), and then the software.

![](https://cdn.hashnode.com/uploads/covers/63a0f156a59cad9bdbba046e/d6240d42-1e41-4344-8062-e9a386c1235b.gif align="center")

Beyond the dock, I'm also working on integrating the SO-101 (based on my [`so_arm_ros2`](https://github.com/adityakamath/so_arm_ros2) package) into the `lekiwi_ros2` stack, which is the original use-case for the LeKiwi - a mobile manipulator. That is separate from the Open-RMF demo, where the SO-101 stays fixed and works alongside LeKiwi as a second robot. More on both of these topics in the upcoming posts.

The code for all of this lives in [`lekiwi_ros2`](https://github.com/adityakamath/lekiwi_ros2) and its submodules: [`ina260_battery_monitor`](https://github.com/adityakamath/ina260_battery_monitor) and [`tof_imager_ros`](https://github.com/adityakamath/tof_imager_ros) - some of them are works in progress, so expect breaking changes once in a while. As always, feedback and contributions are welcome. More on the docking station and the SO-101 integration in upcoming posts.
