Open Shohreh opened 2 years ago
Hi, The reason you are having a problem is most likely that you cloned the master branch of IDF. This would be covered as part of the Espressif instructions. If you add "--branch release/v5.0" to line 9 it should work. The documentation hasn't been updated as the switch to v5.0 has only just been done and a release hasn't yet been made.
As for your questions:-
I would strongly recommend the Sunrise however as this sensor is much more power efficient.
Fairly soon major work on the data logging & sensor support infrastructure is planned to fit other sensors into the model such as PM2.5 and VOC. Part of this is making web & on device UI gracefully handle different configurations of sensors.
It should also be noted that the SCD30 actually provides temp and humidity values as well. Which I'll likely surface as part of this work.
Essentially with the Sunrise 75-80% of power is being used by ESP32, Wifi & EPD. Whereas when using an SCD30 75-80% of the power is being used by the CO2 sensor.
There is even a (very much alpha) web flash tool at https://flash.airmeter.io
Hope that helps!
FYI: I'm not sure why you are getting errors regarding Python being missing. You probably need to solve that if you want to build code yourself.
Sorry misread the end of your original message. As it compiled it SHOULD flash by typing idf.py flash. Going forward this will mainly be useful if you need to check latest code or make code changes yourself.
Note that the alpha web flasher (https://flash.airmeter.io) may look simple but it will remove the need for many custom builds. The most recent changes introduced code to dynamically rebuild the device configuration partition on the flash. This means the web flasher can drop configuration changes.
As the devices onscreen UI is entirely controlled by JSON configuration files. The flasher will be able to customise a lot going forward.
Thanks much for the infos.
I'm not super familiar with Github, and missed the Release infos on the right-handside.
Is the Senseair Sunrise the 006-0-0007?
I'll order a T5, hook up the S8 I have on hand, and see how it goes.
No problem! There are two versions of the Sunrise 006-0-0007 and 006-0-0008 both are supported. The difference between them is the 0008 is an updated version with a different MCU and is meant to be available in greater volumes. It is likely the 0007 variant will become difficult/impossible to source.
I have both variants running with no issues.
For the T5 make sure its LILYGO® TTGO T5 V2.3.1_2.13 with the DEPG0213BN display variant. Other panels will be supported in due course.
I reran the whole thing from scratch using the "--branch release/v5.0" option, and it did compile without editing idf.py:
…
[906/907] Generating binary image from built executableesptool.py v4.3
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /root/esp/esp-idf/AirMeter.IO.Firmware/build/main.bin
[907/907] cd /root/esp/esp-idf/AirMeter.IO.Firmware/build/esp-id...-table.bin /root/esp/esp-idf/AirMeter.IO.Firmware/build/main.binmain.bin binary size 0xe32f0 bytes. Smallest app partition is 0x100000 bytes. 0x1cd10 bytes (11%) free.
Project build complete. To flash, run this command:
/root/.espressif/python_env/idf5.0_py3.9_env/bin/python ../components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x10000 build/main.bin 0x22e000 build/web.bin 0x2f6000 build/dev.bin
or run 'idf.py -p (PORT) flash'
Thanks again.
Excellent thanks for the update :)
FWIW, here's some code in ESP-IDF (and Arduino) to work with the Senseair S8:
Hello,
My T5 got in and I have a Senseair8 sensor. I have a couple of questions:
I don't need a temp sensor: Will the code run even if none is hooked to the T5? Should I modify the source code accordingly?
How should I connect the Senseair8's TX+RX pins to the T5 before giving it the first try?
Thank you.
Hi. The diagram you show is for a NodeMCU ESP8266 board so not really relevant for the T5.
I haven't setup uart with a T5 board myself yet but one user has. If you join the discord bminish has a UART setup going. I did add one feature which allows setting of the GPIOs. You will find a device.json in the "device" folder. Inside this:- "uart": { "enabled": "false", "uartNum": 2, "gpio": { "tx": "17", "rx": "16" } },
There is another issue right now with UART and power saving. The "quick fix" is to disable power saving at expense of battery life. This must be done in code right now but will be made configurable in a later release.
I also intend to fix the UART + power save bug which is related to clock speeds and resulting timing issues.
If you join the discord we can help you there over chat.
Hello,
I went through the site, and have the following questions:
Thank you.
Edit: I followed the instructions, but it fails compiling:
After it compiles successfully, there are several binary files under ./build: