RTC-Modul
Mit dem RTC Modul kann die Uhrzeit, auch ohne Stromversorgung, gespeichert werden.
Informationen zum Anschluss und Programmierung der Sensoren, Bees und weiteren Bauteilen
Der DFRobot SEN0232 misst die Lautstärke und gibt die Messwerte in Dezibel aus.
#define SoundSensorPin A1 //this pin read the analog voltage from the sound level meter
#define VREF 5.0 //voltage on AREF pin,default:operating voltage
void setup()
{
Serial.begin(115200);
}
void loop()
{
float voltageValue,dbValue;
voltageValue = analogRead(SoundSensorPin) / 1024.0 * VREF;
dbValue = voltageValue * 50.0; //convert voltage to decibel value
Serial.print(dbValue,1);
Serial.println(" dBA");
delay(125);
}