Posts with «arduino» label

Before Arduino There was Basic Stamp: A Classic Teardown

Microcontrollers existed before the Arduino, and a device that anyone could program and blink an LED existed before the first Maker Faire. This might come as a surprise to some, but for others PICs and 68HC11s will remain as the first popular microcontrollers, found in everything from toys to microwave ovens.

Arduino can’t even claim its prominence as the first user-friendly microcontroller development board. This title goes to the humble Basic Stamp, a four-component board that was introduced in the early 1990s. I recently managed to get my hands on an original Basic Stamp kit. This is the teardown and introduction to the first user friendly microcontroller development boards. Consider it a walk down memory lane, showing us how far the hobbyist electronics market has come in the past twenty year, and also an insight in how far we have left to go.

The Basic Stamp 1. A Simple circuit with just a microcontroller, an EEPROM, crystal, and brownout circuit.

Teardown

The Basic Stamp kit on my workbench was made in 1993, and sold for a suggested retail price of $139 USD. Adjusted for inflation, this is nearly $230 in 2015 dollars. What do you get in the Basic Stamp starter kit? A single stamp, a programmer cable, and a surprising amount of documentation.

The Basic Stamp is an extremely minimalist board that does just enough to blink an LED, read a button, or drive an LCD. In the official documentation,  there are only a handful of parts: a microcontroller, an EEPROM with a few bytes of memory, a crystal, and a voltage regulator.

The PIC16C56XL is the brains of the outfit, featuring 1.5kilobits of Flash memory and 25 bytes of RAM. By modern standards, it’s tiny; the closest modern analog would be the ATtiny10, itself not a very recent chip. Microchip’s smallest and newest chip is the PIC12LF1522, featuring twice as much Flash and ten times the amount of RAM. We’re dealing with an old microcontroller when using the Basic Stamp

Like the Arduino, it was encouraged to use the Basic Stamp in product design.

Other components include a 93LC56 serial EEPROM. beside that is a 4MHz regulator, a 5V linear regulator, and a transistor and a few resistors for the ‘brown out’ circuit. Power is provided by a 9V battery connector soldered onto the board.

The electronic design of the Basic Stamp is simple, yes, but there’s a method to the madness. The code you write for the Basic Stamp is stored in 256 bytes of the EEPROM. This code is read by a PBASIC interpreter on the PIC, dutifully following commands to blink a LED or display a character on an LCD. No user code is actually stored on the microcontroller.

Programming

How about the programming environment? That’s a single executable running in a DOS shell. The system requirements are only, an IBM PC or compatible, DOS 2.0+, 128k of RAM, and a disk drive. Meager requirements, but this is not something that will run on your modern Windows workstation; it requires a proper parallel port.

For an IDE, the Basic Stamp editor is comparable to earlier Arduino IDEs; Alt+R runs the program on the Stamp connected to the computer, Alt+L loads a program, Alt+S saves a program, and Alt+Q quits the editor.

The BASIC language implemented on the PIC is minimal, but it does everything you would expect; individual pins can be set as input and output, buttons are debounced, and PWM functions are baked into the language.

An ad for the Basic Stamp. From High Tech Entrepreneur, October/November 1993. Ads had text in the past.

Context

The Basic Stamp is now regarded as a slow, inconvenient artifact from the past. No one uses it, and the only place you’ll find one is in the back cabinet in a physics or EE classroom. This is an incredible disservice to a still-impressive piece of technology, and looking back at the Basic Stamp with our modern expectations is an incredible bias.

There were microcontroller development platforms before the Basic Stamp, but these were engineering tools, and expensive compared to the Stamp. Development platforms for the electrical hobbyist were around after the stamp, too: the Micromint Domino packed an entire development platform into a rectangular brick of plastic. None of these designs could match the popularity of the Basic Stamp despite the platform’s shortcomings.

The Arduino receives a lot of hate. Detractors say it’s too high-level for proper embedded programming, not high-level enough for a modern workflow, is based on old, obsolete chips, doesn’t have the features of modern ARM microcontrollers, and the IDE is a mess. Despite an even less capable IDE, meager memory, and a slow processor, the Basic Stamp proved incredibly popular. The fact that you could pick up a Basic Stamp development kit at any Radio Shack probably didn’t hurt it’s popularity, either.

Now, with our fancy IDEs, mbed microcontrollers, powerful ARMs, and huge libraries, the ease of use of the Basic Stamp has still not been equaled. It may be slow, outdated, but all of us owe a great debt to the Basic Stamp for introducing an entire generation to the world of embedded programming, microcontrollers, and electronics tinkering.


Filed under: classic hacks, Featured, Microcontrollers

We Have a Problem: Earthquake Prediction

Nepal | 25 April 2015 | 11:56 NST

It was a typical day for the 27 million residents of Nepal – a small south Asian country nestled between China and India. Men and women went about their usual routine as they would any other day. Children ran about happily on school playgrounds while their parents earned a living in one of the country’s many industries. None of them could foresee the incredible destruction that would soon strike with no warning. The 7.8 magnitude earthquake shook the country at its core. 9,000 people died that day. How many didn’t have to?

History is riddled with earthquakes and their staggering death tolls. Because many are killed by collapsing infrastructure, even a 60 second warning could save many thousands of lives. Why can’t we do this? Or a better question – why aren’t we doing this? Meet [Micheal Doody], a Reproductive Endocrinologist with a doctorate in physical biochemistry. While he doesn’t exactly have the background needed to pioneer a novel approach to predict earthquakes, he’s off to a good start.

He uses piezoelectric pressure sensors at the heart of the device, but they’re far from the most interesting parts. Three steel balls, each weighing four pounds, are suspended from a central vertical post. Magnets are used to balance the balls 120 degrees apart from each other. They exert a lateral force on the piezo sensors, allowing for any movement of the vertical post to be detected. An Arduino and some amplifiers are used to look at the piezo sensors.

The system is not meant to measure actual vibration data. Instead it looks at the noise floor and uses statistical analysis to see any changes in the background noise. Network several of these sensors along a fault line, and you have yourself a low cost system that could see an earthquake coming, potentially saving thousands of lives.

[Michael] has a TON of data on his project page. Though he’s obviously very skilled, he is not an EE or software guy. He could use some help with the signal analysis and other parts. If you would like to lend a hand and help make this world a better place, please get in touch with him.

He makes a great point during his narration in this video: earthquakes disproportionately affect the poor because they live and work in lower-cost structures unlikely to be outfitted to withstand earthquakes. Shoring up infrastructure is a huge and costly undertaking. Discovering early warning systems like the one [Michael] is testing here will have an immediate and wide-ranging impact at a minimum cost.


Filed under: Hackaday Columns

Play like a spy with L.E.A.P. Engine

 

Toronto-based collaborative duo Hopkins Duffield created a gaming environment running on Arduino Mega in which the player battles a laser wielding A.I. security system gone awry. It’s like being in an action movie, walking in a pitch black room filled with the hollow sound of a machine breathing and a series of red laser fences slicing through the fog-filled air!

Laser Equipped Annihilation Protocol (The L.E.A.P. Engine) is a an installation that :

explores the personality of a snarky and mysterious game sentience who has infected a room with technological systems that challenge players and collect data. With a limited amount of time, the player must pass through a complicated series of changing and alternating laser patterns without tripping any of the lasers in order to deactivate the system and win the game. If the player trips a laser or if the timer runs out, it’s game over.

The gaming installation uses Max 6, Max For Live, an Arduino Mega 2560 R3 and custom electronic circuits. They also used a special modification of Lasse Vestergaard’s and Rasmus Lunding’s ArduinoInOutForDummies designed to allow communication between Arduino 2560 and Max 7. In Max, laser patterns are written using MIDI.

Take a look at the video to discover how they made it:

Arduino Blog 26 Aug 11:17

Locked In: Behind the Scenes of the Escape Room Craze

Escape room games, or mystery rooms, or puzzle rooms, are trending, and many rely on Makers and Maker tech to make them work

Read more on MAKE

The post Locked In: Behind the Scenes of the Escape Room Craze appeared first on Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers.

Build a Sensor Network Around a Weather Station

[Yveaux] had a problem. The transmitter on his outdoor weather station had broken, rendering the inside display useless. He didn’t want to buy a new one, so, like the freelance embedded software designer that he is, he decided to reverse engineer the protocol that the transmitter uses and build his own. He didn’t just replace the transmitter module, though, he decided to create an entire system that integrated the weather system into a sensor network controlled by a Raspberry Pi. That’s a far more substantial project, but it gave him the ability to customize the display and add more features, such as synching the timer in the display with a network clock and storing the data in an online database.

Fortunately for [Yveaux], the transmitter itself was fairly easy to replace. The weather station he had, like most, transmitted on the 868MHz frequency, which is a license-free ISM (Industrial, Scientific and Monitoring) spot on the spectrum. After some poking around, he was able to figure out the protocol and teach the Pi to speak it. He then added a Moteino and an nRF2401+ transmitter to the weather station, so it can send data to the Pi, which then sends it to the display. It is a more complicated setup, but it is also much more flexible. He’s had it running for a couple of years now and has collected more than a million sensor readings.


Filed under: Arduino Hacks, wireless hacks

Exploring tangible user interfaces and soundscapes

Originally from Guatemala, Balam Soto is an artist and maker of software and hardware creating interactive art installations and public artworks that fuse low tech with high tech. He recently shared with us a project called Exp.Inst.Rain and running on Arduino Uno:

” Exp.Inst.Rain” is an interactive installation and experimental instrument that incorporates projection and sound generated by a wireless box made of wood, plexiglas, Arduino, electronic components and custom touch sensors. By touching the box at various points, participants create different sounds; these sounds then generate changes in the projection.

It is an analysis of the social and cultural adoption of tangible user interface. Globally, touch devices are increasingly common; people understand how to use them. “Exp.Inst.Rain” analyses this new technology and makes use of this new common understanding to fuse sound and visuals into realtime interactivity.

This artworks it’s power by Arduino and wireless vibes , using Capacitive Touch Sensor and home made aluminum electrode to pick up touch. Custom software acts as a Bridge between the Exp.inst.X and Midi software.

 

New Project: Build Your Own Android-Powered Self Driving R/C Car

Learn how a team of students created the first Google Android-based autonomous R/C car, able to detect lanes, avoid obstacles, self-park, and more.

Read more on MAKE

The post Build Your Own Android-Powered Self Driving R/C Car appeared first on Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers.

Make Your Own Remote Control LED Light

Want to control the colors in your home? Sure, you could just buy a Philips Hue bulb, but where’s the hacking fun in that? [Dario] agrees: he has written a tutorial on building an Arduino-controlled RGB light system that plugs into a standard light socket.

[Dario] is using a bulb from Automethion in Italy, an Arduino, and an ESP8288 shield that sends signals to the bulb. The Arduino and shield are running the Souliss framework that provides smart home features and runs on a number of platforms, so it is a good open platform for creating your own smart home apps, and would be easy to expand. We have also seen a few other projects that use the ESP8288 to control an RGB strip, but this is the first one that uses a bulb that plugs into a standard light socket.

At the moment, Automethion is the only company selling this light, but I hope that others will sell similar products soon.


Filed under: Arduino Hacks
Hack a Day 23 Aug 18:00

A tribute to 5-bit Baudot code

Julian Hespenheide is an interaction designer based in Germany who submitted to Arduino blogpost a writing machine called émile. It’s an interactive installation created in collaboration with Irena Kukric, David Beermann, Jasna Dimitrovskais and using Baudot code - a binary 5-bit code, predecessor of ASCII and EBCDID – intended for telecommunication and electronic devices, representing the entire alphabet.

It runs on Arduino Uno and  translates the bauds (/?b??d/, unit symbol Bd) into moving objects that are being sent over physical tracks in order to illustrate  a simple computational process of 5-bit binary information transmission:

The machine was built in six days with four people. In our group we came to the conclusion, that not every process in a computer is really transparent and it already starts when you type a simple letter on a keyboard. To unwrap this “black box” of data transmission, we set our goal to build a small writing machine where you can literally see bits rolling around. After some research we got back to the beginnings of Telefax machines and data transmission using Baudot-code. We then quickly designed punchcards and mapped them to a slightly altered baudot code table and cut them with a laser cutter from 5mm plywood.
Whenever a marble hits a switch, a short timer goes off and waits for input on the other switches. If no other marbles are hitting those switches, we finally translate the switches that have been hit into the corresponding letter.

Take a look at the machine in action:

 

High Tech, Low Cost Digital Torque Meter

Ever obsessed with stripping the hype from the reality of power tool marketing, and doing so on the cheap, [arduinoversusevil] has come up with a home-brew digital torque meter that does the job of commercial units costing hundreds of times as much.

For those of us used to [AvE]’s YouTube persona, his Instructables post can be a little confusing. No blue smoke is released, nothing is skookum or chowdered, and the weaknesses of specific brands of tools are not hilariously enumerated. For that treatment of this project, you’ll want to see the video after the break. Either way you choose, he shows us how a $6 load cell and a $10 amplifier can be used to accurately measure the torque of your favorite power driver with an Arduino. We’ve seen a few projects based on load cells, like this posture-correcting system, but most of them use the load cell to measure linear forces. [AvE]’s insight that a load cell doesn’t care whether it’s stretched or twisted is the key to making a torque meter that mere mortals can afford.

Looks like low-end load cells might not be up to measuring the output on your high-power pneumatic tools, at least not repeatedly, but they ought to hold up to most electric drivers just fine. And spoiler alert: the Milwaukee driver that [AvE] tested actually lived up to the marketing.


Filed under: Arduino Hacks, tool hacks