Skip to content

Kongduino/BastWAN_Continuous_Ranging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A project demonstrating I2C capabilities of the BastWAN.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages