XylenC4 / CO2-ESP32

Arduino CO2 and Temperature logger based on BOSCH BME280 and Winsen MH-Z19B
MIT License
2 stars 0 forks source link

No much info #2

Closed ffnull closed 5 years ago

ffnull commented 5 years ago

Hello. Im buy all needed components and print housing. But you doesnt provide much info. Withch libraries to use? And other

XylenC4 commented 5 years ago

all of the used Arduino Libaries you can find on top of https://github.com/XylenC4/CO2-ESP32/blob/master/Arduino/CO2.ino

Adafruit_GFX Adafruit_SSD1306 Adafruit_Sensor Adafruit_Sensor

all the other are a part of the ESP32 Arduino enviroment.

ffnull commented 5 years ago

Cant compile. Warning on touchbutton. Witch version of arduino do you use?

ffnull commented 5 years ago

D:\Downloads\CO2-ESP32-master\CO2-ESP32-master\Arduino\CO2\Thingspeak.ino: In function 'void loop_Thingspeak()':

D:\Downloads\CO2-ESP32-master\CO2-ESP32-master\Arduino\CO2\Thingspeak.ino:14:23: warning: unused variable 'SensorLoop' [-Wunused-variable]

static unsigned int SensorLoop = 0;

                   ^

D:\Downloads\CO2-ESP32-master\CO2-ESP32-master\Arduino\CO2\TouchButton.ino: In function 'int CheckMenuOrder()':

TouchButton:46:1: error: no return statement in function returning non-void [-Werror=return-type]

}

^

cc1plus.exe: some warnings being treated as errors

exit status 1 no return statement in function returning non-void [-Werror=return-type]

ffnull commented 5 years ago

And. Please show the photo how you put everything inside.

XylenC4 commented 5 years ago

Make shure you have https://dl.espressif.com/dl/package_esp32_index.json inside the preferences and install "esp32" v1.0.0 or v1.0.1 at the board manager. Then you have to select the board "DOIT ESP32 DEVKIT V1"

Please try to rename the folder "Arduino" to "CO2" (which is the original name for the project)

XylenC4 commented 5 years ago

It's wired with 0.1 Header and soldered on the OLED & Touch Switches. The sensors are glued with "hot snod".

https://github.com/XylenC4/CO2-ESP32/blob/master/Images/Wiring%201.jpg https://github.com/XylenC4/CO2-ESP32/blob/master/Images/Wiring%202.jpg

ffnull commented 5 years ago

All done. But still cant compile. Full log https://pastebin.com/0xugvqDd

XylenC4 commented 5 years ago

please update to Ardiono 1.8.8

ffnull commented 5 years ago

Change to 1.8.8. Still same error

ffnull commented 5 years ago

When i comment CheckMenuOrder function. Its compiles

ffnull commented 5 years ago

After flashing im got circle reboot with kernel panic

ffnull commented 5 years ago

Please add zip archive with your libraries

XylenC4 commented 5 years ago

As requested: https://github.com/XylenC4/CO2-ESP32/tree/master/Arduino

ffnull commented 5 years ago

Strange. My board esp32 core board v2. Your code still give kernel panic. Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled. What can be wrong?

ffnull commented 5 years ago

Any ideas?

XylenC4 commented 5 years ago

Because of some other projects with bluetooth i flashed a newer firmware (which really helped) https://www.espressif.com/en/support/download/at

yours is "ESP32-WROVER" and can be flashed with https://github.com/espressif/esptool On Windows you can use the esptool out of the Arduino Board Manager: %AppData%..\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.0

ffnull commented 5 years ago

Ok. Im update firmware from site. But have still same error

ffnull commented 5 years ago

Hah. My chip is esp-wroom-32. going to flash correct firmware

ffnull commented 5 years ago

Ok. Flash correct firmware. Then yours code. Still doesnt work

XylenC4 commented 5 years ago

you can try to compile it on another computer where Arduino never was installed.