

The first program we are going to create is the "Hello, World" of things, which is a program to blink an LED on and off every second. Once you have the Gobot packages installed, you're ready to start writing your own code. With Go installed, the go get tool will help you install Gobot and its required dependencies: $ go get -d -u gobot.io/x/gobot/. Go is an open-source programming language that makes it easy to develop simple, reliable, and efficient software.įollow the official installation instructions to get started.

Gobot's approach to standardization and abstraction makes it easy to write a program that works on multiple hardware platforms with little modification. Gobot can also provide an external facing API to allow other programs to control from individual devices to entire groups of Robots on a shared network, implemented using JSON-over-HTTP API. Robots (Go programs) written with Gobot can run on a host machine communicating to connected devices, or directly on a single-board Linux computer, or anywhere in between. The "Robot" is the main software abstraction that makes it easy to build interesting high-level functionality for supported devices. Gobot provides drivers and adapters for controlling a wide variety of physical devices from low-level Arduino and Raspberry Pi, as well as drones, toys, and other complete devices that themselves have APIs. Gobot is a framework for robotics, physical computing, and the Internet of Things (IoT), written in the Go programming language.
