Hello Rui,
Info: On my Linux 64 bit “4.15.0-72-generic”, I installed the 1.8.10 Desktop IDE (most recent), for “Additional Boards Manager URLs”, copying https://raw.github… didn’t work, so I used “https://dl.espressif.com/dl/package_esp32_index.json” as stated in the ESP32 course book I purchased from you instead.
I then for my ESP32 DEVKITV1 (ESP-WROOM-32 chip) choose DOIT ESP32 DEVKIT V1 in the Boards Manager.
Problem: I can’t access the COM ports. I did: 1) Executed twice ls /dev/tty* (unplugged / plugged) and got /dev/ttyUSB0 that showed in the Port menu, that I selected. 2) My chipset is CP2102. 3) Both my USB cords are the right types (work fine on Windows Arduino IDE). 4) Went on Silicon Labs website, selected Linux Platform 3.x.x. and 4.x.x. link, created an account (no choice), accepted the “Data Usage Policy”, Products menu > USB Bridges > Classic USB Bridges > USB to UART Bridge > USB to SPI Bridge Evaluation Kit > Add to Cart” = 39,25$ !!!
So please I need help in finding the CP2102 drivers. Could you please put it in a shared folder of yours so I can simply download it?
Best regards and happy new year!
Jean Leblond
Hello Jean, you don’t need to buy anything extra. So, in your Tools > Port menu, what do you see?
If when you unplug/plug your board, does it appear as /dev/ttyUSB0 ? If it appears, your drivers are already installed properly and you don’t need to do anything else. You can simply upload the sketch with that Port selected
Hello Rui,
Thanks for your rapid answer!
In my Tools > Port menu, I see /dev/ttyUSB0 (selected)
Now I know that I don’t need to do anything else, thanks!
Just 2 questions:
1) Was I right to install the Adafruit_ADXL343 dependent library of the “DHT sensor library by Adafruit Version 1.3.8” (“Install all” button)?
2) I found out in the Library Manager that there is a “ESPx by beegeetokyo…Optimized library to match ESP32 requirements version 1.17.0”. Should we still keep using only the “DHT sensor library by Adafruit” you recommended ?
Thanks,
Jean
Hello again Rui,
When uploading the code, I had errors, so I put the Tools > Core Debug Level from None to Debug.
I had a message saying that there is no import serial module as called by epstool_py.
Seems that I installed some extra libraries not needed about serial (when was desperately trying to get the COM ports).
As unfortunately there don’t seem to be a way to uninstall libraries from the Library Manager, I will spare you my trials, like these steps :
–begin trials–
Follwing https://arduino.stackexchange.com/questions/54644/how-do-i-reset-my-libraries-back-to-original-condition
Then reinstalled IDE, esp32 and 2 DHT11 libraries, but these extra libraries are still present and causing problems.
So I edited this esptools.py file, commented the ‘import serial’ related lines, restarted IDE.
Still some errors, so deleted the problematic esptool_py package directory from ~/.arduino15/packages/esp32/tools
Now I have a python message saying that a file in esptool.py can’t be opened.
–end trials–
As I’m sinking, I will for now install the Linux Online IDE with only the esp32 and 2 DHT11 libraries.
Next time after reinstalling my laptop, I’ll be aware of not installing extra librairies causing conflics.
Jean
Hello, please don’t edit the esptool.py file… Everything in that file is required to compile your ESP sketches. After installing the ESP32 board add-on, there’s no extra configurations required.
Which library did you exactly install? If you’re following my projects, you need to use the exact libraries that I recommend, otherwise it will not be compatible.
Thanks for your patience!
Hello,
I’m trying to do the DHT11 lab.
It works fine on Windows with desktop IDE and either UNO or ESP32 (see above for the model).
I know the book uses Windows, but I need to make the lab work on Linux desktop IDE for a class presentation.
The problem is that I get the same error message (see below) both with UNO and ESP32.
I’m using a freshly installed Linux Mint MATE 19.3 64-bits with Linux 64-bit desktop IDE.
I only installed these exact libraries that you recommend:
1) Added in Board Manager URL: https://dl.espressif.com/dl/package_esp32_index.json
2) esp32 by Espressif Systems 1.0.4
3) DHT sensor library by Adafruit 1.3.8
4) Adafruit Unified Sensor by Adafruit 1.1.1
Error message:
Arduino: 1.8.10 (Linux), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 115200, None" Traceback (most recent call last): File "/home/jean/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in <module> import serial ImportError: No module named serial Multiple libraries were found for "Adafruit_Sensor.h" Used: /home/jean/Arduino/libraries/Adafruit_Unified_Sensor Multiple libraries were found for "DHT.h" Used: /home/jean/Arduino/libraries/DHT_sensor_library exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.
What are your advices? Thanks in advance! Jean
Sorry, I forgot to mention that I selected both ‘only’ buttons when selected the ‘DHT’ and ‘Unified Sensor’ libraries (as I don’t use the other hardware mentioned and there is no mention about it in the book). The Python esp32 package seems to be missing a ‘serial’ module. Didn’t find anything on docs.espressif.com
Also, I wonder if there is any preferred Linux distribution to use for the Linux 64-bits desktop IDE, using Arduino and Espressif boards? No such information on the arduino.cc website. I could try any other one if needed.
Finally I searched for a while and found 2 good pages about this error. The first is similar (although for heltec):
https://engineerworkshop.com/2019/03/02/esp32-compiler-error-in-arduino-ide-heltec-esp32-tools-esptool-esptool-py-no-module-named-serial-tools-list_ports/
But the second, more interesting, explains how to install the ESP Development Kit on Linux ARM (same for 64-bit Linux), but for ESP32 Development boards. Wonder if I should give it a try about both these pages solutions, although I have a “DOIT ESP32 DEVKIT V1” ? :
Seems easier to make this work on Windows than on Linux…and probably easier too with Arduino IoT boards than competitors like Espressif ?
Jean
Not it works! 🙂
Found this tutorial from PDAControl (Italian with English subtitles) for installing ESP32 on desktop IDE for Debian / Ubuntu OS (Linux):
https://www.youtube.com/watch?v=Bx6JGcjx05I
The author uses these instructions from the official ESP32 GitHub:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/debian_ubuntu.md
May I suggest RNT to add this to their website and next books for the benefit of their probably many Linux users?
Now I can go on with your next labs on my Linux machine!
Thanks for your help!
Jean