Skip to content

Instantly share code, notes, and snippets.

@zankich
Last active July 24, 2018 18:02
Show Gist options
  • Save zankich/17980a59d4a9cc50ebf2 to your computer and use it in GitHub Desktop.
Save zankich/17980a59d4a9cc50ebf2 to your computer and use it in GitHub Desktop.
Gobot firmata instructions for Windows
  1. Install gort
  1. Install arduino dependencies and flash firmata
  • Make sure you are running your terminal as an Administrator
  • $ ./gort arduino install
  • reload your env variables, or close your cmd prompt and open a new one
  • $ ./gort scan serial
  • Take note of the COM port listed, this should be your arduino
  • $ ./gort arduino upload firmata [COM port]
    • This accepts the COM port which you retrieved from the gort scan serial command
    • Your arduino will be flashed with the firmata sketch
  1. Control arduino from Gobot
  • $ go get -u github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/firmata
  • Use the example located here
  • Replace the line "/dev/ttyACM0" with "COMX" where X is the appropriate COM port for your arduino
  • Now you can execute your Gobot program with $ go run firmata_blink.go
  • You should now see the build in led start to flash!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment