Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:laboratoare:2022:lab2 [2022/10/13 16:25]
dan.tudose
iothings:laboratoare:2022:lab2 [2022/10/13 17:00] (current)
dan.tudose
Line 1: Line 1:
-===== Sparrow ESP32 board bring-up ​& SPIFFS =====+===== Lab 2: Sensors ​& SPIFFS =====
  
 In today'​s lab assignment we will bring up the sensors on the Sparrow ESP32 board and build a logger using the filesystem library and the board'​s internal Flash. In today'​s lab assignment we will bring up the sensors on the Sparrow ESP32 board and build a logger using the filesystem library and the board'​s internal Flash.
Line 7: Line 7:
 We'll learn how to get data from all the sensors on the board. We'll learn how to get data from all the sensors on the board.
  
-== Light sensor ​==+== Light Sensor ​==
  
-The board has an on-board LTR308 light sensor. It's connected to the ESP32 processor via a I2C bus. You will need to install a driver library to get light intensity readings. Go to Sketch > Include Library > Manage Libraries and search for LTR308 and then click on the Install button.+ 
 +{{ :​iothings:​laboratoare:​2022:​f7e03b34cc8586c24828e06bdde40887.jpeg?​150|}} 
 + 
 +The board has an on-board ​[[https://​eu.mouser.com/​datasheet/​2/​239/​lite-on_lite-s-a0002515146-1-1749840.pdf | LTR308]] light sensor. It's connected to the ESP32 processor via a I2C bus. You will need to install a [[https://​www.arduinolibraries.info/​libraries/​ltr308-library | driver library]] to get light intensity readings. Go to Sketch > Include Library > Manage Libraries and search for LTR308 and then click on the Install button.
  
 The library comes pre-loaded with an example, you can load it from File > Examples > LTR308 and it should print light intensity reading in the Serial Terminal. ​ The library comes pre-loaded with an example, you can load it from File > Examples > LTR308 and it should print light intensity reading in the Serial Terminal. ​
  
 Use the Serial Plotter to graph different illumination levels. Use the Serial Plotter to graph different illumination levels.
 +
 +== BME680 Sensor ==
 +
 +{{ :​iothings:​laboratoare:​2022:​screenshot_2022-10-13_at_16.58.01.png?​150|}}
 +
 +Next, you'll be bringing up the [[https://​www.bosch-sensortec.com/​products/​environmental-sensors/​gas-sensors/​bme680/​ | BME680]] sensor, which is a highly integrated temperature,​ pressure, humidity and gas sensor. ​
 +Again, you will need to install a [[https://​www.arduinolibraries.info/​libraries/​bme680 | sensor library]] that enables you to interface the sensor on I2C and get readings. ​
 +
 +Run the I2CDemo to get sensor readings and plot them in the Serial Plotter.
  
 === ESP32 Flash Memory === === ESP32 Flash Memory ===
iothings/laboratoare/2022/lab2.1665667517.txt.gz · Last modified: 2022/10/13 16:25 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0