Networking and Communications | Week 14

Group Assignment

Objectives of the Group Assignment:


  • Send a message between two projects

  • For the purpose of this group assignment, we established communication between two of our project boards having ESP32-Wroom microcontroller and were able to send messages between the boards as shown below.













  • Group Assignment Link

  • Individual Assignment

    This Week Task

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

  • Networking


  • It is the linking of various devices via multiple channels for data or media transmission. These data are transmitted by cable, wires, or fiber optic cables, as well as wireless media such as Wi-Fi.

  • Communication


  • Communication refers to the transfer of information or commands from one board to another. The types of communication are as follows.

  • Parallel Communication


  • Parallel interfaces allow several bits to be transferred at the same time. They frequently necessitate data buses, which transfer data over eight, sixteen, or more wires. The data is sent in massive, crashing waves of 1s and 0s. It sends out numerous bits of info at once. They necessitate data buses that transmit across eight, sixteen, or more wires.

  • Serial Communication


  • Serial interfaces send data one bit at a time across a wire. These interfaces can work with as few as one wire, but rarely more than four. However, this kind of communication is slower than Parallel, but it is more reliable.

  • Synchronous serial interface


  • The sender and receiver share the same clock in synchronous serial interface. This results in a more straightforward and typically faster serial transfer, but it also necessitates the use of at least one additional cable between the communication devices. SPI and I2C, for example.

  • Asynchronous serial interface


  • Data is sent asynchronously, without the use of an external clock signal. This type of transmission is ideal for reducing the number of cables and I/O pins required. The Rx and TX pins on MCUs are used to implement this strategy. This mode connects devices such as GSM, GPS, and Xbee.

  • Photo Reference Link


  • Bluetooth- wireless Serial Bus Communication


    Introduction

  • It is used for many applications like wireless headset, game controllers, wireless mouse, wireless keyboard and many more consumer applications.
  • It has range up to 100m which depends upon transmitter and receiver, atmosphere, geographic & urban conditions.
  • It is IEEE 802.15.1 standardized protocol, through which one can build wireless Personal Area Network (PAN). It uses frequency-hopping spread spectrum (FHSS) radio technology to send data over air.
  • It uses serial communication to communicate with devices. It communicates with microcontroller using serial port (USART).

  • HC-05 Bluetooth Module


  • HC-05 is a Bluetooth module which is designed for wireless comunication. This module can be used in a master or slave configuration.

  • Photo Reference Link




  • Bluetooth serial modules allow all serial enabled devices to communicate with each other using Bluetooth.
  • It has 6 pins,

  • Key/EN:

  • It is used to bring Bluetooth module in AT commands mode. If Key/EN pin is set to high, this module will work in command mode. Otherwise by default it is in data mode. The default baud rate of HC-05 in command mode is 38400bps and 9600 in data mode.

  • HC-05 module has two modes,

  • Data mode

  • Exchange of data between devices.

  • Command mode:

  • It uses AT commands which are used to change setting of HC-05. To send these commands to module serial (USART) port is used.

  • VCC:


  • Connect 5 V or 3.3 V to this Pin.

  • GND


  • Ground Pin of module

  • TXD


  • Transmit Serial data (wirelessly received data by Bluetooth module transmitted out serially on TXD pin)

  • RXD


  • Receive data serially (received data will be transmitted wirelessly by Bluetooth module).

  • State:


  • It tells whether module is connected or not.

  • HC-05 module Information


  • HC-05 has red LED which indicates connection status, whether the Bluetooth is connected or not. Before connecting to HC-05 module this red LED blinks continuously in a periodic manner. When it gets connected to any other Bluetooth device, its blinking slows down to two seconds.
  • This module works on 3.3 V. We can connect 5V supply voltage as well since the module has on board 5 to 3.3 V regulator.
  • As HC-05 Bluetooth module has 3.3 V level for RX/TX and microcontroller can detect 3.3 V level, so, no need to shift transmit level of HC-05 module. But we need to shift the transmit voltage level from microcontroller to RX of HC-05 module.

  • Reference Link.
  • Eagle

  • I made my board in Eagle



  • Board is Done



  • Board description


  • I used attiny44 Ic inside my board
  • 1 LED used
  • RX Tx Pin Header
  • limit switch Header

  • Error


  • My Board Is not working.
  • Because the code inside attiny44 is uploaded and Bluetooth is also connector but when I send it an on-off signal it cannot turn on the LED.
  • I tried to used documentation of Jay Dhariwal Week 14
  • PinOut

  • GND - GND
  • VCC - VCC
  • RXD - TXD
  • TXD - RXD





  • App Use


  • App Name: Arduino BlueControl



  • Code


    Use attiny1614


  • Then when it didn't happen on Attiny 44, I used attiny1614 IC.

  • What is the attiny1614.


  • The ATtiny1614 is a 14-pin microcontroller with an 8-bit AVR® processor with a hardware multiplier that runs at up to 20 MHz and has 16 KB Flash, 2 KB SRAM, and 128B of EEPROM.

  • Datasheet Link.

  • Why did I use this IC?


  • I chose the 1614 IC because I saw its flash memory, EEPROM view, SRAM, and low-power internal RC oscillator, all of this.

  • And I used the Attiny44, but my Bluetooth didn't work in it, so I used Attiny 1614 and worked my Bluetooth in it.

  • Photo Reference Link.




  • Use Output Board.





  • My board To Bluetooth Pinout:


  • GND----GND
  • VCC----VCC
  • RX-----TX
  • TX-----RX

  • My LED pin is 10 number Pin.



  • Final Output Video:


  • My Bluetooth works in attiny1614.


  • This is my output week board that I am using this week Link.


  • Bluetooth to Bluetooth communication

  • I installed one Bluetooth Attiny1614 inside and another Bluetooth Attiny3216 board.

  • And then I created a Bluetooth master and another Bluetooth slave.

  • Bluetooth HC05- How to pair two modules Tutorial Link

  • Final Video

  • The boards that are visible inside this video are the boards of input week and output week. I have given their link below.


  • Input Week Link

  • Output Week Link



  • Transmitter and Receiver code.



  • Attiny1614 Board Code.



  • Attiny3216 Board Code.



  • Original File All

  • Led_bluetooth
  • Receive Code
  • Transmitter Code
  • Attiny1614 .sch file
  • Attiny1614 .brd File
  • Attiny3216 .sch fileS
  • Attiny3216 .brd file
  • Attiny44 .brd File
  • Attiny44 .sch File
  • Safety Switch by Parejiya Jaydeep is licensed under CC BY-ND 4.0