Reading digital pulses from PWM on RoBoard RB-110

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
1 postPage 1 of 1
1 postPage 1 of 1

Reading digital pulses from PWM on RoBoard RB-110

Post by mateuszs » Thu Apr 24, 2014 1:03 pm

Post by mateuszs
Thu Apr 24, 2014 1:03 pm

We are using RB-110 to build a robot. In the project we need to read data from digital encoder. This encoder sends digital pulses.

We're trying to capture flanks from the pulses using

rcservo_InPin(RCSERVO_PINS5)

As we understand, this gives as current digital value of the pulse. When we use a while loop to track changes the system seems to be too slow. Specs say that one rotation are 6000 signals, we get about 3000-5000, and it changes all the time.

Any sugestions for a more effective way?

We're using Lubuntu 10.04 from roboard.com webside and RoBoIO library
We are using RB-110 to build a robot. In the project we need to read data from digital encoder. This encoder sends digital pulses.

We're trying to capture flanks from the pulses using

rcservo_InPin(RCSERVO_PINS5)

As we understand, this gives as current digital value of the pulse. When we use a while loop to track changes the system seems to be too slow. Specs say that one rotation are 6000 signals, we get about 3000-5000, and it changes all the time.

Any sugestions for a more effective way?

We're using Lubuntu 10.04 from roboard.com webside and RoBoIO library
mateuszs offline
Newbie
Newbie
Posts: 1
Joined: Thu Apr 24, 2014 12:37 pm

1 postPage 1 of 1
1 postPage 1 of 1