Attempt to write sensor data into ESP32-s2

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Ezyh
 
Posts: 8
Joined: Wed May 31, 2023 4:21 pm

Attempt to write sensor data into ESP32-s2

Post by Ezyh »

My ESP32 is currently connected to a AHT20 and a AM2320, both of them are temp and humidity sensors, I want to collect the data from the sensor and save them into a csv file inside the Feather. Though it seems like ESP32-s2 is in a "Read-only mode" and I don't know how to exit that and be able to create a csv file and append the sensor data into that file. Image
I have a boot.py include at the same root folder with code.py in the Feather and I have pin 9 grounded, this trick did work with Feather M4, I successfully had data out last time doing this.
boot.py
(440 Bytes) Downloaded 3 times
code (2).py
(1.42 KiB) Downloaded 1 time
Attachments
2023-05-31 16-32.jpeg
2023-05-31 16-32.jpeg (618.57 KiB) Viewed 56 times

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: Attempt to write sensor data into ESP32-s2

Post by dastels »

You should delete the last line in boot.py:

Code: Select all

● Save this as boot.py on your Feather
Other than that it looks fine... as long as D9 is the pin you are using to switch the RO status.

Dave

User avatar
Ezyh
 
Posts: 8
Joined: Wed May 31, 2023 4:21 pm

Re: Attempt to write sensor data into ESP32-s2

Post by Ezyh »

Thanks, it works!

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”