intermediate project - embedded robotics final report ...witold/ip/2018_reports/tomaszdlubis.pdf ·...

8
Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent desk Autor: Tomasz Dlubis * , Class: Intermediate Project Instructor: Mr Witold Paluszyński , Ph.D. January 23, 2018 This work is licensed under a Creative Commons “Attribution- NonCommercial-NoDerivs 3.0 Unported” license. Abstract This report shows results of building and programming lighting part of system for an intelligent desk. Lighting in workspace, both for precise work as well as rest, are specified in standard ISO PN-EN 12464-1:2012(E). Described controller is following this standard and is mounted on a desk in constructor’s dormitory. The lighting is automatically switched on/off. * Wydzial Elektroniki, Politechnika Wroclawska, ul. Z. Janiszewskiego 11/17, 50-372 Wroclaw Wydzial Elektroniki, Politechnika Wroclawska, ul. Z. Janiszewskiego 11/17, 50-372 Wroclaw

Upload: others

Post on 24-Jul-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

Intermediate Project - Embedded RoboticsFinal Report

Embedded system for an intelligent desk

Autor: Tomasz Dłubis ∗,Class: Intermediate Project

Instructor: Mr Witold Paluszyński†, Ph.D.

January 23, 2018

This work is licensed under a Creative Commons “Attribution-NonCommercial-NoDerivs 3.0 Unported” license.

Abstract

This report shows results of building and programming lighting part of system for an intelligentdesk. Lighting in workspace, both for precise work as well as rest, are specified in standard ISOPN-EN 12464-1:2012(E). Described controller is following this standard and is mounted on a deskin constructor’s dormitory. The lighting is automatically switched on/off.

∗Wydział Elektroniki, Politechnika Wrocławska, ul. Z. Janiszewskiego 11/17, 50-372 Wrocław†Wydział Elektroniki, Politechnika Wrocławska, ul. Z. Janiszewskiego 11/17, 50-372 Wrocław

Page 2: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

1 IntroductionThe aim of the project was to crate embedded system which controls light both above desk and in

the whole room. It should be integrated with another system which should be responsible to control acooler for laptop based on a Peltire cell. Systems were constructed on the desk in author’s dormitory.

2 Description of the projectThe lighting system fulfills following criteria:

• Light intensity above the desk can be approximately equal:

– 200 lx - for normal normal use (non-working mode),

– 500 lx - for normal work (work mode),

– 1000 lx - for precision work like soldering (soldering mode)? .

• light intensity in a room should be approximately equal 200 lx all day (except at night when allresidents are sleeping)? ,

• covering one of the light sensors does not change lighting,

• light changes are logarithmic (visible change is linear),

• lighting switches to working mode when increased activity is detected,

• after 10 min of inactivity at the desk, desk lighting is switched off,

• control of light intensity over the desk is possible to switch off/on,

• actual light intensity measurements are displayed on LCD-display,

• user is able to change mode of lighting,

• system is deactivates non-working mode when computer is connected via USB.

2.1 Description of used hardware

Powering

The execution system is powered by ATX power supply and controll system is powered by USBdocking station.

Controller

Controler uses MKL26Z128VLH4? microcontroller (Cortex-M0+) which is installed on developmentboard FRDM-KL26Z? .

Sensors

Project consists four light sensors. First one is analog sensor ALS-PT19-315C. The rest of them areBH1750? . Two of these are mounted on the desk and the last one with analog sensor is mounted instrategically designated place in the room (see figure 1).

Actuator

One meter of white LED tape and one bulb was used as actuator. Control of light in a room issimulated because system is installed in dormitory where electrical installation cannot be changed.

1

Page 3: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

(a) Over the desk

(b) In the room

Figure 1: Places where light sensors are installed

2

Page 4: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

Executive system

To execute control of the system was designed and created PCB shown on appendix A and B. Thesystem is designed to be resistant to interference actuator? ?

3 ResultsMain goal of the project was accomplished. The embedded system to control lighting on the desk

and in the room was created. The USB connection works only when system is connected directly to thecomputer. When system is connected via docking station used algorithm does not work. It is detectingconstant connection to docking station. There is a need, however, to write a specialized driver in orderto detect a computer connected to the docking station.

3

Page 5: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

Spic

eOrd

er 1

Spic

eOrd

er 2

SpiceOrder 1SpiceOrder 2

ZasilaniaPrzetworniceFiltracja napięcia wejściowego

Zasilanie 5V

Zworki

Zasilanie 3.3V

+5V

GND

100n

2k2

47u

+12

V

+12

V

GND

47u 100n

GND GND

47u100n

GND

2k2

5k

LM317T 2k2

47u

47u100n

+5V

+3V

3

CG

RM

4007

-GCGRM4007-G

47u100n

C3 R13

LED

1

C4

JP1

123

C5 C6

Z1

C7C8

LED

2

R14

13

2

R15

IC1ADJ

IN OUT

R16

C9

C10C11

D1

D2

C12C13

Z4

JP14

P$1P$2

Układyzasilania

Tomasz DłubisIntermediate Project

Sheet:

A

B

C

D

E

F

1 2 3 4

A

B

C

D

E

F

1 2 3 4

1/3

+

+

+

+

+

+

A Electronic diagram of executive system

4

Page 6: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

Wentylatory

Ogniwo Peltiera

LED Układy wykonawcze

Sterowanie Żarówkami

100k

1k5 IRLML6344

GND

IRLML5203

3k9

+12

V

100k

1k5 IRLML6344

GND

IRFU5305

3k9100k

1k5 IRLML6344

GND

IRLML5203

3k9

+12

V

MOC3041T

2k2

100k

1k5 IRLML6344

GND

360

330

BT138-V

VCC

100n

Żarówka pokój

MOC3041T

2k2

100k

1k5 IRLML6344

GND

360

340

BT138-V

VCC

100n

Żarówka Biurko

+3V

3

+3V

3

Ziemia i Zero

Wyjścia zer Żarówek

PE

+12

V

100n

R17

R18

Q3

1

23

Q4

R19

JP412

R20

R21

Q5

1

23

Q6

R22

JP512

R23

R24

Q7

1

23

Q8

R25

OK31

2 4

6

R26

R27

R28

Q9

1

23

R29

R30

R31T3

C14

X4-1

X4-2

OK41

2 4

6

R32

R33

R34

Q10

1

23

R35

R36

R37T4

C15

X5-1

X5-2

X1-1

X1-2

X6-1

X6-2

JP1012

C1C2

JP1312

STER_WENT/3.1C

STER_PELTIER/3.1C

STER_LED/3.1C

STER_BIURKO_ZAR/3.1C

STER_POKOJ_ZAR/3.1C

Układywykonawcze

Tomasz DłubisIntermediate Project

Sheet:

A

B

C

D

E

F

1 2 3 4

A

B

C

D

E

F

1 2 3 4

2/3

+

5

Page 7: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

LCD BH1750_Biurko Temperatura_Peltierciepła strona

Temperatura_Peltierzimna strona

Wejście sterownika Wyjście przyciski

BH1750 pokój

Wejście czujnika ruchu

5k

100k

1k5 IRLML6344

GND

+3V

3

+5V

+3V

3

GND

100k

+3V

3

GND

GND+

3V3

GND

+3V

3

GND

GND

3k9

3k9

3k9

+3V

3

3k9

GND

+5V

13

2R1

R2

R3

Q1

1

23

JP7123456789

101112

JP812345R4

JP91234

JP121 23 45 67 89 10

11 1213 1415 1617 1819 2021 22

JP31234

JP61234

JP212345

R5

R6

R7

R8

JP11123

LCD_WŁ/WYŁ

LCD_WŁ/WYŁ

LCD_E

LCD_E

LCD_

LCD_

LCD_D1

LCD_D1

LCD_D2

LCD_D2

LCD_D3

LCD_D3

LCD_D4

LCD_D4

I2C1_SDA

I2C1_SDA

I2C1_CLK

I2C1_CLK

I2C0_SDA

I2C0_SDA

I2C0_SDA

I2C0_SDA

I2C0_CLK

I2C0_CLK

I2C0_CLK

I2C0_CLK

STER_POKOJ_ZAR/2.1CSTER_PELTIER/2.3E

PRZYC_2

PRZYC_2

PRZYC_1

PRZYC_1

PRZYC_3

PRZYC_3

PRZYC_4

PRZYC_4PIR

PIR

STER_BIURKO_ZAR/2.1B

STER_LED/2.1DSTER_WENT/2.1F

Wyjścia/WejściaTomasz DłubisIntermediate Project

Sheet:

A

B

C

D

E

F

1 2 3 4

A

B

C

D

E

F

1 2 3 4

3/3

6

Page 8: Intermediate Project - Embedded Robotics Final Report ...witold/ip/2018_reports/TomaszDlubis.pdf · Intermediate Project - Embedded Robotics Final Report Embedded system for an intelligent

LM317T

MOC3041T

MOC3041T

BT138-V

BT138-V

OI A

71.1

2

92.08

12

12

1 2 1 2

47u

100n

47u

100n

100n

100n

100n

47u

47u

100n

47u

100n

47u

CGRM4007-G

CGRM

4007

-G

IRLML6344

IRLM

L634

4

IRLML6344

IRLML5203

IRLML6344IRFU5305 IRLML6344

IRLML5203

IRLM

L634

4

5k

2k2

2k2

5k2k2

100k

1k5

3k9100k 10

0k

1k5

3k9

100k

1k5

3k9

2k2100k

1k5

360

1k5

330

2k2

100k

1k5

360 34

0

100k

Żaró

wka

pok

ójŻa

rów

ka B

iurk

o

3k93k9

3k9

3k9

Ziemia i ZeroWyjścia zer Żarówek

100n

B PCB layout of executive system

7