Se sei già registrato           oppure    

Orario: 05/05/2024 19:49:46  

 

Energia Alternativa ed Energia Fai Da Te > Solare Fotovoltaico

VISUALIZZA L'ALBUM

Pagine: (39)   1   2   [3]   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20  ...>    (Ultimo Msg)


Partitore di tensione per controllo batterie, APP per Android
FinePagina

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 21:31:51

Mi da un'altro errore penso che il linguaggio sia per arduino,probabilmente il wemos non lo accetta

#include ESP8266WiFi.h
#include WiServer.h
#define WIRELESS_MODE_INFRA 1 
#define WIRELESS_MODE_ADHOC 2 

// Wireless configuration parameters --------------------------- 

unsigned char local_ip[] = {192,168,1,2}; // IP address of WiShield 
unsigned char gateway_ip[] = {192,168,1,1}; // router or gateway IP address 
unsigned char subnet_mask[] = {255,255,255,0}; // subnet mask for the local network 
const prog_char ssid[] PROGMEM = {"ASYNCLABS"}; // max 32 bytes 

unsigned char security_type = 0; // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2 

// WPA/WPA2 passphrase 
const prog_char security_passphrase[] PROGMEM = {"12345678"}; // max 64 characters 

// WEP 128-bit keys 
// sample HEX keys 
prog_uchar wep_keys[] PROGMEM = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, // Key 0 
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 1 
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 2 
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Key 3 
}; 

// setup the wireless mode 
// infrastructure - connect to AP 
// adhoc - connect to another WiFi device 
unsigned char wireless_mode = WIRELESS_MODE_INFRA; 

unsigned char ssid_len; 
unsigned char security_passphrase_len; 
// End of wireless configuration parameters ------------------- 

// This is our page serving function that generates web pages 
boolean sendMyPage(char* URL) { 

// Check if the requested URL matches "/" 
if (strcmp(URL, "/") == 0) { 
// Use WiServer's print and println functions to write out the page content 
WiServer.print(""); 
WiServer.print("Hello World!"); 
WiServer.print(""); 

// URL was recognized 
return true; 
} 
// URL not found 
return false; 
} 

void setup() { 
// Initialize WiServer and have it use the sendMyPage function to serve pages 
WiServer.init(sendMyPage); 

// Enable Serial output and ask WiServer to generate log messages (optional) 
Serial.begin(57600); 
WiServer.enableVerboseMode(true); 
} 

void loop(){ 

// Run WiServer 
WiServer.server_task(); 


delay(10); 
}




Immagine Allegata: 3.JPG
 
ForumEA/Q/3_1.JPG



Modificato da Bolle - 31/03/2017, 00:05:47


---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 21:34:28

La libreria l hai scaricata?



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 21:53:27

#include <ESP8266WiFi.h>
 
const char* ssid = "ssid name";
const char* password = "ssid password";
 
int ledPin = D5;
WiFiServer server(80);
 
void setup() {
  Serial.begin(115200);
  delay(10);
 
 
  pinMode(ledPin, OUTPUT);
  digitalWrite(ledPin, LOW);
 
  // Connect to WiFi network
  Serial.println();
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);
 
  WiFi.begin(ssid, password);
 
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
 
  // Start the server
  server.begin();
  Serial.println("Server started");
 
  // Print the IP address
  Serial.print("Use this URL : ");
  Serial.print("http://");
  Serial.print(WiFi.localIP());
  Serial.println("/");
 
}
 
void loop() {
  // Check if a client has connected
  WiFiClient client = server.available();
  if (!client) {
    return;
  }
 
  // Wait until the client sends some data
  Serial.println("new client");
  while(!client.available()){
    delay(1);
  }
 
  // Read the first line of the request
  String request = client.readStringUntil('\r');
  Serial.println(request);
  client.flush();
 
  // Match the request
 
  int value = LOW;
  if (request.indexOf("/LED=ON") != -1) {
    digitalWrite(ledPin, HIGH);
    value = HIGH;
  } 
  if (request.indexOf("/LED=OFF") != -1){
    digitalWrite(ledPin, LOW);
    value = LOW;
  }
 
 
 
  // Return the response
  client.println("HTTP/1.1 200 OK");
  client.println("Content-Type: text/html");
  client.println(""); //  do not forget this one
  client.println("<!DOCTYPE HTML>");
  client.println("<html>");
 
  client.print("Led pin is now: ");
 
  if(value == HIGH) {
    client.print("On");  
  } else {
    client.print("Off");
  }
  client.println("");
  client.println("Click <a href="/LED=ON">here</a> turn the LED on pin 5 ON");
  client.println("Click <a href="/LED=OFF">here</a> turn the LED on pin 5 OFF");
  client.println("</html>");
 
  delay(1);
  Serial.println("Client disconnected");
  Serial.println("");
 
}


prova questo



Modificato da Bolle - 31/03/2017, 00:06:04


---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 22:12:25

La board ha modificato il codice ti ho inviato un p.m.



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 22:15:05

ok ora ho una base di partenza!



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 22:23:49

Gira?



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 22:34:19

ok ho registrato l'accesso sul ruter



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 22:40:56

Da pc su chrome indirizzo ip ti esce la pagina web?



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 22:49:13

si ok



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

calcola
GigaWatt


Gruppo:Utente
Messaggi:4435

Stato:



Inviato il: 19/03/2017 22:52:11

Tempo fa mi è capitato di leggere questa guida LINK
Non la uso, preferisco installare sull'esp8266 un web server, ma devo riconoscere che usando applicazione descritta, costruire applicativi per telefoni è veramente alla portata di tutti. Si puó usare con un esp8266 o con qualunque scheda basata sull'esp.



---------------
Impara l'arte e mettila da parte
14 pannelli da 100w, inverter kemapower 3kw, regolatore morningstar tristar ts60, banco batterie n.1 di 12 elementi 2v 480Ah C5 corazzate per trazione pesante, banco batterie n.2 di 400Ah in C5 formato da 24 elementi 2V 200Ah corazzate al gel per fotovoltaico in due serie da 12 elementi, centralina di gestione impianto autoprodotta.

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 22:52:42

Allora siamo a meta strada ora dobbiamo unire i 2 codici se lavori su pc fammi un favore postali come allegati testo che te li modifico



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Vincent
GigaWatt


Gruppo:Utente
Messaggi:1902

Stato:



Inviato il: 19/03/2017 22:54:46

Dove l hai acquistato?



---------------
SuperSolar
http://forum.saturnoprezzi.com/

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 22:59:09

Dalla Spagna il primo del link allegato sono velocissimi nella spedizione ce ne sono anche per meno,ma per uno o due pezzi non so se ne vale la pena devi aspettare mesiLINK



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 23:06:46

allegato1

Scarica allegato

d1minimux12canali.txt ( Numero download: 156 )



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 

Riccardo

Avatar
GigaWatt


Gruppo:Utente
Messaggi:2915

Stato:



Inviato il: 19/03/2017 23:07:22

allegato2

Scarica allegato

funzionantewifi.txt ( Numero download: 170 )



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
Batterie:LifePo4 Seplos MASON-48280-DIY EVE280AK 28,6 kWh
Scaldabagno Ferroli 30l 1500w
Scaldabagno Ariston 80l 1200w

 
 InizioPagina
 

Pagine: (39)   1   2   [3]   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20  ...>    (Ultimo Msg)

Versione Mobile!

Home page       TOP100-SOLAR      Home page forum