Shop OBEX P1 Docs P2 Docs Learn Events
BS2P40 not working correctly/consistently on PDB — Parallax Forums

BS2P40 not working correctly/consistently on PDB

WBA ConsultingWBA Consulting Posts: 2,935
edited 2008-11-30 07:54 in General Discussion
I am trying to move a project from a homework board to a PDB with a BS2P40. I can get everything to work right as long as I only use pins 0-7. If I try to make use of pins 8 and above, I get a lot of weird results: intermittent actions, non-responsive inputs, etc. I am trying to run the 7 segment LED projects in the Stampworks books but I can only get the first project (the single digit counter) to work. The clock project does not work at all. It acts as though it never sees the pulse from the generator even though I can pin it to an LED and watch it flash at 1Hz. I have tried reseating the IC, re-running my jumpers, even from scratch, playing with all sorts of things in the programs, etc to no avail. I am wondering if I have a problem with my PDB because the on board USB-serial adapter is not working either. I have to do all of this through the serial port. Any help/suggestions would be appreciated.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andrew Williams
WBA Consulting
IT / Web / PCB / Audio

Comments

  • lenswerkslenswerks Posts: 40
    edited 2008-10-15 01:11
    Did know the BS2p-40 pins are distributed between the BS and SX connectors on the board? If not, see the table on· page 6 of the documentation.
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2008-10-15 03:11
    Thanks for the slap on the forehead. idea.gif After reading your post, then looking at the schematic for the 14th time, I see what you are talking about and I am pretty certain that's my issue. I don't know how I missed that every time I looked at the schematic. I guess all of the projects I have done in the last year never used more than the first 8 I/O pins. I'll try it again with the RIGHT connections.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    IT / Web / PCB / Audio
  • lenswerkslenswerks Posts: 40
    edited 2008-10-15 21:49
    Glad I could help Andrew.

    Also, I should mention the use of MAINIO and AUXIO as you may not have noticed that yet.

    The AUX I/O pins X0 - X15 are also addressed just like the MAIN I/O pins so you would need to use the AUXIO command prior to commands using any of those pins.

    For example -

    HIGH 0 ' Main·pin P0
    AUXIO ' Switch to aux
    HIGH 0 '·Aux pin X0
    MAINIO ' Switch back to main I/O
    LOW 0· ' Main pin P0 again

    Donnie
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2008-10-16 04:18
    Thanks, I read that once before on a post a long time ago and had forgotten how they were called out. That will make it easier to switch between multiple SHT11 modules. I am planning on having sensors in each room that will tie into an LCD (eventually a PINK)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    IT / Web / PCB / Audio
  • lenswerkslenswerks Posts: 40
    edited 2008-10-18 02:29
    I'm using two of the SHT11 modules with the PDB + PINK - one for the PDB temp and one for room temperature. Are you going to deploy them wireless? I'm using 3 PIR devices reporting·back wireless. Works great.

    ·
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2008-11-30 07:54
    I may eventually have them set up wireless. A friend is finalizing a bluetooth board based on a Cypress chip and if I can learn the PSoC Express software and C anytime soon, I will add the code to talk to the SHT11. He assures me it won't be as hard as I think. I will post that into the completed projects when that happens because the control station will be BS2 based.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    IT / Web / PCB / Audio
Sign In or Register to comment.