Skip to content

Instantly share code, notes, and snippets.

View EDISON-SCIENCE-CORNER's full-sized avatar
🏠
Working from home

RAJESH K T EDISON-SCIENCE-CORNER

🏠
Working from home
View GitHub Profile
#include <Adafruit_GFX.h>
#include <Adafruit_ST7796S.h>
#include <math.h>
#include <Wire.h>
#include <AHTxx.h>
// ---------------- TFT PINS ----------------
#define TFT_CS 2
#define TFT_DC 5
#define TFT_RST 4
@EDISON-SCIENCE-CORNER
EDISON-SCIENCE-CORNER / dice.ino
Created August 12, 2025 07:25
Arduino dice OLED
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
@EDISON-SCIENCE-CORNER
EDISON-SCIENCE-CORNER / Esp32dac.ino
Created August 10, 2025 10:37
Music with fruits and esp32
/*
ESP32 DAC - Musical Fruit
espdac-touch-music.ino
ESP32 DAC & Touch Switch Demo
Uses DacESP32 Library - https://github.com/yellobyte/DacESP32
DroneBot Workshop 2022
https://dronebotworkshop.com
*/
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// OLED settings
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
// Ultrasonic sensor pins
@EDISON-SCIENCE-CORNER
EDISON-SCIENCE-CORNER / dht11 with voltage monitor.ino
Created November 17, 2024 06:02
dht11 with voltage monitor
#include <DHT11.h>
DHT11 dht11(4);
int analogInPin = A0; // Analog input pin
int sensorValue; // Analog Output of Sensor
int temperature = 0;
int humidity = 0;
float calibration = 0.23; // Check Battery voltage using multimeter & add/subtract the value
int bat_percentage;
// https://youtu.be/4WgKgwAZ9FE (Please watch and if liked then subscribe)
//EDISON SCIENCE CORNER
//EDISON SCIENCE CORNER
#include <DS3232RTC.h>
#include <TimeLib.h>
#include <Time.h>
#include <Wire.h>
#include <FastLED.h>
//EDISON SCIENCE CORNER
//www.esclabs.in
#include <SoftwareSerial.h>
SoftwareSerial GSM(11, 10); //SIM800 Tx & Rx is connected to Arduino
char phone_no[]="+919074213906"; //your number with country code
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <AsyncJson.h>
#include <ArduinoJson.h>
#include <DNSServer.h>
#include <ESP8266mDNS.h>
#include <FS.h> // For SPIFFS
#include <FastLED.h>
#define NUM_LEDS 2
#include <Wire.h>
#include <TEA5767Radio.h>
#include <Arduino.h>
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
#define BLYNK_TEMPLATE_ID "TMPL3zt3E3vMt"
#define BLYNK_TEMPLATE_NAME "temp"
#define BLYNK_AUTH_TOKEN "HTWA-NwX2X-EQy2XglVjx2o40LTtWYCA"
#define BLYNK_PRINT Serial
#include <WiFi.h>
//#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "edison science corner"; // type your wifi name
char pass[] = "eeeeeeee"; // type your wifi password