Hans-Petter Halvorsen

What is Arduino?

Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs, like light sensors, activating a motor, turning on an LED, etc. Note! outside USA they have changed the name to Genuino.

A lots of different Arduino boards exists, but Arduino UNO is the most popular and used Arduino board.

Arduino is very popular in IoT projects and applications.

Introduction to Arduino (YouTube) + PowerPoint (PDF)


Arduino Home Page:

Download Arduino Software (free)

Want to buy an Arduino? You can buy it many places online, e.g., Kjell & Company (Norway), Elfa, RS, Sparkfun, DigiKey, ebay, etc.

You can either buy an Arduino Starter Kit or just the board (e.g., Arduino UNO), but then you need USB-cable, a breadboard, different sensors, etc. in addition. An Arduino Starter Kit includes everything you need to get started with Arduino.


Programming with Arduino (Textbook)

Below you find my Textbook "Programming with Arduino":

Programming with Arduino (PDF) (ISBN: 978-82-691106-3-0)

Programming with Arduino- PowerPoint Slides (PDF)


Arduino Programming - In Norwegian (Textbook)

Below you find my Textbook "Arduino Programming" (in Norwegian):

Arduino Programmering (PDF) (ISBN: 978-82-691106-2-3) - In Norwegian

Arduino Programmering - PowerPoint Slides (PDF) - In Norwegian



Arduino Classes and Libraries

Video: Create your own Arduino Classes and Libraries:

Note! Error in the Example: The formula should be Tc = (Tf-32)*((float)5/9); The reason for this is the the Arduino compiler treats dividing 2 constants like an integer, this means 5/9 is always 0. By including (float) you forces the compiler to treat it like a float value.


The video is also available from my official YouTube Channel:


Create your own Arduino Classes and Libraries


Download Example Library (Fahrenheit)



Internet of Things (IoT)

Arduino devices for IoT applications

Arduino UNO WiFi

Arduino MKR1000 - built-in WiFi and Bluetooth, it has also 1 AO in addition the the AI channels you find on all Arduino boards


Video: IoT Security with Arduino



ThingSpeak is an IoT platform service that lets you collect and store sensor data in the cloud and develop Internet of Things (IoT) applications.

Arduino and ThingSpeak (YouTube) + PowerPoint (PDF)



Control Engineering

Arduino Control System (YouTube) + PowerPoint (PDF)

Arduino Control Library (YouTube) + PowerPoint (PDF)




LabVIEW LINX Toolkit with Arduino

Here we will use the LabVIEW LINX Toolkit in combination with the Arduino UNO device.

This Tutorial shows how we can use Arduino in combination with the LabVIEW Programming environment. LabVIEW LINX Toolkit is an add-on for LabVIEW which makes it possible to program the Arduino device using LabVIEW. In that way we can create Data Logging Applications, etc. without the need of an expensive DAQ device. If you don’t have LabVIEW Professional Software, you may use the LabVIEW Community Edition (free for non-commercial use). Then you will get a very low-cost DAQ/Datalogging System!


LabVIEW LINX with Arduino Tutorial



Introduction to LabVIEW LINX and Arduino (YouTube)

LabVIEW LINX Arduino DAQ System (YouTube)

LabVIEW LINX Arduino Temperature Sensors (YouTube)



Download Code



IoT Applications with MATLAB

You can also use MATLAB when working with Internet of Things (IoT), Arduino and Rapberry Pi.

Arduino Support Package for MATLAB

Here you find more information about Raspberry Pi.



Additional Resources

Digital to Analog Converter (DAC)

Arduino and DAC (YouTube) + PowerPoint (PDF)


Arduino Pulse Width Modulation (PWM)

Arduino Pulse Width Modulation (PWM)



Using MCP49xx DAC chip in Arduino

Additional Resources

Below you will find more interesting resources


Internet of Things

Raspberry Pi

Raspberry Pi resouces

IoT Projects

Here you find lots of interesting IoT Projects, etc.


Programming Resources