Shop OBEX P1 Docs P2 Docs Learn Events
osmc and bs2 — Parallax Forums

osmc and bs2

mikeyhzmikeyhz Posts: 16
edited 2010-09-10 14:22 in BASIC Stamp
hey there,i am currently in the process of assembling an osmc motor control board which i will control with my bs2.can anyone help with properly interfacing my stamp (and pwmpal) to this board???? (i dont wanna fry anything).

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-09-10 06:49
    You need to supply more information:

    1) A link to the OSMC controller board documentation or a copy of the manual posted as an attachment.

    2) A schematic showing how you plan to hook things up (also an attachment).
  • mikeyhzmikeyhz Posts: 16
    edited 2010-09-10 13:31
    http://www.robotpower.com/downloads/osmc3-22sch-clean.pdf
    im sure i need one pin to "ali",one pin to "bli" and one to "dis".pwm to "ali" and "bli"
    and i think i need to have 5v to "ahi" and "bhi" ???????? oh and also put 24v (car batteries for testing)through "cn1" and "cn2"on the board ??????.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-09-10 13:44
    The HIP4081A datasheet shows that the input threshold voltages for DIS, AHI/ALI and BHI/BLI are <1V for logic 0 and >2.5V for logic 1. These should work with the Propeller's I/O pin output voltages. I'd use a 2.2K resistor in series with the Propeller I/O pins "just in case" since the HIP4081A operates off a higher voltage power source than the 3.3V of the Propeller.

    You need to have a pullup resistor on DIS, probably tied to 5V, so the motor controller stays off until the Propeller can initialize itself and set DIS to low (0). I'd use something greater than 10K (like 22K or 33K) so the 2.2K series resistor doesn't prevent the Propeller from bringing DIS low.
  • mikeyhzmikeyhz Posts: 16
    edited 2010-09-10 13:50
    propeller?? im using a bs2e on a boe im sure it can handle the job...i think
  • Mike GreenMike Green Posts: 23,101
    edited 2010-09-10 14:16
    Sorry, I've mostly been answering Propeller questions. I'd still use a series resistor (like 330 Ohms) in the BS2 I/O leads because the HIP4081A runs off 12V even though the inputs should be somewhat isolated. I'd also still use the pullup (like 10K) to +5V on DIS.
  • mikeyhzmikeyhz Posts: 16
    edited 2010-09-10 14:22
    thank you very much for your help.i will definately take your advice.over the next couple of days i will try the new board out and see how it goes,cheers.
Sign In or Register to comment.