Skip to content

Instantly share code, notes, and snippets.

View debsahu's full-sized avatar
🐺
meh

Debashish Sahu debsahu

🐺
meh
View GitHub Profile
/*
* ATtiny85
* -------u-------
* RST - A0 - (D 5) --| 1 PB5 VCC 8 |-- +5V
* | |
* A3 - (D 3) --| 2 PB3 PB2 7 |-- (D 2) - A1 --> 10K Potentiometer
* | |
* A2 - (D 4) --| 3 PB4 PB1 6 |-- (D 1) - PWM --> Fan Blue wire
* | |
* Gnd ---| 4 GND PB0 5 |-- (D 0) - PWM --> Disabled
@debsahu
debsahu / HA_RTLAMR.yaml
Last active July 8, 2024 17:48
RTLAMR: RTL-SDR to read electric/gas/water meters
shell_command:
rtlamr_start: 'python3.6 /home/pi/work/rtlamrmqtt.py'
kill_rtlamr: 'pkill -f rtlamr'
automation:
- action:
- data: {}
service: shell_command.rtlamr_start
alias: Start RTLAMR Script
condition: []
@debsahu
debsahu / HAColorSensor.ino
Created April 7, 2018 04:32
ESP8266 reading from TCS34725 Color Sensor and changing RGB Colors in Home Assistant
#include <ColorName.h> // https://github.com/debsahu/ColorName
#include "Adafruit_TCS34725.h" // https://github.com/adafruit/Adafruit_TCS34725
#include <SSD1306.h> // https://github.com/ThingPulse/esp8266-oled-ssd1306
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <Bounce2.h> // https://github.com/thomasfredericks/Bounce2
//#include "secret.h"
#define BUTTON_PIN 0
#ifndef SECRET