Collision between pressure sensor and encoder using Arduino

Hi everyone,

I am now writing a program to control: 1. infra-red sensor, 2. infra-red remote, 3. x-bee, 4. optical encoder, 5. pressure sensor, all of the above using Arduino at the same time.

I had written several programs which can control individual parts successfully.

However, when I combine the program into ONE program, there are some problems for 4. optical encoder and 5. pressure sensor.

  1. optical encoder can only gives the negative values, while that 5. pressure sensor can give only "0" values all the time.

I would like to know if there are any collision between pressure sensor and encoder using Arduino???

Thanks for your kindly help!

I would like to know if there are any collision between pressure sensor and encoder using Arduino???

There should not be. One is a digital device. The other is an analog device.

If you are having problems, you need to post a schematic and the code.