Need help with 8052-basic and MOtorMind communication
Archiver
Posts: 46,084
I have not had any luck letting my 8052-basic talk with the Motormind
by Solution Cubed. MMind uses the same communication protocol of the
Stamp, including the 5v ttl signals. In fact a typical command from
the Stamp to the Mind looks like this:Serout FM,396,
[noparse][[/noparse]$55,$84,$00,$variable]. The FM refers to the pin that needs to be
brought high. The last two in the quotation marks refer to the MSB
and the LSB. I am using a low speed motor, so I write to only one
register. I am using an RS-485 option on my micro, since it produces
a 5volt ttl signal already. I've checked for correct baud, and the
communication pulses seem to be taking place between the two units.
My command looks like this:" Print#1,chr(85),chr(132),chr(0),chr
(variable),". I keep the pin always high. Quotation marks are mine. I
believe that it's a programming problem. Any help would be
appreciated. Thanks. tony cervone
by Solution Cubed. MMind uses the same communication protocol of the
Stamp, including the 5v ttl signals. In fact a typical command from
the Stamp to the Mind looks like this:Serout FM,396,
[noparse][[/noparse]$55,$84,$00,$variable]. The FM refers to the pin that needs to be
brought high. The last two in the quotation marks refer to the MSB
and the LSB. I am using a low speed motor, so I write to only one
register. I am using an RS-485 option on my micro, since it produces
a 5volt ttl signal already. I've checked for correct baud, and the
communication pulses seem to be taking place between the two units.
My command looks like this:" Print#1,chr(85),chr(132),chr(0),chr
(variable),". I keep the pin always high. Quotation marks are mine. I
believe that it's a programming problem. Any help would be
appreciated. Thanks. tony cervone
Comments
5 volts without RS-485 though.
Before I dove off into the complicated commands, I would make sure that the
simple ones work -- ie the plain old SETDC with no confirmation.
Also, if you are using a separate power supply for the uP and MotorMind, do
you have the grounds tied together?
Original Message
> I have not had any luck letting my 8052-basic talk with the Motormind
> by Solution Cubed. MMind uses the same communication protocol of the
> Stamp, including the 5v ttl signals. In fact a typical command from
> the Stamp to the Mind looks like this:Serout FM,396,
> [noparse][[/noparse]$55,$84,$00,$variable]. The FM refers to the pin that needs to be
> brought high. The last two in the quotation marks refer to the MSB
> and the LSB. I am using a low speed motor, so I write to only one
> register. I am using an RS-485 option on my micro, since it produces
> a 5volt ttl signal already. I've checked for correct baud, and the
> communication pulses seem to be taking place between the two units.
> My command looks like this:" Print#1,chr(85),chr(132),chr(0),chr
> (variable),". I keep the pin always high. Quotation marks are mine. I
> believe that it's a programming problem. Any help would be
> appreciated. Thanks. tony cervone