Shop OBEX P1 Docs P2 Docs Learn Events
Motor Mind project failing PLS explain — Parallax Forums

Motor Mind project failing PLS explain

davidsdavids Posts: 64
edited 2005-05-18 00:12 in General Discussion
My motor mind c board appears·to not·work.· The problem is that the TM (BS2 serial data to motor mind·c) and (FM motor mind c serial data to BS2).· TM works sending data, but the FM doesn't send back data.· If anyone can tell maybe why this is the case.

The code I use is the code is the datasheet (figure 6)which I·have changed just one part (IF IN14 = 1 THEN .........) to (IF IN7 = 1 THEN...........),· but motor mind still doesn't send data.

Maybe some·code is missing from the program?
······

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-10 02:45
    It will be much easier for members to help you if you post your code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • davidsdavids Posts: 64
    edited 2005-05-10 03:02
    I'll retype it for you. the code itself is to big to upload. the code is 4 A$ pages long
  • davidsdavids Posts: 64
    edited 2005-05-10 03:05
    Cmmd var byte
    addr var byte
    leng var byte
    cksum var byte
    dat1 var byte
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-10 03:51
    Just upload the code you're opening in your editor. I'm sure the code in the docs is fine -- it's what's in your editor that has the problem. And do everyone a favor and upload it as a text file -- that way it can be viewed online.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • davidsdavids Posts: 64
    edited 2005-05-10 04:09
    I hope this works somehow I attachment the first part.

    Post Edited (davids) : 5/10/2005 4:29:28 AM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-10 12:39
    One problem I saw in Part 1 is that you're declaring a BS2p, but using the Baudmode parameter value·for the BS2 -- they are not the same and this will cause a communication issue. For the BS2p, the baudmode value for 38400 baud is 45.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • GadgetmanGadgetman Posts: 2,436
    edited 2005-05-10 13:23
    Time to use your template file with all the nifty definitions?
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-10 13:32
    I considered posting it with my response ... but, tragically, I seem to be the only one interested is taking advantage of conditional compilation....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2005-05-10 14:38
    Jon Williams said...
    I considered posting it with my response ... but, tragically, I seem to be the only one interested is taking advantage of conditional compilation....

    Not true Jon! [noparse]:)[/noparse] I do that when appropriate (now)-

    Ryan
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-05-10 17:15
    Perhaps the next IDE could have a check box option when creating a new file to insert commonly used conditional compilation definitions. I find most people's poor coding style is due either to inexperience or laziness. If a programmer could automatically incorporate the template via checking a box I think both of these classes of programmers would be more likely to adopt the practice. An ideal implemetation would have the template in a plain text file that the experienced programmer could edit to provide a custom template for thier own use.
  • hutdonhutdon Posts: 32
    edited 2005-05-10 18:41
    Hey Jon, I use your template all the time. I use three different stamps often and occasionally a fourth so it really comes in handy. But that's a good idea - how bout making it built into the editor!
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-10 20:15
    It can be -- you can set a file to use any time you select File\New. It's all done in the Preferences dialog.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
  • davidsdavids Posts: 64
    edited 2005-05-16 12:33
    baud rate is not the issue stop. The code as I am using it with CON 84 debugs (setdc error) and sometimes turns the motor very slowly read the code I gave you again and use baud 84 with CARRIER BROAD REV3-MMC CONTROLLER REV4 (THE ONE WITHOUT THE HEATSINK)
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-16 15:02
    davids,

    ·· It appears that you have at least 3 different threads on this issue in different forums.· Please do not cross post.· You're making it difficult to help you by doing so.· Please see the original thread for what may be your problem.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • davidsdavids Posts: 64
    edited 2005-05-18 00:12
    I have solved the issues I have had with MMC and I'm using a simply code, but still can't get AN700 to work

    Thank you all

    David
Sign In or Register to comment.