Skip to content

Instantly share code, notes, and snippets.

View techzeero's full-sized avatar
🎯
Focusing

Techzeero techzeero

🎯
Focusing
View GitHub Profile
/*
How to use Potentiometer with Arduino
For more details, visit: https://techzeero.com/arduino-tutorials/how-to-use-potentiometer-with-arduino/
AnalogReadSerial
Reads an analog input (potentiometer) on pin 0,
prints the result to the serial monitor.
OPEN THE SERIAL MONITOR TO VIEW THE OUTPUT FROM THE POTENTIOMETER >>
@techzeero
techzeero / Change Range Values.ino
Last active October 20, 2019 15:46
Changing the Range of Values of Potentiometer by Percentages :- https://techzeero.com/arduino-tutorials/how-to-use-potentiometer-with-arduino/
int sensorValue = 0;
int percent;
void setup()
{
Serial.begin(9600);
}
void loop()
{
@techzeero
techzeero / Adjusting RGB Color Code2.ino
Last active October 21, 2019 09:25
In this tutorial, we adjust the color of an RGB LED using Arduino. RGB LED consists of three colors in combinations, but we can make more color by using these colors i.e red, green and blue. https://techzeero.com/arduino-tutorials/adjusting-the-color-of-an-rgb-led/
/*
Adjusting the Color of an RGB LED
For more details, visit: https://techzeero.com/arduino-tutorials/adjusting-the-color-of-an-rgb-led/
*/
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
void setup() {
@techzeero
techzeero / Flame Sensor Output Using Analog Pin.ino
Last active October 21, 2019 09:26
In this tutorial, we learn how to interface a flame sensor with Arduino. How to detect fire/flames using a flame sensor. https://techzeero.com/arduino-tutorials/flame-sensor-with-arduino-for-fire-detection/
/*
Flame Sensor With Arduino For Fire Detection
For more details, visit: https://techzeero.com/arduino-tutorials/flame-sensor-with-arduino-for-fire-detection/
*/
const int analogPin = A0; // Flame Sensor (A0) to Arduino analog input pin A0
const int BuzzerPin = 13; // Buzzer output pin
const int threshold = 400; // Flame level threshold value
void setup()
@techzeero
techzeero / Interfacing RFID with Arduino For Access Card.ino
Last active October 21, 2019 09:27
In this tutorial, we learn how to interfacing RFID with an Arduino. An RFID Sensor means Radio Frequency Identification Reader which is used to gathering from a card having an RFID tag. https://techzeero.com/arduino-tutorials/interfacing-rfid-with-arduino/
/*
Interfacing RFID with Arduino
For more details, visit: https://techzeero.com/arduino-tutorials/thermistor-with-arduino/
* Typical pin layout used:
* -----------------------------------------------------------------------------------------
* MFRC522 Arduino Arduino Arduino Arduino Arduino
* Reader/PCD Uno/101 Mega Nano v3 Leonardo/Micro Pro Micro
* Signal Pin Pin Pin Pin Pin Pin
* -----------------------------------------------------------------------------------------
/*
Interfacing RFID with Arduino
For more details, visit: https://techzeero.com/arduino-tutorials/thermistor-with-arduino/
* Typical pin layout used:
* -----------------------------------------------------------------------------------------
* MFRC522 Arduino Arduino Arduino Arduino Arduino
* Reader/PCD Uno/101 Mega Nano v3 Leonardo/Micro Pro Micro
* Signal Pin Pin Pin Pin Pin Pin
* -----------------------------------------------------------------------------------------
/*
Interfacing Thermistor and LCD Display with Arduino
For more details, visit: https://techzeero.com/arduino-tutorials/thermistor-with-arduino/
The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
@techzeero
techzeero / Thermistor With Arduino.ino
Last active October 21, 2019 09:29
In this tutorial, we learn how to interfacing Thermistor with an Arduino. How to get temperature readings from Thermistor and display them in LCD Display. https://techzeero.com/arduino-tutorials/thermistor-with-arduino/
/*
Thermistor with Arduino
For more details, visit: https://techzeero.com/arduino-tutorials/thermistor-with-arduino/
*/
int ThermistorPin = 0;
int Vo;
float R1 = 1000; // Resistor Value (We use 1 KOhms Resistor)
float logR2, R2, T, Tc, Tf;
float A = 1.009249522e-03, B = 2.378405444e-04, C = 2.019202697e-07;
@techzeero
techzeero / Home Automation Using Arduino and Bluetooth.ino
Last active October 21, 2019 09:30
Home Automation Using Arduino and Bluetooth is an IoT project to control our home appliances like light, fan, cooler, etc. from a Smartphone. In this project, we use Arduino Uno and HC-05 Bluetooth Module. https://techzeero.com/iot-projects/home-automation-using-arduino-and-bluetooth/
int Relay1 = 8;
int Relay2 = 9;
int Relay3 = 10;
int Relay4 = 11;
void setup()
{
Serial.begin(9600);
pinMode(Relay1,OUTPUT);
pinMode(Relay2,OUTPUT);
@techzeero
techzeero / Smart Parking System Using IoT and Android App.ino
Last active October 21, 2019 09:31
In this project tutorial, we are building a smart parking system using NodeMCU and ultrasonic sensors. Ultrasonic sensors are used to find distance ranges. https://techzeero.com/iot-projects/smart-parking-system/
//Code from techzeero.com
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#define FIREBASE_HOST "smart-parking-007.firebaseio.com" //Your Firebase Project URL goes here without "http:" , "\" and "/"
#define FIREBASE_AUTH "hp4aQl2MtBZ9aZ8NmQwyRDtjhBCcupJYJmrEiHom" //Your Firebase Database Secret goes here
#define WIFI_SSID "techzeero" //your WiFi SSID(Hotspot Name) for which your NodeMCU connects
#define WIFI_PASSWORD "techzeero123" //Password of your wifi network