Forums

Re: BX 24 and LRP motor controller

Started by Jepsen Electronics Ltd September 4, 2005
John
I hope yu have a transistor between your motor and the BX24,
else you will kill the bx24. Likewise with other motors servos etc.
How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz is 20ms
long, unless you are talking about 1-2ms pulses every 20ms?.
john_massengale wrote:

> Attempting to use an RC car motor controller and not having much luck.
> The motor works fine when given power directly. My BX24 works fine
> to control my servos, but not moving my main motor. This motor
> controller - LRP AI Runner - says plug and play with RC receivers. I
> read that
> receivers output 50hz with widths of 1 to 2 millisecs. I have
> attempted to emulate these signals in basicx with much
> experimentation, but to no avail.
>
> Any help would be great. Thanks, John >
>
> SPONSORED LINKS
> Microprocessor
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=_YKW_KvdWM7nsvZLWwMhnw>
> Microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=UfvbdAF0r5o48CkzYmXRww>
> Basicx
> <http://groups.yahoo.com/gads?t=ms&ksicx&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=Nggd_ZUrVU6qzPviDXpKSw>
>
> Pic microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=dhYy34C8Xq6aeJfBsd7maw>
> 8051 microprocessor
> <http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=iJA-sY2QEUOfoaMmW8c17g >
>
> >. >
>




Attempting to use an RC car motor controller and not having much luck.
The motor works fine when given power directly. My BX24 works fine
to control my servos, but not moving my main motor. This motor
controller - LRP AI Runner - says plug and play with RC receivers. I
read that
receivers output 50hz with widths of 1 to 2 millisecs. I have
attempted to emulate these signals in basicx with much
experimentation, but to no avail.

Any help would be great. Thanks, John


You said it better, 1-2 millisec pulses every 20ms. I do not have a
transistor, but I didn't like the motor controller pushing battery
power to my BX24 board so that power wire is not hooked up, just
signal and ground to my BX24.

To be explicit, motor controller has +/- from battery, then +/- to
motor, then signal and ground to BX24 board. Thanks, John

--- In basicx@basi..., Jepsen Electronics Ltd <njepsen@i...>
wrote:
> John
> I hope yu have a transistor between your motor and the BX24,
> else you will kill the bx24. Likewise with other motors servos etc.
> How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz is 20ms
> long, unless you are talking about 1-2ms pulses every 20ms?.
> john_massengale wrote:
>
> > Attempting to use an RC car motor controller and not having much luck.
> > The motor works fine when given power directly. My BX24 works fine
> > to control my servos, but not moving my main motor. This motor
> > controller - LRP AI Runner - says plug and play with RC receivers. I
> > read that
> > receivers output 50hz with widths of 1 to 2 millisecs. I have
> > attempted to emulate these signals in basicx with much
> > experimentation, but to no avail.
> >
> > Any help would be great. Thanks, John
> >
> >
> >
> >
> > SPONSORED LINKS
> > Microprocessor
> >
<http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=_YKW_KvdWM7nsvZLWwMhnw>

> > Microcontrollers
> >
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=UfvbdAF0r5o48CkzYmXRww>

> > Basicx
> >
<http://groups.yahoo.com/gads?t=ms&ksicx&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=Nggd_ZUrVU6qzPviDXpKSw>

> >
> > Pic microcontrollers
> >
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=dhYy34C8Xq6aeJfBsd7maw>

> > 8051 microprocessor
> >
<http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=iJA-sY2QEUOfoaMmW8c17g>

> >
> >
> >
> >

> > >.
> >
> >
> >

> >


Jepsen wrote:

> John
> I hope yu have a transistor between your motor and the BX24,
> else you will kill the bx24. Likewise with other motors servos etc.
> How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz is 20ms
> long, unless you are talking about 1-2ms pulses every 20ms?.

Pretty much all RC servos need a 1-2ms pulse every 20ms or so. A 1ms
turns the servo in one direction and a 2ms pulse in the other. A 1.5ms
keeps the servo centered. I don't think it is necessary to use a
transistor to interface to the servo. I think the LRP AI Runner does all
the work here.

John says that he can interface to the other servos. Are you using a
pulse for these servos as well in which the same code should work. If
not perhaps you can post the code you are using so we can help you further.

Mike

> john_massengale wrote:
>
> > Attempting to use an RC car motor controller and not having much luck.
> > The motor works fine when given power directly. My BX24 works fine
> > to control my servos, but not moving my main motor. This motor
> > controller - LRP AI Runner - says plug and play with RC receivers. I
> > read that
> > receivers output 50hz with widths of 1 to 2 millisecs. I have
> > attempted to emulate these signals in basicx with much
> > experimentation, but to no avail.
> >
> > Any help would be great. Thanks, John
> >
>




My source, as requested. Thanks in advance for any assist, John

Public Sub main()
Call motor_fwd()
End Sub

