Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

controlling 2 stepper motors

Status
Not open for further replies.

serenity

Newbie level 4
Joined
Dec 25, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
Hi,

Im currently working on a school project involving the control of 2 stepper motors using a PIC microcontroller.
I want add buttons for each stepper motor to contrôl directions (left right) and another one for the contrôl mode (half and full stepping mode )
where can I put these buttons on my schématic ?
Thank you!
schématic2.PNG
 

Without sufficient pins left to connect 8 buttons, you obviously need some kind of expansion logic. There are many options, don't know which is easiest to you:
- a serial shift register to read the buttons. Advantage: can be easily expanded to more inputs. Uses shift clock, serial data in and load output. e.g. 74HC165 or CD4021
- an I2C interfaced IO expander
- a 3 to 8 decoder selecting a key and one uP pin to read it back
- an 8-to-1 multiplexer
 

thank you for your answer
if I choose a 8-1 multiplexer how can I connect it to the pic ?
 

3 outputs to select a channel, 1 input to read the selected switch

The 8 switches have to be scanned pericodically by the software.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top