Traning Report (1)

Embed Size (px)

Citation preview

  • 8/18/2019 Traning Report (1)

    1/45

    1 | P a g

    A

    TRAINING REPORT

    ON

    HUMIDITY & TEMPERATURE SENSOR 

    USING ARDUINO

    Submitted to the

    Department of Electronics and Communication Engineering

    In partial fulfilment of the reuirements

    !or the degree of 

    "achelor of Technolog#In 

    "ranch ECE

    Guided "#$

    MR.GAURAV KUMAR

    SCIENTIST%ENGINEER &SE'

    RRSC$(EST%NRSC%ISRO )*OD+P,R-

    DEPART.ENT O! ELECTRONIC & COMMUNICATION ENGINEERING

    *IET GRO,P O! INSTIT,TIONS

    )RA*AST+AN TEC+NICA/ ,NI0ERSIT1-

    2345$2346

  • 8/18/2019 Traning Report (1)

    2/45

    CANDIDATE’S DECLARATION

    (e hereb# declare that the 7or89 7hich is being presented thesis 7or89 entitled

    “HUMIDITY AND TEMPERATURE SENSOR USING ARDUINO ”in partial fulfilment

    for the a7ard of Degree of :"achelor of Technolog#; in Deptt< Of Electronc! "n#

    Co$$%nc"ton Enneern "n# !%'$tte# to t(e De)"rt$ent o* Electronics and

    Communication Engineering+ ,IET GROUP O- INSTITUTE Ra=asthan Technical

    ,ni>ersit# is a record of m# o7n 7or8 carried under the Guidance of Mr. G"%r" K%$"r

    Scientist%Engineer 7or8 in Regional Remote Sensing Centre)RRSC-9*odhpur<

    C"n##"te/! N"$e!

    4< /alit ?umar ?hushlani

    2< ?amlesh Gehlot

    @< ?amlesh ?umar  

    < Sunil Choudhar#

    5< .ahendra Patel

    6< ?runal Singh Solan8i

    B< *itendra Suthar  

    < Om De> Singh

    < Shra>enram Pra=apat

    ,IET GROUP O- INSTITUTE

    Co%nter Sne# '0

  • 8/18/2019 Traning Report (1)

    3/45

    De)"rt$ent o* Electronc! Enneern

    ,IET GROUP O- INSTITUTIONS

    CERTI-ICATE

    This is to certif# that thesis report entitled :HUMIDITY AND TEMPERATURE SENSOR 

    USING ARDUINO”  being submitted b# GROUP O- STUDENTS 123 of @rd

    #ear 

    )Electronics and Communication Engineering-9 under the guidance of Mr. G"%r" K%$"r.

    )Signature of Guide-

    Mr. G"%r" K%$"r

    Scientist%Engineer &SE'

    Regional Remote Sensing Centre )(est-

     NRSC%ISRO9 *OD+P,R 

    CARI Campus

    Department of Space )DOS-

    DATEF

    STA.PF

  • 8/18/2019 Traning Report (1)

    4/45

    ACKNO4LEDGEMENT

    The satisfaction that accompanies the successful completion of an# tas8 7ould be incomplete

    7ithout the mention of people 7ho made it possible9 7hose constant guidance and

    encouragement cro7n all efforts 7ith success< Thus9 the successful completion of this pro=ect

    is attributed to the great and indispensable help I ha>e recei>ed from different people<

    “It is not the brain that matter the most9 but that 7hich guide themF The character9 the heart9

    generous ualities and progressi>e force;

    I 7ould li8e to ta8e opportunit# to etend m# heartfelt gratitude to Dr. A T ,e0"!eel"n+

    Gener"l M"n"er+ RRSC54e!t+ ,o#()%r ISRO+ for support in carr#ing out the training<

    I 7ish to epress m# sincere regards and gratitude to m# guide S(r. G"%r" K%$"r+

    Scent!t6Enneer 7SE/ n ISRO ,o#()%r for his continuous guidance and encouragement9

    7hich has led to successful completion of this training<

    I o7e special debt of gratitude to respected Pro*.A!8"t(0 P%t(%9%l"$ for her constant

    support and guidance throughout the course of m# 7or8< +er sincerit#9 thoroughness and

     perse>erance ha>e been a constant source of inspiration for me< It is onl# her cogniHant

    efforts that mine endea>our ha>e seen light of the da#<

    C"n##"te/! N"$e!

    4< /alit ?umar ?hushlani

    2< ?amlesh Gehlot

    @< ?amlesh ?umar 

    < Sunil Choudhar#

    5< .ahendra Patel

    6< ?runal Singh Solan8i

    B< *itendra Suthar 

    < Om De> Singh

    < Shra>enram Pra=apat

  • 8/18/2019 Traning Report (1)

    5/45

    A:STRACT

    +umidit# is one of the important parameters in the atmospheric gases< The natural air can

    contain humidit# and >aries from season to season< +umidit# indicates the li8elihood of 

     precipitation9 de79 or fog< There are three main measurements of humidit#F absolute9 relati>e

    and specific< Absolute humidit# is the 7ater content of air< Relati>e humidit#9 epressed as a

     percent9 measures the current absolute humidit# relati>e to the maimum for that

    temperature< Specific humidit# is a ratio of the 7ater >apour content of the miture to the

    total air content on a mass basis<

    The temperature is a numerical measure of hot and cold in a bod# that is in its o7n state of 

    internal thermal euilibrium< Its measurement is b# detection of heat radiation or 

    en>ironment temperature changes< Temperature is important in all fields of natural science9

    including ph#sics9 geolog#9 chemistr#9 atmospheric sciences and biolog#<

    In this pro=ect hard7are is designed to measure the temperature and humidit# that based onARD,INO ,NO microcontroller 7hich controls all its functions< A humidit# andtemperature sensor D+T44 is used for sensing the humidit# and temperature of theen>ironment and the s#stem displa#s the humidit# and temperature on an /CD in the range of 45R+ to 5R+ and 3JC to KB5JC respecti>el#< (e combined together an Arduino 7ith aD+T44 sensor9 4632 /CD 8e#pad shield displa# and a Ethernet cable or printer cable andusing D+T librar# function to run the program

  • 8/18/2019 Traning Report (1)

    6/45

    TA"/E O! CONTENTS

    PAGE NO<

    CANDIDATE'S DEC/ARATION

  • 8/18/2019 Traning Report (1)

    7/45

    Chapter < LCD KEYPAD SHIELD DISPLAY

  • 8/18/2019 Traning Report (1)

    8/45

    LIST O- -IGURES

    PAGE NO<

    -IG.=< T+E ORGANIATION C+ART O! ISRO

  • 8/18/2019 Traning Report (1)

    9/45

    ISRO AT A GLANCE

    This Introduction gives an overview of the Profile, Alliance, and Fields of specification, Objectives

    and Functions of Indian Space Research Organization and the range of services it perfors

    Or"n"ton Intro#%cton

    Space activities in the country started during eary 1!"#s $ith thescienti%c investigation o&   upper at'osphere and ionosphere over the'agnetic e(uator that passes over Thu')a  near Thiruvananthapura'using s'a sounding roc*ets Reaising the i''ense potentia o&   spacetechnoogy &or nationa deveop'ent+ Dr, -i*ra' Sara)hai+ the visionaryeader  envisioned that this po$er&u technoogy coud pay a'eaning&u roe in nationa  deveop'ent and soving the pro)e's o& co''on 'an Thus+ Indian Space progra''e  )orn in the church)eginning+ space activities in the country+ concentrated on achieving se& reiance and deveoping capa)iity to )uid and aunch co''unicationsateites &or  teevision )roadcast+ teeco''unications and'eteoroogica appications. re'ote sensing  sateites &or 'anage'ent o& natura resources,

     The o)/ective o& ISRO is to deveop space technoogy and its appicationto various nationa  tas*s, Accordingy+ Indian Space ResearchOrganisation 0ISRO has success&uy  operationaised t$o 'a/or sateitesyste's na'ey Indian Nationa Sateites 0INSAT &or  co''unicationservices and Indian Re'ote Sensing 0IRS sateites &or 'anage'ent o& natura resources. aso+ Poar Sateite Launch -ehice 0PSL- &or aunchingIRS type o&   sateites and 2eostationary Sateite Launch -ehice 02SL-&or aunching INSAT type o&   sateites,

    The Space Commission formulates the policies and o>ersees the implementation of the

    Indian space programme to promote the de>elopment and application of space science and

    technolog# for the socio$economic benefit of the countr#< DOS implements these programmes through9 mainl# Indian Space Research Organisation )ISRO-9 Ph#sical Research

    /aborator# )PR/-9 National Atmospheric Research /aborator# )NAR/-9 North Eastern$Space

    Applications Centre )NE$SAC- and Semi$Conductor /aborator# )SC/-< The Antri

    Corporation9 established in 42 as a go>ernment o7ned compan#9 mar8ets the space

     products and ser>ices

  • 8/18/2019 Traning Report (1)

    10/45

  • 8/18/2019 Traning Report (1)

    11/45

    10 | P a

    appications, RRSC aso provides e:pert advice < consutancy to$ardspro'otion o&   technoogy in the country, These centres are ocated at=

  • 8/18/2019 Traning Report (1)

    12/45

    11 | P a

     6odhpur 08estern Region

    Nagpur 0Centra Region

    7haragpur 0Eastern Region 5angaore 0Southern Region

    RRSC: Jodhpur 6odhpur centre $as esta)ished in 6anuary 1!>> under the aegis o& NNR4Sat CA?RI ca'pus  covering North@$estern part o& the country 0Ra/asthan+Dehi+ 2u/arat+ and aryana+  Pun/a), The centre is e(uipped $ithade(uate &aciities o& hard$are+ so&t$are and  e:pertise+ and has assistedvarious centra and state 2overn'ent agencies+ research+  aBadeiB

    istitutios ad N2 sO      i sureF+ aageet oitorig ad paig &ornatura resources using sateite data+ digita techni(ues and geographicain&or'ation  syste',

    Objectie! and Function!

    Provide &aciities &or digita i'age anaysis and 2IS,

    2uideelopment Planning

  • 8/18/2019 Traning Report (1)

    13/45

    C+APTER 4

      INTROD,CTION

    (e ha>e design a hard7are s#stem to measure temperature and humidit# in a room or outsidethe room that is en>ironment oltage to the

    microcontroller ARD,INO ,NO<

    4elopment tools that #ou need to program

    an Arduino board9 as 7ell as the board itself< There is a large communit# of construction9

     programming9 electronics9 and e>en art enthusiasts 7illing to share their epertise and

    eperience on the Internet< Arduino is a small microcontroller board 7ith a ,S" plug to

    connect to #our computer and a number of connection soc8ets that can be 7ired up to

    eternal electronics9 such as motors9 rela#s9 light sensors9 laser diodes9 loudspea8ers9

    microphones9 etc< The# can either be po7ered through the ,S" connection from the

    computer or from a 0 batter#< The# can be controlled from the computer or programmed b#

    the computer and then disconnected and allo7ed to 7or8 independentl#<

    !IG

  • 8/18/2019 Traning Report (1)

    14/45

    4

  • 8/18/2019 Traning Report (1)

    15/45

    -e will use these Protoshields in soe of our 'ro+ects. hields usuall$ hae through

    connectors on their 'ins, which ean that $ou can stac% the on to' of each other. o a

    design ight hae three la$ers: an Arduino oard on the otto, a ;P shield on it, and

    then an !CD dis'la$ shield on to' of that.

    1,J, ST$%S TO &O'()O*& *R&+I(O SOFT'*R$:

    1, To do$noad this so&t$are goes tohttp!:,,---.arduino.cc,en,ain,!oft-are anddoKDoad &or Four P sC   O  as shoKD iD %gure LeoK=

    3I2,J, Do$noading arduino so&t$are

    https://www.arduino.cc/en/main/softwarehttps://www.arduino.cc/en/main/software

  • 8/18/2019 Traning Report (1)

    16/45

    9, Cic* the ju!t do-n"oad and aso start to do$noad+ as sho$n in 3igure)eo$

    !IG

  • 8/18/2019 Traning Report (1)

    17/45

    @< After do7nloading install it <

    In!ta""ing&rier!:

    !IG

  • 8/18/2019 Traning Report (1)

    18/45

    !IG

  • 8/18/2019 Traning Report (1)

    19/45

     No7 open the ARD,INO soft7are file and hard7are s#stem is connected to

    it and last 7rite program on it as sho7n in figureF

    !IG

  • 8/18/2019 Traning Report (1)

    20/45

    C+APTER 2

      INTROD,CTION TO ARD,INO ,NO "OARD

    >.= ARDUINO

    An Arduino is a tin# computer that #ou can program to process inputs and outputs going to

    and from the chip< The Arduino are 7hat is 8no7n as a Ph#sical or Embedded Computing

     platform9 7hich means that it is an interacti>e s#stem that through the use of hard7are and

    soft7are can interact 7ith its en>ironment<

    !or eample9 a simple use of the Arduino 7ould be to turn a light on for a set period of time9

    let's sa# @3 seconds after a button has been pressed )7e 7ill build this >er# same pro=ect

    later in the boo8-< In this eample9 the Arduino 7ould ha>e a lamp connected to it as 7ell as

    a button< The Arduino 7ould sit patientl# 7aiting for the button to be pressed< (hen #ou

     press button it 7ould then turn the lamp on and start counting< Once it had counted @3seconds it 7ould then turn the lamp off and then carr# on sitting there 7aiting for another 

     button press< 1ou could use this set$up to control a lamp in an under$stairs cupboard for 

    eample<

    (hen the cupboard door 7as opened and automaticall# turns the light on9 turning it off after 

    a set period of time<

    The Arduino can be used to de>elop stand$alone interacti>e ob=ects or it can be connected to

    a computer to retrie>e or send data to the Arduino and then act on that data )eelopment En>ironment-9 7hich is a piece of free soft7are9 that enables #ou to

     program in the language that the Arduino understands< In the case of the Arduino the

    language is C< The IDE enables #ou to 7rite a computer program9 7hich is a set of step$b#

    step instructions that #ou then upload to the Arduino< Then #our Arduino 7ill carr# out those

    instructions and interact 7ith the 7orld outside< In the Arduino 7orld9 programs are 8no7n as

    s8etches<

    The Arduino hard7are and soft7are are both Open Source9 7hich means the code9 the

    schematics9 design9 etc< are all open for an#one to ta8e freel# and do 7hat the# li8e 7ith it

  • 8/18/2019 Traning Report (1)

    21/45

    This means there is nothing stopping an#one from ta8ing the schematics and PC" designs of 

    the Arduino and ma8ing their o7n and selling them< This is perfectl# legal9 and indeed the

    7hole purpose of Open Source9 and indeed the !reeduino that comes 7ith the Earthshine

    Design Arduino Starter ?it is a perfect eample of 7here someone has ta8en the Arduino

    PC" design9 made their o7n and are selling it under the

    !reeduino name< 1ou could e>en ma8e #our o7n 43 Arduino9 7ith =ust a fe7 cheap

    components9 on a breadboard<

    The onl# stipulation that the Arduino de>elopment team put on outside de>elopers is that the

    Arduino name can onl# be used eclusi>el# b# them on their o7n products and hence the

    clone boards ha>e names such as !reeduino9 "oarduino9 Roboduino9 etc< As the designs are

    open source9 an# clone board9 such as the !reeduino9 is 433 compatible 7ith the Arduino

    and therefore an# soft7are9 hard7are9 shields9 etc< 7ill all be 433 compatible 7ith a

    genuine Arduino< The Arduino can also be etended 7ith the use of shields 7hich circuit

     boards are containing other de>ices )eers9 /CD Displa#s9 Ethernet connections9

    etcen b# ma8ing #our o7n PC" sariants of the Arduino a>ailable< The most common one is the

    Diecimila or the Duemilano>e< 1ou can also get .ini9 Nano and "luetooth Arduino sersatile Arduino9 and hence the reason it is the most popular9 is the

    Duemilano>e< This is because it uses a standard 2 pin chip9 attached to an IC Soc8et< The

     beaut# of this s#stems is that if #ou ma8e something neat 7ith the Arduino and then 7ant to

    turn it into something permanent )eel# epensi>e Arduino board9 #ou can simpl# use the Arduino to de>elop #our 

    de>ice9 then pop the chip out of the board and place it into #our o7n circuit board in #our 

    custom de>ice< 1ou 7ould then ha>e made a custom embedded de>ice9 7hich is reall# cool<

    The Arduino is an amaHing de>ice and 7ill enable #ou to ma8e an#thing from interacti>e

    7or8s of art to robots< (ith a little enthusiasm to learn ho7 to program the Arduino and

    ma8e it interact 7ith other components a 7ell as a bit of imagination9 #ou can build an#thing

    #ou 7ant

  • 8/18/2019 Traning Report (1)

    22/45

    /0 | P a

    2ide P(. output-

    • Analog Input Pins 6

    • DC Current per I%O Pin 3 mA

    • DC Current for @oltage through this pin9 or9 if suppl#ing >oltage >ia the po7er =ac89

    access it through this pin<• GND 1;3F Short for Ground&< There are se>eral GND pins on the Arduino9 an# of 

    7hich can be used to ground #our circuit

  • 8/18/2019 Traning Report (1)

    23/45

    91 | P a

    • @V 1?3 & ;.;V 1@3F As #ou might guess9 the 50 pin supplies 5 >olts of po7er9 and the

    @e noticed the tilde )Q- net to some of the digital pins )@9 59 69

    9 439 and 44 on the ,NO-< These pins act as normal digital pins9 but can also be usedfor something called Pulse$(idth .odulation )P(.-< (e ha>e these pins as beingable to simulate analog output )li8e fading an /ED in and out-<

    • ARE- 123F Stands for Analog Reference< .ost of the time #ou can lea>e this pin

    alone< It is sometimes used to set an eternal reference >oltage )bet7een 3 and 5

    0olts- as the upper limit for the analog input pins as sho7n in fig<

    !IGer9 blo7ing on the Arduino doesn&t usuall# fi an#

     problems

  • 8/18/2019 Traning Report (1)

    24/45

    Po8er LED In#c"tor

    *ust beneath and to the right of the 7ord M,NO‖ on #our circuit board9 there&s a tin# /ED

    net to the 7ord ON&)==3< This /ED should light up 7hene>er #ou plug #our Arduino into a

     po7er source< If this light doesn&t turn on9 there&s a good chance something is 7rong< Time to

    re$chec8 #our circuit

    TF RF LED!

    T is short for transmit9 R is short for recei>e< These mar8ings appear uite a bit in

    electronics to indicate the pins responsible for serial communication< In our case9 there are

    t7o places on the Arduino ,NO 7here T and R appear once b# digital pins 3 and 49 and

    a second time net to the T and R indicator /EDs 1=>3< These /EDs 7ill gi>e us some

    nice >isual indications 7hene>er our Arduino is recei>ing or transmitting data )li8e 7hen

    7e&re loading a ne7 program onto the board-<

    M"n ICThe blac8 thing 7ith all the metal legs is an IC9 or Integrated Circuit 1=;3< Thin8 of it as the

     brains of our Arduino< The main IC on the Arduino is slightl# different from board t#pe to

     board t#pe9 but is usuall# from the ATmega line of IC&s from the AT.E/ compan#< This can

     be important9 as #ou ma# need to 8no7 the IC t#pe )along 7ith #our board t#pe- before

    loading up a ne7 program from the Arduino soft7are< This information can usuall# be found

    in 7riting on the top side of the IC< If #ou 7ant to 8no7 more about the difference bet7een

    >arious IC&s9 reading the datasheets is often a good idea

  • 8/18/2019 Traning Report (1)

    25/45

    C+APTER @

      TE.PERAT,RE AND +,.IDIT1 SENSOR

    ;.=. TEMPERATURE AND HUNIDITY SENSOR 1DHT==3

    The D+T44 is a basic9 ultra lo7 cost digital temperature and humidit# sensor< It uses a

    capaciti>e humidit# sensor and a thermostat to measure the surrounding air9 and spits out a

    digital signal on the data pin< It's fairl# simple to use but reuires careful timing to grab data<

    To onl# real do7nside of this sensor are #ou can onl# get ne7 data from it once e>er# 2

    seconds< In the mar8et #ou 7ill find man# models9 some of this has @ or pins9 so be careful

    and read the technical specification<

    !IG

  • 8/18/2019 Traning Report (1)

    26/45

    ;.=.=DIMENSIONS 1In $$3

    !IG

  • 8/18/2019 Traning Report (1)

    27/45

    J,,  *%%)IC*TIO(S:-AC+ dehu'idi%er+ testing and inspection e(uip'ent+ consu'er goods+auto'otive+  auto'atic contro+ data oggers+ $eather stations+ ho'eappiances+ hu'idity reguator+  'edica and other hu'idity

    'easure'ent and contro,J,",  F$*T+R$S:

    /o7 cost9 long$term stabilit#9 relati>e humidit# and temperature measurement9 ecellent

    ualit#9 fast response9 strong anti$interference abilit#9 long distance signal transmission9

    digital signal output9 and precise calibration<

    DHT>> Sen!or

    !ig F D+T22

    D+T22 output calibrated digital signal< It utiliHes eclusi>e digital$signal$collecting$

    techniue and humidit# sensing technolog#9 assuring its reliabilit# and stabilit#er# sensor of this model is temperature compensated and calibrated in accurate calibration

    chamber and the calibration$coefficient is sa>ed in t#pe of programme in OTP memor#9 7hen

    the sensor is detecting9 it 7ill cite coefficient from memor#<Small siHe L lo7 consumption L long transmission distance )23m- enable D+T22 to be

    suited in all 8inds of harsh application occasions<

    Single$ro7 pac8aged 7ith four pins9 ma8ing the connection >er# con>enient<

    Tec(nc"l S)ec*c"ton

    .odel D+T22

    Po7er suppl# @ia single$bus

    Sensing element Pol#mer capacitor  

  • 8/18/2019 Traning Report (1)

    28/45

    Operating range humidit# 3$433R+ temperature 3Q3Celsius

    Accurac# humidit# K$2R+).a K$5R+- temperature VK$

    Resolution or sensiti>it# humidit# 3

  • 8/18/2019 Traning Report (1)

    29/45

    Repeatabilit# humidit# K$4R+ temperature K$3

  • 8/18/2019 Traning Report (1)

    30/45

    :"!c "r#%no co#e

    Set%) 1 3 A function present in e>er# Arduino s8etch< Run once before the loop ) -

    function< Often used to set pin mode to input or output< The setup ) - function loo8s li8eF

    0oid setup ) - Y

    %%code goes here

    Z

    loo) 1 3 A function present in e>er# single Arduino s8etch< This code happens o>er and

    o>er again< The loop ) - is 7here )almost- e>er#thing happens< The one eception to this is

    setup ) - and >ariable declaration< .od?it uses another t#pe of loop called :fore>er ) -;

    7hich eecutes o>er Serial< The loop ) - function loo8s li8eF

    0oid loop ) - Y

    %%code goes hereZ

    In)%t A pin mode that inta8es information<

    O%t)%t A pin mode that sends information<

    HIGH Electrical signal present )50 for ,no-< Also ON or True in "oolean logic<

    LO4 No electrical signal present )30-< Also O!! or !alse in "oolean logic<

    Dt"l Re"# Get a +IG+ or /O( reading from a pin alread# declared as an input<

    Dt"l 4rte Assign a +IG+ or /O( >alue to a pin alread# declared as an output<

    An"lo Re"# Get a >alue bet7een or including 3 )/O(- and 432@ )+IG+-< This allo7s

    #ou to get readings from analog sensors or interfaces that ha>e more than t7o states<

    An"lo 4rte Assign a >alue bet7een or including 3 )/O(- and 255 )+IG+-< This allo7s

    #ou to set output to a P(. >alue instead of =ust +IG+ or /O(<

    P4M Stands for Pulse$(idth .odulation9 a method of emulating an analog signal

    through a digital pin< A >alue bet7een or including 3 and 255< ,sed 7ith analog (rite<

    Prce

    • Rs 433$2333

  • 8/18/2019 Traning Report (1)

    31/45

    A))lc"ton!

    • In mapping

    • +ome application

    • In electrical and electronics pro=ects

    • In uad copters

    • +ome heating

    • Smart @D printing

    • R!ID pro=ects

    • 0entilation

    • Air conditioning s#stems

    • Google and satellite application

  • 8/18/2019 Traning Report (1)

    32/45

    C+APTER

      /CD ?E1PAD S+IE/D DISP/A1

    ?.=. ARDUINO LCD SHIELD KEYPADSThis is a >er# popular /CD ?e#pad shield for Arduino and other >ariants< It includes a 246

    /CD displa# and 6 momentar# push buttons< Pins 9 59 69 B9 9 and 43 are used to interface

    7ith the /CD< *ust one Analog Pin 3 is used to read the fi>e pushbuttons< The /CD shield

    supports contrast ad=ustment and bac8$lit on%off functions< It also eposes fi>e analog pins

    7ith D! Robot colour code for eas# analog sensor plugging and displa#< The on board /ED

    indicates po7er on<

    This design is great since easil# lets #ou 8eep connecting sensors to the rest of the pins9 and

    use it for monitoring or menu selection 7ith the push buttons e>en for gaming< Often pro=ect

    applications reuire testing or debugging< Displa#ing information right a7a# help on most

    occasions 7hen a computer is not at reach< If #ou are planning to build something not

    attached to a computer and #ou need to chec8 7hat is going on 7hen #ou place it on position9

    this addition 7ill pro>e >er# >aluable to ma8e sure the program is running 7ell<

    The used /CD pins are not eposed on top side of the board lea>ing onl# the unused ones<

    This 7a#9 conflict 7ith /CD pins on top of the board 7ill not happen an#more< This design

    includes an APC % "luetooth >@ soc8et to enable #ou data transmission 7ith #our robote and !reeduino

     boards<

    • "lue "ac8light 7ith 7hite 7ords• uses "it Arduino /CD /ibrar#

    • /eft9 Right9 ,p9 Do7n and Select buttons

    • Screen contrast ad=ustment

    • Arduino Reset button

    The board uses different pins to the Arduino eample s8etches9 so to ma8e the displa# 7or89

    use the follo7ing seuence of pins 7hen starting the librar#F

    /iuid Cr#stal /CD )9 9 9 59 69 B-

    The buttons are connected to onl# one analog input pin through resistors to gi>e a different

    >oltage for each button9 thus sa>ing on input%output pins< Reading the buttons is eas# and

    eample code is sho7n belo7F

  • 8/18/2019 Traning Report (1)

    33/45

    • Pin usedF

    o D$DB $[ /CD Data transmission

  • 8/18/2019 Traning Report (1)

    34/45

    0 | P a

    o D $[ Register Select

    o D $[ Enable pin

    o D43 $[ "ac8light control

    • APCL"T pin header for connecting 7ireless de>ices9 directl# compatible 7ithF

    o APC223 Radio Communication .odule

    o D! Robot "luetooth 0@• Epanded a>ailable I%O pins

    • Epanded Analog Pin out 7ith standard D! Robot configuration for fast sensor

    etension

    • DimensionF 3 5 mm

    Pn Connecton!

    Pn -%ncton

    Analog 3 "uttons )select9 up9 right9 do7n and left-

    Digital D"

    Digital 5 D"5

    Digital 6 D"6

    Digital B D"B

    Digital RS )Data or Signal Displa# Selection-

    Digital Enable

    Note Do not use pin Digital 43 7hen this board is plugged in<

    The board is a little bigger than an Arduino ,NO )measuring cm 6cm-< This can be seen in the

    images<

  • 8/18/2019 Traning Report (1)

    35/45

    J1 | P a

    ese i& 0: "##V  cd,print0XLe&t [.

    Yese i& 0: >##V  cd,print

    0XSeectX.Y

    Y

    ?.;. PINOUT DIAGRAM

    !IG42< /CD 8e#pad shield pin out

    !ig

  • 8/18/2019 Traning Report (1)

    36/45

    ?.?. :READ:OARD

    A breadboard is used to build and test circuits uic8l# before finaliHing an# circuit

    Design< The breadboard has man# holes into 7hich circuit components li8e ICs and

    Resistors can be inserted< A t#pical breadboard is sho7n belo7F

    The bread board has strips of metal 7hich run underneath the board and connect the holes

    On the top of the board< The metal strips are laid out as sho7n belo7< Note that the top

    And bottom ro7s of holes are connected horiHontall# 7hile the remaining holes are

    Connected >erticall#<

    !IG

  • 8/18/2019 Traning Report (1)

    37/45

    C+APTER 5

      PROCESS O! CODING IN ARD,INO

    8e $anted the' to chec* the te'perature and hu'idity o& the roo')oth )y chec*ing an  LCD dispay in the roo' and aso via a $e) page, 8eput together an Arduino $ith a DT11  sensor+ 1":9 LCD dispay andENC9>6"# Ethernet 'odue, 8e did the pro/ect in stages %rst  getting theDT11 portion $or*ing using the DT11 i)rary and e:a'pes &ro'Ada&ruit+  then adding an LCD dispay and %nay adding Ethernet usingthe Ether Card i)rary and  'odi&ying their e:a'pe code, This 'a*estrou)eshooting a ot easier and I coud  )uid

  • 8/18/2019 Traning Report (1)

    38/45

    • I& you )ro$se to your i)raries &oder you shoud see a ne$&oder na'ed &2T6  !en!or6"ibrar76a!ter Rena'e it to &2T

    • Connect up your Arduino and start the IDE• $[ Eamples $[ D+T and open DHTte!ter.

    1ou 7ill need to comment the line starting 7ith #e*ne DHTTYPE DHT>>  b# putting

    a 66 in front of it and then uncomment the line starting 7ith 66#e*ne DHTTYPEDHT== b# remo>ing the t7o leading %%s.

  • 8/18/2019 Traning Report (1)

    39/45

    ,pload the s8etch then open the serial 7indo7. 1ou should see the temperature and

    humidit# le>el scrolling< If #ou breathe onto the sensor #ou should see thetemperature and humidit# rise< It 7ill ta8e a fe7 seconds as the sensor is slo7<

    In the eample s8etch the temperature and humidit# >ariables are defines as \float\9 ie decimal places< This can be changed to an \int\ to remo>e the decimal places as the#

    arent needed in this pro=ect< !ind the linesF float h ] dht

  • 8/18/2019 Traning Report (1)

    40/45

    Yese V Seria,print0Xu'idity= X. Seria,print0h.Seria,print 0X \^tX. Seria,print0XTe'perature=

    X.Seria,print 0t. Seria,printn 0XbCX.

    YY

  • 8/18/2019 Traning Report (1)

    41/45

    ,J, )C& T$ST S5$TC2: The i)rary &or the DU># co'pati)e LCD dispays is incuded $ith theatest versions o&   the Arduino IDE,

    82e""o 'or"d8 test s*etch under 3ie @ E:a'pes @ Li(uid

    Crysta

    Li(uid Crysta LCD 019+ 11+ + + J+ 9. and change it to= Li(uid Crysta LCD0J+ + + "+ U+ >. $e  need to change the pin assign'ents as the Ethernetcontroer $e $i add ater uses pins 11  and 19, poad the s*etch Ad/ust the tri'pot unti you see the dispay ceary

    you shoud see he""o9 -or"d On the top ine and nu')erscounting on the second  ine

    Save the s*etch to a &oder,

     The Arduino $e)site has a good tutoria on LCD dispays It aso

    covers the LCD,  5egin+ the cd,print+ and the LCD, Set Cursor

    ,, CO;3I(I( &2T11 *(& )C& S5$TC2:

    If the D+T44 test s8etch and the /CD test s8etch both 7or8 7e can combine them< /oad the

    s8etch belo7< ,pload it to the Arduino $ #ou should no7 see the temperature and humidit#

    displa#ed on the /CD screen< Again9 breathe on the sensor and #ou should see the temp and

    humidit# change< If this is 7or8ing sa>e the s8etch and 7e can mo>e onto setting up theEthernet

    Qincude XDT,hX

    Qde%ne DTPIN 9

    Qde%ne DTT`PE DT11

    DT dht0DTPIN+ DTT`PE.

    Qincude Li(uidCrysta,h Li(uidCrysta

    cd0>+ !+ + + "+ U. void setup0

    V

    Seria,)egin0!"##. 

    cd,)egin01"+9.

  • 8/18/2019 Traning Report (1)

    42/45

    dht,)egin0.  cd,print0XDT11

    test_X.

    Y

  • 8/18/2019 Traning Report (1)

    43/45

    void oop0 V deay09###.

    oat h Z dht,readu'idity0.

  • 8/18/2019 Traning Report (1)

    44/45

    APPLICATION AREAS O- TEMPERATURE AND HUMIDITY SENSOR 

    1, -AC9, Dehu'idi%er

    J, Testing and inspection e(uip'ent, Consu'er goods, Auto'otive", Auto'atic controU, Data oggers>, 8eather stations!, o'e appiances1#, u'idity reguator11, 4edica and other hu'idity 'easure'ent and contro,

    PRO,ECT PICTURES

  • 8/18/2019 Traning Report (1)

    45/45

    RE-ERENCES

    = www.adafruit.co7 'roducts7>?

    = www.arduino.cc 

    = Data sheet of D@T55 Te'erature @uidit$ ensor 

    = www.arduino.cc7en7*ain7arduino&oardUno 

    = www.instructales.co7id7Arduino

    = www.huidit$control.co7catalog 

    = DuinoB'ro+ects.co

    = www.forefront.io7a7eginners9guide9to9arduino 

    = www.drooticsonline.co 

    = .htt':77lin%s'rite.co7wi%i7inde1.'h'>titleE0ile:5F?6G!CDGshield9A?5.+'gHetadata

    = htt':77www.freetronics.co.au7'roducts7lcd9%e$'ad9shieldH.3cG@J>Kfh  

    = htt's:77en.wi%i'edia.org7wi%i7LincMcaronGatter$

    http://www.adafruit.com/products/50http://www.adafruit.com/products/50http://www.adafruit.com/products/50http://www.arduino.cc/http://www.arduino.cc/en/Main/arduinoBoardUnohttp://www.instructables.com/id/Arduinohttp://www.humiditycontrol.com/cataloghttp://www.forefront.io/a/beginners-guide-to-arduinohttp://www.droboticsonline.com/http://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://www.freetronics.com.au/products/lcd-keypad-shield#.VcE_Hq5SQfhhttp://www.adafruit.com/products/50http://www.arduino.cc/http://www.arduino.cc/en/Main/arduinoBoardUnohttp://www.instructables.com/id/Arduinohttp://www.humiditycontrol.com/cataloghttp://www.forefront.io/a/beginners-guide-to-arduinohttp://www.droboticsonline.com/http://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://linksprite.com/wiki/index.php5?title=File%3A1602_LCD_shield-A01.jpg&metadatahttp://www.freetronics.com.au/products/lcd-keypad-shield#.VcE_Hq5SQfh