The Feast

Home cooking recipes for everyday dinners and easy entertaining

What Are Robot Fish and How Do They Work

· 5 min read · Dinners

Robot fish are autonomous or remotely controlled devices that swim like real fish, often built with waterproof electronics, motors, and sensors. A common example is a small battery‑powered fish that uses a tail fin driven by a waterproof servo to glide through a home aquarium while transmitting temperature data.

Choose the Right Purpose for Your Robot Fish

First decide whether the fish is for education, research, or entertainment. Educational kits focus on simple motor control and basic programming, while research platforms include hydrophones, pressure sensors, and data logging. Entertainment models prioritize realistic swimming patterns and visual appeal.

Assemble the Core Components Step by Step

Gather a waterproof microcontroller (such as an Arduino‑compatible board with a sealed case), a miniature waterproof servo or brushed DC motor, a flexible tail fin, a lithium‑polymer (Li‑Po) battery, and a set of sensors if needed.

  1. Seal the microcontroller in a watertight housing using silicone gaskets; test the seal by submerging the empty case for 10 minutes.
  2. Mount the motor on the fish’s spine so the rotation axis aligns with the tail’s hinge.
  3. Attach the tail fin to the motor shaft with a small coupling; ensure the fin can swing at least 30° each side for effective thrust.
  4. Connect the battery to the controller through a waterproof connector; secure the wires with heat‑shrink tubing rated for 80 °C.
  5. Program a simple oscillation loop: set the motor to 0°, pause 200 ms, move to 45°, pause 200 ms, and repeat. Use pulse‑width modulation (PWM) to vary speed.
  6. If adding sensors, place a temperature probe near the head and route its signal to an analog input; log readings to the microcontroller’s flash memory.

Test the Motion and Fix Common Errors

Run the fish in a shallow water tank before deploying it in a larger aquarium. Observe three typical problems:

  • Insufficient Buoyancy: The fish sinks if the overall density exceeds that of water. Add small sealed foam inserts or adjust battery placement to raise the center of buoyancy.
  • Water Leakage: Moisture inside the electronics causes short circuits. Re‑apply silicone sealant around any cable entry points and retest for 30 minutes.
  • Irregular Tail Motion: A misaligned motor creates wobble. Realign the motor shaft so the tail’s pivot point is centered, then recalibrate the PWM range.

After each adjustment, run the fish for at least 5 minutes to confirm stable swimming and no overheating of the motor.

Separate Myth from Fact About Robot Fish

Many assume robot fish are merely novelty toys, but the reality is broader: they serve as low‑cost platforms for studying fluid dynamics, monitoring water quality, and even guiding schools of real fish in marine research.

Fact: A research‑grade robot fish can carry a hydrophone and a pressure sensor, transmit data via Bluetooth Low Energy, and operate for several hours on a single charge. Myth: All robot fish are waterproof out of the box; most DIY kits require the builder to seal electronics manually.

Calculate Power Requirements for a Small Aquarium Robot Fish (Worked Example)

Suppose you build a 15‑cm long robot fish that uses a 30 mA waterproof servo running at 5 V and a 200 mAh Li‑Po battery. Follow these steps to estimate runtime:

  1. Determine total current draw. The servo draws 30 mA on average; the microcontroller adds about 10 mA. Total = 30 mA + 10 mA = 40 mA.
  2. Convert battery capacity to hours: 200 mAh ÷ 40 mA = 5 hours.
  3. Account for efficiency losses (roughly 15 % for the voltage regulator). Effective capacity = 200 mAh × 0.85 = 170 mAh.
  4. Re‑calculate runtime: 170 mAh ÷ 40 mA ≈ 4.25 hours, or about 4 hours 15 minutes of continuous swimming.

To extend runtime, increase battery capacity to 400 mAh or program intermittent swimming cycles (e.g., 30 seconds on, 30 seconds off), which roughly doubles operational time.

Maintain Your Robot Fish for Long‑Term Use

Regular maintenance prevents failure and keeps the device safe for aquatic life.

  • Inspect seals weekly; replace any cracked silicone.
  • Rinse the exterior with fresh water after each use to remove algae.
  • Recharge the battery only with a charger that matches the battery’s specifications; avoid over‑charging beyond 4.2 V per cell.
  • Store the fish in a dry container at room temperature; do not leave it submerged for more than 24 hours without checking the seal.

Explore Advanced Features and Next Steps

Once the basic swimming function is reliable, consider adding these upgrades:

  • Wireless Telemetry: Attach a small LoRa module to transmit depth and temperature data up to 2 km.
  • Swarm Coordination: Program multiple fish to follow a leader using simple Bluetooth mesh networking.
  • Biomimicry Enhancements: Replace the rigid tail with a flexible silicone fin driven by a shape‑memory alloy wire for smoother undulation.
  • Energy Harvesting: Install a tiny solar panel on the tank’s lid to trickle‑charge the battery during daylight hours.

Each addition introduces new design constraints—ensure that added components remain waterproof and that total current draw stays within the battery’s safe discharge rate (typically 1 C, meaning a 400 mAh battery should not exceed 400 mA continuous draw).

Robot Fish for Different Audiences and Settings

For classroom demos, keep the fish simple: a single motor, basic PWM code, and a clear acrylic case for visual inspection. For field research, prioritize rugged housings, higher‑capacity batteries, and robust data logging. For hobbyists who want a realistic pet, focus on lifelike coloration, programmable swimming patterns, and optional sound playback to mimic fish vocalizations.

Regardless of the audience, always test the device in a controlled water environment before introducing it to live fish to ensure that vibrations or electromagnetic fields do not stress the inhabitants.

In this article
  1. Choose the Right Purpose for Your Robot Fish
  2. Assemble the Core Components Step by Step
  3. Test the Motion and Fix Common Errors
  4. Separate Myth from Fact About Robot Fish
  5. Calculate Power Requirements for a Small Aquarium Robot Fish (Worked Example)
  6. Maintain Your Robot Fish for Long‑Term Use
  7. Explore Advanced Features and Next Steps
  8. Robot Fish for Different Audiences and Settings