Motivation

The objective of the experiments was to test various communication methods (different protocols and frequency) under different conditions. I am using the following communication devices –

  • ESP32 Wifi Module – 2.4GHz
  • ESP32 Bluetooth Low Energy – 2.4 GHz
  • NRF24L01 module - 2.4GHz
  • LoRa module - 868MHz

Experiment I: To determine the relationship between metal interference and mode of communication

Bluetooth Experimental Setup –

The Blynk app was used to communicate between my phone and the esp32 module via Bluetooth Low Energy (BLE). The time to send the message from the application and receive a response from the esp32 module was measured. A 2-second delay was added in the esp32 module between receiving the message from the application and sending a response to improve the accuracy in measurement of time. To measure the metal interference, the esp32 module was covered with an aluminum foil and kept inside a metallic oven.

Distance between application and esp32 module = 3.04 m

WIFI Experimental Setup –

The same setup was used for WIFI. Distance between esp32 module and router = 5.63m Distance between router and application = 7.01 m

NRF Experimental Setup –

NRF module was connected to esp32 modules. The same setup was used. Distance between the 2 modules = 3.04 m

Observations

Average Response Time (Without Metal) = 0.567ms

Average Response Time (With Metal) = 0.652ms

Average Response Time (Without Metal) = 0.747ms

Average Response Time (With Metal) = 0.753ms

Average Response Time (Without Metal) = 3ms

Average Response Time (With Metal) = NA

Experiment could not be completed. Please refer to Blooper section for the explanation

A few important Notes -

  1. The distance had to be reduced for BLE and NRF as the signal was not stable.
  2. The connection for BLE dropped frequently right after moving out of the room.
  3. There was no direct line of sight between the phone, ESP32 module, or the router. All the wooden doors were closed.

Experiment II: To determine the decrease in latency of signal using Local Blynk Server and Remote Blynk Server

Experimental Setup –

I also ran a small test to measure the ping for a remote Blynk server and a local Blynk server. I created the Blynk Server on a Windows Laptop.

Observations

Conclusions

Under the experimental assumptions and constraints, the experiments conclude that -

  1. The metal interference did not play a huge role in disrupting communication in the case of WIFI. The connection dropped more frequently in the case of Bluetooth.
  2. Reliability – WIFI > NRF > Bluetooth
  3. Speed of Communication – NRF > Bluetooth > WIFI
  4. Local Blynk Server is significantly faster than remote Blynk Server

Conclusions relevant for Design Decisions

  1. Regardless of which communication method we use, speed of communication is not an important factor in the engineering design decision
  2. Range and robustness are more important parameters.
  3. BLE will be an inappropriate choice of communication because of its low range and unstable communication
  4. Opens up the possibility of setting up individual local Blynk Server if required

Theoretical Research

Based on the theoretical research, some key observations are–

  1. Bluetooth has the smallest range in comparison to the rest of the modules.
  2. LoRa has the largest range in comparison to the rest of the modules.
  3. 2.4 GHz is generally used for communication for RC drones and planes. DJI Mavic drone uses both 2.4 GHz and 5GHz WIFI for communication.

Further Tests

Based on the current experimental results, I believe that the following tests will be useful to our understanding -

  1. Range – One of the limitations of my experimental setup especially in the case of WiFi was that I am using a powerful router that has good signal strength throughout my home. To be able to better answer the question regarding the reliability of WiFi, we need to perform a range test using WiFi, NRF with antenna, and LoRa with Antenna. Based on the theoretical results, my current hypothesis is Lora > NRF > WiFi.
  2. Protocol - ESP Now is a protocol developed by Espressif for low power 2.4 GHz communication. It eliminates the need for a router.
  3. Interference due to different Wi-Fi Networks – We need to determine the effect of interference through other networks in the region.
  4. Mesh Network (Optional) – It is important to determine the signal strength and latency of a mesh network using WiFi, NRF, and LoRa module. This experiment will help us answer some crucial questions when will move towards the autonomy of the blimps.

Blooper

While testing NRF Modules, one of the jumper cables connecting 3.3V from the esp32 board to the NRF module got unplugged. I am not exactly sure of the reason, but it ended up shorting my board and the NRF module. Therefore, my ESP32 module is either corrupted or fried. I am not able to flash any code to the board. I will try to debug the board by using esptool.py and dumping the memory.

References

  • https://www.digikey.com/product-detail/en/adafruit-industries-llc/3591/1528-2514-ND/8119805

  • https://www.amazon.com/SongHe-NRF24L01-Wireless-Transceiver-arduino/dp/B082VLTTTX/ref=sr_1_4?dchild=1&keywords=%E2%80%A2+nrf24l01+module&qid=1599058366&sr=8-4

  • https://www.amazon.com/RYLR896-Module-SX1276-Antenna-Command/dp/B07NB3BK5H/ref=sr_1_3?dchild=1&keywords=LoRa+Module&qid=1599058389&sr=8-3

Next Post Previous Post