Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.26 KB

README.md

File metadata and controls

25 lines (14 loc) · 1.26 KB

BastWAN_Continuous_Ranging

A project demonstrating I2C capabilities of the BastWAN.

It requires 3 libraries, one of which is included in the code:

An I2C hub is connected to the SDA/SCL pins, plus GND/Vcc. On this hub are the VL53L0X and DHT12. An LED is connected on A0 + GND/Vcc.

Using the Continuous Ranging.ino sketch I repurposed it to activate the DHT12 code when the detected range is below 10 cm. To avoid accidental triggers, it wait for 10 continuous hits, then turns on the LED, and displays the ambient temperature and humidity from DHT12, and the ambient and object temperatures from the MLX90614. It then waits for the VL53L0X to report a measure distance above 10 cm to release and start watching again.

One could add sending a LoRa packet at this point. I'll leave this to you as an exercice. :-)

I2C Hub

DHT12

VL53L0X

Green LED

MLX90614