Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo sketch fails for SHT85 #5

Closed
RobTillaart opened this issue May 7, 2023 · 10 comments
Closed

demo sketch fails for SHT85 #5

RobTillaart opened this issue May 7, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@RobTillaart
Copy link
Owner

RobTillaart commented May 7, 2023

Test with sht85 fails, while expected to be compatible with sht31.

  • UNO
  • SHT85
  • SW(SDA = 6, SCL = 7)
  • 100KHz + 50KHz

See also - RobTillaart/SHT85#16 (comment)

@RobTillaart RobTillaart self-assigned this May 7, 2023
@RobTillaart RobTillaart added the bug Something isn't working label May 7, 2023
@RobTillaart
Copy link
Owner Author

Replacing the SoftWire library by SoftwareWire libray seems successful.

Need to confirm.

@RobTillaart
Copy link
Owner Author

@MFahreza69

Confirmed to work with UNO

Looks good on UNO too. Compiling demo sketch
SoftWire.h => 9520 bytes + 593 RAM
SoftwareWire => 9004 bytes + 593 RAM

So the SoftwareWire has a smaller footprint too.

@RobTillaart
Copy link
Owner Author

@ghaug
I am starting on a 0.2.0 version that uses SoftwareWire library.
As it is not much work I expect a develop branch later today.
If you have time could you verify if it still works for you?

@RobTillaart
Copy link
Owner Author

RobTillaart commented May 10, 2023

@MFahreza69

Created a 0.2.0 branch with softwareWire.h and the build failed "all over the place".
Apparently the SoftwareWire is optimized for AVR (UNO/ MEGA).
This is a reason for me not to go ahead with the SoftwareWire library for now.

Development branch renamed to SoftwareWire-version-0.2.0-==-AVR-only

So more investigations are needed, which will be done later (no date planned).
To be continued.

@RobTillaart
Copy link
Owner Author

created a new develop branch for future investigation.

@RobTillaart
Copy link
Owner Author

When an SHT85 is connected (with 1K pull ups)

Preliminary observations

  • writing a command seems to work occassionally
  • requestBytes() fails in every call

SHT85 and/or SoftWire seem to be timing sensitive?

@ghaug
Copy link

ghaug commented May 11, 2023 via email

RobTillaart added a commit that referenced this issue May 12, 2023
- add **commented** version with **SoftwareWire** to "fix" issue #5
- clean up SHT31_SW.cpp
- update keywords.txt
- update readme.md
@RobTillaart
Copy link
Owner Author

Made a patch version 0.1.1 that has the code for the AVR specific SoftwareWire in it.
Need time to investigate why SHT85 does not work, for now it has become low priority.

@alecks68
Copy link

Just tested this with a SHT31 connected to ATTINY84 @ 1MHz with several I2C speeds and slow/fast reading mode.
SoftWire fails for me, SoftWarewire works.
Maybe add compile switch or #define to switch more easily between these libraries.

@RobTillaart
Copy link
Owner Author

@alecks68
I'll makes a new issue from this one, to be continued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants