This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 >> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sensorValue = 0; | |
int percent; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
* ----------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
* ----------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int Relay1 = 8; | |
int Relay2 = 9; | |
int Relay3 = 10; | |
int Relay4 = 11; | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(Relay1,OUTPUT); | |
pinMode(Relay2,OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
OlderNewer