Bonjour,
Y a t il certains qui arrive à remonter la tension du réseau dans jeedom sans utiliser d onduleur?
Et comment?
saisir ou coller le code ici
Avec des modules qui relèvent la tension
un son-off pow r2 le fait pas exemple.
Tout dépend de ton infra et ton matériel
Bonjour ,
quelque un peut il m éclairer pour personnaliser sketch sur plugin jeedouino
Arduino raccorder en usb sur ma smart.
aussi la doc parle de personnaliser les Sketchs Personnels
??? #define UserSketch 0 // Vous permet d’inclure du sketch perso
Tags pour rechercher (CTRL F) l’emplacement pour votre code :
UserVars
UserSetup
UserLoop
materiels:
plugin jeedouino
smart zwave
Arduino Uno avec zmpt101b
code sur Arduino actuel
Ce code suivant marche très bien sur moniteur série mais comment l utiliser avec le plugin.
/* This code works with ZMPT101B AC voltage sensor module and 128x32 OLED display
* It permits you to measure any AC voltage up to 250V, BE CAREFUL !!!
* The functions from Filters library permits you to calculate the True RMS of a signal
* Refer to www.surtrTech.com or SurtrTech YouTube channel for more details
*/
#include <Filters.h> //Easy library to do the calculations
#include <SPI.h> //Libraries for the OLED display
#include <Wire.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 32 // OLED display height, in pixels
#define OLED_RESET -1 //
float testFrequency = 50; // test signal frequency (Hz)
float windowLength = 40.0/testFrequency; // how long to average the signal, for statistist
int Sensor = 0; //Sensor analog input, here it's A0
float intercept = -0.04; // to be adjusted based on calibration testing
float slope = 0.0405; // to be adjusted based on calibration testing
float current_Volts; // Voltage
unsigned long printPeriod = 1000; //Refresh rate
unsigned long previousMillis = 0;
void setup() {
Serial.begin( 9600 ); // start the serial port
delay(5000);
}
void loop() {
RunningStatistics inputStats; //Easy life lines, actual calculation of the RMS requires a load of coding
inputStats.setWindowSecs( windowLength );
while( true ) {
Sensor = analogRead(A0); // read the analog in value:
inputStats.input(Sensor); // log to Stats function
if((unsigned long)(millis() - previousMillis) >= printPeriod) {
previousMillis = millis(); // update time every second
Serial.print( "\n" );
current_Volts = intercept + slope * inputStats.sigma(); //Calibartions for offset and amplitude
current_Volts= current_Volts*(40.3231); //Further calibrations for the amplitude
Serial.print( "\tVoltage: " );
Serial.print( current_Volts ); //Calculation and Value display is done the rest is if you're using an OLED display
}
}
}
Bonjour,
par exemple :Une prise zwave fait cela nativement
la fibaro ?
Erreur de ma part, Fibaro me retour que la puissance, la Aeotec me done bien toutes les infos
Smart Switch 6 (ZW096) (conso, tension, puissance)