Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Hardware
Your task is to build a prototype IoT module that captures data from one or more sensors, cleans this and sends it through to the [Adafruit](https://io.adafruit.com) server. To help you with this you will be provided with an IoT kit. This document describes the contents of this kit.
## The Microcontroller
The core of your sensor module will be based around the [ESP8266](https://en.wikipedia.org/wiki/ESP8266) Wifi chip with self-contained microcontroller. This is the most commonly-used chip in Internet of Things (IoT) devices.
You will be provided with an **ESP8266 Development Module**.
![ESP8266 Development Module](.images/nodemcu.png)
Whilst it comes with its own Software Development Kit (SDK) based around freeRTOS, there are a number of more popular options:
- NodeMCU (based around the Lua programming language).
- MicroPython
- Arduino
You should use the Arduino SDK for this project.
## Sensors
There are a number of sensors that can be used for environmental sensors but it is important that you only pick those that are supported by Arduino libraries. The table below shows some of the most useful ones and includes links to online tutorials. If you identify other useful ones, let the module leader know and they can be added to the list. The ones shown _italicised_ are **not** part of the provided kit.
| Environment | Sensor | Tutorial |
| ------------------------------------------ | ------------ | --------------------- |
| Temperature | DS18B20 | https://goo.gl/aNBgtK |
| Temperature and humidity | DHT11 | https://goo.gl/xdoFG6 |
| NH3,NOx, alcohol, Benzene, smoke, CO2 | MQ-135 | https://goo.gl/zxCetD |
| Hygrometer | YL-69 | - |
| UV | GUVA-S12SD | https://goo.gl/3s6J4o |
| Light | TSL2561 | https://goo.gl/YUftqv |
| Dust | GP2Y1010AU0F | https://goo.gl/MTNiyf |
| _Dust_ | _DSM501A_ | - |
| Vibration | SW-420 | https://goo.gl/4tNLi5 |
| Sound | KY-038 | https://goo.gl/bCxrXF |
| Combustible Gas, Smoke | MQ-2 | https://goo.gl/2fBk1t |
| _Alcohol gas_ | _MQ-3_ | - |
| _CH4 / Natural gas_ | _MQ-4_ | - |
| _LPG, Natural Gas, Town Gas_ | _MQ-5 MQ-6_ | - |
| _CO (carbon monoxide)_ | _MQ-7_ | - |
| _Hydrogen_ | _MQ-8_ | - |
| _Carbon Monoxide, Coal Gas, Liquefied Gas_ | _MQ-9_ | - |
## Displays
As part of this project you may want to add a screen to display useful information such as the IP address etc.
| Display | Interface | Tutorial |
| ----------------------- | --------- | --------------------- |
| SSD1306 I2C OLED Screen | I2C | https://goo.gl/idmyaz |
## Equipment List
**You will be provided with kit** to use during the project however you may wish to purchase your own resources, below you can find a full costed kit. Prices and links are for Amazon but you can find these a lot cheaper if you shop around and you may be able to find some of this kit in the electronics lab (ask the supervisor in the lab first).
### Team Kits
The following items will be in the kit issued to your team. Make sure you check everything is there before signing for it.
| Equipment | Cost |
| ----------------------------------------------------------- | ----: |
| [NodeMCU ESP8266 CP2102 v3](http://amzn.eu/iFhW1f4) | £6.99 |
| [Micro-USB cable 30cm](http://amzn.eu/eJ6z1Ux) | £3.99 |
| [Breadboard](http://amzn.eu/4r8UL9Q) | £1.56 |
| [Jumper wires x65](http://amzn.eu/ejw4p3Q) | £3.95 |
| [Temperature sensor module DS18B20](http://amzn.eu/6h2mzBC) | £1.35 |
| [Temperature/Humidity module DHT11](http://amzn.eu/glrhIqs) | £1.46 |
| [Gas sensor MQ-135](http://amzn.eu/h573jLl) | £5.60 |
| [Light sensor GY-2561 TSL2561](http://amzn.eu/a07k83G) | £1.62 |
| [Vibration sensor SW-420](http://amzn.eu/crleUBd) | £1.76 |
| [Sound sensor KY-038](http://amzn.eu/3tkqZG2) | £3.60 |
| [Stanley storage box](http://amzn.eu/hyI4x9J) | £7.30 |
**NOTE:** One member of the team will have to sign for the kit at the start of the project. Any missing items will be charged at the prices in the table above.
### Additional Components
Your trip organisers can provide your team with the following components.
| Equipment | Cost | Qty |
| -------------------------------------------------------------- | ----: | --: |
| [USB type-c to Micro-b 15cm cable](http://amzn.eu/0EwGYjA) | £5.51 | 2 |
| [USB to USB-C adapter](http://amzn.eu/6FTTtUW) | £5.49 | 2 |
| [Breadboard power supply](http://amzn.eu/cczLbg7) | £2.48 | 5 |
| [Rechargable 9v battery](http://amzn.eu/6kKladh) | £5.78 | 5 |
| [UV sensor KS-204 GUVA-S12SD](http://amzn.eu/5KNJy0x) | £5.29 | 5 |
| [Dust sensor GP2Y1010AU0F](http://amzn.eu/5xqZT1y) | £8.76 | 5 |
| [GY-NEO6MV2 NEO-6M GPS Module](http://amzn.eu/j07kOl8) | £5.99 | 5 |
| [0.96 ssd1306 i2c OLED](http://amzn.eu/g3Be2pk) | £6.99 | 5 |
| [ESP8266 ESP-12E module](http://amzn.eu/b9CUYlZ) | £2.03 | 2 |
| [MicroUSB 3.3v/5v regulator](https://goo.gl/HKv8jr) | £2.99 | 2 |
| [Male header pins 0.1" pitch (40 pin)](http://amzn.eu/cmXmuGU) | £5.99 | 50 |
| [Male header pins 2mm pitch (40 pin)](http://amzn.eu/eXAIKxn) | £1.27 | 10 |
| [USB TTL serial cable](http://amzn.eu/3aLUqLr) | £5.99 | 2 |
## Lab Equipment
During your project you may need to troubleshoot your circuits. There are a number of tools that can be requested from the trip organisers. Make sure you have researched their purpose and how they are used, the trip organisers can help.
| Equipment | Cost | Qty |
| ------------------------------------------------------ | -----: | --: |
| [Multimeter](http://amzn.eu/gMtjFrh) | £3.82 | 2 |
| [USB voltage/current meter](http://amzn.eu/0Hdmuff) | £3.99 | 2 |
| [USB soldering iron](http://amzn.eu/0yH0Mbu) | £6.95 | 1 |
| [Solder (1mm)](http://amzn.eu/d9PRCrz) | £8.02 | 1 |
| [Bus pirate v4](http://amzn.eu/f8b1qrQ) | £38.99 | 1 |
| [Bus pirate probes](http://amzn.eu/cbTu20s) | £5.99 | 1 |
| [Open workbench logic sniffer](http://amzn.eu/8Pl4BUy) | £62.99 | 1 |
| [Logic sniffer cable x8](http://amzn.eu/e4sUOjy) | £9.68 | 2 |
| [Mini-USB cable 15cm](http://amzn.eu/bdsP2Ql) | £2.49 | 2 |