itofficeeu / ito-sensor-node

Examples of how to read out data from sensors connected with I2C, 1-wire and analogue.
MIT License
3 stars 0 forks source link

ito-sensor-node

Examples of how to read out data from sensors connected with I2C, 1-wire and analogue.

Specific sensors demonstrated

BME280 Hum.-Temp.-Pressure, I2C

Most relevant specs:

DS18B20 Temperature Sensor, 1-wire

Most relevant specs:

GYML8511 UV-Index, analogue

The voltage outputtet by the sensor is converted by the software to the standardized UV Index scale that goes from zero to 15, like decribed on Wikipedia:

https://en.wikipedia.org/wiki/Ultraviolet_index

This sensor detects 280-390nm light most effectively. This is categorized as part of the UVB (burning rays) spectrum and most of the UVA (tanning rays) spectrum. It outputs a analog voltage that is linearly related to the measured UV intensity (mW/cm2).

Other analogue sensors could be:

MQ-135 Air Quality Sensor

https://www.aliexpress.com/item/32776781932.html?spm=a2g0x.search0104.3.2.59d04024NeVcOV&ws_ab_test=searchweb0_0%2Csearchweb201602_5_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_10301_537_536_10843_10059_10884_10887_321_322_10103%2Csearchweb201603_52%2CppcSwitch_0&algo_expid=fc3978c3-5882-4f7c-ace0-9d51b9830a4c-0&algo_pvid=fc3978c3-5882-4f7c-ace0-9d51b9830a4c&transAbTest=ae803_4

Soil Moisture Sensor

https://de.aliexpress.com/item/32951556560.html?spm=a2g0s.9042311.0.0.27424c4dyGtgmo

Video-link

Code Format

Arduino sketch .ino file type in mixed C/C++.

Intended hardware

Heltec WiFi Lora 32, TTGO etc.

License

The libraries used to compose this code might have different licenses.

Voltage divider - Analogue sensors

Link for calculating possible resistor values:

For each analogue sensors can you in the code easily set the voltage range with the parameter VOLT_DIVIDER_x_VOLT_MAX, wherein x can be 1,2,3 or 4.

1-wire

Link to program to read out addresses/IDs:

Link for further information on 1-wire:

Extension board and prototyping board

Available at