rpi-devices implements drivers for various kinds of sensors or devices based on raspberry pi in pure Golang.
package main
import (
"time"
"github.com/shanghuiyang/rpi-devices/dev"
)
const pin = 26
func main() {
led := dev.NewLedImp(pin)
for {
led.On()
time.Sleep(1 * time.Second)
led.Off()
time.Sleep(1 * time.Second)
}
}
Sensors | Image | Description | Example | Projects |
---|---|---|---|---|
ADS1015 | ![]() |
Analog-to-digital converter | N/A | joystick |
Button | ![]() |
Button module | example | vedio-monitor |
Buzzer | ![]() |
Buzzer module | N/A | car, door-dog |
BYJ2848 | ![]() |
Step motor | example | N/A |
Collision Switch | ![]() |
A switch for deteching collision | example | car |
DHT11 | ![]() |
Temperature & Humidity sensor | example | home-asst |
Display Digital Led TM1637 | ![]() |
Digital led module | example | auto-air |
Display LCD | ![]() |
LCD display module | example | home-asst |
Display SSD1360 | ![]() |
Oled display module | example | home-asst |
Display ST7899 | ![]() |
TFT LCD display module | example | gps-tracker |
DS18B20 | ![]() |
Temperature sensor | example | auto-fan |
Encoder | ![]() |
Encoder sensor | example | N/A |
GPS NEO-6M | ![]() |
Location sensor | example | car |
GPS HT1818 | ![]() |
Location sensor | N/A | gps-tracker |
GY-25 | ![]() |
Angle sensor | example | car |
HC-SR04 | ![]() |
Ultrasonic distance meter | example | auto-light, doordog |
HDC1080 | ![]() |
Thermohygrometer sensor | example | home-asst |
Humidity Detector | ![]() |
Soil humidity detector | example | N/A |
Infrared Encoder/Decoder | ![]() |
Infrared encoder/decoder | example | N/A |
Infrared | ![]() |
Infrared sensor | example | N/A |
Joystick | ![]() |
XY Dual Axis Joystick | example | car |
L298N | ![]() |
Motor driver | N/A | car |
LC12S | ![]() |
2.4g wireless module | example | car |
Led | ![]() |
Led light | example | car, vedio-monitor |
MPU6050 | ![]() |
6-axis motion sensor | example | N/A |
PCF8591 | ![]() |
Analog-to-digital converter | N/A | N/A |
PMS7003 | ![]() |
Air quality sensor | example | auto-air |
Relay | ![]() |
Relay module | example | auto-fan |
RX480E-4 | ![]() |
433MHz Wireless RF Receiver | example | remote-light |
SG90 | ![]() |
Servo motor | example | auto-air, car, vedio-monitor |
SW-420 | ![]() |
Shaking sensor | example | auto-air-out |
US-100 | ![]() |
Ultrasonic distance meter | example | car |
Voice Detector | ![]() |
Voice detector | N/A | N/A |
Water Flow Sensor | ![]() |
Water flow sensor | example | N/A |
ZE08-CH2O | ![]() |
CH2O sensor | example | ch2o-monitor |
ZP16 | ![]() |
Gas detector | example | home-asst |
See my another repo rpi-projects for all projects that I developed them using this libaray.