How to upload blink example to the arduino itself

12 views
Skip to first unread message

Objetek Systems

unread,
Sep 4, 2019, 11:13:22 AM9/4/19
to gobotio
Hello All

I have been successful is installing gort and gobot.  I have created the blink.go example and can run the program by using the go run blink.go.

I cannot find any examples on how to upload a finished go program directly to Arduino Uno.

I can see the benefit of prototyping your code using the go run <program.go>.  But when I am finished prototyping how can I upload the go program directly to Arduino Uno.

I have tried:

gort arduino upload blink.go /dev/tty.usbserial-1460 -b uno
gort arduino upload blink /dev/tty.usbserial-1460 -b uno ( after running go build)

But of course these files are not native binary (.hex) files.  Arduino binary format

I am assuming the firmata driver is suppose to perform the conversion from go to native binary.

In the case of Raspberry pi you, of course, supply cross-compiler flags for the ARM processor and then SSH the built go executable over to the pi.

How then do you get the go program uploaded and working on the Arduino?

Thanks

Joe


Reply all
Reply to author
Forward
0 new messages