Shop OBEX P1 Docs P2 Docs Learn Events
RFID code issue — Parallax Forums

RFID code issue

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-29 20:56
    You need to debug your code yourself. That's what the DEBUG statement is for. You can also use the serial LCD for debugging. Put a DEBUG statement or a SEROUT statement for the LCD into your code to tell you whether you've reached a certain point in the program or not. Once you know you've reached a particular point in the program, make that line into a comment or delete it and add another DEBUG or SEROUT after the next line or two. If there's a loop (like FOR / NEXT) you can first put a DEBUG statement after the NEXT to see if the loop finished. If not, then you can put one inside the loop to see how far it gets.

    You may have a power problem. Remember that the RFID reader draws more than 100mA when it's enabled. What kind of power source are you using?
  • chasingchasing Posts: 14
    edited 2011-01-29 20:56
    I am running the USB version of the BOE with the standard 4xAA battery back.
    My BOE pinout is as follows:

    RFID Reader
    Pin 0: /Enable
    Pin 1: Sout

    Serial LCD Display
    Pin 14: Rx
    SW1: off
    SW2: on

    Pin 9 / 10: bi-color led with a 220 ohm resistor between each leg and pins

    Pin 12 header: servo

    Pin 3: piezo speaker
  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-29 21:49
    The servo can draw upwards of 1A under load. Are you powering the servo from Vin or Vdd? It should be Vin.
  • chasingchasing Posts: 14
    edited 2011-01-30 23:22
    I have the jumper between the two servo headers set for Vin.
Sign In or Register to comment.