Gadget Restore
These instructions will guide you to restore the pre-installed web interface on Gadget. The steps were tested on a Windows machine but may also work on Mac or Linux as long as the files are placed in the corresponding folders.
Video Instructions:
We will use PictoBlox for this process. The Arduino IDE can also be used but requires more steps to configure.
We need to add a few library files to PictoBlox to work with the code. Download the GadgetLibraries.zip file here:
Open the GadgetLibraries.zip file and copy the folders to the PictoBlox folder (C:\Program Files\PictoBlox\resources\arduino-1.8.5\libraries)
Now download the code file for Gadget. The file is formatted as a text file to make it easier to open on any device.
Open the text file Gadget.txt and copy all of the code. Windows shortcut keys will help us here, ctrl+a to select all text and ctrl+c to copy to the clipboard.
Now open PictoBlox. If prompted, select Block Coding for your coding environment.
Click on Board in the top menu and select ESP32.
Change the Mode from Stage to Upload. Click the pencil icon to turn edit mode on (purple pencil).
Highlight and delete the code on lines 1 through 13. Paste the code from Gadget.txt into the code area.
Connect a USB cable from your computer to Gadget. In PictoBlox, click on Connect in the top menu and select the appropriate COM port. In this case, COM4 is indicated by the WCH.CN driver for the ESP32 board.
If you are unable to connect, press the power button on Gadget and click refresh. A new COM port should be listed. If you still cannot connect to Gadget, please get in touch with support@juniperrobotics.com.
Now click the Upload Code button to transfer the code to Gadget. If you run into any errors, please let me know, and I will help you get it resolved.