https://github.com/drahoslove/ledserver
Web application to remotely control LEDs via IR signal - for Raspberry Pi - written in Go
https://github.com/drahoslove/ledserver
golang ir-signal nec raspberry-pi
Last synced: 2 months ago
JSON representation
Web application to remotely control LEDs via IR signal - for Raspberry Pi - written in Go
- Host: GitHub
- URL: https://github.com/drahoslove/ledserver
- Owner: drahoslove
- Created: 2017-11-22T12:06:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T22:06:44.000Z (over 7 years ago)
- Last Synced: 2025-03-24T12:15:50.709Z (over 1 year ago)
- Topics: golang, ir-signal, nec, raspberry-pi
- Language: Go
- Size: 566 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](//github.com/stianeikeland/go-rpio) - to control gpio pins of Raspberri Pi (from [stianeikeland](//github.com/stianeikeland/go-rpio) - which I extended by clock and pwm modes)
- [go-nec](//github.com/drahoslav7/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:
```bash
go get -u -v github.com/drahoslav7/ledserver
cd $GOPATH/src/github.com/drahoslav7/ledserver
sudo ledserver
```
- Open in your browser:
```
http://:8080/
```
### Hardware
- connect IR LED between BCM pins 19 and 26
- cathode (-) to pin [19](https://pinout.xyz/pinout/pin35_gpio19 "physical pin 35")
- anode (+) to pin [26](https://pinout.xyz/pinout/pin37_gpio26 "physical pin 37")
- usage of proper resistor highly recommended