Boe-Bot Digital Encoder Kit
Kev_D
Posts: 1
Hi. I have encountered some problems reading from the digital encoders.
I tried using CPU.pulseIn without any luck (returned -1 constantly).
I tried using Uart without any luck (returned 0 constantly).
I tried using CPU.count wich worked. It counted my rising edges when I wanted it to, and falling edges when I wanted.
My problem is that I can not block other system calls by putting CPU.count in a infinite loop, which ofcourse could be resolved by using tasks. Is there any other way of reading from the encoders except for CPU.count?
Thanx in advance
I tried using CPU.pulseIn without any luck (returned -1 constantly).
I tried using Uart without any luck (returned 0 constantly).
I tried using CPU.count wich worked. It counted my rising edges when I wanted it to, and falling edges when I wanted.
My problem is that I can not block other system calls by putting CPU.count in a infinite loop, which ofcourse could be resolved by using tasks. Is there any other way of reading from the encoders except for CPU.count?
Thanx in advance