Hackaday 10th Anniversary: Jon McPhalen And The Propeller

[Jon] came out to our 10th anniversary mini-con to talk about the Propeller, and judging from his short introduction, his hacker cred is through the roof. He has a page on IMDb, and his first computer was a COSMAC. Around 1993, he heard of a small company introducing the BASIC Stamp, and like us with most new technology was incredulous this device could perform as advertised. He tried it, though, and for a few years after that, he was programming the BASIC Stamp every single day.

Having a lot of blinky light project under his belt, [Jon] was always struggling with interrupts, figuring out a way to blink an LED exactly when he wanted it to blink. A lot has changed over at Parallax since 1993, and now they’re spending time with the Propeller, an 8-core microcontroller where interrupts are a thing of the past. He showed off a huge, 10-foot tall bear from League of Legends, all controlled with a single Propeller, using 1000 LEDs to look like fire and flames.

[Jon] shared the architecture of the Propeller, and the inside of this tiny plastic-encapsulated piece of silicon is wild; it’s eight 32-bit microcontrollers, all sharing some ROM and RAM, controlled by something called a Cog that gives each micro access to the address, data, and IO pins.

When the Propeller was first released, there were a few questions of how the chip would be programmed. C isn’t great for multicore work, so Parallax came up with a language called Spin. It’s written for multicore microcontrollers, and from [Jon]’s little session in demo hell, it’s not that much harder to pick up than Python. Remember that hour or two where you learned the syntax of Python? Yeah, learning Spin isn’t a huge time investment.

Even though you can program the Propeller in C and C++, there’s a reason for Spin being the official language of the Propeller. It isn’t even that hard, and if you want to dip your toes in multicore microcontroller programming, the Propeller is the way to do it. It’s an open source chip as well so you can give it a try with an FPGA board.

Thumbnail that say The Hacklet

Hacklet 18 – Tick Tock, It’s Time For Clocks

18

In three words, Hackers love clocks. Not only do we think that digital watches are still a pretty neat idea, we love all manner of timepieces. This episode of The Hacklet focuses on the clock projects we’ve found over on Hackaday.io.

xkcdHardwareWe start with [rawe] and [tabascoeye], who both put the famous XKCD “now” clock into hardware. [tabascoeye] used a stepper motor in his xkcd world clock. [rawe] didn’t have any steppers handy, so he grabbed a cheap wall clock from Ikea for his xkcd.com/now clock in hardware. The now clock needs a 24 hour movement. Ikea only sells 12 hour movements, so [rawe] hacked in a 555 and some logic to divide the clock’s crystal by two. He’s currently using an EEVblog uCurrent to verify his modified clockwork consumes about half a milliwatt.

touchscreenclockNext up is [Craig Bonsignore] and his Touchscreen Alarm Clock. [Craig] got sick of store-bought alarm clocks, so he built his own. Then he modified it, added a few features, and kept building! The current incarnation of the clock has a pretty novel interface: a touchscreen over a bicolor LED matrix. The rest of the clock consists of an Arduino, an Adafruit Wave shield, and a Macetech Chronodot. [Craig] is currently mashing up these open source designs and building a single Arduino shield for his clock.

irisledclock[Warren Janssens] took the minimalist route with The Iris Clock. Iris is a ring of WS2812 RGB LEDs. The LEDs are mounted behind a wall colored piece of wood in such a way that you can only see their glow on the clock frame and the wall beyond it. This helps a with the eye searing effect WS2812s can have when viewed directly – even when dimmed with PWM. The code is mainly C with some AVR assembly thrown in to control the LEDs. [Warren] has given Iris 8 different time modes, from hour/minute/second to percentage of day with sunrise and sunset markers. With so many modes, the only hard part is knowing how to read the time Iris is displaying!

stargate[David Hopkins] also built a ring clock. His Stargate LED Clock not only tells time, but is a great replica of the Stargate from the TV series. [David] used four Adafruit WS2812 Neopixel segments to build a full 60 RGB LED ring. The Stargate runs on an Arduino nano with a real-time clock chip to keep accurate time. A photoresistor allows the Stargate to automatically dim at night. With some slick programming [David] added everything from a visual hourly “chime” to a smooth fade from LED to LED.

bendulum[dehne1] gives us something completely different with The Bendulum Clock. A bendulum is [dehne1’s] own creation consisting of an inverted pendulum built without a pivot. The inverted pendulum swings by bending along its length. In [dehne1’s] design, the bendulum is made out of a spring steel strip rescued from a car windshield wiper. The Bendulum doesn’t have a mechanical escapement, but an electromagnet sensed and driven by an Arduino. The amazing part of this project is that  [dehne1] isn’t using a real-time clock chip. The standard 8MHz Arduino resonator is calibrated over various temperatures, then used to calibrate the bendulum itself. The result is a clock that can be accurate within 1 minute each day. [dehne1] mounted his clock inside a custom wood case. We think it looks great, and want one for Hackaday HQ!

We’ve used enough clock ticks for this episode of The Hacklet. As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Still want more? Check out our Timepiece List!

Beverly-Crusher, The Greatest Name For An Audio Effect

Image is © aliceazzo [http://aliceazzo.deviantart.com/].
Image © aliceazzo [http://aliceazzo.deviantart.com/].
When it comes to audio effects, you have your delay, reverb, chorus, phasing, and the rest that were derived from strictly analog processes. Compared to the traditional way of doing things, digital audio is relatively new, and there is still untapped potential for new processes and effects. One of those is the bit crusher, an effect that turns 8- or 16-bit audio into mush. [Electronoob] wanted to experiment with bitcrushing, and couldn’t find what he wanted. Undeterred, he built his own.

There are two major effects that are purely in the digital domain. The first is the sample rate reducer. This has a few interesting applications. Because [Shannon] and [Nyquist] say we can only reproduce audio signals less than half of the sample rate; if you run some audio through a sample rate reducer set to 1kHz, it’ll sound like crap, but you’ll also only get bass.

The bitcrusher is a little different. Instead of recording samples of 256 values for 8-bit audio or ~65000 values for 16-bit audio, a one-bit bitcrusher only records one value – on or off. Play it through a speaker at a decent sample rate, and you can still hear it. It sounds like a robotic nightmare, but it’s still there.

[Electronoob] created his bitcrusher purely in software, sending the resulting bitcrushed and much smaller file to an Arduino for playback. Interestingly, he’s also included the ability to downsample audio, giving is project both pure digital effects for the price of one. 1-bit audio is a bit rough on the ears, but 2, 3, and 4-bit audio starts to sound pretty cool, and something that would feel at home in some genres of music.

Continue reading “Beverly-Crusher, The Greatest Name For An Audio Effect”

A PC Engine To TurboGrafx-16 Converter

The PC Engine was pretty popular in Japan, but only the coolest kids in America had the US edition, the TurboGrafx16. These two systems weren’t exactly the same; the TurboGrafx-16’s data bus was flipped so the games were made to be incompatible, and the US games have a region lockout. [Kaz] looked at the existing hacks for running Japanese games on US systems, and every single one of them required modding a console. Thinking he could do better, he came up with the PC-Henshin, an adapter and CPLD that allows Japanese game to run on US consoles.

To take care of the mixed up lines on the PC card connector between the US and Japanese variants, a few adapter cards are available. That’s great, but they only solve one part of the compatibility problem. The region lockout routine found on nearly every American title mean PC Engine consoles can’t run TurboGrafx-16 games. [Kaz] used a small, cheap CPLD to read the data bus, patch everything as it is read out, and turns a Japanese console into something that can play American games.

Video below.

Continue reading “A PC Engine To TurboGrafx-16 Converter”

The Cassette MP3 Player

1994 was twenty years ago. There are people eligible to vote who vaguely remember only one Bush presidency. You can have a conversation with someone born after the millennium, and they think a 3.5 inch disk is called a save icon. Starting to feel old? Don’t worry, all the trinkets of your youth have now become shells for MP3 players, the cassette tape included.

[Britt] is aware you can pick up one of these cassette tape MP3 players through the usual channels, but she wanted her build to be a little different. She’s using ar real, vintage cassette tape for starters, and from the outside, looks pretty much like any other cassette tape: there’s a thin strip of tape at the bottom, and the clear plastic window shows the tape is at the beginning of side A.

Outside appearances are just that; inside, there is a small, repurposed MP3 player, with tact switches wired up to the old buttons, actuated by moving the spools back and forth. Yes, you actually play, pause, rewind and fast forward by sticking a pencil in the spool and moving it back and forth. Amazing.

It’s a great build, and considering both cassette tapes and cheap MP3 players can be found in the trash these days, it’s something that should be hard to replicate.

Toddler Jukebox Requires No Quarters Or Button Mashing

Ahh, toddlers. They’re as ham-fisted as they are curious. It’s difficult to have to say no when they want to touch and engage with the things that we love and want them to play with. [Shawn] feels this way about his son’s interest in the family Sonos system and engineered an elegant solution he calls Song Blocks.

The Sonos sits on a dresser that hides a RasPi B+. Using bare walnut blocks numbered 1-12, his son can use the Sonos without actually touching it. Each block has a magnet and an NFC tag. When his son sticks a block on the face of the right drawer containing embedded magnets and an NFC controller board, the B+ reads the tag and plays the song. It also tweets the song selection and artist.

The blocks themselves are quite beautiful. [Shawn] numbered them with what look like Courier New stamps and then burned the numbers in with a soldering iron. His Python script is on the git, and he has links to the libraries used on his build page. The Song Blocks demo video is waiting for you after the jump.

Continue reading “Toddler Jukebox Requires No Quarters Or Button Mashing”

The Triple Delta Robot Arm (and Leg)

delta By now you’d think we’ve seen just about every means of robotic actuator possible. We have Cartesian bots, Stewart platforms, SCARA bots, Delta bots, and even some exceedingly bizarre linkages from [Nicholas Seward]. We’re not done with odd robotic arms, it seems, and now we have Delta-ish robots that can move outside their minimum enclosed volume. They’re fresh from the workshop of [Aad van der Geest], and he’s calling them double and triple Deltas.

Previous Delta robots have used three universal joints to move the end effector up and down, and side to side. They’re extremely fast and are a great design for 3D printers and pick and place machines, but they do have a limitation: the tip of a single Delta can not move much further than the base of the robot.

By adding more parallelograms to a Delta, [Aad] greatly increases working volume of a his robots. One of the suggested uses for this style of bot is for palletizers, demonstrated in the video below by stacking Jenga blocks. There is another very interesting application: legs. There’s footage of a small, simple triple Delta scooting around the floor, supported by wire training wheels below. It makes a good cat toy, but we’d love to see a bipedal robot with this style of legs.

Continue reading “The Triple Delta Robot Arm (and Leg)”