Chat freely about anything...

User avatar
By potatocrunch94
#45977 It's a ESP01 module connected through a logic level converter - http://www.ebay.com/itm/5pcs-I2C-IIC-4-Channel-Logic-Level-Converter-Module-Bi-Directional-for-Arduino-/141713311563?hash=item20fec5874b:g:SJAAAOSw3ydVm2Z9 to a chinese Arduino Nano and powered by http://www.ebay.com/itm/MB102-Breadboard-Power-Supply-Module-3-3V-5V-For-Arduino-Solderless-Breadboard-/261951177988?hash=item3cfd81c504:g:AxEAAOSw9N1Vk75H and external 12v power supply.

This is the code:
Code: Select all#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // set the data rate for the SoftwareSerial port
  mySerial.begin(115200);
  mySerial.println("Hello, world?");
}

void loop() { // run over and over
  if (mySerial.available()) {
    Serial.write(mySerial.read());
  }
  if (Serial.available()) {
    mySerial.write(Serial.read());
  }
}