Search found 3667 matches
- Tue Aug 16, 2022 6:29 am
- Forum: Development of MicroPython
- Topic: Looked at 10s of examples of how to compile esp8266 firmware, and none of them actually work?
- Replies: 4
- Views: 25435
Re: Looked at 10s of examples of how to compile esp8266 firmware, and none of them actually work?
I tried the compile and it worked. Which version of the xtensa gcc compiler do you use? Mine is: esp-open-sdk$ xtensa-lx106-elf-gcc --version xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6f) 4.8.5 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the so...
- Mon Aug 15, 2022 4:39 pm
- Forum: General Discussion and Questions
- Topic: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?
- Replies: 18
- Views: 30316
Re: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?
That's also what I recall. The 1M flash version has a small file system. But since you flashed it, you have the proof.
- Sun Aug 14, 2022 6:45 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
You're welcome. Looking back I could have come to a working version a little bit earlier. But taking the I2C instantiation out of the driver is anyhow the better approach, offering freedom in selecting different I2C interfaces.
- Sun Aug 14, 2022 5:13 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
So the driver is working. The sensor has most probably the resistors inside.
- Sun Aug 14, 2022 4:33 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
The address was wrong.
Code: Select all
from machine import SoftI2C, Pin
import sht30
i2c=SoftI2C(sda=Pin(4), scl=Pin(5))
sht=sht30.SHT30(i2c=i2c, , i2c_address=68)
sht.measure()
- Sun Aug 14, 2022 4:16 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
The SHT driver was initially made for an ESP8266 board, which does not need the ID parameter for I2C. So I changed the code a little bit, taking the creating of the I2C object out. It now reads: from machine import I2C, Pin import time __version__ = '0.2.3' __author__ = 'Roberto Sánchez' __license__...
- Sun Aug 14, 2022 3:15 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
The error is raised by the function that performs the I2C communication. And that function is used by all values you request from the sensor.
- Sun Aug 14, 2022 2:56 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
OK. I looked into the code. It is a little bit old style by using i2c.start() and i2c.stop(). These are not needed and must be removed.
- Sun Aug 14, 2022 2:40 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
The pull up resistors do not change the address of your sensor. They change the slew rate of the rising edge in the communication line. So the resistors are required for both sda and scl. It is still possible, that you sensor has these already built-in. You say, it works now, Do you talk about i2c.s...
- Sun Aug 14, 2022 2:21 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3220925
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Try a lower bus freq. i2c.scan() just transmits a single byte per address, so it may succeed, but longer messages will fail.