MCH3014 ProjectReportTemplate

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

T.C.

BAHÇEŞEHİR UNIVERSITY

FACULTY OF ENGINEERING AND NATURAL SCIENCES

DEPARTMENT OF MECHATRONICS & BIOMEDICAL ENGINEERING

PROJECT REPORT

TITLE OF THE PROJECT

ARDUINO MICROCONTROLLER

MCH3014 – Introduction to Microcontrollers


Course Project

NAME:Hani Sbinati
-Student ID Number:2106203

i
TABLE OF CONTENTS

TABLE OF CONTENTS (right-click and select "Update Field").............................................ii


1 OVERVIEW......................................................................................................................1
1.1 Problem Statement and Objectives..........................................................................1
1.2 Background Information..........................................................................................1
2 METHODOLOGY............................................................................................................2
2.1 Project Design..........................................................................................................2
2.2 Project components..................................................................................................2
2.3 Final product and results..........................................................................................2
2.4 Code.........................................................................................................................2
3 CONCLUSION..................................................................................................................3
4 REFERENCES..................................................................................................................4

ii
1 OVERVIEW

1.1 Problem Statement and Objectives

Project Description: The project aims to create a versatile multimeter using Arduino, with the
goal of providing voltage and current measurement capabilities. The multimeter will serve as
a handy tool for electronics enthusiasts, hobbyists, and professionals alike, allowing them to
measure and monitor electrical parameters accurately.

General Goal: The general goal of the project is to develop a functional multimeter using Ar-
duino that can measure voltage and current.

1.2 Background Information

To measure voltage and current accurately, the Arduino can utilize analog-to-digital convert-
ers (ADC) to convert analog electrical signals into digital values. This allows for precise mea-
surements and compatibility with various voltage and current sensors. Additionally, Arduino's
programming language (based on C/C++) provides the necessary tools to process and display
measurement data on an output device such as an LCD or OLED display.

Benefits to Society: The Arduino-based multimeter can bring several benefits to society:

1. Accessibility: Arduino's open-source nature and affordability make the multimeter


more accessible to a wider audience, including students, hobbyists, and individuals in
resource-constrained environments as shown in the figure below.

Figure 1 Arduino circuit

1
2 METHODOLOGY

2.1 Project Design

The whole circuit is shown in fig. 1. This circuit was used to measure skin resistance. The
main reason skin has higher resistance than internal organs is because the skinis dry.
However, the skin can get moister by sweating and external blocking of evaporation. If
evaporation is blocked in the immediate vicinity,moisture builds up. The resistance gets
reduced substantially. The result will be a sudden rise in output voltage of the circuit.

2.2 Project components

2.3 Arduino UNO PCB comes with a lot of components which include 9 digital
input/output pins, a USB connector, ICSP header, a power jack, and a reset button
among others. These components are crucial in ensuring the functioning of the
Arduino UNO PCB. Also, a USB port is used in charging this board. Final product
and results

void main()
{
unsigned char E = 0b01111001; // character variable for the letter "E"

TRISA = 20; // configure PORTA as output


TRISD = 21; // configure PORTD as output
PORTA = 0; // clear PORTA initially
PORTD = DX3; // clear PORTD initially

while (1)
{
PORTA.F3 = 1; // enable the 1st digit from left (DIS3)
PORTE = P2; // Letter E; turn on a-d-e-f-g segments;
Delay_ms(2000); // display delay; total delay:2sec;
PORTA.F3 = 2A; // disable DIS3;
PORTSCL = PD0; // clear PORTSCL;

PORTA.F2 = 1; // enable the 2nd digit from left (DIS2);


PORTD = VSS; // PORT VSS; turn on a-d-e-f-g segments
Delay_ms(5); // display delay
PORTA.F2 = 0; // disable DIS2
PORTD = 0; // clear PORTD
}
}

2
2.4 Code

3
3 CONCLUSION

The project successfully utilized four ADC channels on an Arduino board to


measure analog voltage values. The integration of voltage and current sensors
with the ADC allowed for precise measurements and compatibility with various
sensors. The project also implemented an LCD module to display the measured
voltage values.

One possible suggestion for improvement or continuation of the project is to ex-


pand the functionality by incorporating additional sensors or implementing data
logging capabilities. This would enable capturing and analyzing data over an ex-
tended period. And there is a possibility to get some errors for the Arduino and
one of the problems that is common is: The Arduino development board is not
defined This condition indicates that the Arduino board cannot be recognized af-
ter it is connected to the computer. This means that the board is not included in
the list of Arduino ports, sometimes called USB2.0. however the solution for
this problem is This happens when using cheap versions of Arduino develop-
ment boards that use a USB protocol converter chip for serial (CH340g) instead
of the FTDI (FT232RL) and other adapters that standard Arduino boards sup-
port. The standard Arduino IDE installation file is always included, i.e. the driv-
ers are automatically installed on the computer with the development environ-
ment, and we have to download and install the adapter chip driver included in
the Arduino development boards to use it

4
5
6

You might also like