https://github.com/briangershon/proximity-alert-gobot
Gobot code to detect when a human is near. Also graph sound and IR data via InfluxDB and Grafana.
https://github.com/briangershon/proximity-alert-gobot
Last synced: about 2 months ago
JSON representation
Gobot code to detect when a human is near. Also graph sound and IR data via InfluxDB and Grafana.
- Host: GitHub
- URL: https://github.com/briangershon/proximity-alert-gobot
- Owner: briangershon
- License: mit
- Created: 2017-07-15T20:22:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T05:56:09.000Z (about 7 years ago)
- Last Synced: 2025-01-12T09:45:05.268Z (4 months ago)
- Language: Go
- Size: 4.98 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# proximity-alert-gobot
## Intro
When a human gets close to the IR sensor, the LED blinks. Sound and IR data are also graphed.
Realtime data is sent to InfluxDB and graphed via Grafana.
An experiment using Gobot at GopherCon 2017's Hardware Hack Day: https://github.com/hybridgroup/gobot-workshop-2017
Thanks to #gophercon and #gobot -- as well as #intel for providing free #tinytile hardware and a bag full of sensors to play with!



## Setup (on OSX)
* Connect to TinyTile: https://github.com/hybridgroup/gobot-workshop-2017/blob/master/airlock/tinytile/README.md
* Connect up the Sound Sensor and Infrared Emission Sensor: https://github.com/hybridgroup/gobot-workshop-2017/blob/master/starterkit/README.md See source code for pins that were used.
* Install InfluxDB `brew install influxdb` and create a `gobot` database. See InfluxDB "Getting Started".
* Install Grafana `brew install grafana`. You can then connect to InfluxDB data source and setup graphs.
## Run app and collect data
# See source code for the analog and digital pins
# that were used.cd proximity
go run proximity.go /dev/tty.usbmodem1411Sound and IR data will be saved in influxdb, and then graphed via Grafana.
NOTE that the sound sensor is not very sensitive. You have to whistle or do something very loud next to it. Hand clap isn't enough.