Go to Post It's our first time actually doing the math for all of our mechanisms and for some reason math actually works. - Ginger Power [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 23-05-2008, 10:11
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Selecting a micro controller

Quote:
Originally Posted by Gdeaver View Post
You might want to look at Cypress Semi for their color LED controller solution. They have a demo board with a PSOC micro controller, LED driver, and 3 primary color high brightness LEDs. It's 149$. May seam like allot but its a complete kit to experiment with generating a wide spectrum of color with LEDs. The Cypress PSOC micro controllers are different than PICs. Cypress has allot of app notes to get one up to speed on their form of micro controller. They have a neat programming environment called PSOC express. It's graphic drag and drop programming. It includes a state machine builder that allows the coding of some very powerful algorithms. I recently bought one of their evaluation boards and really liked the Cypress system.
Here is a link
http://www.cypress.com/ez-color/index.jsp
Seconded. PSoCs rock, especially their capsense (capacitive sensor) models.

Don't be put off by "graphical environment". Basically the PSoC is a two part chip - 1 part microprocessor, 1 part reprogrammable hardware. The micro gets coded up in C. The rest gets coded up graphically.

What is this stuff he speaks of? Well, it is somewhere between pure FPGA and set hardware. Each chip gets some number of blocks that can be set up to do specific tasks. As an example, a digital block might be a serial port, SPI driver, I2C port, Timer/PWM/Counter, Random Number Generator, or a CRC checker. An analog block can be as simple as an A/D, or it can do some really cool switched capacitor analog filtering (way too much rock for just one hand!). Also, the capacitive sensing truely rocks - attach a bit of copper the size of your finger to a pin, and it is a button.

While not as flexible as a true gate array, you do get the benefit of doing some stuff in hardware.

Give them a shot!
  #17   Spotlight this post!  
Unread 23-05-2008, 13:42
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,833
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Selecting a microcontroller

Quote:
Originally Posted by Adam Y. View Post
You typically don't want to drive LEDs directly off the IO port of a microcontroller. LED drivers are usually utilized which the microcontroller controls.
That is true, but the PIC 16F627a (as well as a few other PICs) has the LED drivers built in to the uC. Each pin can drive up to 25mA with a total of 200mA off the entire chip.

Since this application would only require 12 lines, the 16f627a would be an ideal choice. Not only will Microchip send you a couple of freebies to experiment with, but they can be purchased for just $2.95 from digikey (dropping to $1.48 if you order 25 or more). They require NO external circuitry in order to run... just feed them something between about 2.5 and 5.5 volts and hook them up to ground and you're good to go. Plug in your LEDs and resistors direct to the I/O pins and there is no simpler or cheaper way to build the circuit described here. (Well, at least that I know of...)

I'd even be willing to hazard a guess that the PIC could handle the 240mA required to drive each LED at 20mA... at least for a short period of time... if it were kept reasonably cool. I haven't tried it... but if you fry a PIC, it's not like it is a big problem. They are cheap enough to sacrifice a few.

The software can be created in machine code using MPLAB (free) or using PICC Lite (also free, and also using the MPLAB IDE). I can't promise that it will run on a MAC, but I can bet you can find an old PC for free that will run it. If you have an old PC kicking around then you can also build the NOPPP, the "No Parts PIC Programmer" or the Classic PIC Programmer or any number of other DIY designs that can be done on a breadboard and plugged in to a parallel port. My favourite is the TPIC, as it also serves as a prototype board as well as a programming board, but I'm not sure if they are still for sale. In any case, there is no shortage of commercial PIC programmers and kits for sale.

There are many other microcontrollers that could do the job, but there aren't many that can do it as simply and inexpensively as the PIC... particularly if you plan on making more than one of this device. You will be spending more on the LED's than the uC, I'll bet!

Jason
  #18   Spotlight this post!  
Unread 23-05-2008, 20:32
Browzilla Browzilla is offline
Fearless Leader
AKA: David Vriezen
FRC #2530 (Team Inconceivable)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rochester, MN
Posts: 57
Browzilla is on a distinguished road
Send a message via AIM to Browzilla Send a message via MSN to Browzilla
Re: Selecting a microcontroller

That sounds perfect. Although I may have to do something about the overheating; I'm hoping to be able to integrate this into a piece of clothing or something.

And if I did manage to get it into clothing, I was hoping to produce several more.


Also, the reason I'd think an Arduino is overkill is that they cost $35 or so each, and have more than enough power to do what I want to do. $35 for the microcontroller alone, aside from adding another $12 for the LEDs and whatever the clothing article would possibly cost.
  #19   Spotlight this post!  
Unread 23-05-2008, 22:50
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: Selecting a microcontroller

Either way, pic or ATmega (arduino), you will probably need a programmer or micocontroller with a bootloader on it. An Arduino is pretty much just a $4 ATmega168 with a bootloader on it paired up on a board with a powersupply and USB to serial chip. The nice thing about arduino is that the software runs great on a mac, and you can just buy that board or a cheap clone and it will work. No need for a programer, vmware, or mplab.
__________________
  #20   Spotlight this post!  
Unread 24-05-2008, 01:53
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,833
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Selecting a microcontroller

Quote:
Originally Posted by Browzilla View Post
And if I did manage to get it into clothing, I was hoping to produce several more.
Have you seen the shirts on Thinkgeek? Possible inspiration there... there are a few other models besides the wi-fi detecting shirt.

You may also want to consider a surface mount package for a clothing application... all PICs are available in surface mount packaging. I will pass you on to others for tips on doing it as I've stuck to good old through-hole DIP stuff for everything I need to do, but I understand simple surface mount isn't that hard if you have a good soldering iron and a steady hand.

I'd say the best way to see what a PIC can handle in regards to current draw (they might actually mean it when they say there is a 200mA limit... I haven't driven more than about 10 LEDs at a time off a 627a so couldn't tell you for sure) is to try it. If you can't light up all the LEDs at once, you could always increase the value of your resistors to bring the current draw down a bit. The LEDs won't be at peak brightness then, but should still be pretty darn close to it.

As a point of general interest, while I am sure this fits in to the "not exactly great practice" category and several people will happily explain why this won't work, you can run several LEDs directly off a PIC running at 5v without any resistor between the LED and ground. It would be a conservative estimate to say that my students have done this on over 200 PIC 16f84, 16f84a, 16f627 and 16f627a chips without any problem. If you were to run your PIC on 3V (2xAAA batteries perhaps?), it may be possible for you to hook up all your LED leads directly to the PIC and back to ground without the need for any other components.

And if I'm wrong and you fry the PIC... you're out two bucks. Give it a try!

That's one thing I love about the PICs... not only are they tough little chips, but they are cheap, cheap, cheap!

Jason
  #21   Spotlight this post!  
Unread 31-05-2008, 23:56
willson.thomas willson.thomas is offline
Registered User
FRC #1595
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 50
willson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nice
Re: Selecting a microcontroller

I would definitely recommend one of the Arduino models. I just got one a couple of weeks ago and it is great. The programming is easy, the software runs great on the Mac (I even got it up and running with XCode, you can PM me for the template), and it could be used in future projects. There is even the Arduino LilyPad, a board designed for clothing applications. It sounds like it would be perfect for what you need.

Also, each output pin can provide 40ma, twice your requirement. The chip can be found for about $7. The full-sized arduino boards are socketed so you could replace the chip if needed.

Even if you don't go for the arduino, I would definitely recommend the Atmega168 chip because it is cheap, durable, and can be programmed on almost any OS using widely available open-source tools.

Last edited by willson.thomas : 01-06-2008 at 00:00.
  #22   Spotlight this post!  
Unread 02-06-2008, 08:15
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Selecting a microcontroller

Quote:
Originally Posted by willson.thomas View Post
I would definitely recommend one of the Arduino models.
If it's going into clothing then use the Lilypad. It is specifically designed for that purpose. Sparkfun also sells conductive thread.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
  #23   Spotlight this post!  
Unread 03-06-2008, 16:35
Browzilla Browzilla is offline
Fearless Leader
AKA: David Vriezen
FRC #2530 (Team Inconceivable)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rochester, MN
Posts: 57
Browzilla is on a distinguished road
Send a message via AIM to Browzilla Send a message via MSN to Browzilla
Re: Selecting a microcontroller

Quote:
Originally Posted by Adam Y. View Post
If it's going into clothing then use the Lilypad. It is specifically designed for that purpose. Sparkfun also sells conductive thread.
I considered the Lilypad but their waterproof LEDs were expensive, and I didn't want to pay $8 for an LED, time six.

I was gonna try to put it in a hat or vest or something that wouldn't really require washing, since really I'd only wear this thing out around geeks. Like, say, FIRST things and such.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting bits from an analog input Spencer E. Programming 2 13-01-2008 09:06
Observation about Selecting Alliances Kel D General Forum 14 13-05-2004 07:43
Selecting Autonomous Behavior Gobiner Programming 5 22-01-2003 09:44
Order of Selecting who plays in Elims JoshB Rules/Strategy 5 06-01-2003 10:22
Selecting finalists at regionals Ken Loyd General Forum 2 02-10-2001 10:41


All times are GMT -5. The time now is 19:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi