Psoc Slider - End segments size for off and full on

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        Developing a slider for control of light levels. Did some evaluation on slider design. We wish to have end segments be used for off and max level. I believe extending the end segment sensor to be larger will better guarantee a touch to that segment will produce the end values from the slider resolution output. This way the finger is not making contact with next segment at all.   
   
Can anyone confirm this concept?   
   
Thanks   
0 Likes
2 Replies
Anonymous
Not applicable
        Hi,   
   
Slider API calculates centroid and based on that it decides position of finger on slider.   
   
The thumb rule is your finger should cover three silder segments.   
   
I believe if you want to turn OFF on last segment only, you need to use one extra IO to sense this last segment.   
   
Cheers,   
Brijesh   
0 Likes
pushekm_21
Employee
Employee
10 likes received 5 likes given First like received
        Hey,   
   
The concept is pretty good. For implementing this you can check the slider and if the slider centroid is returning the value as maximum, in that case you can switch the slider OFF and Enable the Individual sensor and scan them sequentially. Based on the counts obtained from the last and the neighboring sensor you can decide whether is it only the last sensor or the thumb has some affect on the neighboring sensors as well.   
   
Then it decides on your logic that when do you want to turn it OFF.   
0 Likes