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 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 |
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
const int PinEchoAnteriore = 7; | |
const int PinTriggerAnteriore = 6; | |
const int PinEchoSinistra = 11; | |
const int PinTriggerSinistra = 10; | |
const int PinEchoDestra = 9; | |
const int PinTriggerDestro = 8; | |
const int motorinoL1 = 2; | |
const int motorinoL2 = 3; | |
const int motorinoR1 = 4; | |
const int motorinoR2 = 5; |
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
/* | |
* Libreria Open Source disponibile su: | |
https://playground.arduino.cc/Code/NewPing | |
*/ | |
#include | |
#define PIN_TRASMISSIONE 11 | |
#define PIN_RICEZIONE 12 | |
#define DISTANZA_MAX 200 |
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
/* | |
* | |
Trasmissione : PinTrasmissione Pin 11 | |
Ricezione : PinRicezione Pin 12 | |
VCC : +5VDC | |
GND : GND | |
*/ | |
int PinTrasmissione = 11; | |
int PinRicezione = 12; |
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
/* | |
Esempio Scroll LED Matrix 8x8 con MAX7219 | |
by robotdazero.it, based on Dejan Nedelkovski | |
tratto da: https://howtomechatronics.com/ | |
Basato sulla libreria Open Source | |
GitHub - https://github.com/riyas-org/max7219 | |
*/ | |
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
/* | |
Esempio LED Matrix 8x8 con MAX7219 | |
by robotdazero.it, based on Dejan Nedelkovski | |
tratto da: https://howtomechatronics.com/ | |
Basato sulla libreria Open Source | |
GitHub - https://github.com/riyas-org/max7219 | |
*/ | |
#include <MaxMatrix.h> |
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> |
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
import pandas as pd | |
import numpy as np | |
from sklearn.datasets import make_blobs | |
from matplotlib import pyplot as plt | |
from sklearn.cluster import AffinityPropagation | |
from sklearn import metrics | |
# generazione dei dati casuali | |
X, y = make_blobs(n_samples=40, centers=4, cluster_std=0.80) |
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 | |
Robotdazero - https://www.robotdazero.it | |
Il circuito: | |
- pin 9 di Arduino collegato alla base del TIP120 | |
creato 16 Maggio 2018 | |
modificato 18 Febbraio 2020 | |
by sebadima |