Skip to content

Conversation

@plescaevelyn
Copy link

@plescaevelyn plescaevelyn commented Sep 17, 2025

…tup files

  • Configure SWIO boards to be able to read temperature data on the first board and control a fan on the second board based on the acquired temperature
  • Read temperature data on a SWIO board from TMP01 as main measurement and ADT75 as a backup
  • Control the fan on another SWIO board using a fan, using hysteresis to prevent rapid switching, for temperature regulation (turn on fan based on the chosen low and high temperature threshhold)
  • Plot data as temperature and fan state (ON/OFF) over time
  • Add reading example for the TMP01 sensor
  • Power TMP01 and the fan ON and OFF according to the usecase
  • Add host_setup config folder including the network manager and static IP firmware images needed for setting up the example
  • Document the steps for setting up the system using the provided config files

Description

Included a temperature controller application that showcases the functionality of the CN0591 Raspberry Pi HAT together with the SWIOT1L boards.
This application reads data on a SWIOT board from the external TMP01 and on-board ADT75 sensors and controls a fan connected on the second SWIOT board.
Included network configuration files and firmware images that are to be used in this setup, along with a documentation that explains how to include them.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

  • Test A
    Ensured that the hardware components of the project moved according to the action performed (fan turned on when temperature sensed was above threshold, stopped when below treshold).
  • Test B
    Viewed data displayed through the UI and verified that the displayed data is accurate and changing depending on the heating or cooling actions I was performing.

Test Configuration:

  • Hardware: Raspberry Pi 4 Model B, 2x SWIOT1L Boards, CN0591 HAT, TMP01 temperature sensor, fan actuator
  • OS: Raspberry Pi OS and Kuiper 2

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have signed off all commits and they contain "Signed-off by: "
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@tfcollins
Copy link
Collaborator

@plescaevelyn who should review this?

I really want to avoid stale branches like this. Development branches like this should not be long lived. It needs to get merged into main if sending out for others to use

@plescaevelyn
Copy link
Author

Hello @tfcollins, this PR should be reviewed by @thorenscientific

…d setup files

- Configure SWIO boards to be able to read temperature data on the first board and control a fan on the second board based on the acquired temperature
- Read temperature data on a SWIO board from TMP01 as main measurement and ADT75 as a backup
- Control the fan on another SWIO board using a fan, using  hysteresis to prevent rapid switching, for temperature regulation (turn on fan based on the chosen low and high temperature threshhold)
- Plot data as temperature and fan state (ON/OFF) over time
- Add reading example for the TMP01 sensor
- Power TMP01 and the fan ON and OFF according to the usecase
- Add host_setup config folder including the network manager and static IP firmware images needed for setting up the example
- Document the steps for setting up the system using the provided config files

Signed-off-by: Evelyn-Iulia Plesca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants