ENGR351 Lab 2020 Fall
Homework 2 - ATMEGA328 Advanced Applications
Name: Ryan Jeanes
Email: rejeanes@fortlewis.edu
Uploading Data to Thingspeak
Introduction
In any scientific field, the ability to gather data for analysis is of
utmost importance, and there are many different kinds of sensors and
instrumentation that allows us to so. Here we are using two Arduino
Nanos, a temperature sensor, and a wifi module that will allow us to
gather data to send to Thingspeak for storage and analysis.
Materials and Methods
A
breadboard circuit was created using two Arduino Nanos in master/slave
configuration, communicating through SPI. The Master nano recorded
temperatures through the DS18B20 Dallas Temperature sensor, displayed
this on an Adafruit SSD1306 OLED module, and send the sensor data to
the slave nano, which used an ESP8266 module to connect to Thingspeak
for data upload.
Results
The OLED and
DS18B20 were tested and worked properly. A second nano had
to be introduced because the SSD1306 OLED display() function was not
compatible with the ESP8266 code. The final breadboard design worked,
and succesfully uploaded data to Thingspeak as shown in Figure 3.
Figure 1 - OLED module test
Figure 2 - DS18B20 sensor and OLED module test
Figure 3 - Data uploaded to thingspeak using ESP8266
Figure 4 - Final breadboard circuit
Discussion
The
final breadboard design was able to record temperatures, display on the
OLED, and upload the temperatures to Thingspeak using the ESP8266
module.