PSoC™ 4 Forum Discussions
Hi,
I am trying to design a new layout for a slider in the form for an arc of a circle. I have four pads on the arc. I have configured this to be a radial slider. But when I use the API to get the centroid position the maximum value of the centroid gets stuck at 3/4 of the resolution and in my case 75/100. I removed the last pad from the slider so that it had 3 pads but then it gets stuck to a maximum value of 2/3 of the resolution ie. around 66.
The radial slider in the capsense datasheet is defined as
"A radial slider is similar to a linear slider except that the sensors are placed in a circle"
Does this mean that I cannot have just a portion of the circle as layout for a radial slider and the last slider pad has to be close to the first slider pad?
The layout of the pads is attached in the PNG file.
Regards
Show LessHi everybody,
I've start to test my new psoc 4 pioneer kit and I've tried to run capsense tuning, enabling tune helper in CSD component, copying code suggested on reference to run helper:
void main()
{
CyGlobalIntEnable;
CapSense_TunerStart();
while (1)
{
CapSense_TunerComm();
}
}
but helper gui signal aways "read operation failed". I've noticed that tune helper config tab in CSD component properties has different (less) parameters than other reference, e.g. "psoc 4 capsense design guide". I've tried to use pscoc5 inside pinoeer kit as i2c bridge (it's seems supported by helper gui).
Does anyone has some experience about that? I'm a beginner with psoc world and try to find some help with this new one.
Thanks
Show LessHello everyone. I am working on a project with the proc module and I'm trying to generate pwm signals using the 4x PWM block instead of the TCPWM. I read in the Technical Reference Manual that the proc has 4 UDBs and that is where the pwm is implemented. What I cannot figure out is how do you assign the pins where the pwm signal will be outputted.
In the manual it says on Section 😧 Digital System Universal "Digital Blocks (UDB) chapter on page 133" but there is absolutely no information about the UDB on page 133 or on section D. Is there another document that explains how one routes the signals from the UDB to a gpio?
Show LessDear all,
Can anyone tell me how the procedure looks like to port an application, created on a CY8CKIT-042-BLE and a CY5671 PRoC module to an application, running on a CY8CKIT-042-BLE and a CYBLE-022001-EVAL module?
Thank you!
Hey all, I saw a post noting that the PWM could only be used in Sleep mode (not Deep Sleep) - I'm hoping there is a workaround for that, but maybe not.
But how about the iDAC? When I go into deep sleep, it just shuts off, and in regular sleep mode (which is still pretty high consumption), it stays awake.
Is there any way to get the iDAC to output full time even in Deep Sleep mode?
Thanks.
Show LessHi, I'm testing the PSoC4 BLE Capsense Proximity from the project example. Everything work fine so far, but when I tried to disable the LOW_POWER_MODE the server(PSoC4 module) become unable to notify the client(BLE dongle). And i found out the main cause is due to the following condition statement:
if(CYBLE_BLESS_STATE_ECO_STABLE == CyBle_GetBleSsState())
{
HandleCapSenseProximity();
}
The BLE subsystem cannot enter ECO_STABLE state. I have tried changing the "CYBLE_BLESS_STATE_ECO_STABLE" to any possible state but there is still no result. In this case, what should i do in order for the program to work properly without going into low power mode?
Additional question: Can the BLE remains in ACTIVE state for all the time Or it must enter Sleep mode once a while for proper operation?(Neglecting the power consumption factor)
Show LessGood day,
I am currently working with the code from the Observer in order to find devices which are in the vicinity of the the main board. My setup is the following:
- A PSoc4 board (called main) with the Observer code running on it;
- 2 x PSoc4 boards with Peripheral and Broadcaster code running on them.
The Observer sees both devices without problem. However, I have to power them after the Observer runs. Is there a way for the Observer to notice them if they are already running?
I am trapping the event CYBLE_EVT_STACK_ON with the event handler and I start the scanning from there with the CYBLE_SCANNING_FAST parameter. The following is my Bluetooth module's configuration:
- Discovery procedure: General
- Scanning state: Active
- Filter policy: All
- Scan window: 50 ms
- Scan interval: 100 ms
The profile is selected in the General Tab and the following is set:
- Profile: Custom
- Profile role: Client (GATT Client)
- GAP role: Central
Besides that, nothing else has been modified from the original code.
Thanks for your help.
Regards,
MB
Show LessI want to design matrix key pad of 48 keys. Currently I am using only One Matrix Button. Is it recommended to use two Matrix button? If I use two matrix button then there is any disadvantages there or not?
Show LessI am using two PWM modules both driven by the same clock.
PWM1 period = 99
PWM2 period = 9
Therefore in each cycle of PWM1, there are 10 cycles of PWM2. Everything works just perfect till here and the oscilloscope shows perfectly alligned outputs as expected.
Now, when I prescale PWM1 by 2x in the initial property window, PWM2 should complete 20 cycles in each one cycle of PWM1. It indeed does, BUT there is a phase shift of one clock period between PWM1 and PWM2. It doesn't end here. Instead of setting the prescaler to 2x in the initialization window, if I use the SetPrescaler() function in the code, the phase shift disappears!
In short, the PWM module works differently depending upon whether the Prescaler value has been set in the components initialization window or whether it is set through programming.
Why is this happening?
Thank you...
Show Less