Creating a decadent, insane, and depressed robot from Internet ramblings

Have you ever wondered what a Tumblr written by a psychotic robot would look like? Wonder no more, because [Lars] has that all figured out.

A few years ago, [Lars] stumbled across (now defunct, but mirrored here), an online confessional and bathroom wall meant to host people’s most private thoughts and actions anonymously. [Lars] wrote a script to pull a random lowbrow post down every minute and threw every unique result into a database.

With about 50 pages of the most depraved and depressing posts of questionable veracity, [Lars] trained a Markov chain algorithm to produce paragraphs that imitated the style of lowbrow contributors. This gave [Lars]  pages of computer-generated text describing the most decadent, depressing, insane, inane, but overwhelmingly human experiences possible. A few choice quotes from the output are:

The llama: nature’s random number generator.

Over 7000 watts of Ol’ Barry whining his ass cheeks to soften the blows.

All through school I was being pulled behind the local St. Benedictine  Monastary where I was afraid I don’t know what I thought was the founder pulls back from a discussion about

While [Lars]‘ script wouldn’t pass a Turing test, we’ve met people who couldn’t do the same. As far as creating a real-life version of Hedonism Bot, HAL, and Marvin from Hitchhiker’s Guide, we’re thinking [Lars] hit the mark.

After the break you can check out a gallery of pics [Lars] put together of from his computer-generated text. You can also grab the full lowbrow corpus and the ruby script to build your robotic [Kerouac].

[Read more...]

A detailed tutorial on speeding up AVR division

[Alan Burlison] is working on an Arduino project with an accelerometer and a few LEDs. Having the LEDs light up as his board is tilted to one side or another is an easy enough project a computer cowboy could whip out in an hour, but [Alan] – ever the perfectionist – decided to optimize his code so his accelerometer-controlled LEDs don’t jitter. The result is a spectacular blog post chronicling the pitfalls of floating point math and division on an AVR.

To remove the jitter from his LEDs, [Alan] used a smoothing algorithm known as an exponential moving average. This algorithm uses multiplication and is usually implemented using floating point arithmetic. Unfortunately, AVRs don’t have floating point arithmetic so [Alan] used fixed point arithmetic – a system similar to balancing your checkbook in cents rather than dollars.

With a clever use of bit shifting to calculate the average with scaling, [Alan] was able to make the fixed point version nearly six times faster than  the floating point algorithm implementation. After digging into the assembly of his fixed point algorithm, he was able to speed it up to 10 times faster than floating point arithmetic.

The takeaway from [Alan]‘s adventures in arithmetic is that division on an AVR is slow. Not very surprising after you realize the AVR doesn’t have a division instruction. Of course, sometimes you can’t get around having to divide so multiplying by the reciprocal and using fixed point arithmetic is the way to go if speed is an issue.

Sure, squeezing every last cycle out of an 8 bit microcontroller is a bit excessive if you’re just using an Arduino as a switch. If you’re doing something with graphics or need very fast response times, [Alan] gives a lot of really useful tips.

A Replica DJ Controller to Rule them All


So like many followers of Hackaday, maybe you’re into electronic music. We’d dare to say though that few of you have the dedication of [adamdzak] as he decided to replicate [Sasha]‘s custom controller for the [Abelton Live] software package. Apparently it’s more difficult than taking apart your DJ Hero controller and hacking it to interface songs on your computer.

The “new” controller is named Apollo, and is meant to be a replica of Sasha’s Maven controller. The build process is well laid out in his post, and the results so far look quite incredible. What’s particularly interesting is the effort taken to reverse engineer this device without ever having been able to use it. Both from a mechanical standpoint and trying to figure out how the buttons are used to control the software must have been quite a challenge. Check out the video after the break to see this new controller in action. [Read more...]

LVL1 has a rocketeers group, is not working on ICBMs.

We’re very familiar with the Louisville Hackerspace LVL1 here at Hackaday. From their GLaDOS-inspired sentient overlord, an evil box to filter the Internet, and a friggin’ moat, LVL1 is the closest we’ve got to a mad scientist heard cackling from a wind-swept castle on a stormy night. It turns out they also have a rocketry program. Now we’re just waiting for confirmation of their subterranean complex of missile silos.

The rocketery-oriented part of LVL1 spawned from a University of Louisville’s group. The goal of the group is to compete in the NASA University Student Launch Initiative, dedicated to competing against other teams to launch a scientific payload to 1 mile AGL. At the competition last May, the team placed 5th out of 42 teams and won the award for best website. We can’t wait to see what they come up with next year.

Even though the team is out of school for the summer, they’re still cooking up a few rocketry hacks. They’ve built a test stand to measure the thrust of off-the-shelf motors, kitbashed a few Estes Baby Berthas (very awesome and very easy if you have a laser cutter), and are starting a pulse jet project.

We’re assuming the LVL1 Rocketeers group is just a front for their yet to be unveiled moon-based “laser” project, but you can check out a few videos from the ULSI competition after the break.

[Read more...]