Pololu Dual Serial Motor Controller


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Posts
    14

    Unhappy Pololu Dual Serial Motor Controller

    Anybody have experience use this DC motor driver using PICBASIC?. I'm using PIC16F887 (20Mhz) . I want to control dual DC motor. Please help me how to write in PICBASIC.

    Here the manual : http://www.parallax.com/Portals/0/Do...umtorcontr.pdf

    Thank you...

  2. #2
    Join Date
    Jan 2010
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: Pololu Dual Serial Motor Controller

    example code using PBASIC (BS2)

    SEROUT 4,84,[$80,0,0,drive] 'motor 0
    PAUSE 20
    SEROUT 4,84,[$80,0,3,drive] 'motor 1
    PAUSE 20

    how to convert it to PICBASIC

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Pololu Dual Serial Motor Controller

    Converting that part is pretty straight forward. Pbp has a serout command also, the manual can point you to the syntax for it. I think there may be a section addressing some of the differences between the stamp and using pbp with pic's.

    The hardest part is you have total control now over all aspects of the uP. What this means is you will have to get intimate with the datasheet for getting all the registers set correctly. Pay close attention to how to set up the ports for digital and how to get your osc running.

    So go read up on that stuff and try to write the program. Post what you get and we will all jump in to help you get it working AND understand why it does.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Pololu Dual Serial Motor Controller

    PBP was written originally as a way to control PICs with the same mnemonics as the basic stamp, so people who got their start on stamps could go with PICs without a huge learning curve. to that end it is a great success. The code listed in the controller's data sheet is the same as PBP, so what you need to write is the "setup" code for YOUR PIC of choice. If you are a very new programmer, I would suggest something rather easy at first like a 16F648A. This pic is in the same Data sheet as the 16F628a but has more code space, and is just about the same price. Beginners usually are directed by books to the 16F84 because it has No Analog functions to disable, but we will get you through all that, the old grandpa F84 chip is too expensive for what you get. The 16F648A is the same pinout and footprint. To disable the analog comparators just add cmcon = 7. in your code. The advantages of PIC over stamp is price and speed.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts