Posts with «arduino» label

Converting Morse Code to Text with Arduino

Morse code used to be widely used around the globe. Before voice transmissions were possible over radio, Morse code was all the rage. Nowadays, it’s been replaced with more sophisticated technologies that allow us to transmit voice, or data much faster and more efficiently. You don’t even need to know Morse code to get an amateur radio license any more. That doesn’t mean that Morse code is dead, though. There are still plenty of hobbyists out there practicing for the fun of it.

[Dan] decided to take a shortcut and use some modern technology to make it easier to translate Morse code back into readable text. His project log is a good example of the natural progression we all make when we are learning something new. He started out with an Arduino and a simple microphone. He wrote a basic sketch to read the input from the microphone and output the perceived volume over a Serial monitor as a series of asterisks. The more asterisks, the louder the signal. He calibrated the system so that a quiet room would read zero.

He found that while this worked, the Arduino was so fast that it detected very short pulses that the human ear could not detect. This would throw off his readings and needed to be smoothed out. If you are familiar with button debouncing then you get the idea. He ended up just averaging a few samples at a time, which worked out nicely.

The next iteration of the software added the ability to detect each legitimate beep from the Morse code signal. He cleared away anything too short. The result was a series of long and short chains of asterisks, representing long or short beeps. The third iteration translated these chains into dots and dashes. This version could also detect longer pauses between words to make things more readable.

Finally, [Dan] added a sort of lookup table to translate the dots and dashes back into ASCII characters. Now he can rest easy while the Arduino does all of the hard work. If you’re wondering why anyone would want to learn Morse code these days, it’s still a very simple way for humans to communicate long distances without the aid of a computer.


Filed under: Arduino Hacks

Immersive performances with 3D mapping and Arduino

ANGLE project is a Florence-based duo and also the name of the amazing audiovisual performance that applies videomapping techniques to live sets. The duo produces and composes all the songs with synchronised video images using 3D mapping on a self-supporting, isostatic, modular structure that is made up of triangles with junctions at their vertices.

TETRA 02 is the title of ANGLE’s new live set composed of a structure equipped with LED lights, animated live using Arduino Uno & Mad Light.

Arduino Blog 10 Feb 14:07

Arduino IDE 1.6 Released

After two years in the making, the new Arduino development environment comes with a laundry list of new features.

Read more on MAKE

A Tweeting Vending Machine

[Sigurd] manage to obtain an old vending machine from his dorm. The only problem was that the micocontroller on the main board was broken. He and his friend decided they could most likely get the machine back into working order, but they also knew they could probably give it a few upgrades.

This system uses two Arduino Pro Minis and an Electric Imp to cram in all of the new features. One Arduino is connected to the machine’s original main board. The Arduino interfaces with some of the shift registers, relays, and voltage regulators. This microcontroller also lights up the buttons on the machine as long as that particular beverage is not empty. It controls the seven segment LED display, as well as reading the coin validator.

The team had to reverse engineer the original coin validator in order to figure out how the machine detected and counted the coins. Once they figured out how to read the state of the coins, they also built a custom driver board to drive the solenoids.

A second Arduino is used to read NFC and RFID cards using a Mifare RC522 reader. The system uses its own credit system, so a user can be issued a card with a certain amount of pre-paid credit. It will then deduct credit appropriately once a beverage is vended. The two Arduinos communicate via Serial.

The team also wanted this machine to have the ability to communicate with the outside world. In this case, that meant sending cheeky tweets. They originally used a Raspberry Pi for this, but found that the SD card kept getting corrupted. They eventually switched to an Electric Imp, which worked well. The Arduino sends a status update to the Imp every minute. If the status changes, for example if a beverage was dispensed, then the Imp will send a tweet to let the world know. It will also send a tweet to the maintenance person if there is a jam or if a particular slot becomes empty.


Filed under: Arduino Hacks

12 Tools We Can’t Live Without for Making Wearables

At the Social Body Lab we’re always on the hunt for the best tools for prototyping wearable electronics projects. Here are some of our favorites from 2014. LilyTiny + LED Strings A great shortcut for those who want some dynamic light patterns but don’t want to fuss with programming, Sparkfun’s LilyTiny board […]

Read more on MAKE

Arduino IDE 1.6 is released! Download it now

 

After almost two years “in the making” we’re thrilled to announce the availability of the Arduino IDE 1.6.0. The latest version of the development environment used by millions of people across the globe brings about a lot of improvements.

Since the day we started developing the first 1.5 version we have received a lot of feedback, suggestions and contributions from our vibrant community and we would like to thank you all for your passion and good will: thank you everyone, you rock!

We are glad to say that 1.6.0 includes a lot of new features. Here is a not so brief list of them:

  • Support for multiple platforms
  • Boards are detected and listed on “ports list” menu together with the serial port
  • Drivers and IDE are now signed for Windows and MacOSX
  • Improved speed of build process
  • Autosave when compiling/uploading sketch
  • A lot of improvements of the serial monitor (faster, backed by modern JSSC serial library instead of old RXTX)
  • Find/replace over multiple tabs
  • Improved lots of Arduino API libraries (String, Serial, Print, etc.)
  • Tools & toolchains upgrades (avr-gcc, arm-gcc, avrdude, bossac)
  • Command line interface
  • IDE reports both sketch size and static RAM usage
  • Editor shows line numbers
  • Scrollable menus when many entries are listed
  • Upload via network (Yún)
  • HardwareSerial has been improved
  • USB has got some stability and performance improvements
  • SPI library now supports “transactions” for better interoperability when using multiple SPI devices at the same time
  • Better support to 3rd party hardware vendors with configuration files (platform.txt and boards.txt)
  • Submenus with board configuration can now be defined
  • Fix for upload problems on Leonardo, Micro and Yún.
  • Libraries bundled with Arduino have been improved and bugfixed, in particular: Bridge, TFT, Ethernet, Robot_Control, SoftwareSerial, GSM
  • A lot of minor bugs of the user interface have been fixed

There is still lots of room for improvement, of course. Don’t forget to report any issue you find, either on Github or on the Arduino forum: your help is very much appreciated. It doesn’t matter if you are not a tech specialist: every feedback adds value.

We are already working on release 1.6.1, with some very cool features we will announce in the coming weeks.

The IDE is available from the newly redesigned Download page.

 

Arduino Blog 09 Feb 11:44

Altoids Tin Network Analyzer

Network Analyzers are frequently used for measuring filters, making them extremely valuable for building radios and general mucking about with RF. They are, however, extremely expensive. You can, however, build one in an Altoids tin with an Arduino Nano, a small screen, and an AD9850 frequency synthesis module picked up on eBay.

The basic idea behind a network analyzer is to feed a frequency into a device, and measure the amplitude coming out of the device, and plot this relationship over a frequency. [Bill Meara] has been a human network analyzer before, changing frequencies and plotting the output of devices under test by hand. [DuWayne] (KV4QB) build a device to automate the entire process.

The block diagram is easy enough – an AD9850 sends a signal to the device, and this is measured by the Arduino with a small amplifier. The signal is measured again when it comes back from the device under test, and all this is plotted on a small display. Simple, and [DuWayne] is getting some very good readings with a lowpass filter and crystal filter made on a small solderless breadboard.


Filed under: Arduino Hacks, tool hacks

Pac-Man Clock Eats Time, Not Pellets

[Bob’s] Pac-Man clock is sure to appeal to the retro geek inside of us all. With a tiny display for the time, it’s clear that this project is more about the art piece than it is about keeping the time. Pac-Man periodically opens and closes his mouth at random intervals. The EL wire adds a nice glowing touch as well.

The project runs off of a Teensy 2.0. It’s a small and inexpensive microcontroller that’s compatible with Arduino. The Teensy uses an external real-time clock module to keep accurate time. It also connects to a seven segment display board via Serial. This kept the wiring simple and made the display easy to mount. The last major component is the servo. It’s just a standard servo, mounted to a customized 3D printed mounting bracket. When the servo rotates in one direction the mouth opens, and visa versa. The frame is also outlined with blue EL wire, giving that classic Pac-Man look a little something extra.

The physical clock itself is made almost entirely from wood. [Bob] is clearly a skilled wood worker as evidenced in the build video below. The Pac-Man and ghosts are all cut on a scroll saw, although [Bob] mentions that he would have 3D printed them if his printer was large enough. Many of the components are hot glued together. The electronics are also hot glued in place. This is often a convenient mounting solution because it’s relatively strong but only semi-permanent.

[Bob] mentions that he can’t have the EL wire and the servo running at the same time. If he tries this, the Teensy ends up “running haywire” after a few minutes. He’s looking for suggestions, so if you have one be sure to leave a comment.


Filed under: Arduino Hacks, clock hacks

Casa Jasmina Project is about to roll, with style

The location of the Casa Jasmina apartment will officially be inaugurated here in Torino (Italy) on the 20th of February, together with the celebration of  the 3rd birthday of local Officine Arduino and Fablab Torino.

The two following days (21-22 of February) we’re going to start producing the first connected things for the apartment in a workshop with the support of Jesse Howard, a designer focusing on new systems of making.

He’ll fly in from Amsterdam and run a 2-day session together with Lorenzo Romagnoli (Casa Jasmina Project Manager) and Stefano Paradiso (Fablab Torino Coordinator) with the goal of designing and manufacturing an Open Source Connected Lamp (OSCOLA).

The workshop is suitable for designers, artists, hackers, and everyone interested in Arduino and open source design and in order to stress the idea of open design, participants will be asked to reinterpret, modify and redesign an open source lamp proposed by Jesse Howard.
A minimum familiarity with of CAD drawings, digital fabrication techniques and Arduino are recommended but not strictly necessary.

By changing materials, shape, use cases, mechanics, and interaction, we are going to create a family of open source lamps.
Arduino Yún will be used to make the lamp interactive, enabling the user to turn it on or off remotely; change the light color; use the light to visualize data etc, or connect one lamp to an other.

The OSCOLA workshop (book your participation!)  consists of 16 hours of class taking place at Fablab Torino and a ticket is valid for two people.  At the end of the workshop, each couple of participants will bring home their IoT open-source lamp and a copy will be reproduced to stay at Casa Jasmina!

Display Your City’s Emotional State with Illuminated Snow

[Hunter] wanted to do something a bit more interesting for his holiday lights display last year. Rather than just animated lights, he wanted something that was driven by data. In this case, his display was based on the mood of people in his city. We’ve seen a very similar project in the past, but this one has a few notable differences.

The display runs off of an Arduino. [Hunter] is using an Ethernet shield to connect the Arduino to the Internet. It then monitors all of the latest tweets from users within a 15 mile radius of his area. The tweets are then forwarded to the Alchemy Sentiment API for analysis. The API uses various algorithms and detection methods to identify the overall sentiment within a body of text. [Hunter] is using it to determine the general mood indicated by the text of a given tweet.

Next [Hunter] needed a way to somehow display this information. He opted to use an LED strip. Since the range of sentiments is rather small, [Hunter] didn’t want to display the overall average sentiment. This value doesn’t change much over short periods of time, so it’s not very interesting to see. Instead, he plots the change made since the last sample. This results in a more obvious change to the LED display.

Another interesting thing to note about this project is that [Hunter] is using the snow in his yard to diffuse the light from the LEDs. He’s actually buried the strip under a layer of snow. This has the result of hiding the electronics, but blurring the light enough so you can’t see the individual LEDs. The effect is rather nice, and it’s something different to add to your holiday lights display. Be sure to check out the video below for a demonstration.


Filed under: Arduino Hacks, Holiday Hacks