Task

  1. Individual Assignment:Design, build, and connect wired or wireless node(s) with network or bus addresses
  2. Group Assignment:send a message between two projects

Indivisual Assignment

This week is one of my favourite week in the 3rd year of engineering I studied the"Network and communication"so I am familiar with the concepts mentioned in this assignments,before starting the assignment I decided I will do simple bridge and node board of I2c module and will spend more time to revise the concept.So I am writing this assignment accordingly whatever concept I learned and how I did it practically.

What is networking

It is the interconnection of multiple devices, using multiple paths for the sending or receiving data or media.These data transfer through cable or wires or optic cables, or wireless media such as Wi-Fi.

Serial Communication

serial communication is the process of sending or receiving data in one bit at a time. It is like firing bullets from a machine gun to a target… that’s one bullet at a time

Serial Communication

Parallel Communication

Parallel communication is the process of sending/receiving multiple data bits at a time through parallel channels. It is like you are firing using a shotgun to a target – where multiple bullets are fired from the same gun at a time

Parallel communication

we prefer Serial communication over parallel due to its advantages.

Serial data can be transferred in two modes – asynchronous and synchronous.
Asynchronus Data transfer mode

Data Transfer is called Asynchronous when data bits are not “synchronized” with a clock line, i.e. there is no clock line at all,Asynchronous data transfer has a protocol, which is usually as follows:

The first bit is always the START bit (which means the start of communication on the serial line), followed by DATA bits (usually 8-bits), followed by a STOP bit (which means the end of data packet). There may be a Parity bit just before the STOP bit.Some examples of it are RS-232, RS-422, RS-485

  • RS-232:RS-232 is a standard communication protocol used for linking computer and its peripheral devices for serial data exchange. RS232 is a Full Duplex communications. There are separate transmit and receive signal lines that allow data to flow in both directions simultaneously
  • RS-422:RS422 used to transferred higher data rates over serial data lines than with RS232. RS422 is able to provide data rates of up to 10 Mbps at distances up to 50 feet (15.24 metres).RS-422 standard uses a four conductor cable.
  • RS-485:RS485 was developed to provide high speed data. It can be used effectively over long distances and in electrically noisy environments.
Synchronous Data Transfer

Synchronous data transfer is when the data bits are “synchronized” with a clock pulse.

I used I2c serial communication protocol for this week's assignment.

I2C – Inter-Integrated Circuit:It is a synchronous, multi-master, multi-slave, packet switched, single-ended, serial computer bus ,The transmission speeds can be as high as a 400KHz.The I2C bus has two wires – one for clock(SCK), and the other is the data line(SDA), it is bi-directional so called as Two Wire Interface (TWI).

I used the board given by Neil.and reroute it

After milling my board looks like

For nodes

After milling the bridge and node1 & 2 boards

Programming

Before start to burn the program in board one important thing is to download this twoTinywireM.zip & TinyWireS.zip libarary for arduino

Here inside of the code I define two different slave ID for detected by the micro-controller with specific ID they are communicate each other by a definite time delay. This is the code for master board controller

This is the code for slave I ID for define it,I place i2c node 1 as a slave 1 id.


This is the code for slave 2 ID for define it,I place i2c node 2 as a slave 2 id.

Now I saw a one thing that is when I connected each of board as three ribbon cable.i.e.sda,scl,vcc,GND pins are connected then are show the blinking the LED with definite delay of time. Each of the LED are blow with creating a theme. Check in the video in below:,

Group Assignment:

For group assignment I and Pooja Jadhav worked together.we had I2c master slave communication together for two arduinos.

Program for master

Program for slave

Summary

  • I learnt about communication between the network.
  • I understand the concept of serial port,programme memory.I2C module
  • I learn how master ,slave works together.

Files