CY8CKIT-149 PSoc 4100S to achieve proximity sensing

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

cross mob
Yuqing
Level 1
Level 1
First like received First reply posted First question asked

Hi I a rookie using the CY8CKIT-149 PSoc 4100S board, I wish to achieve proximity sensing with a simple wire just like video shows on link: https://www.youtube.com/watch?v=7HbP-tvzoM0 . I struggle setting up the software and found there was no ready-to-use example code. I wonder if anyone have similar experience. Thank you so much! 

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

 

I noticed you used SmartSense (Auto Tune),

Sorry, I just ported the project and did not go much farther,

for the better response, you need to manually tune the sensor.

Please refer to those nice CapSense Guide(s).

 

but the LED brightness remains the same

Often when the electrode is saturated this could happen, I would try pushing the Reset Button to reset the status.

 

Then I just tried to see the behavior.

(1) I prepared a couple of jumper wires, one is male-male, the other is male-female type.

Each one is about 15 cm.

WIN_20210717_11_14_24_Pro.jpg

(2) I connected those jumper wires.

WIN_20210717_11_14_46_Pro.jpg

(3) I made a loop

WIN_20210717_11_15_24_Pro.jpg

(4) Finally connected one side to P5.3 and connect the board to PC via USB cable

Note: At this point LED is not turned on.

WIN_20210717_11_15_57_Pro.jpg

(5) When I moved my hand very close to the loop, the LED lights.

WIN_20210717_11_16_53_Pro.jpg

Now to see the value of the sensor, let's use the CapSense Tuner

(6) From the schematic, right-click CapSense Component and select "Launch Tuner"

010-Launch_Tuner.JPG

(7) CapSense Tuner appears

011.JPG

(8) Select "Connect" button in the upper left

012.JPG

(9) Select KitProg3 I2C connection

013.JPG

(10) When connected, the "Connect" button changed to "Disconnect" button.

Then select "Start" button

014.JPG

(11) When CapSense Tuner started, "Start" button changed to "Stop" Button.

With this, you can see the value of the sensor with moving your hand close to the loop or

leaving the hand from the loop.

015.JPG

So currently the performance may (must) not be optimum,

but the proximity sensor is somewhat working 😉

moto

P.S. (Edited) Some English correction...

View solution in original post

6 Replies
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @Yuqing 

 

You can take a look at CE225691 - which describes the proximity sensing with CapSense. Please note that you need to change the sensor pin to the right one (where the wire is connected) and the I2C pins if you require Tuner. 

The tuner interface helps you visualize the sensor's signal levels real time and will help you tune the sensor for best performance. Initially, you can start with SmartSense and then move on to Manual tuning for better performance.

 

Best regards, 

Hari

Yuqing
Level 1
Level 1
First like received First reply posted First question asked

Thank you so much for your help! I did tried porting the CE225691 code but seems SamrtSense didn't work for me, the LED remains the same brightness no matter how far I move my hands from it. I wonder if there is any adjustment I should do, or I am the only one having that issue. 

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I just ported the sample to CY8CKIT-149, and it seems to be working on my side of the planet.

moto

Thank you so much! I noticed you used SmartSense (Auto Tune), I tried put a looped wired at hte correct port but the LED brightness remains the same, I wonder if only I have that issue or I did something wrong. 😥

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

 

I noticed you used SmartSense (Auto Tune),

Sorry, I just ported the project and did not go much farther,

for the better response, you need to manually tune the sensor.

Please refer to those nice CapSense Guide(s).

 

but the LED brightness remains the same

Often when the electrode is saturated this could happen, I would try pushing the Reset Button to reset the status.

 

Then I just tried to see the behavior.

(1) I prepared a couple of jumper wires, one is male-male, the other is male-female type.

Each one is about 15 cm.

WIN_20210717_11_14_24_Pro.jpg

(2) I connected those jumper wires.

WIN_20210717_11_14_46_Pro.jpg

(3) I made a loop

WIN_20210717_11_15_24_Pro.jpg

(4) Finally connected one side to P5.3 and connect the board to PC via USB cable

Note: At this point LED is not turned on.

WIN_20210717_11_15_57_Pro.jpg

(5) When I moved my hand very close to the loop, the LED lights.

WIN_20210717_11_16_53_Pro.jpg

Now to see the value of the sensor, let's use the CapSense Tuner

(6) From the schematic, right-click CapSense Component and select "Launch Tuner"

010-Launch_Tuner.JPG

(7) CapSense Tuner appears

011.JPG

(8) Select "Connect" button in the upper left

012.JPG

(9) Select KitProg3 I2C connection

013.JPG

(10) When connected, the "Connect" button changed to "Disconnect" button.

Then select "Start" button

014.JPG

(11) When CapSense Tuner started, "Start" button changed to "Stop" Button.

With this, you can see the value of the sensor with moving your hand close to the loop or

leaving the hand from the loop.

015.JPG

So currently the performance may (must) not be optimum,

but the proximity sensor is somewhat working 😉

moto

P.S. (Edited) Some English correction...

Thank you soooo much for this detailed guidance! I did followed this and finally got what I want! I want to express my BIG THANK YOU again! I will keep working on this project further!😉