Circuit Activity Wrap-Up and Robot Sketch Instructions

 We hope you enjoyed today's activity!  

Before you leave the computer room, please get your ESP32 ready for Friday's activity.

Method 1:

  1. Download a zip file with the Arduino sketch for Friday here. 
  2. In the File Browser, double click on the .zip file.
  3. Extract the files from the .zip folder 
  4. Double click on the .ino file to open it in the Arduino IDE.
  5. Upload the sketch to your ESP32.
  6. Pack up your circuits kit and think about the next circuit you would like to create!

If Method 1 does not work, try Method 2

Method 2:

  1. Download the following 4 files to your computer:  captive_portal.h, face_bitmaps.h, movement_sequences.h, and sesame-firmware-main.ino  from this link: https://github.com/dorianborian/sesame-robot/tree/main/firmware (right click and choose "Save link as..."
  2. Open the File Browser..  
  3. Double click on the ;zip file you just downloaded and extract the files.
  4. Double click on the file sesame-firmware-main.ino, which is probably in the Downloads folder on your computer. 
  5. This should open the file in the Arduino IDE.
  6. Upload the file to your ESP32.
  7. Pack up your circuits kit and think about the next circuit you would like to create!
Your ESP32 microprocessor can have only one sketch at a time.  If you remove this sketch and want to put it back on at home, before you follow the above directions, you need to install a few extra libraries.  Here are the instructions:

In the Arduino IDE:
  1. Open the Library Manager: Open the Arduino IDE, navigate to the top menu, and go to Sketch → Include Library → Manage Libraries...
  2. Install Adafruit SSD1306: Type SSD1306 in the search bar. Look for Adafruit SSD1306 by Adafruit and click Install.
  3. Install Adafruit GFX: Next, search for Adafruit GFX. Locate Adafruit GFX Library by Adafruit and click Install.
  4. Finally, Install Adafruit SSD1306.   Search for Adafruit SSD1306 and click Install.
  5. Install ESP32Servo v3.0.9