Solare Fotovoltaico
Partitore di tensione per controllo batterie, APP per Android

VISUALIZZA L'ALBUM

Pag: (39)   1   [2]   3   4   5   6  ...>    (Ultimo Msg)


FinePagina

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 20:25:03

Allora possiamo fare cosi questo modulo montato vicino alle batterie si collega alla rete wi fi di casa e :
Caso 1 invia i dati in ciclico a un server

Caso 2 crea una mini risorsa di rete a cui accediamo e leggiamo noi i dati

In entrambi i casi al tuo codice devi aggiungere il programma di connessione alla rete wifi e trasmissione (lo possiamo fare insieme ma il codice sta a te testarlo in locale) sulla base di quello aggiungo il tutto al programma e tu hai la tensione delle batterie sempre in display con allarmi vari ecc...



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






 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 20:26:58

foto D1 Mini WEMOS e mux CD74HC4067A



Immagine Allegata: FOTO.JPG
 
ForumEA/Q/FOTO.JPG



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 20:42:14

Allora scarica le librerie sul ide di arduino per il wi fi carica questo codice adegua i parametri di configurazione

Collegandoti sull indirizzo di arduino dovresti visualizzare una pagina con scritto hello word


#include

#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);
}



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






 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 20:50:38

il D1 mini dispone di una sua libreria per il wifi
#include ESP8266WiFi.h
e dovrebbero esistere anche librerie per creare access point



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 21:06:26

Ok quindi riesci ad adattare il codice?



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






 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 21:07:33

Devo comprare 1 di queste schede per il sensore di temperatura



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






 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 21:12:11

c'è un errore sull'utima riga



Immagine Allegata: 1.JPG
 
ForumEA/Q/1.JPG



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 21:13:09

2



Immagine Allegata: 2.JPG
 
ForumEA/Q/2.JPG



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 21:15:18

costano pochissimo



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 21:18:11

Metti il nome della rete wifi e la pass un ip compatibile con la rete incrocia le dita e dai energia vedi se con il pc lo trovi



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






 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



Inviato il: 19/03/2017 21:19:13

Azz non avevo visto l errore



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






 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



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

Azz e normale devi includere la lib wiserver.h



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






 

Riccardo

Avatar
GigaWatt


Utente
Msg:2910

Stato:



Inviato il: 19/03/2017 21:25:01

Scusa,lo devo connettere ad un mio access point
Se entro sulla mia rete ho tutti i mac e ip riservati mi ci vuole un quarto d'ora comodo comodo



---------------
Q.CELLS Q.PEAK 4575W sud-est
Solar Frontier CIS 850W sud-ovest
Inverter PIP5048MST
B...

 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



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

#include

Non mel ha fatto scrivere era la prima riga del codice questa lib la devi scaricare



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






 

Vincent
GigaWatt


Utente
Msg:1902

Stato:



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

#include WiServer.h con <>



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






 
 InizioPagina
 

Pag: (39)   1   [2]   3   4   5   6  ...>    (Ultimo Msg)

Versione Completa!

Home page     TOP100-SOLAR    Home page forum