mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
update build-CI, readme
This commit is contained in:
parent
31e6ea9e34
commit
58a602221e
@ -2,6 +2,10 @@ compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
- uno
|
||||
- leonardo
|
||||
- due
|
||||
- zero
|
||||
# - due
|
||||
# - zero
|
||||
# - leonardo
|
||||
- m4
|
||||
- esp32
|
||||
# - esp8266
|
||||
# - mega2560
|
@ -4,10 +4,14 @@ name: Arduino CI
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
arduino_ci:
|
||||
runTest:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Arduino-CI/action@master
|
||||
# Arduino-CI/action@v0.1.1
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
- run: |
|
||||
gem install arduino_ci
|
||||
arduino_ci.rb
|
||||
|
@ -1,12 +1,16 @@
|
||||
|
||||
[![Arduino CI](https://github.com/RobTillaart/DHT_Simulator/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||
[![Arduino-lint](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/arduino-lint.yml)
|
||||
[![JSON check](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/jsoncheck.yml)
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/DHT_Simulator/blob/master/LICENSE)
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/DHT_Simulator.svg?maxAge=3600)](https://github.com/RobTillaart/DHT_Simulator/releases)
|
||||
|
||||
|
||||
# DHT_Simulator
|
||||
|
||||
Arduino sketch to simulate a DHT22 temperature and humidity sensor.
|
||||
|
||||
|
||||
## Description
|
||||
|
||||
The DHT22 is an often used sensor and many libraries are written for it
|
||||
@ -17,15 +21,16 @@ I wrote a simulator for the DHT sensors in 2014.
|
||||
The simulator can be used to test applications to that use a DHT sensor,
|
||||
e.g. to get high alarm temp or whatever.
|
||||
|
||||
Currently the code uses two analog ports to get a value for temperature
|
||||
and humidity. Just connect two potmeters to play and simulate increase and
|
||||
Currently the code uses two analogue ports to get a value for temperature
|
||||
and humidity. Just connect two potentiometers to play and simulate increase and
|
||||
decrease of the temperature and humidity.
|
||||
|
||||
|
||||
## 0.2.1
|
||||
|
||||
- added pin to trigger CRC errors
|
||||
- added temp and hum pin for input for CI
|
||||
- added pins for CRC error, pulselength error and timeout error
|
||||
- added pins for CRC error, pulse length error and timeout error
|
||||
(to be tested in detail)
|
||||
|
||||
|
||||
@ -39,17 +44,19 @@ decrease of the temperature and humidity.
|
||||
|
||||
The simulator is not tested extensively so please report bugs.
|
||||
|
||||
|
||||
## Future
|
||||
|
||||
1) use the simulator-core as a bridge to other sensors.
|
||||
Idea is to use the code of the simulator in combination with a
|
||||
Senserion or two separate sensors (DS18B20 + ? ) to provide an
|
||||
Sensirion or two separate sensors (DS18B20 + ? ) to provide an
|
||||
accurate temperature and humidity. These could then be readable
|
||||
with any DHT library with the performance of a DHT (~ 5ms).
|
||||
(when time permits)
|
||||
|
||||
2) implement a recorder mode, to be able to replay a certain
|
||||
behavior time after time.
|
||||
behaviour time after time.
|
||||
|
||||
|
||||
## Operation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user