Displaying debug messages - sharst/OpenHumidor GitHub Wiki

Sometimes, things are not working exactly how they're supposed to. Luckily, the sensor board can output debug messages to a serial port, which you can receive and display on your computer by the means of an USB to TTL converter.

The serial port is the leftmost of the three JST connectors on the OpenHumidor sensor board (when held such that the connectors are at the bottom of the board and the on-switch is to the left). The order of the pins in the connector is as follows:

RX TX GND 5V

Step 1: Connect the USB-TTL-Adapter

To have a pluggable solution, it is advised to connect a 4-Pin JST Plug to the USB-TTL adapter. However, female-to-female jumper wires or a quick run with the soldering iron might work, too.

Connect the USB-TTL adapter in the following way:

USB-TTL OH-Board
TX RX
RX TX
GND GND
5V 5V

Step 2: Download display script

Download the file debugoutput.py from the main repository and run it from the command line:

python debugoutput.py

Switch on the sensor board. You should now see debug messages appearing in the console. Otherwise:

(Optionally) Step 3: Enable debug messages

If no debug messages appear, they might be disabled in the firmware. Download and open the firmware sketch that you want to use, open it and watch out for a line that says #define DEBUG false Change it to: #define DEBUG true

Compile and upload the script as described in Programming the sensor board