Bienvenido a los foros de FT81x Manía. Te invitamos a regístrate totalmente gratis. Disfruta de tu experiencia con un grandes amigos y Staff.

Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 49
» Latest member: sirwiz
» Forum threads: 148
» Forum posts: 443

Full Statistics

Online Users
There is currently 1 user online
» 0 Member(s) | 1 Guest(s)

Latest Threads
sirwiz
FT812 and what ;)

Forum: Hardware
Last Post:  sirwiz
Yesterday, 11:17 40
» Replies: 0
» Views: 7
TFTLCDCyg
Variante STM32F746IG para...

Forum: Instalación Cores STM32
Last Post:  TFTLCDCyg
19-06-2018, 16:49 37
» Replies: 19
» Views: 358
TFTLCDCyg
GD23ZU Library

Forum: Library GD23ZU
Last Post:  TFTLCDCyg
19-06-2018, 08:01 48
» Replies: 2
» Views: 64
TFTLCDCyg
GD23Z and FlexCAN library...

Forum: Codigos
Last Post:  TFTLCDCyg
15-06-2018, 22:44 04
» Replies: 3
» Views: 65
lightcalamar
Oficial Video Playback FT...

Forum: Library GD23ZU
Last Post:  lightcalamar
14-06-2018, 19:01 39
» Replies: 0
» Views: 16

 
  Manual Service GD2UB
Posted by:  lightcalamar - 09-02-2018, 14:23 09 - Forum: Manuales STM32 - No Replies

Simple documentation for configuration of the library GD2UB



Attached Files
.pdf   DOC_GD2UB.pdf (Size: 104.8 KB / Downloads: 7)
Print this item

  ESP32 Informacion SPI
Posted by:  lightcalamar - 06-02-2018, 20:00 42 - Forum: ESP32 - Replies (2)

Buenas.

Encontré información sobre usar el bus SPI de las ESP32.

El repositorio ---> https://github.com/nhatuan84

El Blog ---> http://www.iotsharing.com

Print this item

  Skippi the Bush Kangaroo
Posted by:  lightcalamar - 02-02-2018, 19:26 08 - Forum: La cantina, el Bar o el Pub - No Replies

Recuperé mi serie favorita de pequeño y que nadie se sienta aludido de un foro que conozco ...


Print this item

  Setting correct time to DS3231 clock ESP8266
Posted by:  lightcalamar - 31-01-2018, 22:21 29 - Forum: ESP8266 - No Replies

Hi all,  utility for setting correct time to DS3231 clock based on Udp NTP client with ESP8266.
You need; 

  • DS3231 Shield
  • Conection Internet
  • Upload code file attached



Attached Files
.zip   DS3231_NTP.zip (Size: 8.87 KB / Downloads: 1)
Print this item

  Code without library for SI7021
Posted by:  lightcalamar - 31-01-2018, 01:44 25 - Forum: Codigos - No Replies

This code without libray for shield SI7021.

This shield is reader temperature and humidity. To be code;

Code:
#include <Wire.h>

// SI7021 I2C address is 0x40(64)
#define si7021Addr 0x40

void setup()
{
 Wire.begin();
 Serial.begin(9600);
 Wire.beginTransmission(si7021Addr);
 Wire.endTransmission();
 delay(300);
}

void loop()
{
 unsigned int data[2];

 Wire.beginTransmission(si7021Addr);
 //Send humidity measurement command
 Wire.write(0xF5);
 Wire.endTransmission();
 delay(500);

 // Request 2 bytes of data
 Wire.requestFrom(si7021Addr, 2);
 // Read 2 bytes of data to get humidity
 if(Wire.available() == 2)
 {
   data[0] = Wire.read();
   data[1] = Wire.read();
 }

 // Convert the data
 float humidity  = ((data[0] * 256.0) + data[1]);
 humidity = ((125 * humidity) / 65536.0) - 6;

 Wire.beginTransmission(si7021Addr);
 // Send temperature measurement command
 Wire.write(0xF3);
 Wire.endTransmission();
 delay(500);

 // Request 2 bytes of data
 Wire.requestFrom(si7021Addr, 2);

 // Read 2 bytes of data for temperature
 if(Wire.available() == 2)
 {
   data[0] = Wire.read();
   data[1] = Wire.read();
 }

 // Convert the data
 float temp  = ((data[0] * 256.0) + data[1]);
 float celsTemp = ((175.72 * temp) / 65536.0) - 46.85;
 float fahrTemp = celsTemp * 1.8 + 32;

 // Output data to serial monitor
 Serial.print("Humidity : ");
 Serial.print(humidity);
 Serial.println(" % RH");
 Serial.print("Celsius : ");
 Serial.print(celsTemp);
 Serial.println(" C");
//  Serial.print("Fahrenheit : ");
//  Serial.print(fahrTemp);
//  Serial.println(" F");
 delay(1000);
}

Source from; Learming ESP8266

Work fine 100%.  Angry

Attasment DataSheet. Please learming page 18 form file. Commend I2C

Code for screen FT81x with library GD2xx;

Code:
void meteo() {

 do {
 
 GD.get_inputs();  
 GD.ClearColorRGB(0x000025);
 GD.Clear();
 
 GD.Tag(1);
 GD.cmd_fgcolor(0xff0000);
//  GD.cmd_romfont(1, 32);
 GD.cmd_button(30, 35, 100, 65, 30, OPT_FLAT, "Salir"); GD.Tag(255);
    if (GD.inputs.tag == 1) { delay(175); menu(); }
   
//  char buffer[10];
//  GD.ColorRGB(CYAN);
//  sprintf(buffer,"%02d:%02d:%02d", hour, minute, second );
//  GD.cmd_text(720, 40, 30, OPT_CENTER, buffer );  
//  GD.ColorRGB(WHITE);    

//  GD.SaveContext();
//  lineas();                
//  GD.RestoreContext();

// CODIGO DEL SI7021 SIN LIBRERIA
 unsigned int data[2];

 Wire.beginTransmission(SI7021_ADDR);
 //Send humidity measurement command
 Wire.write(0xF5);
 Wire.endTransmission();
 delay(500);

 // Request 2 bytes of data
 Wire.requestFrom(SI7021_ADDR, 2);
 // Read 2 bytes of data to get humidity
 if(Wire.available() == 2) {
   data[0] = Wire.read();
   data[1] = Wire.read();
 }

 // Convert the data
 float humidity  = ((data[0] * 256.0) + data[1]);
 humidity = ((125 * humidity) / 65536.0) - 6;

 Wire.beginTransmission(SI7021_ADDR);
 // Send temperature measurement command
 Wire.write(0xF3);
 Wire.endTransmission();
 delay(500);

 // Request 2 bytes of data
 Wire.requestFrom(SI7021_ADDR, 2);

 // Read 2 bytes of data for temperature
 if(Wire.available() == 2) {
   data[0] = Wire.read();
   data[1] = Wire.read();
 }

 // Convert the data
 float temp  = ((data[0] * 256.0) + data[1]);
 float celsTemp = ((175.72 * temp) / 65536.0) - 46.85;
 float fahrTemp = celsTemp * 1.8 + 32;

 // Output data to serial monitor
 Serial.print("Humedad : ");
 Serial.print(humidity);
 Serial.println(" % RH");
 Serial.print("temperatura : ");
 Serial.print(celsTemp);
 Serial.println(" C");

 Serial.print("Fahrenheit : ");
 Serial.print(fahrTemp);
 Serial.println(" F");  

 GD.ColorRGB(0xffffff);

// Humidity  
char humedad[15];
char mi_humedad[50];
 dtostrf(humidity, 10, 2, humedad);
 sprintf (mi_humedad,"%s", humedad);

 GD.cmd_text(200, 350, 30, 0, "Humedad  = ");
 GD.cmd_text(410, 350, 30, 0, mi_humedad);
 GD.cmd_text(541, 350, 30, 0, "%");  

// Temperature C    
char grados[15];
char mis_grados[50];
 dtostrf(celsTemp, 10, 2, grados);
 sprintf (mis_grados,"%s", grados);

 GD.cmd_text(200, 415, 30, 0, "Temperatura  = ");
 GD.cmd_text(410, 415, 30, 0, mis_grados);
 GD.cmd_text(531, 415, 22, 0, "o");
 GD.cmd_text(541, 415, 30, 0, "C");  

// Temperature F
char gradosF[15];
char mis_gradosF[50];
 dtostrf(fahrTemp, 10, 2, gradosF);
 sprintf (mis_gradosF,"%s", gradosF);

 GD.cmd_text(200, 285, 30, 0, "Farenheind  = ");
 GD.cmd_text(410, 285, 30, 0, mis_gradosF);
//  GD.cmd_text(531, 415, 22, 0, "o");
 GD.cmd_text(541, 285, 30, 0, "F");  
 
 delay(1000);
// --------------------------------------------------->    
   
  GD.swap();
 } while(1);
}



Attached Files
.pdf   Si7021-A20.pdf (Size: 1.56 MB / Downloads: 0)
Print this item