Shop OBEX P1 Docs P2 Docs Learn Events
Problem with the Digital I/O board — Parallax Forums

Problem with the Digital I/O board

supercoolsupercool Posts: 2
edited 2013-03-22 06:40 in General Discussion
Hey guys what's up? This is my first post in the forums... I've been having a strange little problem getting reliable inputs from the digital I/O boards. I modified the "DIOB Serial Test V1.0" to work on the BS2p 40-pin chip with 2 I/O boards attached on pins 0-7. So far so good, everything works great EXCEPT when relay# 8 is activated in the Out_595 subroutine, it disables all inputs until relay#8 is deactivated!

Is there something wrong with my board, my code, my HEAD???

Code is attached. It's just a simple test of the I/O boards that cycles a single relay on both boards simultaneously from right to left, taking 200 samples from the inputs per cycle. The reason for the 200 samples
is the following:

200 = 20 X 10. The 20 is really there just to produce a pause so the cycling doesn't go too fast. The 10 samples are used to get a reliable input reading from a 60Hz 24VAC transformer signal input, which is
the type of input I am interested in reading (HVAC)

any insights and input you have is appreciated!

Comments

  • kwinnkwinn Posts: 8,697
    edited 2013-03-19 21:30
    First thing I would do is check the wiring of ry8 to make sure it is not shorting out the input clock or data signals. Then check the power supplies to each board with ry8 open and then closed.
  • supercoolsupercool Posts: 2
    edited 2013-03-22 06:40
    Hey thanks for the tip. I should have seen that right away! Got it under control now
Sign In or Register to comment.