General Questions about Gobot / GoLang (Writing a Program for a New Hardware)

35 views
Skip to first unread message

walter....@gmail.com

unread,
Nov 11, 2017, 11:55:19 AM11/11/17
to gobotio

Hello guys,

i have a general question about the Gobot framework and GoLang.

If i want to write a Go-Program for a new Hardware, do i have to modify the existing FW (or write a new one) ?
And what about Hardware with a OS? Do i have to modify anything?

Or can i load the binary file to the controller without any FW or OS (for example the ST Nucleo Board with an ARM Processor)?

When you always need a FW or OS, why do you need it? Is it for interpreting the Go-Program for the Controller?
But this makes no sense for me, because the binaries after compilation are machine code.

I write an essay about GoLang for embedded systems with Gobot and i'm happy, if anyone can help me with this Question.



Thanks guys (:

Jay Newman

unread,
Jun 6, 2018, 7:52:40 PM6/6/18
to gobotio
A framework is used to share work so that each of us doesn't have to be an expert in everything.

Also it means that each of us doesn't to do all the work. In fact, if you're using hardware that is already defined and documented, then there is very little grunt work needed. The main thing that is needed to write is the controller code for a robot or IoT device.

When I started in robotics most of us wrote our own code, using sample code from datasheets and so forth. But our robots didn't do as much as they do now. For example, using ROS (a much more complex framework) one gets a lot of things with the framework, such as SLAM mapping and a lot of hardware definitions. I think that Gobot is a nice middle ground. It's relatively easy to understand, and yet powerful enough for me to write a robot in.

Currently the Go code only runs on devices that are powerful enough to run it. This means Linux devices (Raspberry Pi's work, as do PC-type Linux boxes like my laptop), or Windows boxes, or even Macintoshes.. There are some projects to put Go on the Arduino. As it is now, to use Gobot on the Arduino, the Gobot code runs on the larger computer which communicates with the Arduino with the Arduino Adapter. A piece of code on the Arduino will use the Firmata protocol to communicate with the main computer.

There is a lot of hardware that is already defined.

If you wish to contribute code to the project, there are guidelines.

Have fun!
Reply all
Reply to author
Forward
0 new messages