Skip to content

Instantly share code, notes, and snippets.

View pilotare-un-motore-elettrico-con-arduino
/*
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
int ledPin = 13;
char* letters[] = {
“.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”,
“.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”,
“…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..”
};
// A-I
// J-R
// S-Z
char* numbers[] = { “—–”, “.—-”, “..—”,
View Come leggere la temperatura ambientale con Arduino – parte seconda.ino
#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>
@sebadima
sebadima / dioxide_sensirion
Last active Nov 4, 2022
dioxide_sensirion.ino
View dioxide_sensirion
#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
#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
#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
int ledPin = 13;
char* letters[] = {
“.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”,
“.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”,
“…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..”
};
// A-I
// J-R
// S-Z
char* numbers[] = { “—–”, “.—-”, “..—”,
@sebadima
sebadima / sketch_mar31.ino
Last active Apr 10, 2022
esp32-sensore-gas-002.ino
View sketch_mar31.ino
#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
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”
View 003-001.ino
int mioPin = 13; // la porta di uno dei 4 LED interni
void setup()
{
pinMode(mioPin, OUTPUT); // il pin INVIA corrente
}
void loop() // esegue questa sequenza all’infinito
{
digitalWrite(mioPin, HIGH); // accendi il LED