Shop OBEX P1 Docs P2 Docs Learn Events
VTI SCP1000 and Proto USB board — Parallax Forums

VTI SCP1000 and Proto USB board

rkrasowskirkrasowski Posts: 16
edited 2011-02-09 14:54 in Propeller 1
Now this problem is beyond my logic.
I am trying to use SCP1000 to get pressure and temperature. When I connect SCP to Propeller Demo Board, everything works great, but where I use Propeller Proto USB I get nothing, no reading from pressure sensor no temperature. Hmmm, I checked 3 different sensors, tried 2 different Proto Board and still nothing, again I returned to Demo board and it works. I use the same software, one more thing I tried different pins on Proto board and guess what - nothing, no reading
Does that make any sens to you??
Did I lost my mind ;)
Thanks like always
Robert

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-02-08 20:47
    The USB Proto boards have a quirk (so does the Demo Board). If you have debug statements and aren't connected to the USB cable the board will keep reseting.

    I don't know if this is your problem, but it had caused me trouble on more than one occation.

    Are you using an object from the OBEX? I have a SCP1000 right in front of me. I could give your code a try if you'd like. (I headed to bed now so I wont be trying it until the morning.)

    Duane
  • rkrasowskirkrasowski Posts: 16
    edited 2011-02-09 10:10
    Hi Duane, I do not think debug is a problem, it works in the same configuration on Demo board..
    If you want to try code, I used this object http://obex.parallax.com/objects/408/
    Give it a trial if you can and see if it works. It works on my Demo borad does not on proto board - very strange
    Thanks
    Robert
  • rkrasowskirkrasowski Posts: 16
    edited 2011-02-09 14:54
    Ok, I solved the issue.
    Pins from VTI SCP1000 must be connected in order.
    In my case
    SCK - 0
    MOSI - 1
    MISO - 2
    CSB - 3
    DRDY - 4

    Order is important, not an absolute numbers, so the setting above was for my Demo Board, in my final design pins go : 8 , 9, 10, 11, 12 (SCK, MOSI, MISO, CSB, DRDY).
    If I tried change the pin order with changing pins assignment in software ( I used object from http://www.parallax.com/Store/Sensors/PressureFlexRPM/tabid/177/CategoryID/52/List/0/SortField/0/Level/a/ProductID/591/Default.aspx ).
    It was acting strange, f/ex giving only one reading without updates, or simply not showing anything.
    Hmm so interesting, the problem was not Proto Board, simply pins that I used (available were not in order).
    Well, I am moving foreward and probably will get stuck on something else, but I am sure that you guys will be able to help
    Robert
Sign In or Register to comment.