Skip to content

Web application to remotely control LEDs via IR signal - for Raspberry Pi - written in Go

Notifications You must be signed in to change notification settings

drahoslove/ledserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

LEDserver

Web application to remotely control RGB LEDs via IR signal - for Raspberry Pi - written in Go

It uses two other go packeges:

  • go-rpio - to control gpio pins of Raspberri Pi (from stianeikeland - which I extended by clock and pwm modes)
  • go-nec - my small package for basic encoding and transmission of NEC - Infrared transmission protocol

Requirements

  • RGB LED strip with 24-button IR remote controller
    • for 44-button controller some tweaks in code are neccesary
    • the remote itself is not actually needed - it will be replaced with pi
  • Raspberry Pi A+/B+/2B/3B/ZERO
    • with network connection
    • with golang installed
  • 940nm IR LED
  • suitable resistor and jumper wires

Installation

Software

  • Run:
    go get -u -v github.com/drahoslav7/ledserver
    cd $GOPATH/src/github.com/drahoslav7/ledserver
    sudo ledserver
  • Open in your browser:
    http://<ip of your pi>:8080/
    

Hardware

  • connect IR LED between BCM pins 19 and 26
    • cathode (-) to pin 19
    • anode (+) to pin 26
    • usage of proper resistor highly recommended

About

Web application to remotely control LEDs via IR signal - for Raspberry Pi - written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published