Loading...
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 10:33:27 am
|
Arduino Forum
::
Using Arduino
::
LEDs and Multiplexing
:: 74hc138n
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: 74hc138n (Read 470 times)
0 Members and 1 Guest are viewing this topic.
hobo_UL
Offline
Newbie
Karma: 0
Posts: 3
74hc138n
«
on:
July 10, 2012, 07:29:47 am »
Bigger
Smaller
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
Magician
Montreal
Offline
Edison Member
Karma: 17
Posts: 2207
Per aspera ad astra.
Re: 74hc138n
«
Reply #1 on:
July 10, 2012, 07:58:01 am »
Bigger
Smaller
Reset
This should help you start:
http://tronixstuff.wordpress.com/2010/07/16/part-review-nxp-74hc238-decoderdemultiplexer/
Logged
http://coolarduino.wordpress.com/2011/02/10/color-organ-spectrum-analyzer-on-arduino/
Graynomad
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 72
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
Re: 74hc138n
«
Reply #2 on:
July 10, 2012, 08:18:43 am »
Bigger
Smaller
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
http://www.robgray.com
Grumpy_Mike
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25541
Solder is electric glue
Re: 74hc138n
«
Reply #3 on:
July 10, 2012, 08:24:34 am »
Bigger
Smaller
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
hobo_UL
Offline
Newbie
Karma: 0
Posts: 3
Re: 74hc138n
«
Reply #4 on:
July 10, 2012, 08:43:10 am »
Bigger
Smaller
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
CrossRoads
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16551
Available for Design & Build services
Re: 74hc138n
«
Reply #5 on:
July 10, 2012, 09:51:20 am »
Bigger
Smaller
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
Graynomad
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 72
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
Re: 74hc138n
«
Reply #6 on:
July 10, 2012, 10:00:16 am »
Bigger
Smaller
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
http://www.robgray.com
CrossRoads
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 249
Posts: 16551
Available for Design & Build services
Re: 74hc138n
«
Reply #7 on:
July 10, 2012, 10:22:28 am »
Bigger
Smaller
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
hobo_UL
Offline
Newbie
Karma: 0
Posts: 3
Re: 74hc138n
«
Reply #8 on:
July 11, 2012, 05:02:25 am »
Bigger
Smaller
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
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
LEDs and Multiplexing
:: 74hc138n
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...