Week 15

Networking and Communication

Assignment

Design and build a wired &/or wireless network connecting at least two processors

I decided to use two Arduino boards for the Networking project. I laso used breadboard, press button, LED - Green and a resistor

    Tutorial
    Lecture

Connecting two or more devices either wired or wirelessis an awesome way to help you create communications between them, It has been used and at advance level to control amazingly and cool projects for example A web controlled coffee maker IoT gas leakage meter, Smart Most connections of late are connected through internet.

Connecting the Microcontroller to the Internet can be achieved through the following ways Wifi---Esp 8266 , Adafruit cc3000 wifi module, Arduino Wifi shield, Broadcom Wifi shield In more advanced boards like Raspberry pi, Beagle bone black –A wifi dongle (Usb wifi dongle is used) For Intel Galileo ,A wifi Card that is PCI compatible is used ie the Centruino Wireless cards Other boards like Intel Edison, LinkIt One, Arduino Yun, ESP thing (Sparkfun) have built in Wifi Ethernet—This is also another way to connect the microcontrollers to the internet,It uses a normal Ethernet/Lan cable which you are familiar with .This is pluged into your router/Whereever you get your internet. GSM- The Arduino and other Microcontrollers also uses gprs to connect to the internet. This will require a GSM/GPRS shield with a sim card which had data …..

ESP WI-FI MODULE

Requirements

    1 Esp. 8266 Wi-Fi module
    FTDI cable/Usb to serial cable
    Arduino Mega/Uno
    Two leds red and blue(any colour)
    LM1117 5v-3.3V regulator
    1breadboard ,2 buttons ,2x 10k resistors

Esp8266 Wi-Fi communicates to the Arduino via UART Software FTDI drivers downloaded from FTDI Drivers Putty downloaded from Download Arduino Software

       
const int buttonPin = 2;    
const int ledPin =  8;     


int buttonState = 0;        

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
}


void loop() {
  
  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH) 
  {
    
    digitalWrite(ledPin, HIGH);
  }
  else {
       
    digitalWrite(ledPin, LOW);
  }
}
       

References

    Scargil
    Electrodragon
    Electrodragon
    Hackaday
    tminusarduino
    rancidbacon
    Zeflo
    Openhome Automation

Important :

ESP and NodeRed