BlocklyProp icon indicating copy to clipboard operation
BlocklyProp copied to clipboard

S3 Stall sensor broken

Open mrodriguez-parallax opened this issue 8 years ago • 5 comments

S3 stall sensor will not detect a stalled tail wheel or stalled left and right wheels. The code used to test is show below.

2017-12-01_14-37-08

2017-12-01_14-41-51

mrodriguez-parallax avatar Dec 01 '17 22:12 mrodriguez-parallax

Try to put a wait 1000 ms between the first block and the IF-DO loop.

kgracey avatar Dec 01 '17 23:12 kgracey

Also, try a repeat loop with a "communicate" block that simply displays the results of the tail wheel.

If I remember correctly, the Spin code for the tail wheel only works if it was preceded by a non-blocking drive command (as you have done).

kgracey avatar Dec 01 '17 23:12 kgracey

I've tried different combinations of blocks and am able to get it working but it's inconsistent. All it takes is adding an additional block here or there and it stops working.

mrodriguez-parallax avatar Dec 02 '17 00:12 mrodriguez-parallax

We may need to fine tune this stall block but what is happing is that the customer was using values of 50 in his motor blocks and with the tail wheel spinning at half speed it did not produce enough encoder passes to satisfy the stall sensor. The stall sensor detected it as a stall but the tail wheel was just moving to slow. Adding a pause 500milli after the first block also helps. It gives the wheel time to spin and produce enough encoder ticks so that the stall sensor won't detect it as a stall. This topic is not explained in the tutorials so it will be a good idea to either fine tune the stall block or give an explanation in the S3 block help and reference guide.

2017-12-01_17-07-23

mrodriguez-parallax avatar Dec 02 '17 01:12 mrodriguez-parallax

Where are we at with this one? I remember working on it, but I think we decided this needed to be handled in the docs....?

MatzElectronics avatar Nov 22 '18 01:11 MatzElectronics