Motor Mind B Enchanced Help
Carnibus
Posts: 4
I've been having some trouble getting the MMBe to work with the propeller. As far as I know everything is hooked up right. I even tried hooking it up to my BS2, which worked. I'm not using any resistors or anything, should I be?
There was no MMBe object in the object exchange so I tried using the FullDuplexSerial object to replicate the BS2 example as follows:
'Output 15
'Input 14
CON
TM = 14
FM = 15
OBJ
FDS : "FullDuplexSerial"
PUB Main
FDS.start(TM, FM, 3, 2400)
FDS.tx($55) 'Sync
FDS.tx($03) 'SETDC
FDS.tx($DD) 'SETDC value
I contacted tech support and they told me to start with a mode value of 3.
Any help would be appreciated, I am completely stumped.
There was no MMBe object in the object exchange so I tried using the FullDuplexSerial object to replicate the BS2 example as follows:
'Output 15
'Input 14
CON
TM = 14
FM = 15
OBJ
FDS : "FullDuplexSerial"
PUB Main
FDS.start(TM, FM, 3, 2400)
FDS.tx($55) 'Sync
FDS.tx($03) 'SETDC
FDS.tx($DD) 'SETDC value
I contacted tech support and they told me to start with a mode value of 3.
Any help would be appreciated, I am completely stumped.
Comments
I think the proper mode value is zero, not 3. Try it. If you're expecting replies from the MMB, you'll need a pullup resistor on the TM lead. Best to use a 1K to 3.3K resistor between the Propeller pin and +3.3V. I wouldn't use the 1K pullup to +5V as recommended in the MMB documentation. It'll work, but it's better to tie it to +3.3V or use a higher value in tying it to +5V.
Post Edited (Mike Green) : 8/13/2008 11:22:07 PM GMT
Also, I'm using the commands without a reply (actually, TM is disconnected right now too)
When I used the MMBe with my bs2 I saw the green led light up immediately, with the propeller I never see it light up no matter how long I wait.
Now I've never had any issues at all with this, but i can't guarantee due to the fact that I haven't really tested every circumstance (ie other PLL modes, or input frequencies). Let me know how things work for you. Hopefully it'll be of some help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
~Some men see things as they are and ask "why?"
I dream of things that never were and ask "why not?"~