DEV Community

Cover image for Circuitpython and ESP32-C3
yaccard
yaccard

Posted on

Circuitpython and ESP32-C3

Hello
Thanks for listening to me.
I work on the realization of home automation modules to improve my solar houses to make them as efficient as possible.
I have a problem with Circuitphyton.
I manage to flash it with ESPTOOL but then nothing happens, the mu software does not recognize it.
I take this opportunity to ask two other questions:
Can we use the "native" USB port in the current version of circuitpython (which is in Beta version).
And how to assign PINs from the chip to the I2C protocol (there are no dedicated PINs in the base).
Here is my toolchain.
W10/Python 3.7(64)/Esptool V3.2/Node MCU-Series ESP-C3-32S-Kit 4MB
yves

Top comments (7)

Collapse
 
yaccard profile image
yaccard

Y use Adafruit CircuitPython 7.2.0-alpha.2 on 2022-02-11; MicroDev microC3 with ESP32-C3FN4
(adafruit-circuitpython-ai_thinker_esp32-c3s-fr-7.2.0-alpha.2.bin)
I talk to ESP32-C3 with Mu editor, REPL is OK but i can't read or write the files with Windows and USB
Best regards
Yves

Collapse
 
andypiper profile image
Andy Piper

You're able to connect to the REPL? That's interesting. I thought that the CircuitPython plans were to use BLE for transferring files on the C3.

Collapse
 
yaccard profile image
yaccard

Hello
Thank you very much for your answer.
I can indeed use mu editor with ESP32-C3
I just flashed the latest version (adafruit-circuitpython-ai_thinker_esp32-c3s-fr-20220226-bfd56d4.bin) from Adafruit.
Erase and write are operational
After the flash I have three or four flashes of the diode (not the big diode RGB)
When I connect mu editor I have a weird first line
������a���a3�C�
then the second line says
Adafruit CircuitPython 7.3.0-alpha.0-12-gbfd56d438 on 2022-02-26; AITHinker ESP32-C3S_Kit with ESP32-C3FN4
Then REPL is available
I can calculate 2+3=
Or display the result of Import/dir board or import/dir microcontroller
But unable to read or write Code.py file
Windows/USB does not have access to the ESP32-C3 board
If Adafruit develops file transfer by BLE, it's very good news, I want to make sensor modules as small as possible, so I won't have to put the USB connector anymore.
I take advantage of this email to ask another question I want to develop a level detector which must send me an email (my wifi internet box is not very far), but I have not seen any code in Circuitpython to do this, so if anyone can give me a hand that would be great.
Best Regards
Yves

Collapse
 
andypiper profile image
Andy Piper

I'd ask the CircuitPython project directly (you could interact with the developers via Discord).

Which specific CircuitPython build are you looking to install? There's some information here in the mu Editor repo. I've not used CircuitPython with any ESP32-C3 boards yet for myself.

Collapse
 
andypiper profile image
Andy Piper

Have you tried any MicroPython builds?

Collapse
 
andypiper profile image
Andy Piper

I’m curious if you worked this out?

Thread Thread
 
yaccard profile image
yaccard

I use only Circuitpython
Yves