Kaj je Arduino IDE?

01
Mar
IDE (ang: Integrated Development Environment) je večplatformna brezplačna programska oprema, ki je namenjena pisanju in nalaganju programa na krmilnike. Sprva je bila narejena za Arduino krmilnike. Naknadno so dodali možnost za veliko število drugih krmilnikov (ang: third-party cores).
Gre za začetniku prijazno okolje, ki je poenostavljeno z namenom učenja programiranja.
Program, ki ga napišemo potrebuje samo dve nujni funkciji:
V prvi funkciji deklariramo za naš projekt nujno potrebne nastavitve.
V drugem so ukazi, ki se bodo izvajali neskončno dokler bo Arduino imel napajanje.
Za začetek bomo namestili programsko okolje. Pojdimo na uradno Arduino stran za prenos zadnje verzije programa.
Izberemo instalacijo za operacijski sistem, ki ga imamo na računalniku.
V tem koraku lahko doniramo, lahko pa nadaljujemo preko “Just download” povezave. Ko se program prenese, ga instaliramo tako, da sledimo klasičnem postopku instalacije. Zaženemo program.
Če “blink” program še ni odprt, ga odprimo preko:
File > Examples > 01. Basics > Blink
Nadaljujemo z izbiro krmilnika v Arduino IDE. Programu oziroma prevajalniku (compiler-ju) moramo povedati za kateri tip Arduino krmilnika mora pripraviti našo kodo. Mi bomo uporabili Arduino UNO.
Naslednji korak, ki ga moramo nujno narediti ali vsaj preveriti je nastavitev USB COM porta na katerega bomo preko USB kabla priklopili naš Arduino krmilnik. Kako pa vemo oznako porta? Običajno ima na izbiro samo eno možnost.
Lahko pa odpremo Device Manager in tam preverimo COM številko.
V našem primeru je to COM7. Tako tudi nastavimo v Arduino IDE.
Orodje “Verify” uporabimo za preverjanje sintakse kode (ali smo se kjer pri pisanju programa zmotili) in prevede v strojno kodo. Tu se še nič ne prenese v ARduino.
Za prenos prevedene kode uporabimo “upload”.
Če “se vse zvezde poravnajo”, bi se koda preko USB-ja moral prenesti v Arduino krmilnik in program potrdi uspešni prenos.
Piškotek | Trajanje | Opis |
---|---|---|
__stripe_mid | 1 year | Stripe sets this cookie cookie to process payments. |
__stripe_sid | 30 minutes | Stripe sets this cookie cookie to process payments. |
cookielawinfo-checkbox-advertisement | 1 year | Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category . |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
CookieLawInfoConsent | 1 year | Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie. |
elementor | never | This cookie is used by the website's WordPress theme. It allows the website owner to implement or change the website's content in real-time. |
PH_HPXY_CHECK | session | This cookie is used to save the information about the current session. |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Piškotek | Trajanje | Opis |
---|---|---|
_gat | 1 minute | This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites. |
Piškotek | Trajanje | Opis |
---|---|---|
_ga | 2 years | The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors. |
_gid | 1 day | Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously. |
CONSENT | 2 years | YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data. |
Piškotek | Trajanje | Opis |
---|---|---|
VISITOR_INFO1_LIVE | 5 months 27 days | A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface. |
YSC | session | YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages. |
yt-remote-connected-devices | never | YouTube sets this cookie to store the video preferences of the user using embedded YouTube video. |
yt-remote-device-id | never | YouTube sets this cookie to store the video preferences of the user using embedded YouTube video. |
yt.innertube::nextId | never | This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen. |
yt.innertube::requests | never | This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen. |
Piškotek | Trajanje | Opis |
---|---|---|
m | 2 years | No description available. |
woodmart_recently_viewed_products | session | No description |