Skip to content

harfuchcardenas/humidity-control

Repository files navigation

Introduction:

This repository is for measuring the humidity and temperature using DHT11 sensor connected to a nrf7002-DK board from Nordic semiconductors. It has been devloped on Zephyr OS which is an RTOS to create a subroutine to measure these factors on equally time spaced intervals. The used GPIO is to be determined as well as the output control of the fan.

After getting the fan controled, the next step will be to control it based on the humidity in order to control it.

Installation (Ubuntu 20.04.1 LTS):

--Clone the repository--

git clone [email protected]:harfuchcardenas/humidity-control.git

Install zephyr-build module

--Access directory--

cd humidity-control

--Add Submodule to build Zephyr--

git submodule add [email protected]:harfuchcardenas/zephyr_build.git

Build Application

Navigate to Application's source directory

--Access directory--

cd humidity-control/zephyr_build

--Give execution permission--

chmod +x ./build-file

--Run script--

./build-file

--Navigate to directory where Application's CMake file is located, press enter to build, or navigate a level backwards, or cancel

Flash on selected board (currently hardcoded to nrf7002-dk)

--Acess project's root directory--

cd humidity-control/

--Add Submodule to flash Zephyr--

git submodule add [email protected]:harfuchcardenas/zephyr_flash.git

--Acess project's flash directory--

cd humidity-control/zephyr_flash

--Give execution permission--

chmod +x ./flash-file

--Run script--

./flash-file

KiCAD hardware development can be found at the PCB Entwurf directory where the gerber and KiCAD files have been added.

Notes: If it is the first time the script is been run, then an Error will prompt out as there the Virtual Environment is created and the directories created are not updated in runtime, so re-run ./build-file. If the script is run consecutively for different source directory it is needed to remove manually the build/ directory before the script is run again.

--TO-DO--

-Correct bug of first run by re-running script automatically after installation

-Add automatic cache storage

-Add strategy to remove build directory

About

Control the humidity using nrf7002 with Zephyr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages