background preloader

Arduino + Servo + openCV Tutorial [#openFrameworks] by Joshua Noble

Arduino + Servo + openCV Tutorial [#openFrameworks] by Joshua Noble
One of the my favorite things about creativeapplications.net has always been the small tags one can find beneath the name of an application indicating among other things, the technology used to create it. That little nod to the process and to all the work that went into creating the libraries and techniques that an artist or designer uses helps not only contextualize the work but it also helps give recognition to everyone who has contributed their time and expertise to building tools for creative expression in code. Figuring that some of the readers might be interested in learning a little more about these frameworks I’ve put together a quick walk-through of how to connect up two of those tools that one so often sees attached to the names of the projects profiled here: openFrameworks and Arduino. Arduino For this tutorial you’ll need a few things: 1 x Arduino-compatible device 1 x Trossen Servokit 1 x USB cable 1 x Breadboard and wires to connect the Servos to the Arduino

http://www.creativeapplications.net/tutorials/arduino-servo-opencv-tutorial-openframeworks/

Related:  Arduino

RaspberryPi and Arduino playing nicely together. After seeing Eric Maundu’s video about his aquaponics setup in Oakland, I was pretty inspired to finally try and put my arduino to good use. In the past, I had hit walls using the arduino because I failed get it setup to a wifi network, and therefore never got to the point of programming it to do anything useful for me. This summer I grabbed a raspberryPi, which allows me to write all my code in python and has everything that comes with linux, like painless networking. Although the pi is the coolest thing since sliced bread, it has no analog inputs on its GPIO, so there is no easy way to measure inputs like temperature, only digitally (off/on). You can, however, easy communicate between the pi and the arduino serially over usb to use the arduino’s analog inputs.

Monochrome OLED Breakouts This is a quick tutorial for our 128x64 and 128x32 pixel monochrome OLED displays. These displays are small, only about 1" diagonal, but very readable due to the high contrast of an OLED display. Each OLED display is made of 128x64 or 128x32 individual white OLEDs, each one is turned on or off by the controller chip. Because the display makes its own light, no backlight is required. This reduces the power required to run the OLED and is why the display has such high contrast; we really like this miniature display for its crispness!

Raspberry Pi and Arduino Connected Using I2C With Raspberry Pi and I2C communication, we can connect the Pi with single or multiple Arduino boards. The Raspberry Pi has only 8 GPIO’s, so it would be really useful to have additional Inputs and outputs by combining the Raspberry Pi and Arduino. There are many ways of Linking them such as using USB cable and Serial Connection. Why do we choose to use I2C? One reason could be it does not use your serial, USB on the Pi. Given the fact that there are only 2 USB ports, this is definitely a big advantage.

Sound / / Piezos diagram: Inside the Piezo Buzzer A Piezo is an electronic device that can be used to play tones and to detect tones. Face Detection and Face Recognition with Real-time Training from a Camera To improve the recognition performance, there are MANY things that can be improved here (look at commercial Face Recognition systems such as SPOTR for examples), and some improvements can be fairly easy to implement. For example, you could add color processing, edge detection, etc. You can usually improve the face recognition accuracy by using more input images, atleast 50 per person, by taking more photos of each person, particularly from different angles and lighting conditions. If you cant take more photos, there are several simple techniques you could use to obtain more training images, by generating new images from your existing ones:

Raspberry Pi + OpenCV OpenCV is a suite of powerful computer vision tools. Here is a quick overview of how I installed OpenCV on my Raspberry Pi with debian6-19-04-2012. The guide is based on the official OpenCV Installation Guide on Debian and Ubuntu. Before you begin, make sure you have expanded your SD card to allow for the install of OpenCV. Waiting for my Raspberry Pi While I was away on holiday, Scott Sheppard announced an Autodesk-internal competition of which the eight lucky winners would receive a currently-still-hard-to-come-by Raspberry Pi Model B (so named in homage to the computer that helped inspire a generation of British programmers, the BBC Micro). All that contestants had to do was submit an idea for a compelling use of the device (and then submit a video of the completed project, along with instructions to replicate it on Instructables.com). I’d been interested for some time in getting my hands on one of these cool little systems, and had a few ideas gestating for potential projects. This competition helped crystalise one of these, in particular.

Poorman's oscilloscope (with Arduino + Processing) This software allows you to get a visual representation of an analog signal using Arduino and Processing. The resolution is 10 bits, which is good, but the frequency is a lot lower than that of a real oscilloscope but it is still pretty useful. It works by sending values read from the Arduino board (pin 0) to Processing through serial communication. Alternative Arduino oscilloscope projects Arduinoscope (was inspired by our oscilloscope)Lxardoscope (non-java alternative) Nice!

Related: