Networking and Communications

Goal

Design, build, and connect wired or wireless node(s) with network or bus addresses

Group:

This week my group established communication through our phones bluetooth to the ESP32, and also from the Arduino to the ESP32 usng UART protocol.

  • Group Documentation: Networking and Communications
  • Code for Arduino

    For the arduino code, I simply wanted to arduino to submit a 1 or a 2 with some time in between. Therfore I created a loop of print 1, delay 3000 milliseconds, print 2, delay 3000 milliseconds.

    Arduino Code

    Code for ESP32

    For the ESP32, I coded to include the library and make sure that the ESP32 was recieving information from the arduino thorugh the TX and RX pins. Then I made an If/Then Statement to instruct the ESP32 to turn the LED on when it reads 1, and off for 2 and any other condition.

    ESP32 Code

    Connecting the Cicuit

    Making this circuit was relatively simple. From the Arduino to the ESP32, I had to connect the GND to GND, TX to RX, RX to TX, per UART protocol. I then connected an LED to pin 2.

    Hero Shot

    Design Links