18.08.2013 Views

ee pulse - EEWeb

ee pulse - EEWeb

ee pulse - EEWeb

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TECHNICAL ARTICLE<br />

change state (Figure 5).<br />

The loop() function [12] line 41 is called over and over<br />

and is the heart of most sketches. Both setup() and<br />

loop() n<strong>ee</strong>d to be included in your sketch, even if you<br />

don’t n<strong>ee</strong>d them for anything.<br />

Author’s Comment<br />

From what we have s<strong>ee</strong>n so far, it looks like an Arduino<br />

sketch behaves like a cyclic executive with interrupts.<br />

Stay tuned for more hands-on stuff in the next part of this<br />

series of articles where we’ll investigate Processing!<br />

References<br />

[1] ”Das Blinkenlights” http://en.wikipedia.org/wiki/<br />

Blinkenlights<br />

[2] ”www.blinkenlights.nl” http://www.blinkenlights.nl<br />

[3] ”First Sketch” http://arduino.cc/en/Tutorial/Sketch<br />

[4] ”Processing” http://processing.org<br />

[5] ”delay()” http://arduino.cc/en/Reference/Delay<br />

BeStar®<br />

ACOUSTICS & SENSORS<br />

PRODUCTS<br />

Speakers<br />

Buzzers<br />

Piezo Elements<br />

Back-up Alarms<br />

Horns<br />

Sirens/Bells<br />

Beacons<br />

Microphones<br />

Sensors<br />

INDUSTRIES<br />

Automotive<br />

Durables<br />

Medical<br />

Industrial<br />

Mobile<br />

Fire / Safety<br />

Security<br />

Consumer<br />

Leisure<br />

[6] ”vTaskDelay()” http://www.fr<strong>ee</strong>rtos.org/a00127.html<br />

[7] ”usl<strong>ee</strong>p()” http://pubs.opengroup.org/onlinepubs/009695399/functions/usl<strong>ee</strong>p.html<br />

[8] ”millis()” http://arduino.cc/en/Reference/millis<br />

[9] ”setup()” http://arduino.cc/hu/Reference/Setup<br />

[10] ”pinMode()” http://arduino.cc/en/Reference/pin-<br />

Mode<br />

[11] ”digitalWrite()” http://arduino.cc/en/Reference/digitalWrite<br />

[12] ”loop()” http://arduino.cc/en/Reference/loop<br />

About the Author<br />

Robert Berger is a highly respected and experienced<br />

embedded real-time expert and CEO of Reliable<br />

Embedded Systems, a leading embedded training<br />

consultancy. Robert consults and trains people all<br />

over the globe on a mission to help them create better<br />

embedded software. He specializes in training and<br />

consulting for embedded systems, from small real-time<br />

systems to multi-core embedded Linux. ■<br />

Teamwork • Technology • Invention • Listen • Hear<br />

Preferred acoustic component<br />

supplier to OEMs worldwide<br />

bestartech.com | sales@bestartech.com | 520.439.9204<br />

<strong>EEWeb</strong> | Electrical Engin<strong>ee</strong>ring Community Visit www.<strong>ee</strong>web.com 19<br />

QS9000 • TS/ISO16949 • ISO14001 • ISO13485 • ISO9001<br />

TECHNICAL ARTICLE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!