Gobot helps you control robots, boards, and sensors from Go, combining many hardware connections in one program. It supports classic robot definitions, minimal hardware-only code, or manager-style swarms with an optional API.
Overview
Gobot is a Go framework for robotics, physical computing, and Internet of Things projects. It gives you a structured way to connect adaptors and drivers so multiple devices can work together in one running program, from hobby boards to drones and Bluetooth peripherals.
You can use the full robot model with connections and devices, import only the driver packages you need for idiomatic Go control, or run a manager setup that coordinates groups of robots. Examples cover blinking LEDs on a Raspberry Pi, Arduino Firmata, and Sphero toys.
Hardware coverage spans dozens of platforms including Arduino, Raspberry Pi, BeagleBone, Intel boards, Microbit, MQTT, and many drones. Shared driver packages group support for GPIO, I2C, SPI, serial, analog I/O, BLE, and one-wire devices, with long lists of specific sensors and actuators named in the docs.
Gobot can expose a REST API to query connection and device status and send commands, with optional host, port, and authentication settings. The robeaux web UI can be used alongside that API. The project pairs with the separate Gort CLI for firmware and device operations from the terminal.
Key features
- Robot, metal, and manager programming styles
- GPIO, I2C, SPI, serial, and BLE drivers
- Support for Arduino, Raspberry Pi, and drones
- REST API for device status and commands
- Optional robeaux web configuration UI
- Companion Gort command-line toolkit
- Swarm-oriented manager mode
- Extensible adaptor and driver packages
Use cases
- Blinking LEDs and simple GPIO robots
- Controlling Arduino or Firmata boards
- Building multi-device IoT prototypes
- Operating drone and Sphero platforms
- Remote monitoring via HTTP API