Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorials:it:microcontroller_environmental_sensor [2019/02/24 19:37] – created information about microntroller sensor system and implementation srmes | tutorials:it:microcontroller_environmental_sensor [2019/02/25 13:29] (current) – srmes | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Microcontroller Environmental Sensor System | ||
| + | |||
| + | |||
| In the interest of storing analytical data about environmental stimuli in and around the buildings at Kuckucksmuehle, | In the interest of storing analytical data about environmental stimuli in and around the buildings at Kuckucksmuehle, | ||
| The sensor system measures: | The sensor system measures: | ||
| - | - temperature | + | - **temperature** |
| - | - humidity | + | - **humidity** |
| - | - light level | + | - **light level** |
| - | And subsequently can send this data via wireless network connection to central data store. | + | The system can subsequently can send this data via wireless network connection to central data store. |
| - | The implementation of this micro controller system uses the following technologies: | + | ====Implementation==== |
| * A light-dependent resistor (LDR) to track changes in light level in the immediate environment of the sensor | * A light-dependent resistor (LDR) to track changes in light level in the immediate environment of the sensor | ||
| * A DHT11 sensor to gather both temperature and humidity readings from the immediate environment of the sensor | * A DHT11 sensor to gather both temperature and humidity readings from the immediate environment of the sensor | ||
| Line 16: | Line 19: | ||
| In terms of software the program operating chip is C++ adapted from a previous project published by Ben Picco: [[https:// | In terms of software the program operating chip is C++ adapted from a previous project published by Ben Picco: [[https:// | ||
| + | |||
| + | ====Schematic==== | ||
| + | A schematic which is representative of the system including the microcontroller is shown here: | ||
| + | {{ : | ||
| + | |||
| + | ====Setting up the system for the first time==== | ||
| + | - Ensure that you have all necessary componentry as detailed by the schematic above: | ||
| + | * Wires | ||
| + | * NodeMCU v2 module | ||
| + | * Light-dependent-resistor | ||
| + | * DHT11 module | ||
| + | * 2x 10kΩ resistors | ||
| + | * 1x USB cable (MicroUSB v2 --> USB type A) | ||
| + | - Arrange the components on a breadboard as per the schematic | ||
| + | - Clone repoitory [[https:// | ||
| + | - **Important: | ||
| + | - Connect the usb cable between your workstation and the NodeMCU v2 module | ||
| + | - Open a terminal (Operating System dependent) and run ' | ||
| + | - Run ' | ||
| + | - Run 'make upload' | ||
| + | |||
| + | ====Testing/ | ||
| + | If you have completed step 4 by entering the IP address of your computer into the **.ino** script, then the following steps apply. | ||
| + | - Ensure that the USB cable is connected to the ESP chip such that it has power | ||
| + | - Within the terminal of your current computer run 'nc -l -p 1337 -u' to monitor and print out incoming packets going to a specific port over LAN and print them out to screen on the terminal. **N.B:** you must specify the ' | ||