Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 24, 2009, 11:45 AM   #1
deorg
macrumors 6502
 
Join Date: May 2007
Location: Lima, Peru
Send a message via MSN to deorg
Arduino + leds + ipodtouch (wifi) + xbee

Two questions...
First..
I want to make a wall of 50 Leds lamps, and conected to a kinda like audrino board ( i know It wont support 50 lamps) and ofcourse upload sequences to display that I allready have programed...

anybody know any board kinda a like audrino that are for more led lamps...

secondly anybody know how could I change the secuence through the ipod via wifi...

thanks
__________________
Perk 1: Bandolier, Perk 2: Juggernaut, Perk 3: Last Stand.
deorg is offline   0 Reply With Quote
Old Jun 24, 2009, 11:50 AM   #2
LtRammstein
macrumors 6502a
 
Join Date: Jun 2006
Location: Denver, CO
Send a message via AIM to LtRammstein Send a message via MSN to LtRammstein
Wow... Huge hobbyist stuff here!

First off, if you have never programmed for a microcontroller before, stay with the Arduino. Sadly, you will need a lot of circuitry from the Arduino to the LED lamps. This is because the Arduino cannot provide the current or voltage to all the LEDs.

To control it via WiFi from your iPod Touch... There's many approaches.

I personally would keep the Arduino attached to the Mac and send commands that way. Attaching a wireless card to the Arduino is very difficult to program with and it just exponentially increases the difficulty of the project.
__________________
17" White Intel iMac 1.83GHz, 250 GB HD, 2 GB RAM || iPod Touch 16GB w/ 3.0 || 15" Intel MBP 2.4GHz, 250 GB HD, 4 GB RAM
LtRammstein is offline   0 Reply With Quote
Old Jun 25, 2009, 12:16 AM   #3
deorg
Thread Starter
macrumors 6502
 
Join Date: May 2007
Location: Lima, Peru
Send a message via MSN to deorg
Quote:
Originally Posted by LtRammstein View Post
Wow... Huge hobbyist stuff here!

First off, if you have never programmed for a microcontroller before, stay with the Arduino. Sadly, you will need a lot of circuitry from the Arduino to the LED lamps. This is because the Arduino cannot provide the current or voltage to all the LEDs.

To control it via WiFi from your iPod Touch... There's many approaches.

I personally would keep the Arduino attached to the Mac and send commands that way. Attaching a wireless card to the Arduino is very difficult to program with and it just exponentially increases the difficulty of the project.

Ive used just the arduino... but, wich one would I need to provide enoght Voltage to all 50 led lamps, and control each lamp like the peggy
http://www.evilmadscientist.com/arti.../ardlibarchive
My team has experience on electronics...
__________________
Perk 1: Bandolier, Perk 2: Juggernaut, Perk 3: Last Stand.
deorg is offline   0 Reply With Quote
Old Jun 25, 2009, 06:03 PM   #4
cruzrojas
macrumors member
 
Join Date: Mar 2007
Location: USA
I would recommend sticking with the arduino, it would be hard to find a micro-controller with 50 digital pins if you are planning to connect one IO per LED. A first straightforward approximation I can think of would be:

1) power the LEDs thru an external power supply, and make sure the power supply can lit all of them at once.

2) use an op-am with feedback to set the state to low or high (on/off) for a single LED. Notice you need a persistent state such that if you were to disconnect the arduino from the rest of the circuit nothing would change.

3) assign an address to each LED and use the arduino to access each LED and turn it on and off. (notice you will need one op-am per LED).

4) finally look into how to access the arduino wirelessly, there are modules for wi-fi and bluetooth available for the arduino. you can use the more convenient for you.

Good luck with such an entertaining project and I would like to know how your project evolves.

Best Regards
Jesus Cruz
__________________
Systems: MBP SantaRosa, 15', 160Gb@7200 rpm HD; G4 mac mini
iPod: ipod nano 1Gb, 1st gen, touch 16 Gb, 2nd gen
Blog: chuyandmac.blogspot.com
cruzrojas is offline   0 Reply With Quote
Old Jun 25, 2009, 10:07 PM   #5
Muncher
macrumors 65816
 
Muncher's Avatar
 
Join Date: Apr 2007
Location: California
Quote:
Originally Posted by cruzrojas View Post
I would recommend sticking with the arduino, it would be hard to find a micro-controller with 50 digital pins if you are planning to connect one IO per LED. A first straightforward approximation I can think of would be...

2) use an op-am with feedback to set the state to low or high (on/off) for a single LED. Notice you need a persistent state such that if you were to disconnect the arduino from the rest of the circuit nothing would change.
That seems like a lot; you'd need 50 op amps, which (if you used LM324s) would mean 13 chips . Personally, I'd go with an array of 5x10 LEDs, and use 15 buffered output lines. Then you can wire them up so that the five lines connect to 10 LED anodes, and the other 10 lines each to 5 LED cathodes (or vice-versa). Then, trigger one LED at a time. As long as your circuit is fast enough updating, that would really cut down on the IO lines you need to use (and parts too!). Anyway you cut it, you're going to need at the least: 50 resistors for each LED and a transistor buffer for each IO line.

Obviously, the way I presented is easiest if the LEDs are going to be in a 5x10 array. It still can be done otherwise though.

Quote:
Originally Posted by LtRammstein View Post
I personally would keep the Arduino attached to the Mac and send commands that way. Attaching a wireless card to the Arduino is very difficult to program with and it just exponentially increases the difficulty of the project.
I would have to agree with this. The Wi-Fi interface will take much more work than the rest of the project; it isn't worth it.
__________________
2.4Ghz 20" Rev. A iMac, Wii, crimson DS, intuos3 4x6, PS3
iPod touch 2G 16GB > Fiio E1 > Hifiman RE0
Muncher is offline   0 Reply With Quote
Old Jun 26, 2009, 12:30 PM   #6
LtRammstein
macrumors 6502a
 
Join Date: Jun 2006
Location: Denver, CO
Send a message via AIM to LtRammstein Send a message via MSN to LtRammstein
Well, there are many ways on hooking up 50 LEDs together.

Easiest way would be a matrix (25x25) then sending row and column commands to some circuitry. From there you can have biasing resistors and transistors for controlling voltage/current flow to each LED. It's a bit more time consuming, and you can make it expandable.

Plus, LED technology has gotten in such a way large power-hungry LEDs are not necessary anymore. A friend of mine has a circuit board with 12 LEDs on it that are powered by the microcontroller and manipulated by the LED Driver. Plus, they are BRIGHT (350 mcd)!

But it's all on your design specs.
__________________
17" White Intel iMac 1.83GHz, 250 GB HD, 2 GB RAM || iPod Touch 16GB w/ 3.0 || 15" Intel MBP 2.4GHz, 250 GB HD, 4 GB RAM
LtRammstein is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Triggertrap shield for Arduino compuwar Digital Photography 0 Jan 16, 2014 05:21 PM
Coin Arduino-Based Bluetooth Low Energy Development Kit With iBeacons Potential onlycoin iOS 7 0 Oct 8, 2013 05:52 PM
[OLD] Arduino as an ADB to USB? 128keaton Mac Peripherals 3 May 13, 2013 03:22 PM
Screen looks like LEDs died? dopeytree MacBook Pro 0 Feb 22, 2013 05:30 AM
Working on Arduino? Mugambo Mac Programming 9 Sep 2, 2012 02:37 AM

Forum Jump

All times are GMT -5. The time now is 07:53 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC