c:/users/carvetta/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-w_sqrt.o):(.literal+0x8): undefined reference to `__ieee754_sqrt'
c:/users/carvetta/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-w_sqrt.o): In function `sqrt':
d:\ivan\projects\arduinoesp\toolchain\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libm\math/../../../../../newlib/libm/math/w_sqrt.c:63: undefined reference to `__ieee754_sqrt'
collect2.exe: error: ld returned 1 exit status--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/c40f9076-7038-4006-882c-59409d733494%40googlegroups.com.
emon1.current(0, 29.01); // Current: ADC input pin, calibration (1800/62ohm)
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/92e240df-c56c-4ea1-ab16-859cb67d3004%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/3eb9350c-031f-41fc-8846-25859593f497%40googlegroups.com.
#include <SoftwareSerial.h>
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
SoftwareSerial TinySerial(3, 4); // RX, TX
#define LED 1
#define CT A1
void setup()
{
// Open serial communications and let us know we are connected
TinySerial.begin(9600); // SET TO 1200 ON RECEIVER, I DONT KNOW WHY
pinMode(LED, OUTPUT);
emon1.current(CT, 10); // Current: input pin, calibration.
}
void loop()
{
float current = emon1.calcIrms(1480);
TinySerial.print(current);
delay(100);
digitalWrite(LED,!digitalRead(LED));
}--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/fa587376-66b4-4733-9a80-60aa0eef2f66%40googlegroups.com.
//#include <SoftwareSerial.h>
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
//SoftwareSerial TinySerial(3, 4); // RX, TX
#define LED 13
#define CT A1
void setup()
{
// Open serial communications
Serial.begin(9600);
pinMode(LED, OUTPUT);
emon1.current(CT, 10); // Current: input pin, calibration.
}
void loop()
{
float current = emon1.calcIrms(1480);
Serial.print(current);
delay(100);
digitalWrite(LED,!digitalRead(LED));
}--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/7477a981-f512-4853-97af-e4bfc5a3d3e8%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/CAKOCCC7hJkiuFrCBwafZeHFSXhuHUxKsGuO4SDUcky4abWac2A%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/CAKOCCC5xf2nC9njdJjFoG2Kiat1LAw739jT8AjtHOdtAW1BJWA%40mail.gmail.com.
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
#define LED 13
#define CT A1
void setup()
{
// Open serial communications
Serial.begin(9600);
pinMode(LED, OUTPUT);
//emon1.current(CT, 10); // Current: input pin, calibration.
emon1.current(CT, 29.01); // Current: input pin, calibration.
}
void loop()
{
float current = emon1.calcIrms(1480);
current = current - 0.04; // valore di offset per la calibrazione
if (current < 0) current=0 ;
Serial.println(current);
delay(1000);
digitalWrite(LED,!digitalRead(LED));
}#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
#define LED 13
#define CT A1
void setup()
{
// Open serial communications
Serial.begin(9600);
pinMode(LED, OUTPUT);
emon1.current(CT, 29.01); // Current: input pin, calibration.
}
void loop()
{
float current = emon1.calcIrms(1480);
current = current - 0.04; // valore di offset per la calibrazione
if (current < 0) current=0 ;
Serial.println(current);
delay(1000);
digitalWrite(LED,!digitalRead(LED));
} FAST_710ms() {
float current = 0;
if(Serial.available()){
float current = Serial.parseFloat();
Souliss_ImportAnalog(memory_map, CURRENT, ¤t);
float watt = current*230;
Souliss_ImportAnalog(memory_map, WATTS, &watt);
}
}--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/797ba768-4530-4f3a-8d93-181f467e6258%40googlegroups.com.
#include "EmonLib.h" // Include Emon Library EnergyMonitor emon1; // Create an instance
#define LED 13#define CT A1
void setup() { // Open serial communications Serial.begin(9600); pinMode(LED, OUTPUT);
//emon1.current(CT, 10); // Current: input pin, calibration. emon1.current(CT, 185.01); // Current: input pin, calibration.
}
void loop(){ float current=0; for (int thisPin = 1; thisPin < 11; thisPin++) { current =(current + (emon1.calcIrms(1480))); } current=current/10; current = current - 0.04; // valore di offset per la calibrazione if (current < 0.15) current=0.12 ; Serial.println(current); delay(100); digitalWrite(LED,!digitalRead(LED));}// Configure the framework#include "bconf/MCU_ESP8266.h" // Load the code directly on the ESP8266//#include "conf/Gateway.h" // The main node is the Gateway, we have just one node#include "conf/IPBroadcast.h"
// Define the WiFi name and password#define WIFICONF_INSKETCH#define WiFi_SSID "villa_rosquete"#define WiFi_Password "1234567890"
// Include framework code and libraries#include <ESP8266WiFi.h>#include <EEPROM.h>#include "Souliss.h"
// This identify the number of the LED logic#define CURRENT 0#define WATTS 2#define MYLEDLOGIC 4 //#define MYLEDLOGIC1 5
//#define Debug Serial //Change to Serial1 if you want to use the GPIO2 to TX
#define OUTPUTPIN 2// #define OUTPUTPIN1 5 void setup(){ Initialize(); Serial.begin(9600); //Debug.begin(115200); Serial.println("inicio");
// Connect to the WiFi network and get an address from DHCP GetIPAddress(); // SetAsGateway(myvNet_dhcp); // This node will serve all the others in the network providing an address // This is the vNet address for this node, used to communicate with other // nodes in your Souliss network SetAddress(0xAB06, 0xFF00, 0xAB01); // //Example of Peer Definition //SetAsPeerNode(0xAB02, 1); Set_Current(CURRENT); Set_Power(WATTS); Set_SimpleLight(MYLEDLOGIC); // Define a simple LED light logic
// Set_SimpleLight(MYLEDLOGIC1); pinMode(OUTPUTPIN, OUTPUT); // Use pin as output // pinMode(OUTPUTPIN1, OUTPUT); // Use pin as output // pinMode(16, INPUT); }
void loop(){ EXECUTEFAST() { UPDATEFAST(); FAST_50ms() { // We process the logic and relevant input and output every 50 milliseconds Logic_SimpleLight(MYLEDLOGIC); DigOut(OUTPUTPIN, Souliss_T1n_Coil,MYLEDLOGIC); //Logic_SimpleLight(MYLEDLOGIC1); // DigOut(OUTPUTPIN1, Souliss_T1n_Coil,MYLEDLOGIC1); // DigIn(16, Souliss_T1n_ToggleCmd,MYLEDLOGIC); //LowDigIn2State //DigIn2State(16, 0,0,MYLEDLOGIC); } FAST_510ms() { Logic_Current(CURRENT); Logic_Power(WATTS); } FAST_710ms() { float current = 0; if(Serial.available()){ DigOut(OUTPUTPIN, Souliss_T1n_ToggleCmd,MYLEDLOGIC); float current = Serial.parseFloat(); // Debug.println(current); Souliss_ImportAnalog(memory_map, CURRENT, ¤t); float watt = current*230; Souliss_ImportAnalog(memory_map, WATTS, &watt); } } // Here we handle here the communication with Android FAST_PeerComms(); }} --
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/fYII0H9RXOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/fb66c5ec-bc4c-405c-9e6a-80f9817d5dd9%40googlegroups.com.