MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?


Closed Thread
Results 1 to 20 of 20

Hybrid View

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

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    Hi Corbet, What are you controlling if I may ask? Reading accel's and gyro's? adjusting servo's based on the sensors?
    -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!

  2. #2
    Join Date
    Jun 2011
    Posts
    24

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    I have 18 servoes on a 3DOF hexapod robot. I have 3 pic16f84's running 6 servos each and a pic16f684 doing the calculations and sending the servo angles to the 84's The 84s are using PICBasic and the 684 is using Mikrobasic. My reasons are outlined in the above posts so I'm not gonna go into detail.
    I built the whole thing for under $200 servos (cheap servos) and all and I don't want to take the easy way out by buying all the electronics so I have a radioshack board all soldered up and before you start picking my board apart I'll tell you it worked just fine using SEROUT2 to SERIN2 so its not the board

    Its just the 2 compilers are not handling the information the same.

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

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    Oh that sounds awesome!! Sorry if I came off like I was gonna make any hardware suggestions. I was fishing hoping you were working on a balance project and wanted to pick your brain about what to do with the raw data.

    Btw, anyone could plug ready made stuff together, the true pride comes from building it yourself- as you are doing. Just my humble opinion.

    Love to see some pics if you care to share
    -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
    Nov 2008
    Posts
    60

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    Hi Corbet,

    Do you hve the 2 pics physically connected together? Or are they communication over RF?
    Last edited by c_moore; - 19th September 2011 at 11:04.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    I will try changing the sender type to unsigned instead of integer
    If the sender PIC array is type int, it's probably 16-bit or word sized. Try setting it to unsigned byte or char type.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    IIRC, Mikrobasic has 8 bit signed & unsigned short integers as well as longs. Unsigned should work.

  7. #7
    Join Date
    Jun 2011
    Posts
    24

    Default Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    I've had a couple people on here tell me I should write an article about my project and I will once I get some of the major issues worked out and I will include pictures and I'll be sure to put a link on here to it.
    I switched the type to byte but it just seems like they aren't syncing properly. In picbasic does the SERIN2 expect a start and stop bit after every 8 bits or does it expect a start bit then the 48 data bits and then a stop bit? Because MIKROBASIC sends a byte at a time so it sends start and stop bits after every bit.

Members who have read this thread : 0

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