Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
Golang framework for robotics, drones, and the Internet of Things (IoT)
Saved setup from 11 h ago
Will it work on Windows?
make (e.g. winget install GnuWin32.Make) or WSL.Gobot has a extensible system for connecting to hardware devices. The following robotics and physical computing platforms are currently supported:
…
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Compare yours with the README's “Hardware Support” list above before installing anything.
Needs Git: winget install Git.Git
git clone https://github.com/hybridgroup/gobot.git cd gobot
Go 1.24.0
winget install GoLang.Go
go mod download
go test ./...
Makefile targets need make (e.g. winget install GnuWin32.Make) or WSL.
Get the Gobot source code by running this commands:
git clone https://github.com/hybridgroup/gobot.git
git checkout release
Afterwards have a look at the examples directory. You need to find an example matching your platform for your first test (e.g. "raspi_blink.go"). Than build the binary (cross compile), transfer it to your target and run it.
env GOOS=linux GOARCH=arm GOARM=5 go build -o ./output/my_raspi_bink examples/raspi_blink.go
Building the code on your local machine with the example code above will create a binary for ARMv5. This is probably not what you need for your specific target platform. Please read also the platform specific documentation in the platform subfolders.
Create a new folder and a new Go module project.
mkdir ~/my_gobot_example
cd ~/my_gobot_example
go mod init my.gobot.example.com
Copy your example file besides the go.mod file, import the requirements and build.
cp /<path to gobot folder>/examples/raspi_blink.go ~/my_gobot_example/
go mod tidy
env GOOS=linux GOARCH=arm GOARM=5 go build -o ./output/my_raspi_bink raspi_blink.go
Now you are ready to modify the example and test your changes. Start by removing the build directives at the beginning of the file.
No reports for Windows yet.
GitManual AI Agent reads the 5 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.