TI’s CC3000 WiFi Chip Gets A Library

About six months ago, Texas Instruments released a simple, cheap, single-chip WiFi module. At $10 a piece in quantities of 1000, the CC3000 is a much better solution to the problem of an ‘Internet of Things’ than a $50 Arduino Ethernet modules, or even the $30 Electric Imp. All indications, especially the frequent out of stock status for the dev board on TI’s web site, show the CC3000 will be a popular chip, but until now we haven’t seen a CC3000 library for the Arduino or other microcontrollers.

[Chris] just solved that problem for us with a CC3000 WiFi library for the Arduino. He ported TI’s MSP430 CC3000 library to the Arduino, allowing even the bare-bones Arduino Uno to connect to a WiFi network with just a handful of parts. The code itself takes about 12k of Flash and 350 bytes of RAM, giving anyone using the CC3000 enough room left over to do some really interesting stuff. There’s even a slimmed down library that uses somewhere between 2k and 6k of Flash, making an ATtiny-powered web server a reality.

There are a few caveats in using the CC3000 with an Arduino; it’s a 3.3 Volt part, so you’ll need a level shifter or some resistors. Also, the chip draws about 250 mA when it’s being used, so you’ll need a beefy battery if you want your project to last an entire day of use.

Now that the library is out of the way, be on the lookout for a CC3000 breakout board. Here’s one, but expect some more on the market soon.

Giving Toys An Electronic Voice

sound

Whether it’s a Furby or Buzz Lightyear’s button that plays, ‘To infinity and beyond’, most digital audio applications inside toys are actually simple affairs. There’s no Arduino and wave shield, and there’s certainly no Raspi streaming audio from the Internet. No, the audio inside most toys are one or two chip devices capable of storing about a minute or so of audio. [makapuf] built an electronic board game for his kids, and in the process decided to add some digital audio. The result is very similar to what you would find in an actual engineered product, and is simple enough to be replicated by just about anyone.

[makapuf]’s game is based on Game of the Goose, only brought into the modern world with electronic talking dice. An ATtiny2313 was chosen for the microcontroller and an AT45D 4 Megabit Flash module provided the storage for 8 bit/8khz audio.

The electronic portion of the game has a few functions. The first is calling out numbers, which is done by playing recordings of [makapuf] reading, ‘one’, ‘two’, ‘three’, … ‘twelve’, ‘thir-‘, ‘teen’ and so on. This data is pumped out over a pin on the ATtiny through a small amplifier and into a speaker. After that, the code is a simple matter of keeping track of where the players are on the board, keeping score, and generating randomish numbers.

It’s an exceptional exercise in engineering, making a quite complicated game with a bare minimum of parts. [makapuf] estimated he spent under $4 in parts, so if you’re looking to add digital audio to a project on the cheap, we can’t imagine doing better.

You can see a video of [makapuf]’s project after the break.

Continue reading “Giving Toys An Electronic Voice”

Open Source PLC

In industrial applications, controlling relays, servos, solenoids, and the like isn’t just a matter of wiring in an Arduino and plugging in some code. No, for reliable operation you’ll need a PLC – a programmable logic controller – to automate all your hardware. PLCs are usually pretty expensive pieces of hardware, which led [Warwick] to come up with his own. He built two versions, one large and one small that can handle just about any task thrown at them.

Both devices are powered by an ATMEL SAM7S ARM chip running at 48 MHz. The smaller of the two devices has 10 digital inputs, 4 analog inputs, and 8 digital outputs able to sink 200 mA each. The larger PLC has 22 digital ins, 6 analog ins, and 16 digital outputs. Both of these devices have a ton of connectivity with USB, RS-232 and RS-485 ports

Below you can see the large PLC being used as a barcode scanner and as a strange device using compressed air to levitate a ping-pong ball. There’s also a demo of the smaller PLC lighting up some LEDs.

Continue reading “Open Source PLC”

Hackaday Retro Edition Roundup

Retro

The Hackaday retro edition hasn’t been updated in a while, and for that I am very sorry. Still, digging through my email reveals quite a lot of very cool retro computers that were able to load the retro edition over the Internet, and it would be a terrible shame to let these awesome submissions die in my inbox. Without further adieu, here are the best retro computers that have been sent in over the last few months:

[Scott] got his Mac SE to load up the retro edition. This was a chore; after getting a serial connection from his SE to the outside world, [Scott] realized he didn’t have a browser on his retro mac. 800k drives are a pain, it seems. He eventually got everything running in a terminal session, and the retro edition loaded beautifully.

How about another Mac? This one is [Raymond]’s Mac II, the first not-all-in-one Macintosh. NuBus Ethernet card, Netscape 2.02, and 26 years of history behind this machine.

Here’s a weird one: it’s a Siemens interactive display originally used for a building management display. It has a 10 inch touch screen display at 640×480 resolution and runs Windows CE 5.0. After fiddling with some files, [Nick] managed to get the networking running on this machine and tried to load Google. Anyone who has played around with the class of machines we seen for retro submissions knows what happened next (nothing), but luckily [Nick] remembered Hackaday has a retro site. The rest is history.

[Kyle] has a really cool box on his hands. It’s a Compaq 486SX overclocked from 25MHz to 33MHz. 20 Megabytes of RAM, network card, and a Soundblaster 16 make this computer from 1993 a very respectable box for old DOS gaming. It can also browse the web with Arachne.

Finally, [cnlohr], the guy who made his own electron microscope  never mind, he’s still awesome and can manufacture glass PCBs at home, found an old green screen CRT while cleaning out a friend’s place. He hooked it up to one of his glass PCB AVR microcontroller things and did the usual text terminal fare; ASCII Star Wars with telnet and using lynx to load up the retro site. It’s only a 48-column display, but the retro edition is surprisingly readable. Very cool.

Off The Shelf EEG Hardware Records Your Dreams

band

Over the past few years, we’ve seen [Michael]’s adventures in electronics and lucid dreaming. With commercial EEG hardware, [Michael] is able to communicate from inside his dreams with Morse code and record his rhythmic blinking for data analysis when he wakes up. His project is called Lucid Scribe, and now it’s open to just about everyone – including brain experimenters with OpenEEG hardware.

OpenEEG is a project that aims to reduce the cost of EEG hardware by providing the hardware, electrodes, software, and documentation to build your own EEG headset. It’s a great tool in the field of biofeedback, but [Michael] is going one step further; he’s busy writing an algorithm that will detect REM sleep and play an audio track while he’s in a dream state to trigger a lucid dream.

[Michael] points out that anyone with OpenEEG hardware including the DIY Olmex board can contribute to his Lucid Scribe database. You might also get some lucid dreaming time in, but then you’ll have to wake to the crushing reality of real life.

Arduino-compatible, Quad-core ARM Dev Board

The Advent of the Raspberry Pi has seen an explosion in the market for ARM dev boards, sometimes even with pinouts for Arduino shields. The UDOO, though, takes those boards and ramps up the processing power for some very, very interesting builds.

The UDOO comes equipped with a dual or quad-core ARM CPU running at 1GHz with 1 GB of RAM. Also on board is the Atmel SAM3X8E – the same chip in the new Arduino DUE – and has pinouts for all those Arduino shields you have lying around.

In addition to serving your next project as a souped-up Raspberry Pi, UDOO also includes 78 (!) GPIO pins, Gigabit Ethernet, a camera connector, one SATA port (on the quad-core version), and an LVDS header for attaching LCD monitors. Basically, the UDOO is the motherboard of an ARM-powered laptop with the pinouts to handle Arduino shields. It’s just like [Bunnie]’s laptop, only this time you can actually buy it.

The UDOO doesn’t come cheap, though: on the UDOO Kickstarter, the dual-core version is going for $150 while the quad-core is priced at $170. Still, if you need the power to run a pair of Kinects or want to build an awesome torrent box, you’d be hard pressed to find a more powerful board.

An Overkill Network Adapter For Retrocomputers

amiga

If you want to get an old Apple, Commodore 64, Amiga, or any other retrocomputer up on the Internet, this is for you. [Stian] had an Amiga 500 lying around and wanted to put it on a network. The A500 isn’t expandable, so he needed to look at some sort of adapter to put it on a network. The solution came to him in the form of a Raspberry Pi, a null modem cable, and a few bits of software.

To connect his Amiga to his network, [Stian] made a small serial converter board for his Raspi that breaks out the Tx and Rx pins on the Pi to a 9-pin serial port. With the physical connection to the Pi made, the only thing left to do was to get some software for the Amiga, namely AmiTCP and PPP. It’s not exactly a fast network connection, but this build allows [Stian] to connect to WiFi networks with ancient hardware.

One interesting aspect of [Stian]’s build is the fact it’s completely transferable to other retrocomputers – everything from old S-100 bus computers to classic macs, apples, and pretty much anything else with a serial port that supports PPP. Even with the expense of a Raspberry Pi, it’s much cheaper than absurdly expensive second-hand SCSI to Ethernet controllers and other tomfoolery.