You are on page 1of 6

6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>
AdfromGearbest:

NewsTheProjectTechnologyRoboSpatiumContributeSubjectindexDownloadResponsesGamesLinksShoppingtipsContact

<<<MycomputerhistoryWM8650>>>

ArduinoUno
ThevideoabouttheArduinoUno

Arduino Uno: control circuits and homebuilt servos

General

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 1/6
6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>

Figure1:
TheArduinoUnoisamicrocontrollerboardwithanATmega328Pchip.Thismicrocontrollerrunswithaclockspeedof16MHz,ithas32Kilobytesofprogrammemory,2
KilobytesofSRAMandoneKilobyteofpermanentmemory.
TheUSBinterfaceoftheArduinoboardcanbeusedtoprogramthemicrocontrollerandtoexchangedatawithothercomputers.
TheATmega328Phas20programmableinput/outputpins.6ofthosepinscanbeusedasanaloginputs.Another6ofthosepinscanbeusedtogeneratepulsewidthsignals.
TheArduinocansensetheenvironmentbyreceivinginputsignalsandaffectitssurroundingbycontrollingperipheralslikelights,servosormotors.
TheboardcanbesuppliedwithelectricpowerthroughtheUSBinterface(5V)orthroughasecondconnectorpin(620v).
TheArduinosoftwareispublishedasopensourcetools,availableforextensionbyexperiencedprogrammersandthehardwareplansarepublishedunderaCreativeCommons
license.
TheintegrateddevelopmentenvironmentisbasedonJava,henceitrunsonvariousoperatingsystemsandallowsuserstowriteprogramsforArduinousingCorC++.The
IDEcomeswithasoftwarelibrarycalled"Wiring",whichmakescodingofinput/outputoperationsveryeasy.

Advantages

+Lowenergyconsumption.
+Fastboot.
+Largecommunity.
+Documentationavailableinmanylanguages.
+Simpleprogrammingthankstoavailablelibraries.
+GreatextensionboardforcomputerswithanUSBinterface(physicalcomputing).

Keyboard

Thereisnoconnectorforaconventionalkeyboardoracomputerscreen,thusthe20input/outputpinshavetobeusedtointeractwithhumans.A
keyboardconsistsofmultiplekeys,whicharenothingbutpushbuttonswhosestatecanbereadthroughinputpins.Avoltageof5Viscorrelatedto
the"open"state(HIGHsignal)oftheswitch,while0Vataninputpinindicatethestate"closed"(LOWsignal).Apullupresistorisusedtoget5V
whenevertheswitchisopened.

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 2/6
6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>

Figure2:

Screen

Figure3:
SomeLEDscanactas"computerscreen".Pushingabuttoncantriggeranevent,whichisindicatedbytheLEDs.Variablescanbedisplayedasbinarynumbers.
ALiquidCrystalDisplayismorecomfortabletoread.TheHitachiHD44780isaverycommonLCDforanArduinoboard,usingtwolinesof16characters.Thecontrastof
theDisplayisadjustedbythepotentiometer.Nocharactersappearatthedisplaywheneverthatcontrastisadjustedtoohighortoolow.

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 3/6
6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>

Figure4:

SourcecodecounterwithLCDforArduinoUnoMicrocontroller

Sensordisk

Figure5:
Atootheddiskinconjunctionwithtwoopticalsensorscanbeusedasrotationalsensor.
Thereceiversoftheopticalsensorsareconnectedtodigitalinputs0and1.TheLCDisconnectedasdescribedabove.

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 4/6
6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>

Figure6:

SourcecodeopticalsensordiskwithLCDforArduinoUnoMicrocontroller

PIDcontroller

InthechapteraboutservosIhavedemonstratedadevicemadeofawipermotor.Theprecisionofthehomebuiltservocanbeimprovedclearlywithamicrocontroller.APID
controllerisimplementedbysoftware.PIDmeansproportionalintegralderivativecontroller.
Thevoltageforwardedtotheservomotorbyaproportionalcontrollerisincreasedbypulsewidthmodulation,thelargerthedivergencebetweensetpointandactualvalue.
Thereisalinearcorrelationbetweenthedifferenceofbothinputvaluesandthevoltageforwardedtothemotor:

Whereis:
UMotorvoltage(RMSvaluewhenusingpulsewidthmodulation).
KPproportionalgain.
eerror(voltagesetpointminusvoltageservosensor)

Thedifferencebetweensetpoint(voltagedefiningthesetpoint)andactualvoltage(voltagecausedbytheservopotentiometer)isnamederrorvalue.

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 5/6
6/26/2017 ArduinoUnomicrocontrollerHomoFaciens

Navigation>>

Figure7:

inturn,ifthesensorreadingapproachesthesetpoint,therotationoftheservomotorissloweddown.

Figure8:

Whenusinganintegralcontroller,thevoltageisraised,thelongertheactualvaluediffersfromthesetpoint:

http://www.homofaciens.de/technicscomputerarduinouno_en.htm 6/6

You might also like