- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Labels:
-
ispn:40045:1:0
-
l1:314:1:0
-
PSoC4MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
(2) I connected those jumper wires.
(3) I made a loop
(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.
(5) When I moved my hand very close to the loop, the LED lights.
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"
(7) CapSense Tuner appears
(8) Select "Connect" button in the upper left
(9) Select KitProg3 I2C connection
(10) When connected, the "Connect" button changed to "Disconnect" button.
Then select "Start" button
(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.
So currently the performance may (must) not be optimum,
but the proximity sensor is somewhat working 😉
moto
P.S. (Edited) Some English correction...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. 😥
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
(2) I connected those jumper wires.
(3) I made a loop
(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.
(5) When I moved my hand very close to the loop, the LED lights.
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"
(7) CapSense Tuner appears
(8) Select "Connect" button in the upper left
(9) Select KitProg3 I2C connection
(10) When connected, the "Connect" button changed to "Disconnect" button.
Then select "Start" button
(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.
So currently the performance may (must) not be optimum,
but the proximity sensor is somewhat working 😉
moto
P.S. (Edited) Some English correction...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!😉