Facebook Instagram

Category: Tutorial

NeoPixel LED strip with Arduino

A NeoPixel strip is an LED strip where each individual LED can be independently controlled. This is the distinguishing feature of NeoPixel strips: the ability to program each LED on the strip to to display any color and brightness you want. NeoPixel strips find versatile application in various domains, including decorative lighting, wearable technology, artistic installations, and dynamic visual displays. Getting started Here are the steps covered in this tutorial: Installing Arduino IDE Installing FastLED Library Setup Arduino Download our code examples Explore Needed Materials Arduino + USB Cable. NeoPixel LED strip Jumper wires External power supply (needed for longer LED strips) Installing Arduino IDE…

Read more

Wekinator – Creating machine learning algorithms

Wekinator is a software tool designed for interactive machine learning, particularly in the context of real-time multimedia applications. It was developed by Rebecca Fiebrink as part of her doctoral research and provides a user-friendly interface for artists, musicians, designers, and researchers to create custom machine learning models without requiring extensive programming knowledge. Wekinator is commonly used in the fields of creative coding, music composition, interactive installations, and more. At its core, Wekinator enables users to train machine learning models that can recognize patterns and correlations in data, and then use these models to map input data to desired output responses. This process is often referred…

Read more

Interfacing Muse S headset with Processing

Muse S is a commercial brainwave scanner developed for meditation, sleeping etc. This tutorial will walk you through connecting Muse S to your computer and accessing the raw datastreams via OSC and Processing. Muse provides health related data which consists of  PPG (heart rate) and EGG (Brain wavelengths). Besides these can also be gathered physical movement with gyroscope- and accelerometer data. With this tutorial we provide two 'bare minimum' Processing example codes for reading PPG and EEG to act as starting point to interface the Muse headset in your project. Reading heart rate (PPG) from Muse S Download Petal Metrics app to your computer (In…

Read more

Playing MP3 files with Arduino UNO

The Sparkfun mp3 player shield, is the AIR LAB default infrastructure for enabling the Arduino UNO's to play mp3 files. This guide is focusing on the exact steps you need to take, to make it work with our hardware, and the ressources we have tested are working together. This guide assumes a basic knowledge of Arduino (how to upload and run a program etc.)  DISCLAIMER: Working with mp3 files on an Arduino is often a bit of a struggle, which is why we always suggest to use something more suitable for playing sound. Our goto platform for this is a laptop running Processing code, if…

Read more

Format SD cards automatically with Raspberry Pi

SDeraser is an AIRLAB Infrastructure that enables easy formatting of SD cards via a simple interface in the lab. This interface is useful when handling larger amounts of Raspberry Pi's, zoom recorders or similar where quick formatting of SD cards is necessary. The interface is a simple build consisting of a Raspberry Pi, an illuminated pushbutton and an SD card reader. The Raspi is running a python script that automatically detects newly inserted block devices (such as SD-cards or even USB drives), and subsequently erases the device using the ubuntu software called "parted". This tutorial will walk through setting up the Raspi, and explains the functionality of the…

Read more

Formatting SD cards before returning equipment

In AIRLab we're lending out a lot of equipment to students throughout semesters. Some of this equipment holds an SD card for storage of data such as Raspberry Pi Kits and Zoom recorders, which means that data can easily be shared when equipment is inattentively returned and borrowed. It goes without saying, that AIRLab cannot take up responsibility for SD Cards that are returned with sensitive information. In AIRLab we therefore strictly require that SD-cards are formatted (wiped of data) before returned. This is primarily to avoid accidental sharing of sensitive data (eg. audio-interviews, photos, etc.), but it also makes it easier for the next borrower to get…

Read more

Capacitive Touch Sensing with the MPR121

If you want to work with capacitive touch sensing in AIR LAB, we have several MPR121 modules available for Arduino. This is a tutorial of how to get started with the very basics of capacitive touch sensing. This includes how to establish electrodes as toggles, buttons, and proximity sensors via the MPR121 library, published by Bare Conductive. At the very bottom of this page, we have gathered useful documentation to help you get further with capacitive touch sensing if needed. What is capacitive touch sensing? Capacitive touch sensing, is at its very core a constant measure of the change in the conductivity of a circuit.…

Read more

Backup and Restoring of Raspberry Pi SD card with applePiBaker

When working with Raspberry Pi it can be useful to do complete backups of the SD card. The most obvious reason relates to securing your prototype if something breaks, but it also allows you to quickly revisit old projects without setting up a new OS. The backup is created with the imager tool applePiBaker. The resulting diskimage is a compressed file that mirrors the entire SD card. Upon restoring, the image is burned to a new SD card in compressed state and subsequently expanded in the Raspberry Pi config. What you will need Raspberry Pi  micro SD card from a functional Pi that needs backing up micro…

Read more

Setting up an automatic slideshow on Raspberry Pi (SlidePi)

This tutorial will run you through setting up a Raspberry pi that automatically launches a customizable dias-show from an external drive when booted. What you will need Raspberry Pi w/screen, mouse, keyboard and powersupply 16gb micro SD card for Pi OS USB Flash drive for media files   Setting up the Pi Download the Raspberry Pi Imager Software and install the latest Raspberry Pi OS on your SD card Boot the raspi and follow the setup wizard. From the desktop go to pi > preferences > raspberry pi configuration > display and disable screen blanking: Install feh and xscreensaver by running the following commands in the…

Read more

Reading RFID tags in Processing

Reading RFID tags in Processing with the OLIMEX MOD-RFID125 scanner This example shows how to read RFID tags from the Processing coding environment, using the OLIMEX MOD-RFID125 scanner. The scanner emulates a USB keyboard, making this a very easy thing get started with. Needed to run this example 1 x OLIMEX MOD-RFID125 scanner (link) A laptop with Processing installed (processing.org/download/) 4 x RFID (125 kHz) cards/tags NB: One card/tag is enough to make it work, but you wont be able to see the full code work Trying it out Download and unzip the Processing example code MOD_RFID125_reader from the OLIMEX_RFID_scanner folder in our Tutorials repository.…

Read more

Orientation and position tracking

This tutorial shows a way of doing position and orientation tracking of a person using a Kinect sensor (IR webcam) and three IR LEDs. The code example used here was developed for an interactive sound installation with the need to track a personfrom above, getting both position and orientation. Normally getting the position of a person is pretty straight forward using a Kinect, but also getting the orientation of the person is a bit more tricky. In order to do this we developed the code resources included in this tutorial, and a headgear that could be mounted on a set of over-ear headphones. The headgear…

Read more

Measuring Load Cells with Arduino

This tutorial will show how to setup a load cell with Arduino. Load cells comes in a variety of forms that allows for different tasks and categories of weight. They generally work by converting force into resistance, which can be measured and used in a broad variety of projects. This tutorial will use a single-point rectangular load cell rated for 20kg. This cell requires fastening between two surfaces to function properly. We will use the HX711 wheatstone bridge to measure with Arduino. You will need Load Cell, 20kg rectangular, fastened between two surfaces. HX711 wheatstone bridge Arduino + USB-cable  Breadboards Jumper wires Building the setup…

Read more