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
#include <stdio.h> | |
#include <LiquidCrystal.h> //Libreria display LCD | |
#include <Servo.h> //Libreria Servomotore | |
#include <IRremote.h> //Libreria Sensore Infrarossi | |
LiquidCrystal lcd(13, 12, 8, 9, 10, 11); // Pin digitali del display LCD | |
Servo motorefinestra; // Servomotore | |
int Pininf = 4; //Pin digitale segnale infrarossi | |
IRrecv receiver(Pininf); | |
decode_results results; //Immagazzina dati provenienti dal telecomando ovvero il codice del pulsante premuto | |
int buzzer = 6; //Pin digitale buzzer |
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
// | |
// Andrea Alecce | |
// www.antima.it | |
// 25-10-2020 | |
// | |
#define MQ5_pin A0 | |
float R0 = 16981.25; //Resistenza ricavata dalla fase di calibrazione | |
float sensorValue = 0.0; | |
float sensor_volt = 0.0; |
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
// | |
// Andrea Alecce | |
// www.antima.it | |
// 25-10-2020 | |
// | |
#define MQ5_pin A0 | |
float Vout; | |
float RS_air; // Valore di RS in aria pulita |
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
#include <WiFiClient.h> | |
#include <ESP8266WiFi.h> | |
#include <MQTT.h> | |
#include <PubSubClient.h> | |
#include<FastLED.h> | |
#define NUM_LEDS 64 | |
#define DATA_PIN 2 | |
CRGB leds[NUM_LEDS]; |