0% found this document useful (0 votes)
164 views6 pages

Arduino Uno Microcontroller - HomoFaciens PDF

The Arduino Uno is a microcontroller board based on the ATmega328P chip with 20 programmable input/output pins that can be used to control circuits and homebuilt servos. It has advantages like low energy consumption, a large community and documentation in many languages. The Arduino can sense its environment and control peripherals through its input and output pins. Examples shown include using pins to read a keyboard, display data on an LCD screen, and control a servo motor with a PID controller implemented through software.

Uploaded by

Kin Kevin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views6 pages

Arduino Uno Microcontroller - HomoFaciens PDF

The Arduino Uno is a microcontroller board based on the ATmega328P chip with 20 programmable input/output pins that can be used to control circuits and homebuilt servos. It has advantages like low energy consumption, a large community and documentation in many languages. The Arduino can sense its environment and control peripherals through its input and output pins. Examples shown include using pins to read a keyboard, display data on an LCD screen, and control a servo motor with a PID controller implemented through software.

Uploaded by

Kin Kevin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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