Public Sub motor_fwd()
Const motor_pin as byte = 20
Dim i as integer
debug.print "Entering loop"
For i = 1 to 100
Call PulseOut(motor_pin, 0.0015 , 1)
' Have also tried pulsewidth 0.001 and 0.002, and others
Call Delay(0.020)
' Have also tried delays of 0.0167 and 0.025, and others
next
debug.print "Done with loop"
End Sub --- In basicx@basi..., "john_massengale"
<john_massengale@y...> wrote:
> You said it better, 1-2 millisec pulses every 20ms. I do not have a
> transistor, but I didn't like the motor controller pushing battery
> power to my BX24 board so that power wire is not hooked up, just
> signal and ground to my BX24.
>
> To be explicit, motor controller has +/- from battery, then +/- to
> motor, then signal and ground to BX24 board. Thanks, John
>
> --- In basicx@basi..., Jepsen Electronics Ltd <njepsen@i...>
> wrote:
> > John
> > I hope yu have a transistor between your motor and the BX24,
> > else you will kill the bx24. Likewise with other motors servos etc.
> > How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz is 20ms
> > long, unless you are talking about 1-2ms pulses every 20ms?.
> > john_massengale wrote:
> >
> > > Attempting to use an RC car motor controller and not having much
luck.
> > > The motor works fine when given power directly. My BX24 works fine
> > > to control my servos, but not moving my main motor. This motor
> > > controller - LRP AI Runner - says plug and play with RC
receivers. I
> > > read that
> > > receivers output 50hz with widths of 1 to 2 millisecs. I have
> > > attempted to emulate these signals in basicx with much
> > > experimentation, but to no avail.
> > >
> > > Any help would be great. Thanks, John
> > >
> > >
> > >
> > >
> > > SPONSORED LINKS
> > > Microprocessor
> > >
>
<http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=_YKW_KvdWM7nsvZLWwMhnw>
>
> > > Microcontrollers
> > >
>
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=UfvbdAF0r5o48CkzYmXRww>
>
> > > Basicx
> > >
>
<http://groups.yahoo.com/gads?t=ms&ksicx&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=Nggd_ZUrVU6qzPviDXpKSw>
>
> > >
> > > Pic microcontrollers
> > >
>
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=dhYy34C8Xq6aeJfBsd7maw>
>
> > > 8051 microprocessor
> > >
>
<http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=iJA-sY2QEUOfoaMmW8c17g>
>
> > >
> > >
> > >
> > >
>
> > > >.
> > >
> > >
> > >
>
> > >



If everything is working, this code will only run the motor for 2
sec after a reset. I.e. 100 loops at approx 20 msec each.

Ingvar

--- In basicx@basi..., "john_massengale"
<john_massengale@y...> wrote:
> My source, as requested. Thanks in advance for any assist, John
>
> Public Sub main()
> Call motor_fwd()
> End Sub
>
> Public Sub motor_fwd()
> Const motor_pin as byte = 20
> Dim i as integer
> debug.print "Entering loop"
> For i = 1 to 100
> Call PulseOut(motor_pin, 0.0015 , 1)
> ' Have also tried pulsewidth 0.001 and 0.002, and others
> Call Delay(0.020)
> ' Have also tried delays of 0.0167 and 0.025, and others
> next
> debug.print "Done with loop"
> End Sub > --- In basicx@basi..., "john_massengale"
> <john_massengale@y...> wrote:
> > You said it better, 1-2 millisec pulses every 20ms. I do not
have a
> > transistor, but I didn't like the motor controller pushing
battery
> > power to my BX24 board so that power wire is not hooked up, just
> > signal and ground to my BX24.
> >
> > To be explicit, motor controller has +/- from battery, then +/-
to
> > motor, then signal and ground to BX24 board. Thanks, John
> >
> > --- In basicx@basi..., Jepsen Electronics Ltd
<njepsen@i...>
> > wrote:
> > > John
> > > I hope yu have a transistor between your motor and the
BX24,
> > > else you will kill the bx24. Likewise with other motors servos
etc.
> > > How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz
is 20ms
> > > long, unless you are talking about 1-2ms pulses every 20ms?.
> > > john_massengale wrote:
> > >
> > > > Attempting to use an RC car motor controller and not having
much
> luck.
> > > > The motor works fine when given power directly. My BX24
works fine
> > > > to control my servos, but not moving my main motor. This
motor
> > > > controller - LRP AI Runner - says plug and play with RC
> receivers. I
> > > > read that
> > > > receivers output 50hz with widths of 1 to 2 millisecs. I
have
> > > > attempted to emulate these signals in basicx with much
> > > > experimentation, but to no avail.
> > > >
> > > > Any help would be great. Thanks, John
> > > >
> > > >
> > > >
> > > >
> > > > SPONSORED LINKS
> > > > Microprocessor
> > > >
> >
> <http://groups.yahoo.com/gads?
t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx
&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=_YKW_K
vdWM7nsvZLWwMhnw>
> >
> > > > Microcontrollers
> > > >
> >
> <http://groups.yahoo.com/gads?
t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3si
cx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=Ufvb
dAF0r5o48CkzYmXRww>
> >
> > > > Basicx
> > > >
> >
> <http://groups.yahoo.com/gads?
t=ms&ksicx&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+
microcontrollers&w551+microprocessor&c=5&s5&.sig=Nggd_ZUrVU6qzP
viDXpKSw>
> >
> > > >
> > > > Pic microcontrollers
> > > >
> >
> <http://groups.yahoo.com/gads?
t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=
Basicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=
dhYy34C8Xq6aeJfBsd7maw>
> >
> > > > 8051 microprocessor
> > > >
> >
> <http://groups.yahoo.com/gads?
t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=B
asicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=i
JA-sY2QEUOfoaMmW8c17g>
> >
> > > >
> > > >
> > > >
> > > >
> > -----------------------------
-------
> > > > >.
> > > >
> > > >
> > > >
> > -----------------------------
-------
> > > >



Earlier I tried as many as 250 loops, para nada. Maybe I will attempt
to build my own controller or bridge. Thanks, John

--- In basicx@basi..., "Ingvar Esk" <ingvar.esk@s...> wrote:
> If everything is working, this code will only run the motor for 2
> sec after a reset. I.e. 100 loops at approx 20 msec each.
>
> Ingvar
>
> --- In basicx@basi..., "john_massengale"
> <john_massengale@y...> wrote:
> > My source, as requested. Thanks in advance for any assist, John
> >
> > Public Sub main()
> > Call motor_fwd()
> > End Sub
> >
> > Public Sub motor_fwd()
> > Const motor_pin as byte = 20
> > Dim i as integer
> > debug.print "Entering loop"
> > For i = 1 to 100
> > Call PulseOut(motor_pin, 0.0015 , 1)
> > ' Have also tried pulsewidth 0.001 and 0.002, and others
> > Call Delay(0.020)
> > ' Have also tried delays of 0.0167 and 0.025, and others
> > next
> > debug.print "Done with loop"
> > End Sub
> >
> >
> > --- In basicx@basi..., "john_massengale"
> > <john_massengale@y...> wrote:
> > > You said it better, 1-2 millisec pulses every 20ms. I do not
> have a
> > > transistor, but I didn't like the motor controller pushing
> battery
> > > power to my BX24 board so that power wire is not hooked up, just
> > > signal and ground to my BX24.
> > >
> > > To be explicit, motor controller has +/- from battery, then +/-
> to
> > > motor, then signal and ground to BX24 board. Thanks, John
> > >
> > > --- In basicx@basi..., Jepsen Electronics Ltd
> <njepsen@i...>
> > > wrote:
> > > > John
> > > > I hope yu have a transistor between your motor and the
> BX24,
> > > > else you will kill the bx24. Likewise with other motors servos
> etc.
> > > > How can you have a 50hz signal for 1-2 ms. One cycle at 50Hz
> is 20ms
> > > > long, unless you are talking about 1-2ms pulses every 20ms?.
> > > > john_massengale wrote:
> > > >
> > > > > Attempting to use an RC car motor controller and not having
> much
> > luck.
> > > > > The motor works fine when given power directly. My BX24
> works fine
> > > > > to control my servos, but not moving my main motor. This
> motor
> > > > > controller - LRP AI Runner - says plug and play with RC
> > receivers. I
> > > > > read that
> > > > > receivers output 50hz with widths of 1 to 2 millisecs. I
> have
> > > > > attempted to emulate these signals in basicx with much
> > > > > experimentation, but to no avail.
> > > > >
> > > > > Any help would be great. Thanks, John
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > SPONSORED LINKS
> > > > > Microprocessor
> > > > >
> > >
> > <http://groups.yahoo.com/gads?
> t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3sicx
> &w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=_YKW_K
> vdWM7nsvZLWwMhnw>
> > >
> > > > > Microcontrollers
> > > > >
> > >
> > <http://groups.yahoo.com/gads?
> t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3si
> cx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=Ufvb
> dAF0r5o48CkzYmXRww>
> > >
> > > > > Basicx
> > > > >
> > >
> > <http://groups.yahoo.com/gads?
> t=ms&ksicx&w1=Microprocessor&w2=Microcontrollers&w3sicx&w4=Pic+
> microcontrollers&w551+microprocessor&c=5&s5&.sig=Nggd_ZUrVU6qzP
> viDXpKSw>
> > >
> > > > >
> > > > > Pic microcontrollers
> > > > >
> > >
> > <http://groups.yahoo.com/gads?
> t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=
> Basicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=
> dhYy34C8Xq6aeJfBsd7maw>
> > >
> > > > > 8051 microprocessor
> > > > >
> > >
> > <http://groups.yahoo.com/gads?
> t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=B
> asicx&w4=Pic+microcontrollers&w551+microprocessor&c=5&s5&.sig=i
> JA-sY2QEUOfoaMmW8c17g>
> > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > -----------------------------
> -------
> > > > > >.
> > > > >
> > > > >
> > > > >
> > > -----------------------------
> -------
> > > > >