gobot.io/x/gobot/v2@v2.1.0/platforms/jetson/README.md (about) 1 # Jetson Nano 2 3 The Jetson Nano is ARM based single board computer with digital & PWM GPIO, and i2c interfaces built in. 4 5 The Gobot adaptor for the Jetson Nano should support Jetno Nano. 6 7 For more info about the Jetson Nano platform, click [here](https://developer.nvidia.com/embedded/jetson-nano/). 8 9 ## How to Install 10 11 We recommend updating to the latest jetson-nano OS when using the Jetson Nano, however Gobot should also support older versions of the OS, should your application require this. 12 13 You would normally install Go and Gobot on your workstation. Once installed, cross compile your program on your workstation, transfer the final executable to your Jetson Nano, and run the program on the Jetson Nano as documented here. 14 15 ``` 16 go get -d -u gobot.io/x/gobot/v2/... 17 ``` 18 19 ## How to Use 20 21 The pin numbering used by your Gobot program should match the way your board is labeled right on the board itself. 22 23 ```go 24 package main 25 26 import ( 27 "time" 28 29 "gobot.io/x/gobot/v2" 30 "gobot.io/x/gobot/v2/drivers/gpio" 31 "gobot.io/x/gobot/v2/platforms/jetson" 32 ) 33 34 func main() { 35 r := jetson.NewAdaptor() 36 led := gpio.NewLedDriver(r, "40") 37 38 work := func() { 39 gobot.Every(1*time.Second, func() { 40 led.Toggle() 41 }) 42 } 43 44 robot := gobot.NewRobot("blinkBot", 45 []gobot.Connection{r}, 46 []gobot.Device{led}, 47 work, 48 ) 49 50 robot.Start() 51 52 } 53 ``` 54 55 ## How to Connect 56 57 ### Compiling 58 59 Once you have compiled your code, you can upload your program and execute it on the Jetson Nano from your workstation using the `scp` and `ssh` commands like this: 60 61 ```bash 62 $ scp jetson-nano_blink jn@192.168.1.xxx:/home/jn/ 63 $ ssh -t jn@192.168.1.xxx "./jetson-nano_blink" 64 ```