Pages: [1]   Go Down
Author Topic: 74hc138n  (Read 1011 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, i'm working on a motion tracking project for college. I want to control (digital on/off) 64 motors using an UNO. I was recommended to use the 74hc138 along with 8#  74hc273's. to send 8 x  8bit messages to set the HIGH and LOW state to each of the 8 motors in each of the 8 rows.

I'm looking for some example code to introduce me to these chips. I have scoured the web and although there is mention of these chips there are no examples / tutorials for me to try.
Logged

Montreal
Offline Offline
Faraday Member
**
Karma: 30
Posts: 2608
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This should help you  start:
http://tronixstuff.wordpress.com/2010/07/16/part-review-nxp-74hc238-decoderdemultiplexer/
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 130
Posts: 8620
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

For 64 motors you will need 8 273s, 1 238 and 12 digital pins on the Arduino.

OTOH if you use shift registers you need 8 595s (or equivalent) and 3 digital pins on the Arduino.

So the question is, do you need the extra speed you may get from using the first approach? As you appear to be controlling normal DC motors I would suggest you don't and therefore the shift register approach is simpler and uses less components.

Next question, what type of motors and what will drive them?

______
Rob
« Last Edit: July 10, 2012, 08:20:50 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't put motors into a matrix like you do LEDs.
This is because while LEDs can be multiplexed and they look to be on all the time. This dosn't happen with motors.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the link 'magician'

'Graynomad' im using pc cooling fan motors. i will need to be able to have any number 0-64 of the motors running at any one time.

'grumpyMike' thanks for that bit of information. I will try the LED example given by magician to get me familiar with using these chips
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27418
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Be sure to follow magician's links over to the 74HC595 so you can have multiple fans on at once.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 130
Posts: 8620
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
im using pc cooling fan motors
Then none of the chips we're talking about will drive them.

What's the answer to my question about whether you need parallel registers or can get by with shift registers?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27418
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The chips won't drive them but they can control inexpensive relays that can drive them.
Shift register chips like TPIC6B595 would be better for relays, give more options for controlling relays - 5V, 12V. different coil currents.
I have a board that can be populated with up to 12 chips, can control 96 relays. There's a picture at my signature link. Bare boards are availalble for purchase if you're interested, or one can be built up for you.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi.  im using tip120 transistors to switch the fans on and off. the chips will be used to trigger the tip120's.
Logged

Pages: [1]   Go Up
Jump to: