![]() If all you want to do it boot once from the SD card, it should now be booting. Insert SD card into your (powered-down) board, hold down the USER/BOOT button (if using Black) and apply power, either by the USB cable or 5V adapter. Once you have created the SD card, boot your BeagleBone using the new image as follows: Now, use Etcher to create an SD card with the OS image you have downloaded. It is very easy to do this using the Etcher () utility program.įirst, download the latest BeagleBone OS from We recommend using your BeagleBone with the latest Debian OS. ![]() You must also configure hardware settings as described below. In order to run the preceeding commands, you must be running the official Debian Linux through the usb->ethernet connection, or be connected to the board using WiFi. Once you have compiled your code, you can you can upload your program and execute it on the BeagleBone from your workstation using the scp and ssh commands like this: $ scp beaglebone_blink ssh -t "./beaglebone_blink" Robot := gobot.NewRobot( " pocketBeagleBot ",Ĭompile your Gobot program on your workstation like this: $ GOARM=7 GOARCH=arm GOOS=linux go build examples/beaglebone_blink.go ![]() Led := gpio.NewLedDriver(beagleboneAdaptor, " P1_02 ") To use the PocketBeagle, use beaglebone.NewPocketBeagleAdaptor() like this: package mainīeagleboneAdaptor := beaglebone.NewPocketBeagleAdaptor() Led := gpio.NewLedDriver(beagleboneAdaptor, " P9_12 ") " time " " gobot.io/x/gobot " " gobot.io/x/gobot/drivers/gpio " " gobot.io/x/gobot/platforms/beaglebone "īeagleboneAdaptor := beaglebone.NewAdaptor() ![]() Gobot also has support for the four built-in LEDs on the BeagleBone Black, by referring to them as usr0, usr1, usr2, and usr3. The pin numbering used by your Gobot program should match the way your board is labeled right on the board itself. ![]() Once installed, cross compile your program on your workstation, transfer the final executable to your BeagleBone, and run the program on the BeagleBone itself as documented here. You would normally install Go and Gobot on your workstation. If you need support for older versions of the OS, you will need to use Gobot v1.4. The current Gobot only supports 4.x versions of the OS. We recommend updating to the latest Debian OS when using the BeagleBone. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |