Loading the JamSentry Firmware

Since you are using a virgin ESP8266 board we need to load firmware into it. There are no changes to your printer firmware.

To load the firmware into the board, we’ll be using the Arduino IDE.  If you don’t already have it then go over to Arduino page here and install the desktop IDE for your OS.  If you already have it installed, make sure it is at least version 1.6.4 or later as it needs to support the ESP8266 processor.

You will need to configure the Arduino IDE for the ESP8266.  Go ahead and launch the IDE.  First you need to set the board type.  Go to Tools/Board and select Adafruit HUZZAH ESP8266. 

Once that is set, Go to Sketch/Include Library and select Manage Libraries.

This will bring up the library manager.

Using the search function find the following library:  ArduinoJson.  Once you find it, click on more info and Install.

Do the same to pull in the following libraries:

  • Adafruit_HMC5883_Unified
  • Adafruit_TSL2561
  • Adafruit_Unified_Sensor
  • WiFiManager

Go ahead and plug the cable into the USB port of the computer.  Connect the other end of the console or FTDI cable to the ESP8266 as shown here.  A new COM port should open up.  Go ahead and select that port in the IDE.  The serial port configuration may differ from OS to OS.

The final preparation step is to put the ESP8266 into loading mode.

We next need to put the board in loading mode.

There are two microswitches on the board.  Press the one labeled GPIO0 and hold it down.  Then press and release the one labeled RESET.  Release the GPIO0 button.  The red LED should now be dimly lit.  You are ready to load the software.

Download the JamSentry folder from here.  Inside of the folder you should find a file named JamSentry.ino.  Click on the JamSentry.ino file and the  Arduino environment should load and the JamSentry program should display.  Click the right arrow button in the application (it says Upload when you hover over it).  If everything works ok, then the program should compile and load onto the board.  If there are problems, I suggest following the troubleshooting tips here.

Assuming the board loaded ok (no red error messages, there were a lot of dots on the screen and a 100% at the end), then  the firmware has been loaded and you are ready to move on to the next step.  Both the blue and red LEDs on the board should be on.

From this point on, you don’t need the console or FTDI cable unless you want to update the firmware.  You can still do that after the device is assembled.  You can however still use it as a power cable, but for power, I just use a USB cable and attach dupont connectors to the ground and +5V wires (black and red).  The JamSentry should only draw approximately 200mW.

Previous – Preparing the Processor

Next – Configuring the JamSentry