Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Paul Wilhelm
Published © MIT

IoT mailbox guard

Receive an e-mail when your good ol' mailbox is opened? No problem with this low-power IoT mailbox guard, using the cheap ESP-01S module!

IntermediateFull instructions provided4 hours1,307
IoT mailbox guard

Story

Read more

Code

Code snippet #1

Arduino
To use the RX pin as a normal GPIO (in this case as an open collector output, which is pulled to LOW at the end of the program), the following code snippet is required:
Serial.end();
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
...
pinMode(3, FUNCTION_3);
pinMode(3, OUTPUT);
digitalWrite(3, LOW);

IoT mailbox guard @ GitHub

Receive an e-mail when your good ol' mailbox is opened? No problem with this low-power IoT mailbox guard, using the cheap ESP-01S module!

Credits

Paul Wilhelm
1 project • 2 followers

Comments