You are on page 1of 22

EMBEDDED SYSTEMS:

An embedded systems is a controller with a dedicated function within a larger mechanical or


electrical system, often with real-time computing constraints. It is embedded as part of a
complete device often including hardware and mechanical parts. Embedded systems control
many devices in common use today. Ninety-eight percent of all microprocessors manufactured
are used in embedded systems.
Modern embedded systems are often based on microcontrollers (i.e. microprocessors with
integrated memory and peripheral interfaces), but ordinary microprocessors (using external chips
for memory and peripheral interface circuits) are also common, especially in more complex
systems. In either case, the processor(s) used may be types ranging from general purpose to
those specialized in certain class of computations, or even custom designed for the application at
hand. A common standard class of dedicated processors is the digital signal processor (DSP).
Since the embedded system is dedicated to specific tasks, design engineers can optimize it to
reduce the size and cost of the product and increase the reliability and performance. Some
embedded systems are mass-produced, benefiting from economies of scale.
Embedded systems range from portable devices such as digital watches and MP3 players, to
large stationary installations like traffic light controllers, programmable logic controllers, and large
complex systems like hybrid vehicles, medical imaging systems, and avionics. Complexity varies
from low, with a single microcontroller chip, to very high with multiple units, peripherals and
networks mounted inside a large equipment rack.

INTERNET OF THINGS(IOT):
The Internet of Things (IoT) is a system of interrelated computing devices, mechanical and
digital machines, objects, animals or people that are provided with unique identifiers (UIDs) and
the ability to transfer data over a network without requiring human-to-human or human-to-
computer interaction.
The definition of the Internet of Things has evolved due to the convergence of multiple
technologies, real-time analytics, machine learning, commodity sensors, and embedded
systems. Traditional fields of embedded systems, wireless sensor networks, control systems,
[1]

automation (including home and building automation), and others all contribute to enabling the
Internet of Things. In the consumer market, IoT technology is most synonymous with products
pertaining to the concept of the "smart home", covering devices and appliances (such as lighting
fixtures, thermostats, home security systems and cameras, and other home appliances) that
support one or more common ecosystems, and can be controlled via devices associated with
that ecosystem, such as smartphones and smart speakers.
TASK 1

void setup() {

pinMode(3,OUTPUT);

// put your setup code here, to run once:

void loop() {

digitalWrite(3,1);

delay(1000);

digitalWrite(3,0);

delay(1000);

// put your main code here, to run repeatedly:

DESIGN

TASK 2
void setup() {

pinMode(5,OUTPUT);
// put your setup code here, to run once:

void loop() {

digitalWrite(5,0);

delay(300);

digitalWrite(5,1);

delay(300);

// put your main code here, to run repeatedly:

DESIGN

TASK 3
void setup() {

pinMode(2,OUTPUT);

pinMode(3,OUTPUT);

// put your setup code here, to run once:

}
void loop() {

digitalWrite(2,0);

delay(300);

digitalWrite(3,1);

delay(300);

digitalWrite(2,1);

delay(300);

digitalWrite(3,0);

delay(300);

// put your main code here, to run repeatedly:

DESIGN

TASK 4
void setup() {
pinMode(0,OUTPUT);
pinMode(1,OUTPUT);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
//put your setup code here, to run once:
}
void loop() {
digitalWrite(0,1);
delay(500);
digitalWrite(1,1);
delay(500);
digitalWrite(2,1);
delay(500);
digitalWrite(3,1);
delay(500);
digitalWrite(4,1);
delay(500);
digitalWrite(5,1);
delay(500);
digitalWrite(6,1);
delay(500);
digitalWrite(7,1);
delay(1000);
digitalWrite(7,0);
delay(500);
digitalWrite(6,0);
delay(500);
digitalWrite(5,0);
delay(500);
digitalWrite(4,0);
delay(500);
digitalWrite(3,0);
delay(500);
digitalWrite(2,0);
delay(500);
digitalWrite(1,0);
delay(500);
digitalWrite(0,0);
delay(1000);
// put your main code here, to run repeatedly:
}

DESIGN

TASK 5
void setup() {

pinMode(0,OUTPUT);

pinMode(1,OUTPUT);

pinMode(2,OUTPUT);
pinMode(3,OUTPUT);

pinMode(4,OUTPUT);

pinMode(5,OUTPUT);

pinMode(6,OUTPUT);

// put your setup code here, to run once:

void loop() {

digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,1);

digitalWrite(5,1);

digitalWrite(6,0);

delay(1000);

digitalWrite(0,0);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,0);

digitalWrite(4,0);

digitalWrite(5,0);

digitalWrite(6,0);

delay(1000);

digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,0);

digitalWrite(3,1);

digitalWrite(4,1);

digitalWrite(5,0);

digitalWrite(6,1);

delay(1000);
digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,0);

digitalWrite(5,0);

digitalWrite(6,1);

delay(1000);

digitalWrite(0,0);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,0);

digitalWrite(4,0);

digitalWrite(5,1);

digitalWrite(6,1);

delay(1000);

digitalWrite(0,1);

digitalWrite(1,0);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,0);

digitalWrite(5,1);

digitalWrite(6,1);

delay(1000);

digitalWrite(0,1);

digitalWrite(1,0);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,1);

digitalWrite(5,1);

digitalWrite(6,1);
delay(1000);

digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,0);

digitalWrite(4,0);

digitalWrite(5,0);

digitalWrite(6,1);

delay(1000);

digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,1);

digitalWrite(5,1);

digitalWrite(6,1);

delay(1000);

digitalWrite(0,1);

digitalWrite(1,1);

digitalWrite(2,1);

digitalWrite(3,1);

digitalWrite(4,0);

digitalWrite(5,1);

digitalWrite(6,1);

delay(1000);

// put your main code here, to run repeatedly: digitalWrite(0,1);

DESIGN
TASK 6
void setup() {

// put your setup code here, to run once:

pinMode(0,OUTPUT);

pinMode(1,OUTPUT);

pinMode(2,OUTPUT);

pinMode(3,OUTPUT);

pinMode(4,OUTPUT);

pinMode(5,OUTPUT);

pinMode(6,OUTPUT);

void loop() {

PORTD=0x3f;

delay(1000); // put your main code here, to run repeatedly:

PORTD=0x06;

delay(1000);

PORTD=0x5B;
delay(1000);

PORTD=0x4F;

delay(1000);

PORTD=0x66;

delay(1000);

PORTD=0x6D;

delay(1000);

PORTD=0x7D;

delay(1000);

PORTD=0x27;

delay(1000);

PORTD=0x7F;

delay(1000);

PORTD=0x6F;

delay(1000);

DESIGN

DAY 2
TASK 1
void setup() {

// put your setup code here, to run once:

pinMode(8,OUTPUT);

pinMode(9,OUTPUT);

pinMode(10,OUTPUT);

pinMode(11,OUTPUT);

pinMode(12,OUTPUT);

pinMode(13,OUTPUT);

pinMode(A0,OUTPUT);

void loop() {

// put your main code here, to run repeatedly:

PORTB=0X3F;

PORTC=0X00;

delay(1000);

PORTB=0X06;

PORTC=0X00;

delay(1000);

PORTB=0X1B;

PORTC=0X01;

delay(1000);

PORTB=0X0F;

PORTC=0X01;

delay(1000);

PORTB=0X26;

PORTC=0X01;

delay(1000);

PORTB=0X2D;

PORTC=0X01;
delay(1000);

PORTB=0X3D;

PORTC=0X01;

delay(1000);

PORTB=0x27;

PORTC=0X00;

delay(1000);

PORTB=0X3F;

PORTC=0X01;

delay(1000);

PORTB=0X2F;

PORTC=0X01;

delay(1000);

DESIGN

TASK 2
char a[10]={0x3F,0x5B,0x4F,0x66,0x6D,0x7D,0x27,0x7F,0x6F};

void setup()

for(int i=0;i<=13;i++)

pinMode(i,OUTPUT);

pinMode(A0,OUTPUT);

// put your setup code here, to run once:

void loop() {

// put your main code here, to run repeatedly:

for(int i=0;i<=9;i++)

PORTD=a[i];

PORTB=0x3F;

PORTC=0x00;

delay(1000);

DESIGN
TASK 3
char a[10]={0x3F,0x5B,0x4F,0x66,0x6D,0x7D,0x27,0x7F,0x6F};

void setup()

for(int i=0;i<=13;i++)

pinMode(i,OUTPUT);

pinMode(A0,OUTPUT);

// put your setup code here, to run once:

void loop() {

for(int i=0;i<=9;i++)

PORTD=a[i];

PORTB=0x3F;
PORTC=0x00;

delay(1000);

PORTB=0x06;

PORTC=0x00;

delay(1000);

PORTB=0x1B;

PORTC=0x01;

delay(1000);

PORTB=0x0F;

PORTC=0x01;

delay(1000);

PORTB=0x26;

PORTC=0x01;

delay(1000);

PORTB=0x2D;

PORTC=0x01;

delay(1000);

PORTB=0x3D;

PORTC=0x01;

delay(1000);

PORTB=0x27;

PORTC=0x00;

delay(1000);

PORTB=0x3F;

PORTC=0x01;

delay(1000);

PORTB=0x2F;

PORTC=0x01;

delay(1000);

}
// put your main code here, to run repeatedly:

DESIGN

TASK 4
void setup() {
pinMode(5,INPUT);
pinMode(4,OUTPUT);
// put your setup code here, to run once:
}
void loop() {
int i;
i=digitalRead(5);
if (i==1)
{
digitalWrite(4,1);
}
// put your main code here, to run repeatedly:
else
{
digitalWrite(4,0);
}
}

DESIGN

Task 5
void setup() {

pinMode(2,OUTPUT);

pinMode(4,OUTPUT);

pinMode(3,INPUT);

pinMode(5,INPUT);

// put your setup code here, to run once:

void loop() {

int i,j;
i=digitalRead(5);

j=digitalRead(3);

if (i==1)

digitalWrite(2,1);

// put your main code here, to run repeatedly:

else

digitalWrite(2,0);

if(j==1)

digitalWrite(4,1);

else

digitalWrite(4,0);

Design
Task 6
void setup() {

// put your setup code here, to run once:

pinMode(2,OUTPUT);

pinMode(3,INPUT);

pinMode(4,INPUT);

void loop() {

// put your main code here, to run repeatedly:

int i,j;

i=digitalRead(4);

j=digitalRead(3);

if (i==1&&j==1)

{ digitalWrite(2,1);

else

digitalWrite(2,0);
}

Design

Conclusion:
In this 3 days in UNIQ Technologies we performed many task like
TRAFFIC SIGNALS,AUTOMATIC ON AND OFF STREET
LIGHT,SMART HOME AUTOMATION and we got output successfully.

You might also like