Week 8 - Continuation of ESP testingz

Introduction:

As week 7 was used in preparation for MST, week 7 had no update on telemetry.

After attempts on working with the RedBear Blend had been unsuccessful. Mr Joe assigned us to work with an ESP specifically an ESP01. An ESP functions as an Arduino with a wifi module and cost less than $3. However, it has only 2 IO ports and 1 built-in LED.

We were tasked to connect an ESP01 with the DHT22 temperature-humidity sensor. The ESP01 would receive the data from the DHT22 connected to an Arduino and display it on a Serial monitor.

The previous attempts had been unsuccessful due to firmware issues which resulted in failure even entering AT command mode. This was solved by Mr Joe uploading a firmware inside it but that ESP could only enter AT command very few often. As such, we focused on various other components such as HC-05/HC-06 as well as the Bluno beetle. 

Up until recently, we started back with new ESP01 that Mr Joe had given us and we had no problems with AT command mode. This allows us to configure the ESP as either AP mode (Access Point acts as a host, providing wifi connection), Station Mode (client, tapping the wifi connection and sending data) or both AP and Station mode.

Current Objective

Our current task is to basically familiarise ourselves with other functions of the ESP01. As the ESP also allows us to create a web server when it is connected to a wifi network, we tried to control a LED using the web server created when a program is run by the ESP. We had found an example of a LED being controlled by ESP8266 done by STEM Education on their Internet of Things Blog. Our ESP01 is part of a series of the ESP8266 line and require some minor changes to the code.

Figure 1: ESP01

One thing to note is that the Built-in LED is active low so the values for the LED would need to be reversed as well as the condition for various loops. We had initial success showing the serial monitor indicating the ESP being connected to the Local Wifi network and indicating the IP address of the ESP01 to connect to the web server. The web server is created by the program  and accessed by typing in the IP address of the ESP01 as displayed in the serial monitor.

Figure 2: Serial Print displaying intended message

The web server is a simple web server with 2 simple widgets allowing the user to on and off the built-in LED wirelessly using only wifi. Right now, we have problems displaying the Serial monitor yet the web server works with the ESP, being able to control the built-in LED normally. This can be seen in the GIFs below.

 


I will post an update on this post should the serial monitor work along with pictures and demonstration video (replacing the horrible GIFs). Without the serial monitor, we would need to configure the ESP to enter AT command individually to find out its' IP address in order to access the web server.  Once this task is completed, we may experiment with other functions or ESPs. we will carry on with our Dashboard Andriod studios and its transmission. 

Comments

Popular posts from this blog

Transmission within the car - HC-05 & HC-06 FC114 (Bluetooth module)

Week 13 - Integration test - PLX-DAQ, Chase vehicle simulation, LoRa interface