Haven't used this part. An I2C ADC I am running on a RaspberryPi seemed quite fussy about the length of the wires to SDA and SCL lines, ie 25mm. Check you are running the correct value of pull-up resistors, I had a problem with that as well.
Good luck!
Search found 139 matches
- Thu Sep 03, 2020 4:49 am
- Forum: ESP32 boards
- Topic: I2C device detected but not reading
- Replies: 4
- Views: 307
- Thu Sep 03, 2020 12:01 am
- Forum: ESP32 boards
- Topic: I2C device detected but not reading
- Replies: 4
- Views: 307
- Tue Sep 01, 2020 10:42 am
- Forum: ESP32 boards
- Topic: Interfacing ESP32 with Max30102
- Replies: 2
- Views: 471
Re: Interfacing ESP32 with Max30102
Haven't downloaded the datasheet but I see I2C and the ESP32 I2C bus is here http://docs.micropython.org/en/latest/esp32/quickref.html#i2c-bus Would have to dig-into the register descriptions to determine how to read the ADCs. Have you seen this https://www.cnx-software.com/2020/08/31/heart-rate-dev...
- Mon Aug 31, 2020 7:15 pm
- Forum: ESP32 boards
- Topic: Testing if ubinascii.unhexlify exists ...
- Replies: 6
- Views: 479
Re: Testing if ubinascii.unhexlify exists ...
I didn't put in the full coding for a typical file read statement. Following an example I found somewhere: try: with open('/batt_voltage_values', 'r') as infile: batt_voltage_values_lines = infile.readlines() except IOError: print('oops!') I re-read https://realpython.com/read-write-files-python/ an...
- Sat Aug 29, 2020 4:35 am
- Forum: ESP32 boards
- Topic: Testing if ubinascii.unhexlify exists ...
- Replies: 6
- Views: 479
Re: Testing if ubinascii.unhexlify exists ...
Hi Peter,
I always use:
for reading and writing files. I haven't had any issues using Crtl-C to stop execution.
Perhaps the smart thing to do is to do a Ctrl-C before pushing the reset button!
Thanks,
Dave
I always use:
Code: Select all
try:
with open ...
Perhaps the smart thing to do is to do a Ctrl-C before pushing the reset button!
Thanks,
Dave
- Fri Aug 28, 2020 4:51 am
- Forum: ESP32 boards
- Topic: Testing if ubinascii.unhexlify exists ...
- Replies: 6
- Views: 479
Re: Testing if ubinascii.unhexlify exists ...
I have fixed that.
Before the ESP32 ends up with a corrupted file system again when I do a re-boot when my while loop is running, I wondered if there was a proper method of closing the files before shutting it down.
I guess something like <shutdown -h> on a RaspberryPi.
Thanks,
Dave
Before the ESP32 ends up with a corrupted file system again when I do a re-boot when my while loop is running, I wondered if there was a proper method of closing the files before shutting it down.
I guess something like <shutdown -h> on a RaspberryPi.
Thanks,
Dave
- Thu Aug 27, 2020 7:34 pm
- Forum: ESP32 boards
- Topic: Testing if ubinascii.unhexlify exists ...
- Replies: 6
- Views: 479
Testing if ubinascii.unhexlify exists ...
Following another thread I tried: rshell -d -p /dev/ttyUSB0 --editor nano --buffer-size=30 -a and got: Trying to connect to REPL . Stalled, so I then tried: sudo screen /dev/ttyUSB0 115200 and got: FAT filesystem appears to be corrupted. If you had important data there, you may want to make a flash ...
- Thu Aug 27, 2020 2:22 am
- Forum: ESP32 boards
- Topic: WebREPL disconnect/connect
- Replies: 2
- Views: 740
WebREPL disconnect/connect
I have read through the ESP8266 WebREPL and utime() docs but have not seen any mention of the following: - if I have a program that is looping probably in the order of milliseconds AND disconnect WebREPL I am not able to re-connect. However, if a put a: utime.sleep_ms(500) in the main program execut...
- Wed Aug 26, 2020 1:27 am
- Forum: General Discussion and Questions
- Topic: What keeps a 3G USB dongle active?
- Replies: 0
- Views: 814
What keeps a 3G USB dongle active?
I am running an ESP32 dev board from a powered USB hub connected to my laptop. I need usb_modeswicth to power up the3G dongle, but was hoping that after the whole system was working that I could remove the laptop. (still keeping the 3G dongle powered up from an external supply). However, the blue li...
- Wed Aug 26, 2020 1:16 am
- Forum: Other Boards
- Topic: [WeActSTM32F411CEU6] network.WLAN
- Replies: 2
- Views: 343
Re: [WeActSTM32F411CEU6] network.WLAN
Hi,
I can use a ESP-01S on UART2 but was hoping that if I was using a powered USB hub I could "patch" a USB WiFi dongle in and use similar calls as on the ESP32 port.
Thanks,
Dave
I can use a ESP-01S on UART2 but was hoping that if I was using a powered USB hub I could "patch" a USB WiFi dongle in and use similar calls as on the ESP32 port.
Thanks,
Dave