Shop OBEX P1 Docs P2 Docs Learn Events
colorPal 28380 — Parallax Forums

colorPal 28380

kazuya86kazuya86 Posts: 5
edited 2014-10-01 07:18 in Accessories
I use the colorpal_flicker.bs2 to display the colorpal flicker. But I close the basic stamp, the colorpal still flicker,and I can't use the colorpal_sense.bs2, I excute the TCS3200_ColorPal_match, it show unable to locate color sensor output on any serial port. Anyone can help me how to stop the colorPal flicker and i can excute the TCS_3200_ColorPal_match.exe

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2014-09-30 09:56
    The flicker program stores itself in the ColorPAL's EEPROM so that it can be used without a BASIC Stamp attached. So you will need to get rid of it first. This is done by erasing it from the ColorPAL's EEPROM by replacing it with a blank program, thus:
    SEROUT sio, baud, ["= #00"]

    -Phil
  • kazuya86kazuya86 Posts: 5
    edited 2014-10-01 06:35
    it still flicker, i excute the program with the code
    SEROUT sio, baud, ["= #00"]
    PAUSE 1000
    SEROUT sio, baud, ["!"]
    DO:LOOP
    Can you give me more information to solve
  • PublisonPublison Posts: 12,366
    edited 2014-10-01 06:53
    See if this works:

    Make sure ColorPal in connected to PIN 15
    ' =========================================================================
    
    '
    '   {$STAMP BS2}
    '   {$PBASIC 2.5}
    '
    ' =========================================================================
    
    
    ' -----[ Program Description ]---------------------------------------------
    
    
    
    
    ' -----[ I/O Definitions ]-------------------------------------------------
    
    
    sio     PIN 15           ' Serial I/O com pin for ColorPAL.
    
    
    ' -----[ Constants ]-------------------------------------------------------
    
    
    ' Baudrate definitions. Serial I/O must be open-drain. The ColorPAL includes
    ' a pullup internally.
    
    
    #SELECT $STAMP
      #CASE BS2, BS2E, BS2PE
        baud    CON  119 + 32768
      #CASE BS2SX, BS2P
        baud    CON  327 + 32768
      #CASE BS2PX
        baud    CON  536 + 32768
    #ENDSELECT
    
    
    ' -----[ Variables ]-------------------------------------------------------
    
    
    
    
    
    
    ' -----[ Initialization ]--------------------------------------------------
    
    
    
    
    
    
    ' -----[ Program Code ]----------------------------------------------------
    
    
    SEROUT sio, baud, SEROUT sio, baud, ["= #00"]
    PAUSE 1000
    SEROUT sio, baud, ["!"]
    
    
    
  • kazuya86kazuya86 Posts: 5
    edited 2014-10-01 07:13
    Thank you for providing the requested information.
    I find the problem, I set the pause on Reset equal to 1000
    and the sensor stop to flicker.
  • PublisonPublison Posts: 12,366
    edited 2014-10-01 07:18
    Good news!.

    And welcome to the forums.
Sign In or Register to comment.