Shop OBEX P1 Docs P2 Docs Learn Events
how to communicate with other microcontroler — Parallax Forums

how to communicate with other microcontroler

hterrollehterrolle Posts: 30
edited 2008-03-26 13:17 in General Discussion
hi,

As i run out of pin cause of the 2 stepper motors. I suppose that i should add other microcontroler to manage few module.

In fact i would like to use the javelin as the heart of the system to manage other microcontroler.

As i got 16 pin on the javelin i could connect 8 microcontroler using one input and 1 output for every microcontroler.

The problem is that i do not know how to use microcontroler and if it is possible to connect sensor to it.

could someone give me some indication on how to choice microcontroler depending on the type of sensor (IC2, uart, PWM).

Some link would be nice.

regards

Comments

  • hterrollehterrolle Posts: 30
    edited 2008-03-26 10:46
    Hi,

    i forgot the main question. It is possible to do such implementation ?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-03-26 10:53
    If you are running out of pins only because of 2 stepper motors,
    you might consider offloading the stepper motors to some peripheral print,
    freeing up the pins for your sensors. The javelin can do I2C, pwm, uart, spi
    directly and provide large buffers if necessary.
    Here is a link to some stepper motor control schematics:
    http://www.doc.ic.ac.uk/~ih/doc/stepper/control2/connect.html

    regards peter
  • hterrollehterrolle Posts: 30
    edited 2008-03-26 13:12
    thanks peter,

    it look like the UCN5804B·should allow me to use only 4 pin of the javelin rather than 8 with the ULN28 that i got.

    Even 3 pin if i connect the two UCN5804B Half Step pin to 1 pin of the Javelin and i keep 2 pin for the direction.

    the reverse fonction is very interesting so i even do nt need to add a shift register to inverse the rotation.
    ·
  • hterrollehterrolle Posts: 30
    edited 2008-03-26 13:17
    Sorry i still forgot one question,

    Is there a relation between the output Intensity(A) and the weigth of the robots ?
Sign In or Register to comment.