PIC Up A NeoPixel Ring And C What You Can Do Using This Tutorial

lit ringAs [Shahriar] points out in the introductory matter to his latest video at The Signal Path, Arduinos are a great way for a beginner to dig into all kinds of electronic excitement, but they do so at the cost of isolating that beginner from the nitty gritty of microcontrollers. Here, [Shahriar] gives a very thorough walkthrough of a 60-neopixel ring starting with the guts and glory of a single RGB LED. He then shows how that ring can easily be programmed using a PIC and some C.

[Shahriar]’s eval board is a simple setup that he’s used for other projects. It’s based on the PIC18F4550 which he’s programming with an ICD-U64. The PIC is powered through USB, but he’s using a separate switching supply to power the ring itself since he would need ~60mA per RGB to make them burn white at full brightness.

He’s written a simple header file that pulls in the 18F4550 library, sets the fuses, and defines some constants specific to the ring size. As he explains in the video, the PIC can create a 48MHz internal clock from a 20Mhz crystal and he sets up this delay in the header as well. The main code deals with waveform generation, and [Shahriar] does a great job explaining how this is handled with a single pin. Before he lights up the ring, he puts his scope on the assigned GPIO pin to show that although the datasheet is wrong about the un-delayed width of the low period for a zero bit, it still works to program the LEDs.

[Shahriar] has the code available on his site. He is also holding a giveaway open to US residents: simply comment on his blog post or on the video at YouTube and you could win either a TPI Scope Plus 440 with probes and a manual or a Tektronix TDS2232 with GPIB. He’ll even pay the shipping.

Continue reading “PIC Up A NeoPixel Ring And C What You Can Do Using This Tutorial”

Cutting Ribbons With Robots And A Oculus Rift

PR2-GrandOpening

On June 26th, 2014, Clearpath Robotics opened up the doors to their brand new 12,000 square foot robot lair by bringing out a PR2 to cut the ceremonial ribbon and welcome everyone inside. And instead of just programming the ‘locate and destroy’ ribbon sequence, the co-founders opted to use an Oculus Rift to control the robot tearing through the material with flailing arms.

This was accomplished having Jake, the robot, utilize a Kinect 2.0 that fed skeleton tracking data via rosserial_windows, a windows-based set of extension for the Robot Operating System which we heard about in January. The software gathers in a stream of data points each with an X,Y,Z component allowing [Jake] to find himself within a 3D space.Then, the data was collected and published directly into the PR2’s brain. Inject a little python code, and the creature was able to route directions in order to move it’s arms.

Thus, by simply stepping in front of the Kinect 2.0, and putting on the Oculus Rift headset, anyone could teleoperate [Jake] to move around and wave its arms at oncoming ribbons. Once completed, [Jake] would leave the scene, journeying back into the newly created robot lair leaving pieces of nylon and polyester everywhere.

An earlier (un-smoothed) version of the full system can be seen after the break:

Continue reading “Cutting Ribbons With Robots And A Oculus Rift”

Hackaday Links: July 20, 2014

hackaday-links-chain

Etch-a-Sketch spray-painted silver with electronics bolted onto the side? Sign us up! This art installation adds one thing that we don’t often see in these types of hacks, eerie audio.

If you’re still mining bitcoin you need to do it faster than anyone else… that’s pretty much how the whole thing works. [Lewin] has been using the Antminer USB ASIC and toyed around with overclocking to 2.2 GH/s (gighashes per second) but to make sure his hardware holds up to the overwork he hacked his own water cooling system for the dongle.

Smart phones are the best bang for your buck on portability and power. Better yet you can get slightly broken ones for a song. If you manage to find an Android device with a broken touch screen but functioning LCD try this trick to add a mouse to it. There must be another life for this in a future hack!

We have a love-hate relationship with this particular crowd-funding campaign. First this hate: It’s basically a 100% clip-art video presentation with an $800,000 ask. Yeah… good luck buddy. On the other hand, this is the type of stuff we actually want to see as crowd funding. The idea is to use modern materials and techniques to build [Nikola Tesla’s] Wardenclyffe Tower, which was designed and built to research wireless energy (both as a means of communication and actual energy transfer). It was never fully functional and ended up being demolished. Wouldn’t it be great if teams of highly skilled and motivated people took grand ideas like this, crossing every theoretical “t” and dotting every theoretical “i”, and then proposed a crowd funding campaign to build a test platform? Oh wait, that sounds very much like a government research grant. Anywhoo… check out the Global Energy Transmission’s campaign.

MARCH Attends HOPE X In July

hopex_web_topbar_b

The Mid-Atlantic Retro Computing Hobbyist (MARCH) group is at HOPE X displaying a chronology of Apple computers, everything from an accurate Apple 1 reproduction all the way way up to an Apple Macintosh, and of course including all the II’s in between. Although they are only displaying Apples at this event, don’t confuse them for an Apple group. They love all types of vintage computers from the 1940’s to the 80’s.

[Evan], president of the group, elegantly explained why they are here; “to let people know that vintage computing is a thing and there are people in the area that do that thing”. He would like to encourage everyone who is mildly interested in retro computing to contact their local retro computer group and get involved in the community.

The group also puts on a yearly Vintage Computer Festival in New Jersey. This year’s event has already passed but you can still see what happened as Hackaday was there documenting all the cool stuff.

Mid Atlantic Retro Computing Group

I’m Sorry Dave, I’m Afraid I Can’t Do That

HAL9000 Personal Computer

“Let me put it this way, Mr Amer. The 9000 series is the most reliable computer ever made. No 9000 computer has ever made a mistake or distorted information. We are all, by any practical definition of the words, foolproof and incapable of error. “

With that in mind, who wouldn’t want a HAL 9000 personal computer at home? For his latest project, [Eduardo Zola] brings us a very realistic Raspberry Pi powered HAL 9000, complete with an all seeing eye.

In case you’re not familiar (boo!) HAL 9000 is a character from 2001: a Space Odyssey. His name is an acronym for a Heuristically programmed ALgorithmic sentient computer who is responsible for controlling the Discovery One spacecraft, and well, he goes crazy.

[Eduardo] has built this replica out of wood, a bit of paint, a Raspberry Pi, a speaker, webcam and a beautiful red all-seeing-eye, lit with LEDs. It’s a rather fitting entry to our Hackaday Prize contest.

Continue reading “I’m Sorry Dave, I’m Afraid I Can’t Do That”

Kenyan Teen’s Invention Protects Cattle And Lions

Lion Scarecrow

[Richard’s] community in Kenya had a problem. The people depended on local livestock for survival, but the local lion population had started consuming that very same food source. The result was that people suffered from loss of the livestock, but the lions also suffered when the people killed them to protect their source of food. [Richard] knew he could do something to help both his community, and the lion population. He ended up building a lion attack prevention system.

He first tried a sort of scarecrow, to keep the lions away from the cattle. Unfortunately the lions proved to be too “tricky” and quickly realized that the scarecrows were no threat. Then one day, [Richard] was working with a flashlight. This led him to realize that the lions seemed to be afraid of moving light. That gave him the idea for his invention.

He had previously taken apart his mothers new radio, much to her dismay. He learned a lot about electronics in the process. He combined his electronics knowledge with this new knowledge about lions, to create his lion attack prevention system. The core component is the turn signal circuit from a motorbike. The circuit is hooked up to a rechargeable battery and a solar cell. This all runs through a switch so [Richard] can turn it on only when needed. The circuit is switched on at night to keep the lions away. [Richard] claims that they have experienced no lion attacks since the system was put in place two years ago!

This protects both the local cattle as well as the lions themselves. The whole thing is powered from the sun, so it’s likely to last a very long time. This kind of project may seem simple to many readers, but it’s a great example of the good ideas and ingenuity that can grow out of necessity. Oh, did we mention that [Richard] is only 13 years old? His invention is now reportedly being used all over Kenya and has led [Richard] to receive a scholarship to what he calls “one of the best schools in Kenya”.

While this hack has clearly changed the lives of many people in [Richard’s] region. You don’t have to make something overly complicated to change the world.

Continue reading “Kenyan Teen’s Invention Protects Cattle And Lions”

800+ LED Wall With Diffuser Panel Is A Work Of Art

LED Wall

What happens when you take over 800 individually addressable super bright RGB LEDs and house them in a giant diffused panel? You get awesome. That’s what you get.

[Epoch Rises] is a small electronic music and interactive technology duo who create cool interactive projects (like this wall) for their live shows and performances. They love their WS2812B LEDs.

The cool thing about this wall is that it can take any video input, it can be controlled by sound or music, an iPad, or even generate random imagery by itself. The 800 LEDs are controlled by a Teensy 3.0 using the OctoWS2811 library from Paul Stoffregen which is capable of driving over 1000 LEDs at a whopping 30FPS using just one Teensy microcontroller. It works by using Direct Memory Access to send data over serial into the Teensy’s memory and directly out to the LEDs with very little overhead — it is a Teensy after all!

Continue reading “800+ LED Wall With Diffuser Panel Is A Work Of Art”