arrow-left-lightarrow-leftarrow-right-lightarrow-rightarrow-thin-left arrow-thin-right browser-search cup heart indicator laptop layers layout-4boxes layout-sideleft mail-heart mail map-pin mixer mouse nav paintbucket pencil-ruler phone picture play video

Networking and communications

  • Week 12

Overview

    We are asked to design and build a wired &/or wireless network connecting at least two processors. I used an ESP8266 from Adafruit and decided to make a simple board with an LED that would turn on when sending a value.

Board

    I designed my board with headers to connect the ESP8266. I was a simple attiny44 board with 2 more considerations:
  1. We need to connect the TX pin from the ESP8266 to the RX pin of the Attiny44 in order to send the information we receive via wifi to the microcontroller.
  2. We also have to connect the TX and RX pins from the ESP8266 to the FTDI connecting to the computer in order to be able to program the ESP8266 and get values from it to debug.
  3. Single large image
    Single large image

Components

  1. Attiny44 Microcontroller
  2. ESP8266 Wifi Module Adafruit
  3. LED
  4. 1k Resistor
  5. 10k Pull-up Resistor
  6. 1uF Capacitor
  7. Resonator
  8. Header 2x3 SMD
  9. FTDI Header x 2 [One for Usb serial and one for Wifi module]
  10. .

Programming

    I used the hello.ftdi.44.echo.c to test the circuit and just have a simple led light blinking. Next, I followed these instructions to install the ESP8266. I used this tuorial to setup an ESP8266 Web Server with Arduino IDE.
    I wrote code for the wifi module to send an 'r' everytime we press the button on the website. You may see the code here

Sending over information

    Open a browser and type the IP address followed by the arguments of the script, and press buttons on the website to light the LED.

Single large image