Skip to content

rpi-devices implements drivers for various kinds of sensors or devices based on raspberry pi in pure golang.

License

Notifications You must be signed in to change notification settings

honeis/rpi-devices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-devices

ci License GoDoc

rpi-devices implements drivers for various kinds of sensors or devices based on raspberry pi in pure golang.

Usage

package main

import (
	"time"

	"github.com/shanghuiyang/rpi-devices/dev"
)

const (
	pin = 26
)

func main() {
	led := dev.NewLedImp(pin)

	led.On()
	time.Sleep(3 * time.Second)
	led.Off()
}

Currently Implemented Drivers

Sensors Image Description Example App
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
ZE08-CH2O CH2O sensor example ch2o-monitor
ZP16 Gas detector example home-asst

Apps

Using the driver programs, I built several applications. The most complex app is the smart car, more than 10 sensers were used to build the car. I highlight few funny apps here, please go to app for all apps I developed. You can learn how to use the drivers from my apps.

play the video on youtube.

About

rpi-devices implements drivers for various kinds of sensors or devices based on raspberry pi in pure golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.0%
  • HTML 9.3%
  • Python 8.6%
  • Shell 1.1%