Friday, December 9, 2022

Got some ESP32s for cyber Monday.

Installed Arduino "arduino-ide_2.0.3_Windows_64bit". Followed these instructions, except I chose the NodeMCU-32s. Unknown device in win10 device manager. CP210x_Universal_Windows_Driver downloaded and installed. Silicon Labs, from the Windows update optional drivers.

More help here.

Still Upload fails. v4.2.1
Serial port COM3
Connecting...Traceback (most recent call last):
  File "", line 34, in <module>
  File "esptool\", line 1004, in _main
  File "esptool\", line 646, in main
  File "esptool\", line 895, in get_default_connected_device
  File "esptool\", line 631, in connect
  File "esptool\", line 572, in _connect_attempt
  File "esptool\", line 435, in sync
  File "esptool\", line 365, in command
  File "esptool\", line 317, in write
  File "serial\", line 325, in write
serial.serialutil.SerialTimeoutException: Write timeout
[2060] Failed to execute scrip
t 'esptool' due to unhandled exception!
Failed uploading: uploading error: exit status 1

 I had two com3 devices, so I disabled the non usb-uart one. The upload completes. But the output is gibberish. P ���-t��Yt�(�l��. The baud rate of the serial monitor did not match the baud rate specified in the code.

12/22/22 update

Testing out Bluetooth

There is a library conflict if you have the arduinoBLE library installed. 
Multiple libraries were found for "BLEDevice.h"
  Used: C:\Users\Jash\Documents\Arduino\libraries\ArduinoBLE
  Not used: C:\Users\Jash\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\BLE
exit status 1
They both have BLEDevice.h. I had to change:
#include <BLEDevice.h> to #include "BLEDevice.h"
This project will be a client so that it can accept multiple connections. The goal is a multiplayer game.
The ESP32 BLE_client example throws many errors! Lots of undefined references.

No comments:

Post a Comment