



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Pre-Lab: Serial Communication:
In Lab: Task 1:
#include <avr/io.h> // Most basic include files #include <avr/interrupt.h> // Add the necessary ones #include <util/delay.h> #include <string.h> #define F_CPU 16000000UL // a System clock of 16 MHz // ************** Definistion for USART ********************** #define BAUD 9600.00 // Baud Rate Declared as a float #define UBRR_VAL ( F_CPU /(16*BAUD))-1 // Corresponding UBRR Value //
void USART_Init(unsigned int ubrr); // function to Initialize the USART void USART_Transmit(unsigned char data); // Transmit Data via USART unsigned char USART_Receive(void); // Receive Data via USART void USART_send_str(char * string1); // Transmit a string void USART_read_str(char * ); // Read the USART buffer // ***********************************************************
ch = USART_Receive(); unsigned char i; str[i] = ch; } while(ch != '\0'); } Proteus Simulation: Task 2: Interfacing HC-05 Bluetooth device and Communicating with an Android Device
Interfacing HC-05 with Arduino Nano
Critical Analysis / Conclusion: