Searching \ for 'Stepper-controller' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/steppers.htm?key=stepper
Search entire site for: 'Stepper-controller'.

Truncated match.
PICList Thread
'Stepper-controller'
1999\10\10@082411 by Ernst Aardal

flavicon
face
I am a newstrater in pic assembly but here is my scope:
I am going to make a controller for one steppermotor that shal run for
a number of steps:
-I am going to use a 4x4 keypad
-I am going to use a 1x16 lcd that displays the number that I am keying.

-The number will be from 0.01 to 9999.99, the largest number of steps
  generated wil be 2,000,000
-I am going to output step- pulses and dir-pulses  on  2 pins of the
chip.

Does anybody think  that  I can use a 16F84 for this project?
Has anybody done this before?
Is it possible to store this large number in a 16F84 or C84?

Ernst

1999\10\10@155319 by Keith Causey

picon face
Hello Ernst, I have worked with driving stepper motors and with 16C84's but
not together. However, armed with the knowlege of the capabilities of the
16C84 and the operation of stepper motors there will be no problem getting
your project to perform in the manner you indicate. In order to count to
2,000,000 you will need to concatenate 3 of the 8 bit internal registers of
the 16C84 into one long 24-bit register. You do this by observing the state
of the carry bit after you add a 1 to any 8-bit register. When you subtract
a 1 its significance reverses (becomes a "0" to indicate a borrow) and you
must subtract 1 from the next higher register. When you say that you are
going to output step and direction pulses it seems to indicate that you are
using the PIC to control a stepper motor driver chip as a stepper motor is
incapable of handling this information directly. Is this the case? If so,
what kind of chip is it?
Keith Causey

{Quote hidden}

1999\10\10@173005 by Ernst Aardal

flavicon
face
Thank you, Keith Causey!
Regarding the output, yes I will use this pulses to run a larger amplifier,
might
be a L297 and L298 or even Powermosfet and a Ericsson chipset, I have made
several of this earlier.
Then do you have any idea how to connect the keypad and LCD display.
I thought of using a 74C922, this is a 16 key encoder with 4 bit data output
and a data available and a enable input. So this will need 6 of the pic's i/o
then the lcd will use 6 i/o lines, this is 12 of the 16x84's 15 i/o.
But I have seen in a Basic-stamp configuration that they are using the 4
databits and the data available at the 74c922 and the RS terminal at the lcd
common.  Any Idea about this?
Ernst

Keith Causey wrote:

{Quote hidden}

1999\10\10@174914 by Keith Causey

picon face
Hello again Ernst. I have never interfaced an LCD display to anything so I
can give you no help there. The keyboard on the other hand is simple. If it
is 4 x 4 and wired such that there are 8 lines, 4 from the rows and 4 from
the columns, then the interface can be done with an 8-bit port. I have not
used the 74C922 but from your description of the peripherals and the
resources they require you may not enough pins if I understand the following
correctly. You have:
6 pins for the 74C922 and
6 pins for the LCD display and
2 pins for the stepper motor controller.
The 16C84 has 8+4 i/o lines and an RTCC line that can, in certain
situations, be used as an input. Conservatively you have a 2-pin deficit. I
will need the data on each of the chips you are working with to tell you
more. You may email them to me if you wish.
spam_OUTffightTakeThisOuTspamgeocities.com

> Thank you, Keith Causey!
> Regarding the output, yes I will use this pulses to run a larger
amplifier,
> might
> be a L297 and L298 or even Powermosfet and a Ericsson chipset, I have made
> several of this earlier.
> Then do you have any idea how to connect the keypad and LCD display.
> I thought of using a 74C922, this is a 16 key encoder with 4 bit data
output
> and a data available and a enable input. So this will need 6 of the pic's
i/o
> then the lcd will use 6 i/o lines, this is 12 of the 16x84's 15 i/o.
> But I have seen in a Basic-stamp configuration that they are using the 4
> databits and the data available at the 74c922 and the RS terminal at the
lcd
> common.  Any Idea about this?
> Ernst
>
> Keith Causey wrote:
>
> > Hello Ernst, I have worked with driving stepper motors and with 16C84's
but
> > not together. However, armed with the knowlege of the capabilities of
the
> > 16C84 and the operation of stepper motors there will be no problem
getting
> > your project to perform in the manner you indicate. In order to count to
> > 2,000,000 you will need to concatenate 3 of the 8 bit internal registers
of
> > the 16C84 into one long 24-bit register. You do this by observing the
state
> > of the carry bit after you add a 1 to any 8-bit register. When you
subtract
> > a 1 its significance reverses (becomes a "0" to indicate a borrow) and
you
> > must subtract 1 from the next higher register. When you say that you are
> > going to output step and direction pulses it seems to indicate that you
are
> > using the PIC to control a stepper motor driver chip as a stepper motor
is
> > incapable of handling this information directly. Is this the case? If
so,
> > what kind of chip is it?
> > Keith Causey
> >

1999\10\10@214433 by Todd Peterson

flavicon
face
> I am a newstarter in pic assembly but here is my scope:

> -I am going to use a 4x4 keypad
> -I am going to use a 1x16 lcd that displays the number that I am keying.

> Does anybody think  that  I can use a 16F84 for this project?

An '84 should work well for this project if you implement a software UART.
You may find our EDE1144 Keypad Encoder IC and our EDE702 LCD Interface IC
of termendous use to you.  Each operates at 2400/9600 baud, and would
require only one I/O pin each.  One thing to note is that while your are in
the software UART loop you won't be able to drive the stepper motor.  To
remedy this, you may wish to make use of the Auto-step functionality of our
EDE1200/EDE1204 Stepper Motor IC's.

Let me know if you have any questions.

Todd Peterson
E-Lab Digital Engineering, Inc.
"Embedded Control & Integrated Circuit Solutions..."

  (816) 257-9954  FAX: (816) 257-9945
  http://www.elabinc.com

1999\10\10@233411 by steve

flavicon
face
> An '84 should work well for this project if you implement a software UART.
> You may find our EDE1144 Keypad Encoder IC and our EDE702 LCD Interface IC
> of termendous use to you.  Each operates at 2400/9600 baud, and would
> require only one I/O pin each.  One thing to note is that while your are in
> the software UART loop you won't be able to drive the stepper motor.  To
> remedy this, you may wish to make use of the Auto-step functionality of our
> EDE1200/EDE1204 Stepper Motor IC's.

In which case you  may as well talk to a "Little Step-U" at 2400 baud
and have it do all the stepper motor stuff for you. (Web site below).
Incidentally, most of that fitted into a 16F84 but with ramping and
multiple position registers it grew a little too large to remain in
one.

Steve.

======================================================
Steve Baldwin                Electronic Product Design
TLA Microsystems Ltd         Microcontroller Specialists
PO Box 15-680, New Lynn      http://www.tla.co.nz
Auckland, New Zealand        ph  +64 9 820-2221
email: .....stevebKILLspamspam@spam@tla.co.nz      fax +64 9 820-1929
======================================================

1999\10\11@020011 by paulb

flavicon
face
Todd Peterson wrote:

> An '84 should work well for this project if you implement a software
> UART.

 Sorry, but have I missed something here?  Whoever *ever* said he
wanted a UART?

 I seem to see an unholy rush to offer pre-packaged "solutions" to a
task which is a quite neat and easy exercise in using *ONE* PIC to
interface to a LCD in 4-bit mode, 16 pushbuttons and a stepper motor.

 As previously discussed, you *do* need a driver of some sort to
operate the stepper.  A 50 cent ULN2803 would do fine.  It may be quite
convenient to use a specialised stepper driver, though it is dead easy
to half-step, full-step or even microstep with a PIC.

 Sure, you *could* use a SLI-OEM (which is a re-packaged PIC, is it
not?) and a matching keyboard encoder to make the PIC (or better, AVR)'s
job completely trivial.  But there is certainly no *need* to introduce
extra interface problems (such as a UART) just to make other PICs (or in
fact, AVRs) perform trivial tasks!
--
 Cheers,
       Paul B.

1999\10\11@092115 by Henrik Nowak

flavicon
face
Hi Ernst

If you use, a hitachi HD44780 based standard LCD, you can interface it with
only 3 i/o from the pic, and then shift the data into a shiftregister (i.e
4094) But then you will not be able to read from the LCD, however, if you
only want to write to the LCD this works fine.
I have a system running with 74HC922 and a LCD like I described.
Mail me if you want further info/help.

Best regards
Henrik Nowak
hnospamKILLspampost3.tele.dk

-----Oprindelig meddelelse-----
Fra:    Ernst Aardal [SMTP:.....ernstKILLspamspam.....AARDAL.COM]
Sendt:  10. oktober 1999 23:30
Til:    EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU
Emne:   Re: Stepper-controller

Thank you, Keith Causey!
Regarding the output, yes I will use this pulses to run a larger amplifier,
might
be a L297 and L298 or even Powermosfet and a Ericsson chipset, I have made
several of this earlier.
Then do you have any idea how to connect the keypad and LCD display.
I thought of using a 74C922, this is a 16 key encoder with 4 bit data
output
and a data available and a enable input. So this will need 6 of the pic's
i/o
then the lcd will use 6 i/o lines, this is 12 of the 16x84's 15 i/o.
But I have seen in a Basic-stamp configuration that they are using the 4
databits and the data available at the 74c922 and the RS terminal at the
lcd
common.  Any Idea about this?
Ernst

Keith Causey wrote:

> Hello Ernst, I have worked with driving stepper motors and with 16C84's
but
> not together. However, armed with the knowlege of the capabilities of the
> 16C84 and the operation of stepper motors there will be no problem
getting
> your project to perform in the manner you indicate. In order to count to
> 2,000,000 you will need to concatenate 3 of the 8 bit internal registers
of
> the 16C84 into one long 24-bit register. You do this by observing the
state
> of the carry bit after you add a 1 to any 8-bit register. When you
subtract
> a 1 its significance reverses (becomes a "0" to indicate a borrow) and
you
> must subtract 1 from the next higher register. When you say that you are
> going to output step and direction pulses it seems to indicate that you
are
> using the PIC to control a stepper motor driver chip as a stepper motor
is
> incapable of handling this information directly. Is this the case? If so,
> what kind of chip is it?
> Keith Causey
>
> > I am a newstrater in pic assembly but here is my scope:
> > I am going to make a controller for one steppermotor that shal run for
> > a number of steps:
> > -I am going to use a 4x4 keypad
> > -I am going to use a 1x16 lcd that displays the number that I am
keying.
{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...