Shop OBEX P1 Docs P2 Docs Learn Events
eb500 — Parallax Forums

eb500

PVJohnPVJohn Posts: 60
edited 2007-04-30 16:23 in Propeller 1
Hi, has enyone tried to use eb500 module with propeller chip. I would like to buy one if it will work.
Regards,
PVJohn

Comments

  • JonathanJonathan Posts: 1,023
    edited 2006-08-03 15:26
    John,

    I have, it works just fine. I was having some of the issues posted in another thread using the BS2.object made by Martin, but the EB500 was no problem.

    Jonthan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • PVJohnPVJohn Posts: 60
    edited 2006-08-03 15:47
    It's a good news. Woud you like to share your code and save us some time?

    Thanks in advance!

    PVJohn
    ·
  • JonathanJonathan Posts: 1,023
    edited 2006-08-04 15:31
    John,

    Happy to share, but it is super simple. All this code assumes that you are using Martin's BS2.object, and have named the in/out and status pins. Here is a connect snippet:



    pub connect ' Connects the EB500 to the dongle
    repeat until ina[noparse][[/noparse]btStatus] == 1· ' Keep trying until connected
    · BS2.Serout_Str(btOut,string("con 00:0C:41:E2:00:31",13),btBaud,btPar,btBits)
    · bs2.Pause(500)
    return

    Here is a snippet that sends some data:

    ·BS2.Serout_Str(btOut,string(13, "CM :"),btBaud,btPar,btBits)
    ·BS2.Serout_Dec(btOut,cm,btBaud,btPar,btBits)

    Hope this helps!

    Jonathan

    BTW, I also have code for a V2XE compass module, SR04 ultrasonic range finder, TLC2543 ADC, if ya need em.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • Paul K.Paul K. Posts: 150
    edited 2007-04-27 21:24
    Jonathan

    Is it possible for you to post the code for the TLC2543 ADC

    Thanks

    Paul
  • JonathanJonathan Posts: 1,023
    edited 2007-04-30 14:48
    Paul,

    I don't seem to able to find the code. Weird, all my other prop code is here. I used Martin's BS2.Functions and it was easy to get going. If you still need a snip, let me know and I'll re-create it.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • Paul K.Paul K. Posts: 150
    edited 2007-04-30 16:23
    No need.

    I spent some time on it and finally got it working. It was just a timing issue with BS@.functions.

    Thanks

    Paul
Sign In or Register to comment.