The top-level directory contains (is) the primary project for the Thermo Bo-Bo.
arduino/BluetoothTest
is a project that was used to figure out how the Android SDK's Bluetooth LE
stack works.
Install the library 'ESP32AnalogRead' for the production code to compile.
arduino/bluetooth/
contains the code that runs on the Thermo Bo-Bo. It is a simple Bluetooth LE
server that defines a single characteristic for the temperature value. Clients are notified when the
value changes.
The arduino code also contains the UUIDs for the Bluetooth LE service and the characteristic.
arduino/read_serial.py
is a small python script that reads lines from a serial port. Usage:
python read_serial.py /dev/ttyACM0
-
Download the bootloader software
-
Install esptool:
$ pip install esptool
-
(optional) Test the esptool installation:
$ esptool.py --port <PORT> chip_id
-
Enter ROM bootloader mode on the chip by pressing the BOOT button and, while keeping the BOOT button pressed, press the RESET button. After you've released the RESET button, you can release the BOOT button as well. The port should now be visible again.
-
Flash the bootloader to the chip:
$ esptool.py --port <PORT> write_flash 0x0 <BOOTLOADER_FILE>
where<BOOTLOADER_FILE>
is the file you've downloaded in step 1.
Hint [Linux]: In order to write to the serial port, you must be root or belong to the uucp
group.