Skip to content

sbinet/argo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argo

Dependencies

$> modprobe cdc-acm
$> pacman -S avrdude
$> go get -u -v github.com/hybridgroup/gort
$> gort arduino upload firmata /dev/ttyACM0

Installation

$> go get -u -v github.com/sbinet/argo/...

Example

Blink LED

$> argo -mode led
2016/11/30 12:55:56 --> device: "/dev/ttyACM0" baud: 57600
2016/11/30 12:55:56 Initializing Robot bot ...
2016/11/30 12:55:56 Initializing connections...
2016/11/30 12:55:56 Initializing connection arduino ...
2016/11/30 12:55:56 Initializing devices...
2016/11/30 12:55:56 Initializing device led ...
2016/11/30 12:55:56 Initializing device sensor ...
2016/11/30 12:55:56 Starting Robot bot ...
2016/11/30 12:55:56 Starting connections...
2016/11/30 12:55:56 Starting connection arduino on port /dev/ttyACM0...
2016/11/30 12:56:01 Starting devices...
2016/11/30 12:56:01 Starting device led on pin 13...
2016/11/30 12:56:01 Starting device sensor on pin 1...
2016/11/30 12:56:01 Starting work...
[...]
^C

Blink LED & Collect data

$> argo -mode sensor
2016/11/30 12:57:11 --> device: "/dev/ttyACM0" baud: 57600
2016/11/30 12:57:11 Initializing Robot bot ...
2016/11/30 12:57:11 Initializing connections...
2016/11/30 12:57:11 Initializing connection arduino ...
2016/11/30 12:57:11 Initializing devices...
2016/11/30 12:57:11 Initializing device led ...
2016/11/30 12:57:11 Initializing device sensor ...
2016/11/30 12:57:11 Starting Robot bot ...
2016/11/30 12:57:11 Starting connections...
2016/11/30 12:57:11 Starting connection arduino on port /dev/ttyACM0...
2016/11/30 12:57:16 Starting devices...
2016/11/30 12:57:16 Starting device led on pin 13...
2016/11/30 12:57:16 Starting device sensor on pin 1...
2016/11/30 12:57:16 Starting work...
raw= 867.000 2016-11-30 12:57:17.372279087 +0100 CET
raw= 866.000 2016-11-30 12:57:21.373246912 +0100 CET
raw= 867.000 2016-11-30 12:57:22.373494844 +0100 CET
raw= 866.000 2016-11-30 12:57:22.873596707 +0100 CET
raw= 867.000 2016-11-30 12:57:23.373758862 +0100 CET
[...]
^C
2016/11/30 12:57:25 Stopping Robot bot ...
2016/11/30 12:57:25 <nil>

Blink LED, Collect data & Plot data

$> argo-web -mode sensor
2016/11/30 12:58:35 --> device: "/dev/ttyACM0" baud: 57600
2016/11/30 12:58:35 Initializing Robot bot ...
2016/11/30 12:58:35 Initializing connections...
2016/11/30 12:58:35 Initializing connection arduino ...
2016/11/30 12:58:35 Initializing devices...
2016/11/30 12:58:35 Initializing device led ...
2016/11/30 12:58:35 Initializing device sensor ...
2016/11/30 12:58:35 please connect to: http://localhost:8080
2016/11/30 12:58:35 Starting Robot bot ...
2016/11/30 12:58:35 Starting connections...
2016/11/30 12:58:35 Starting connection arduino on port /dev/ttyACM0...
2016/11/30 12:58:40 Starting devices...
2016/11/30 12:58:40 Starting device led on pin 13...
2016/11/30 12:58:40 Starting device sensor on pin 1...
2016/11/30 12:58:40 Starting work...
[...]
^C
2016/11/30 13:00:06 Stopping Robot bot ...
2016/11/30 13:00:06 <nil>

web-plot (PDF)

About

plotting light with Go and Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages