Posts | Comments

Planet Arduino

Archive for the ‘arduino’ Category

digioxide

After Anywhere, Turbo-gusli and Solaris, Dmitry Morozov shared with us Digioxide, a new interactive work using Arduino Nano, hc-06 bluetooth module, gas and dust sensors, LG mobile printer :

This project aims to raise public awareness of the environmental pollution by artistic means.
Digioxide is a portable wireless device equipped with sensors of air pollution gases and dust particles that is connected to computer via bluetooth. This allows a person with digioxide to freely move around a city, seek out ecologically problematic places and turn their data into digital artworks.

The information about the concentration of dust and harmful gases, such as CO, CO2, HCHO, CH4 and C3H8 and spme others is algorithmically transformed into generative graphics, forming an abstract image. The device’s mobile printer allows instant printing of this air “snapshot” that can be left as an evidence on the place, or given as a present to a passerby.

 

 

IMG_8344I worked out a system that lets you control all your animated Halloween props with a single microcontroller.

Read more on MAKE

FG79F3MI1C1FF9J.LARGE

by wavelet_spaghetti @ instructables.com:

Ever wanted to visualize your brain activity in real-time? Move an object on a screen with your mind? EEG devices are fantastic fun and allow you to do such things!

This tutorial will show you how to make an illumino: an easy-to-use recreational EEG device hidden inside a comfortable beanie, that turns your brain activity into an array of colorful light. Colors and brightness are manually selectable and adjustable via a small discreet pushbutton switch. The custom Arduino software is accessible via a USB port, allowing you to easily change it as you wish. The hat also works fine without the lights, should you wish to use it only as an EEG device. I recommend using Processing to create beautiful real-time moving graphical visualizations of your brain activity (code included in tutorial).

Build an EEG hat that turns your brainwaves into light! - [Link]

ironman6

It’s exciting how much 3D printing has enabled us to produce pretty much any shape for any purpose on the fly. Among the most thoughtful uses for the technology that we’ve seen are the many functioning and often beautiful prosthetics that not only succeed in restoring the use of a limb, but also deliver an air of style and self-expression to the wearer. The immediate nature of the technology allows for models to be designed and produced rapidly at a low-cost, which works excellently for growing children. [Pat Starace’s] Iron Man inspired 3D printed hand and forearm are a perfect example of such personality and expert engineering… with an added dash of hacker flair.

With over twenty years of experience in animatronics behind him, [Starace] expertly concealed all of the mechanical ligaments within the design of his arm, producing a streamline limb with all the nuance of lifelike gesture. It was important that the piece not only work, but give the wearer that appropriate super hero-like feeling while wearing it. He achieves this with all the bells and whistles hidden within the negative space of the forearm, which give the wearer an armory of tricks up their sleeve. Concealed in the plating, [Starace] uses an Arduino and accelerometer to animate different sets of LEDs as triggered by the hand’s position coupled with specific voice commands. Depending on what angle the wrist is bent at, the fingers will either curl into a fist and reveal hidden ‘lasers’ on the back of the hand, or spread open around a pulsing circle of light on the palm when thrust outward.

The project took [Starace] quite a bit of time to print all the individual parts; around two days worth of time. This however is still considered quick in comparison to the custom outfitting and production of traditional prosthetics… not to mention, the traditional stuff wouldn’t have LEDs. This piece has a noble cause, and is an exciting example of how 3D printing is adding a level of heroism to everyday life.

Thank you Julius for pointing out this awesome project to us!


Filed under: Arduino Hacks, wearable hacks

La dernière fois, je vous ai présenté une méthode essentiellement graphique, permettant une bonne approximation des paramètres PID de votre régulateur. Encore faut-il savoir comment tracer les graphiques, c’est ce que je me propose de vous expliquer dans cet article. Il est bien sûr évident que cette méthode peut être utilisée pour tracer des graphiques à partir de tout type de données, du moment que les données arrivent via un port série.
La première étape va consister à récupérer les données du port série sur un PC. Comme souvent, il existe plusieurs façon de faire, je vous présenterais celle que j’ai utilisé ici : un petit script python.

import serial
import sys

serialport = serial.Serial("/dev/ttyACM0", 9600, timeout=1)
line = []

while True:
    for c in serialport.read():
        line.append(c)
        if c == '\n':
            for s in line:
                f=open('myfile','a')
                sys.stdout.write(s)
                f.write(s)
                f.close
            line = []
            break

serialport.close()

Ce petit script prend les caractères arrivant sur le port série, jusqu’au caractère marquant la fin de ligne, puis écrit la ligne dans un fichier. Ca peut éventuellement suffire pour tracer un graphique… Mais dans ce cas précis, on veut pouvoir également envoyer une consigne au régulateur, la modifier afin de suivre la réaction de ce dernier. Problème : comment envoyer des données sans perturber la lecture des données et ne pas sauter de mesure ?
Là encore, il y a plusieurs méthodes possibles, certaines plus complexes que d’autres. Celle que j’ai choisi permet de garder un programme simple, mais ne fonctionnera que sous linux. Ceux sous un autre système chercheront du côté du multithreading…

import serial
import sys
import select

serialport = serial.Serial("/dev/ttyACM0", 9600, timeout=1)
line = []

while True:
        while sys.stdin in select.select([sys.stdin], [], [], 0)[0]:
          ligne = sys.stdin.readline()
          if ligne:
            print(ligne)
            serialport.write(ligne+'\r\n')
          else: # an empty line means stdin has been closed
            print('eof')
            exit(0)
        else:
            for c in serialport.read():
                    line.append(c)
                    if c == '\n':
                        for s in line:
                                f=open('myfile','a')
                                sys.stdout.write(s)
                                f.write(s)
                                f.close
                                line = []
                    break

serialport.close()

Ah oui, j’ouvre et ferme le fichier a chaque écriture, de manière à pouvoir accéder aux données pendant l’exécution du programme. Ca permet de visualiser l’évolution du graphique en temps réel.
Les données sont envoyées par le microcontrolleur sous la forme . Je n’ai pas de mesure de temps, chaque échantillon étant pris à un intervalle d’une seconde, il suffit de compter les échantillons pour connaître le temps écoulé.

Passons maintenant au graphique lui-même. Pour cela, j’utilise le logiciel Gnuplot, outil très puissant de tracé de courbes dont nous n’utiliseront ici qu’une infime quantité de ses possibilités. Lorsque vous lancez gnuplot en ligne de commande, vous vous retrouvez avec un shell dans lequel vous pourrez lancer vos commandes gnuplot.

plot 'myfile' using 1 smooth bezier title 'temperature', 
'myfile' using 2  with line title 'CO', 
'myfile' using 3 with line title 'Setpoint'
 plot 'myfile' using 1 

Indique que l’on va tracer une courbe correspondant aux données de la première colonne du fichier

smooth bezier

Indique que l’on veut lisser les données. Il n’est pas toujours intéressant de lisser les données, par exemple, ici la colonne 3 correspondant à la consigne n’est pas lissée, ce qui permet de visualiser le moment exact du changement de consigne. Par contre, dans le cas des valeurs mesurées, cela permet de s’affranchir du bruit sur les mesures.

title 'temperature'

Légende de la courbe. Pratique dès qu’il y a plus d’une courbe.

Par défaut, gnuplot va afficher le résultat à l’écran. Pour pouvoir enregistrer le résultat dans un fichier il faut taper les instructions suivantes :

set terminal "png"
set output "monfichier.png"
replot

Nota : avec la commande replot (ou avec le bouton replot de la gui), vous pouvez rafraîchir les données affichées, de manière à visualiser en continu vos données…
Il y a certainement plein d’amélioration possibles à ma méthode, mais je vous la présente car elle a le mérite d’être simple et rapide à mettre en oeuvre, tout en fournissant de bons résultats :)

Silly String SprayingHalloween is one of my favorite holidays for one reason. Candy! However by the end of the night, the neighborhood kids have usually picked over my candy bucket. This year I’m going to change that! To keep kids away, I’m going use an Arduino to detect when someone has their […]

Read more on MAKE

Turn your toaster oven into your own solder reflow factory shop using the Reflow Master Shield!!!

The Reflow Master Shield from Paladin Enabling Technologies is an Arduino shield that turns your normal toaster oven into a reflow oven. A reflow oven is used in the production of electronics to change solder paste from a paste form to a liquid form and lastly to a solid form. This results in all your components being soldered for you in one run.

But let me share with you why I’ve created the Reflow Master Shield and why you would want one.

Reflow Master Shield – Arduino Solder Reflow Oven - [Link]

ArduinoMicroLink

by elektor.com:

If Arduino is your development platform of choice the tiny self-contained MicroLink board offers some interesting features. At just 50 x 32 mm it contains an ATmega328, an SIM800H quad band GSM module and on-board USB and battery charging capabilities. It has all the peripherals necessary to allow wireless remote control and monitoring and can use any standard 3.7 V LiPo battery for power which is charged when the USB port is connected. The charge state can be checked at any time from a remote location.

The Arduino compatible MicroLink - [Link]

Gesture Controlled Quadcopter

[grassjelly] has been hard at work building a wearable device that uses gestures to control quadcopter motion. The goal of the project is to design a controller that allows the user to intuitively control the motion of a quadcopter. Based on the demonstration video below, we’d say they hit the nail on the head. The controller runs off an Arduino Pro Mini-5v powered by two small coin cell batteries. It contains an accelerometer and an ultrasonic distance sensor.

The controller allows the quadcopter to mimic the orientation of the user’s hand. The user holds their hand out in front of them, parallel to the floor. When the hand is tilted in any direction, the quadcopter copies the motion and will tilt the same way. The amount of pitch and roll is limited by software, likely preventing the user from over-correcting and crashing the machine. The user can also raise or lower their hand to control the altitude of the copter.

[grassjelly] has made all of the code and schematics available via github.


Filed under: Arduino Hacks, drone hacks

kickstarter notifications

Keeping up with a kickstarter campaign can be quite a task, especially if your project is real (looking at you, Scribble Pen!) and you’re trying to keep up with product fabrication and all the other logistics involved in bringing a product to market. [macetech] are currently in the middle of a campaign themselves and built a loud, bright alert system to notify them of any new kickstarter backers.

The project uses a LED marquee to display the current number of backers, but every time a new backer contributes to the project, a blindingly bright green arrow traffic signal is illuminated and a piezo speaker plays a celebration tune. All of these devices are controlled by an Arduino Yun which, with its built-in Atheros chipset, easily connects to the network and monitors the kickstarter page for changes.

[macetech] used some interesting hardware to get everything to work together. They used a USB-to-RS232 cable with and FTDI chip to drive the LED marquee and a PowerSwitchTail 2 from Adafruit to drive the power-hungry traffic signal. Everything was put together in a presentable way for their workshop and works great! All of the source code is available on their project page, and you can check out their RGB LED Shades kickstarter campaign too.


Filed under: Arduino Hacks


  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.