Posts with «apple» label

An Apple ][ emulator on an Arduino Uno

April Fools’ Day may have passed, but we really had to check the calendar on this hack. [Damian Peckett] has implemented an Apple ][, its 6502 processor, and a cassette port, all on an Arduino Uno. If that wasn’t enough, he also uses a PS/2 keyboard for input and outputs analog VGA. [Damian] is doing all this with very few additional components. A couple of resistors, a capacitor and some very clever hacking were all [Damian] needed to convince an Arduino Uno that it was an Apple.

Making all this work boiled down to a case of resource management. The original Apple ][ had 4KB of RAM and 8KB of ROM. The ATmega328 has only 2KB of RAM, but 32KB of Flash. The only way to make this hack work would be to keep as much of the emulation and other routines in Flash, using as little RAM as possible.

The core of this hack starts with the MOS 6502, the processor used in the Apple. [Damian] wrote a simple assembler which translates the 6502 opcodes and address modes to instructions which can be executed by the Arduino’s ATmega328. To keep everything in ROM and make the emulator portable, [Damian] used two large switch statements. One for address modes, and a 352 line switch statement for the opcodes themselves.

A CPU alone is not an Apple though. [Damian] still needed input, output, and the ROM which made the Apple so special. Input was through a PS/2 keyboard. The PS/2 synchronous serial clock is easy to interface with an Arduino. Output was through a custom VGA implementation, which is a hack all its own. [Damian] used the lowly ATmega16u2 to generate the video timing. The 16u2 is normally used as the Arduino Uno’s USB interface. The only external hardware needed is a single 120 ohm resistor.

The original Apples had cassette and speaker interfaces. So does this emulated Apple. [Woz’s] original cassette and speaker interface accurate loops to generate and measure frequencies. One of the trade-offs [Damian] accepted in his 6502 was cycle accuracy, so he couldn’t use the original routines. Not a problem though, as he was able to write simple functions to replace these routines and drop them in place of the Apple’s own ROM calls.

The Apple ][ ROM itself is handled as one giant character array. This includes the system monitor, Mini-Assembler, Sweet-16, and [Woz’s] own Integer Basic. [Damian] caps off this incredible project by booting his new computer, loading a  Mandelbrot set program from cassette -or in this case an audio file stored on his cell phone, and running it. The well-known fractal is displayed in all its glory on a modern LCD monitor, driven by a microcontroller, emulating a computer from nearly 40 years ago.

Thanks for the tip [Bill]!

Apple II Image by RAMA, [CC BY-SA 2.0], via Wikimedia Commons


Filed under: Arduino Hacks

Control Anything with an Apple Remote

If you’re like us, you probably have more than one Apple Remote kicking around in a parts drawer, and if you’re even more like us, you’re probably really annoyed at Apple’s tendency to use proprietary hardware and software at every turn (lightning connector, anyone?). But there’s hope for the Apple Remote now: [Sourcery] has completed a project that allows an Apple Remote to control anything you wish.

The idea is fairly straightforward: A device interprets the IR signals from an Apple Remote, and then outputs another IR signal that can do something useful on a non-Apple product. [Sourcery] uses an Arduino to do the IR translation, along with a set of IR emitters and detectors, and now the Apple Remote can control anything, from stereos to TVs to anything you can imagine. It also doesn’t remove the Apple Remote’s capability to control Apple products, in case you need yours to do that as well.

[Sourcery] notes that sometimes working with RAW IR signals can be a little difficult, but the information on their project and in their 25-minute video discusses how to deal with that, so make sure to check that out after the break. Don’t have an Apple Remote? You can do a similar thing with a PS3 controller.


Filed under: wireless hacks

Watch an iPhone sort M&Ms by color

Not everyone has Minecraft-creator Markus "Notch" Persson's money (or candy room) so the rest of us have to devise our own methods of sorting M&Ms by color. The English blogger behind reviewmylife has an idea that combines, among other things, an iPhone 5s, an Arduino and an eBay-sourced 12V 80RPM motor to do the menial task. Oh, and an awful lot of ingenuity, foam-board and hot glue was involved too -- but you kind of figured that already, right? Unlike the Lego-powered contraption we've seen before, this one takes advantage of the Cupertino smartphone lens' color sensor to ID the candy's hue during free-fall after it leaves the hopper. The author has a step-by-step breakdown replete with his or her hardships (apparently finding the right motors and magnets took some experimenting) and photos detailing each part of the process, in case you're curious. Or, because maybe you'd just like to spend Christmas building your own.

Filed under: Cellphones, Apple

Comments

Via: Physorg

Source: reviewmylife

Engadget 24 Dec 07:54
apple  arduino  candy  cellphones  hack  iphone  iphone5s  maker  mms  mobile  

Watch an iPhone sort M&Ms by color

Not everyone has Minecraft-creator Markus "Notch" Persson's money (or candy room) so the rest of us have to devise our own methods of sorting M&Ms by color. The English blogger behind reviewmylife has an idea that combines, among other things, an iPhone 5s, an Arduino and an eBay-sourced 12V 80RPM motor to do the menial task. Oh, and an awful lot of ingenuity, foam-board and hot glue was involved too -- but you kind of figured that already, right? Unlike the Lego-powered contraption we've seen before, this one takes advantage of the Cupertino smartphone lens' color sensor to ID the candy's hue during free-fall after it leaves the hopper. The author has a step-by-step breakdown replete with his or her hardships (apparently finding the right motors and magnets took some experimenting) and photos detailing each part of the process, in case you're curious. Or, because maybe you'd just like to spend Christmas building your own.

Filed under: Cellphones, Apple

Comments

Via: Physorg

Source: reviewmylife

Tags: apple, Arduino, candy, hack, iphone, Iphone5s, maker, mms, mobile

Engadget 24 Dec 07:54
apple  cellphones  

Watch an iPhone sort M&Ms by color

Not everyone has Minecraft-creator Markus "Notch" Persson's money (or candy room) so the rest of us have to devise our own methods of sorting M&Ms by color. The English blogger behind reviewmylife has an idea that combines, among other things, an iPhone 5s, an Arduino and an eBay-sourced 12V 80RPM motor to do the menial task. Oh, and an awful lot of ingenuity, foam-board and hot glue was involved too -- but you kind of figured that already, right? Unlike the Lego-powered contraption we've seen before, this one takes advantage of the Cupertino smartphone lens' color sensor to ID the candy's hue during free-fall after it leaves the hopper. The author has a step-by-step breakdown replete with his or her hardships (apparently finding the right motors and magnets took some experimenting) and photos detailing each part of the process, in case you're curious. Or, because maybe you'd just like to spend Christmas building your own.

Filed under: Cellphones, Apple

Comments

Via: Physorg

Source: reviewmylife

Tags: apple, Arduino, candy, hack, iphone, Iphone5s, maker, mms, mobile

Engadget 24 Dec 07:54
apple  cellphones  

Hackaday Links: BSAPEDWLOVKTUB.YBKAB

Here’s something that’s just a design study, but [Ivan]‘s Apple IIe phone is a work of art. You’re not fitting a CRT in there, but someone out there has a 3D printer, an old LCD, and a GSM module. Make it happen. See also: the Frog Design Apple phone.

A few days ago we posted something on an old ‘286 machine that was able to load up the Hackaday retro site. For a few people, this was the first they’ve heard about our CSS and Javascript-less edition designed specifically for old computers. They dragged out some hardware, and [WTH] pulled up the site on a Dell Axim.It’s actually somewhat impressive that these machines have SD cards…

[Arduino Enigma] created a touchscreen Enigma machine. Why haven’t we seen an Arduino Colossus yet?

The crew at Adafruit now have a Flying Toaster OLED, which means we now have flying toaster bitmaps for all your OLED/graphic display projects.

[Ian] had an old rackmount programmable voltage standard. This was the remote programmable voltage standard, without front panel controls. No problem, just get an Arduino, shift register, and a few buttons. Video right here.

A few months ago, [Jan] released a neat device that stuffs a modelling synth inside a MIDI plug. He’s selling them now, and we’d love to see a few videos of this.


Filed under: Hackaday links

Insert Coin: A look back at ten top projects from 2011

2011 has been a tremendous year for tech -- Amazon launched a $200 Android tablet, AT&T and Verizon continued their LTE expansion, Apple killed off the Mac mini's SuperDrive and Samsung introduced a well-received killer 5.3-inch smartphone. But tiny tech startups made their mark as well, proving that you don't need an enormous R&D budget to spur innovation. Still, development isn't free, and unless your social circle includes eager investors, seed money has been traditionally hard to come by.

For many of this year's indie devs, crowdfunding sites have been the answer, with Kickstarter leading the pack. We've seen an enormous variety of projects -- including a deluge of duds and plenty more semi-redundant iPhone accessories -- but a few treasures soared above the swill to be featured in our Insert Coin series, with many of those meeting their funding goals and even making their way into the hands of consumers. Now, as 2011 draws to a close, we've gone through this past year's projects to single out our top ten, and they're waiting for your consideration just past the break.

Continue reading Insert Coin: A look back at ten top projects from 2011

Insert Coin: A look back at ten top projects from 2011 originally appeared on Engadget on Sat, 31 Dec 2011 16:00:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments

eSleeper combines cats, Arduino and Twitter in an eMac shell (video)

If we had to imagine our dream DIY project chances are it would involve Arduino, Twitter and, of course, cats. How we'd combine those things we're not sure, but we'll admit to being big fans of Samuel Cox's eSleeper, which turns a hollowed-out eMac into a bed for his feline. Inside the shell is an Arduino Ethernet connected to an IR sensor, some LEDs and a sound shield. When the cat breaks the infrared beam it triggers the iconic Mac chime and turns on a series color-shifting LEDs for a little mood lighting. From there the clock starts ticking. When little Fluffy (Captain Whiskers? Matlock? Penny? Greg?) decides she's had enough napping and leaves the white plastic cocoon, tripping the IR sensor again, a random phrase is tweeted, along with the length of the cat's siesta. Check out the video after the break to see the eSleeper in all its adorable DIY glory.

Continue reading eSleeper combines cats, Arduino and Twitter in an eMac shell (video)

eSleeper combines cats, Arduino and Twitter in an eMac shell (video) originally appeared on Engadget on Thu, 01 Dec 2011 06:34:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments