2013-12-07 18:41:06 +01:00
|
|
|
# go-rpi
|
|
|
|
|
|
|
|
Use various sensors on the RaspberryPi with Golang (like a ninja!)
|
2013-12-08 20:06:56 +01:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
[![GoDoc](http://godoc.org/github.com/kid0m4n/go-rpi?status.png)](http://godoc.org/github.com/kid0m4n/go-rpi)
|
2013-12-08 20:47:31 +01:00
|
|
|
|
|
|
|
## Protocols supported
|
|
|
|
|
2013-12-08 20:50:27 +01:00
|
|
|
### I2C
|
2013-12-08 20:47:31 +01:00
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/i2c)
|
|
|
|
|
|
|
|
## Sensors supported
|
|
|
|
|
2014-01-05 10:01:58 +01:00
|
|
|
### TMP006
|
|
|
|
|
|
|
|
Thermopile sensor
|
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/tmp006) [Datasheet](http://www.adafruit.com/datasheets/tmp006.pdf) [Userguide](http://www.adafruit.com/datasheets/tmp006ug.pdf)
|
|
|
|
|
2013-12-08 20:50:27 +01:00
|
|
|
### BMP085
|
2013-12-20 21:36:06 +01:00
|
|
|
|
2013-12-08 20:47:31 +01:00
|
|
|
Barometric pressure sensor
|
|
|
|
|
2013-12-08 20:50:27 +01:00
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/bmp085) [Datasheet](https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf)
|
2013-12-08 20:47:31 +01:00
|
|
|
|
2013-12-31 22:40:32 +01:00
|
|
|
### BMP180
|
|
|
|
|
|
|
|
Barometric pressure sensor
|
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/bmp180) [Datasheet](http://www.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf)
|
|
|
|
|
2013-12-08 20:50:27 +01:00
|
|
|
### LSM303
|
2013-12-20 21:36:06 +01:00
|
|
|
|
2013-12-08 20:47:31 +01:00
|
|
|
Accelerometer and magnetometer
|
|
|
|
|
2013-12-08 20:50:27 +01:00
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/lsm303) [Datasheet](https://www.sparkfun.com/datasheets/Sensors/Magneto/LSM303%20Datasheet.pdf)
|
2013-12-13 01:21:22 +01:00
|
|
|
|
2014-01-02 02:20:57 +01:00
|
|
|
### L3GD20
|
|
|
|
|
|
|
|
Gyroscope
|
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/l3gd20) [Datasheet](http://www.adafruit.com/datasheets/L3GD20.pdf)
|
|
|
|
|
2013-12-13 01:21:22 +01:00
|
|
|
### US020
|
|
|
|
|
|
|
|
Ultrasonic proximity sensor
|
|
|
|
|
2013-12-20 21:36:06 +01:00
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/us020) [Product Page](http://www.digibay.in/sensor/object-detection-and-proximity?product_id=239)
|
|
|
|
|
|
|
|
### BH1750FVI
|
|
|
|
|
|
|
|
Luminosity sensor
|
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/sensor/us020) [Datasheet](http://www.elechouse.com/elechouse/images/product/Digital%20light%20Sensor/bh1750fvi-e.pdf)
|
2013-12-31 03:33:05 +01:00
|
|
|
|
2014-01-05 09:24:24 +01:00
|
|
|
## Interfaces
|
2013-12-31 03:33:05 +01:00
|
|
|
|
2014-01-05 09:24:24 +01:00
|
|
|
### Keypad(4x3)
|
2013-12-31 03:33:05 +01:00
|
|
|
|
|
|
|
[Product Page](http://www.adafruit.com/products/419#Learn)
|
2014-01-05 09:24:24 +01:00
|
|
|
|
|
|
|
## Controllers
|
|
|
|
|
|
|
|
### PCA9685
|
2014-01-05 21:56:45 +01:00
|
|
|
|
2014-01-05 09:24:24 +01:00
|
|
|
16-channel, 12-bit PWM Controller with I2C protocol
|
|
|
|
|
2014-01-05 21:56:45 +01:00
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/controller/pca9685) [Datasheet](http://www.adafruit.com/datasheets/PCA9685.pdf) [Product Page](http://www.adafruit.com/products/815)
|
|
|
|
|
|
|
|
### MCP4725
|
|
|
|
|
|
|
|
12-bit DAC
|
|
|
|
|
|
|
|
[Documentation](http://godoc.org/github.com/kid0m4n/go-rpi/controller/mcp4725) [Datasheet](http://www.adafruit.com/datasheets/mcp4725.pdf) [Product Page](http://www.adafruit.com/products/935)
|