View livello_liquidi_con_ultrasuoni
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 <Wire.h> | |
#include <math.h> | |
#define VELOCITA_DEL_SUONO 0.034 | |
#define TENTATIVI_CALIBRAZIONE 8 | |
const int echoPin = 21; | |
const int trigPin = 22; | |
const int PinPotenziometro = 13; |
View pilotare-un-motore-elettrico-con-arduino
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
/* | |
Driver per motore elettrico brushed | |
- pin 9 di Arduino collegato alla base del TIP120 | |
*/ | |
int pinMotorino = 9; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(pinMotorino, OUTPUT); | |
} |
View tradurre-il-codice-morse-con-arduino.ino
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 ledPin = 13; | |
char* letters[] = { | |
“.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”, | |
“.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”, | |
“…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..” | |
}; | |
// A-I | |
// J-R | |
// S-Z | |
char* numbers[] = { “—–”, “.—-”, “..—”, |
View Come leggere la temperatura ambientale con Arduino – parte seconda.ino
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 <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <Hash.h> | |
#include <ESPAsyncTCP.h> | |
#include <Adafruit_Sensor.h> | |
#include <DHT.h> | |
#include <EMailSender.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ArduinoJson.h> |
View dioxide_sensirion
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 <Arduino.h> | |
#include <FastLED.h> | |
#include <SensirionI2cScd30.h> | |
#include <Wire.h> | |
#define LED_PIN 14 | |
#define NUM_LEDS 12 | |
#define BRIGHTNESS 4 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER GRB |
View ESP32_centralina_controllo_gas.ino
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 <esp_wifi.h> | |
#include <WiFiClientSecure.h> | |
#include <PubSubClient.h> | |
#include <ArduinoJson.h> | |
#include "WiFi.h" | |
#include "DHT.h" | |
#include "secrets.h" | |
#define AWS_IOT_PUBLISH_TOPIC "esp32/pub" | |
#define AWS_IOT_SUBSCRIBE_TOPIC "esp32/sub" |
View ESP32_Weather_Station_Shield.ino
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 <WiFi.h> | |
#include "SD.h" | |
#include "DHT.h" | |
#include <Wire.h> | |
#include <Adafruit_BMP085.h> | |
// Replace with your network credentials | |
const char* ssid = "REPLACE_WITH_YOUR_SSID"; | |
const char* password = "REPLACE_WITH_YOUR_PASSWORD"; |
View tradurre-il-codice-morse-con-arduino
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 ledPin = 13; | |
char* letters[] = { | |
“.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”, | |
“.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”, | |
“…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..” | |
}; | |
// A-I | |
// J-R | |
// S-Z | |
char* numbers[] = { “—–”, “.—-”, “..—”, |
View sketch_mar31.ino
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 "secrets.h" | |
#include <WiFiClientSecure.h> | |
#include <PubSubClient.h> | |
#include <ArduinoJson.h> | |
#include "WiFi.h" | |
#include "DHT.h" | |
#define DHTPIN 34 // Digital pin connected to the DHT sensor | |
#define DHTTYPE DHT11 // DHT 11 | |
View esp32-sensore-gas-001.ino
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
Enter your forum-formatted code here | |
#include <ESP32WiFi.h> | |
#include <EEPROM.h> | |
#include | |
int val; | |
#define wifi_name “SSID” | |
#define password “la propria Password Wifi” | |
#define server “io.adafruit.com” | |
#define port 1883 | |
#define nome utente “Il proprio Adafruit ID Utente” |
NewerOlder