add sensor7

This commit is contained in:
interfisch 2023-01-29 20:39:04 +01:00
parent 634e2cdf52
commit 3e87b6328d
2 changed files with 38 additions and 2 deletions

View File

@ -1,9 +1,11 @@
// PIR Sensors HC-SR501
// pir sensor needs 5v through an inductor for filtering. output level is 3.3v
// 100nF capacitor SENSOR_HCSR501_minchangeshould be soldered between pins 12 and 13 of BISS0001 to stop interference from esp causing false triggers (in some setups). source: https://www.letscontrolit.com/forum/viewtopic.php?t=671
// 100nF capacitor should be soldered between pins 12 and 13 of BISS0001 to stop interference from esp causing false triggers (in some setups). source: https://www.letscontrolit.com/forum/viewtopic.php?t=671
// hc-sr501 should also be a few cm away from the esp. interference can cause false triggering
// poti closer to jumper is sensitivity (cw increases). other poti is pulse time (cw increases).
// Set jumper to inner position (closer to IC)
// time set to output around 30s pulse
// pinout is Vin, Signal, GND. Vin pin is closest to diode
#include "sensor_hcsr501.h"

View File

@ -18,7 +18,8 @@
#data_dir=data_sensoresp3
#data_dir=data_sensoresp4
#data_dir=data_sensoresp5
data_dir=data_sensoresp6
#data_dir=data_sensoresp6
data_dir=data_sensoresp7
#data_dir=data_sensoresp3dprinter
#data_dir=data_sensoresptest
@ -80,6 +81,7 @@ lib_deps =
adafruit/Adafruit SHT31 Library@^2.2.0
SPI
#Test
[env:sensoresptest]
@ -321,6 +323,38 @@ lib_deps =
Homie@3.0.0
claws/BH1750@1.1.4
#Kueche
[env:sensoresp7]
platform = espressif8266 @ 2.5.0
board = d1_mini
framework = arduino
#monitor_port = /dev/ttyUSB0
monitor_port = COM3
monitor_speed = 115200
build_flags =
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN=D6
-D SENSOR_VL53L1X
-D SENSOR_VL53L1X_minchange=500
-D SENSOR_VL53L1X_senddelaymax=1000*30
-D SENSOR_VL53L1X_readdelay=500
-D SENSOR_SHT31
-D SENSOR_SHT31_humidity_minchange=5
-D SENSOR_SHT31_temperature_minchange=0.5
lib_deps =
Bounce2
SPI
ArduinoJson@6.16.1
marvinroger/Homie @ ^3.0.1
pololu/VL53L1X @ ^1.3.0
adafruit/Adafruit SHT31 Library@^2.2.0
#3D Printer
[env:sensoresp3dprinter]
platform = espressif8266 @ 2.5.0