PSoC™ 4 Forum Discussions
Hi I am a newbie and wanted to understand if it is possible to advertise the data on some value change to the bonded device.
I am creating the android app which connects to my ble device and pairs it. Now on some button press on the device, I want it to be notified to the mobile app. As far as I understand, once the device is paired and bonded, its not possible to advertise the data from the ble device.
How should i handle this scenario?
Appreciate the help. e.pratt_1639216
Show LessI'm using the Cypress KIT-037 to control a BLDC motor using the "Sensorless FOC Motor Control" example. The motor is running correctly.
I have seen that for the motor to turn in a different direction, a button can be pushed, which basically swaps 2 of the phases. This is the same as plugging the phases in a different order.
My question is, how can I use negative speed references in the control loop to have the motor running in the opposite direction?
I have been trying different approaches and PID seems to be causing trouble. I have even modified the i32_OutMin variable of the PID structure to a negative value. With a fake PID structure, I can see that the PID function can output negative values. Why doesn't it work when I use a negative speed reference value?
Show LessI am porting an old project to the new CY5677. Any suggestions on how I can fix this issue
"A customizer plugin for a piece of content has a bug. The author of the component will have to diagnose and fix the issue. Contact customer support."
Show LessAre there any registers that can be used to transfer data from before a watchdog reset to after?
The BLE component no longer shows up in PSoC Creatore's component catalog, though it did so earlier today. I have uninstalled and reinstalled PSoC Creator and the BLE component still is not present. Why?
Show LessHello everyone,
this case of mine is just to a feasibility / pre-design stage, anyway:
I have a capacitive application involving a trackpad and some single capacitive buttons, to use in a harsh environment.
In order to reduce the population of pins, and to have a smaller tail in the sensing FPC, I was minding to use a mutual-capacitive configuration.
As far as I know the mutual-capacitance is less sensitive to noise with respect to self-capacitance.
My wonder is: in order to get a robust system, is it possible to use the same CSD component to scan the keys with the self-capacitance technique (I will sense the Rows and the Columns, of course) and then switch to mutual-capacitance to identify where the touch is?
And, over all, does this make sense?
Thank you very much in advance
GianLuca
Show LessHi cypress techs
I am using PSoC4100s MCU, in PSoC IDE the created code RTC.c the alarm percision is the second level, my project need alarm percision in the millsecond level.
In my project, timer2's source clock is from WCO which is 32K, so i let the timer2 produce a interrupt in about 1ms period, by record the number of the interrrupts to know the millsecond of system.
Now i have a question that if system have other interrupts such as other timer's interrupt or other high priority interrupt which takes more time in cpu-process, the timer2's interrupt will not being processed in time, at last result in the millsecond not as accurate as i expected, so what's your suggestion for ensure the percision and accurate of timer2's millsecond in whatever conditions?
a) can just use timer2 to get the millsecond level of time in whatever conditions?
b) any other methods to get the millsecond level of time in whatever conditions?
thanks a lot.
Show LessHi All,
Please help to advise.
I am using CY8C4025 and wants to simulated button jamming
(e.g. paste a piece of copper foil over certain button) condition and
we found some of the buttons are unable to recovered from the
“jam” condition after CapSense_InitializeAllBaseline.
Flow as below:
- Paste a copper foil over one button
- All buttons are not responding when pressing
- Triggered CapSense_InitializeAllBaseline
- All buttons are responding except the one with
copper foil.
Condition d only happen for below mentioned
ports. The rest are able to respond even with copper foil over it.
P0[5], P0[6], P2[1], P3[0], P3[1], P4[1], P4[2]
Q1) We would like to know if there is a difference over those ports compared
to others.
Q2) If there isn’t a difference in terms of CapSense, what are the possible
cause in design resulting it?
Show LessHello to everybody!
I have working for a project in PSoC 4 Ble that I have been doing.
This PSoC 4 BLE has been new to me and especially the configuration to use the BLE module with which it counts.
My project is read a sensor, processing the signal by means of an ADC and send those readings with the BLE module either to a program for serial reading (such as Teraterm or HyperTerminal for example) or to be able to take those readings customized with the mobile application of CySmart
I have an example from "100_Projects_in_100_Days" for the PSoC Ble to uart as Peripheral but despite of verifying the configuration and the code, I still have the error of "gccCyBLEStack_BLE_SOC_PERIPHERAL.a: Invalid argument
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
The truth is that this environment has been new for me, it has been very interesting
Could someone guide me? here I attached the project.
Thank you and have a good day.
Show LessHello,
I'm working on a mechanical keypad replacement to get a USB capacitive keypad.
My mechanical keypad controler is CY7C63413C (keyboard controler)
I'm using CY8CMBR2016 to interface the capacitive keypad with the keyboard controler and get lines/columns (READ / SCAN)
I adapted the controler software and it works.
But, when i keep pressing the sensor, I get autorepeat in key (it is normal) and sometimes it sends the wrong key (while I keep pressing the sensor).
I used a logic analyzer (in attachment you will find printscreen)
- normal_scan_MBR2016.jpg :
A normal scan : SCAN go low one after the other and READ is low according on which sensor is touched.
- READ_problem_scan_MBR2016.jpg :
The problem wrote above : SCAN go low one after the other but the READ keep staying low for two cycles. So it is low during two SCAN and my controler reads this as a second key pressed.
- miss_READ_scan_MBR2016.jpg : it is an other problem, when i keep pressing a sensor, sometimes it miss it (so the READ line doesn't go low).
I hope it is clear enough, if not, please, feel free to say,
Many thanks in advance for your feedback !
Best Regards
Benjamin Recoules
Show Less