Close

[Trinket sensing] ESP-01

A project log for Home automation - Trinket Sensing

TJTJ 06/16/2015 at 10:010 Comments

Buy

$3 ESP-01 (ESP8266) module from Price Minister

Hardware

VccTrinket VBat pin
GndGnd
CH_PDTrinket Pin 5
RESETNot connected
GPIO_0Not connected
GPIO_2Not Connected
RXTrinket Tx pin
TXTrinket Rx pin


Arduino Code

#define WIFI_CH_PD 5

void setup(void)  {
  digitalWrite(WIFI_CH_PD, LOW);
  delay(500);
  digitalWrite(WIFI_CH_PD, HIGH);
  delay(2000);
  Serial.begin(115200);  
}
void loop(void) {
  Serial.println("AT");
  //while (!Serial.available()) {}
  while (Serial.available()) {
    char c = Serial.read();
    display.print(c);
  }
  display.println("");
  delay(2000);
}

Discussions