Things used in this project

Hardware components:
D1 mini
Everything ESP Wemos D1 Mini
×1
Software apps and online services:
Ide web
Arduino IDE
Bluehost Web Server
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)
Hy gluegun
Hot glue gun (generic)

Custom parts and enclosures

Thingiverse
https://www.thingiverse.com/thing:1786517

Code

Code snippet #1Plain text
connectToWifi();Serial.println("Connected");  if(programState==1)
  {
   if(RoombaIsAtHome())
   {
       programState = 2;
   }
  }
}
Code snippet #2Plain text
checkIfRoombaIsAtHome(); switch(programState)
 {
  case 2: blinkSlowly();break;
  case 3: turnLedOn();secondsAway++;break;
  case 4: turnLedOff();break;  default:break;
 }
Code snippet #3Plain text
void sendEmail(String seconds){
  if (client.connect(servername, 80)) {  //starts client connection, checks for connection
    Serial.println("connected");
    client.println("GET /send_email.php?seconds="+seconds+" HTTP/1.1"); //Send data
    client.println("Host: educ8s.com");
    client.println("Connection: close");  //close 1.1 persistent connection  
    client.println(); //end of get request
  } 
  else {
    Serial.println("connection failed"); //error message if no client connect
    Serial.println();
  } while(client.connected() && !client.available()) delay(1); //waits for data
  while (client.connected() || client.available()) { //connected or data available
    char c = client.read(); //gets byte from ethernet buffer
      result = result+c;
    }  client.stop(); //stop client
  Serial.println(result);
  
}

Credits

Photo
Nick Koumaris
6 projects • 67 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog