Repository navigation
Board sensors: I2C scan and temperature/humidity - #88
Merged
Merged
Conversation
…(H lines, board_health)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The firmware now starts the board's I2C bus (CYBSP_I2C_CONTROLLER, PDL I2C functions) and reports which chips answer: on our board
S,1,i2c: 0x18 0x44 0x68 0x77. 0x44 answered with a Sensirion SHT4x serial number and measurements whose CRCs are valid, so it's read every 10 s asH,t_ms,<temperature C>,<humidity %>. It sits beside the radar and the processor, so it reads the board's temperature (36 °C in a ~25 °C room), and the docs say so. The server puts it in/api/health→board_health.climate. The other three chips aren't read yet. Checked on the board: H lines every 10 s, radar streaming normally, recovery test ALL PASSED; all PC tests pass (new climate test).