Need help with 8052-basic and MOtorMind communi cation
Since the posting, I added an rs232 chip to the MotorM so that I eliminate
the rs-485.
Now that you mention it, when I used the setdc commands without confirmation
for simplicity, it worked but erratically --and it only worked when I used
the rs-485 option. Sometimes the command would take, and sometimes it would
not.
I am using one power supply, so my grounds should not be an issue. Can you
confirm that my commands in basic are correct, especially in terms pauses
between commands, start and stop bits? I am a little unsure as what the
Print# takes care of....
thanks
tony cervone
Original Message
From: Rodent [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=FfYmscfJFCX2tHDZ7wCa0rTJmCjX4s0Rye6j_y39g8SCr0qOswectQSJmUiGkjyEq5M0OT7VZiVSl8TPDA]daweasel@s...[/url
Sent: Wednesday, March 07, 2001 10:07 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Need help with 8052-basic and MOtorMind
communication
I don't think RS485 is the same thing. You can have serial communications at
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
the rs-485.
Now that you mention it, when I used the setdc commands without confirmation
for simplicity, it worked but erratically --and it only worked when I used
the rs-485 option. Sometimes the command would take, and sometimes it would
not.
I am using one power supply, so my grounds should not be an issue. Can you
confirm that my commands in basic are correct, especially in terms pauses
between commands, start and stop bits? I am a little unsure as what the
Print# takes care of....
thanks
tony cervone
Original Message
From: Rodent [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=FfYmscfJFCX2tHDZ7wCa0rTJmCjX4s0Rye6j_y39g8SCr0qOswectQSJmUiGkjyEq5M0OT7VZiVSl8TPDA]daweasel@s...[/url
Sent: Wednesday, March 07, 2001 10:07 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Need help with 8052-basic and MOtorMind
communication
I don't think RS485 is the same thing. You can have serial communications at
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Comments
looking for 0 to +5 volts. Can't you just connect the MotorMind B directly
out the 8052 port?
Been along time for me and Basic, but this should run the motor at 99.61%
duty cycle.
PRINT #1, CHR(85), CHR(03), CHR(254)
Original Message
> Since the posting, I added an rs232 chip to the MotorM so that I eliminate
> the rs-485.
> Now that you mention it, when I used the setdc commands without
confirmation
> for simplicity, it worked but erratically --and it only worked when I used
> the rs-485 option. Sometimes the command would take, and sometimes it
would
> not.
>
> I am using one power supply, so my grounds should not be an issue. Can you
> confirm that my commands in basic are correct, especially in terms pauses
> between commands, start and stop bits? I am a little unsure as what the
> Print# takes care of....
> thanks