PSoC™ 4 Forum Discussions
Hello,
I have seen the following video describing a very useful method of using the switch in the 049-kit to enter into programming mode the 049-KIT but didn’t found the example project to download, and currently there are several people in my circle of friends that will start using 049-KIT for DIY projects I decided to implement the method and give them the project so they can start from there. I share here the project.
I have made the implementation in PSoC Creator 3.2 .
Best regards,
João Nuno Carvalho
Show Less
How would you go about expanding the number of capsense pins on the Ez Ble module. Is a solution to communicate with a capsense IC from the CY8C20XX6A family using I2C?
Show LessHello All
I am Trying to Broadcast a single(only one) Packet using Psoc 4 Module in CY8CKIT-042 BLE Kit.
set time out 1Sec (which is min).
advertinging interval = 1000ms(min) and 1000ms(max).
after wake up using switch it should broadcast a sinlge packet with data as 5 in it. and goes to DeepSleep Mode.
but broadcast 2 packets after wakeup.
even if i set time out 1 Sec and advertising interval = 500ms(min) and 500ms(max).(Expected packets 2)
then it broadcast 3 Packtets with data as 5 in it.
evertime it is broadcasting one more packet than expected.
My aim is to broadcast only a single packet.
i have attached my project for reference.
Thanks and Regards
Amol
Show LessHello,
Because I am developing CYBLE-022001-00 for product now and
I find out that there are many template project in PSoC 4 BLE.
Use tempalte project can develop very fast because I just need to choice what template I need and use it.
Then I just need to write some code and I can complish my project.
But in another view, make template is look like very hard for new devleoper of PSoC Creator.
It's very hard to make owned template for me
Does anyone have the experience to make your own tempalte project before ?
Which is the efficient way to make your owned template ?
Now,
I think I need read spec for each world and then I can refer PSoC 4 BLE template.
Try to make the same thing in CYBLE-022001-00.
I don't know whether it a good way.
Can any cypress expert suggest me how to make my owned template project ?
I want to make the template projects about
I2C Bus (control in local, not controlled by BLE ), SPI Bus(control in local , not controlled by BLE ) and PWM
for CYBLE-022001-00
Can anyone suggest me how to make it ?
Thanks a lot
Hello!
I need to install three input switches corresponding to which there are three LEDs that show the status of the switches.
I was certain to use macanical switches. But just got to know a bit more about the CAP SENSE capability of PSoc chips.
So m thinking to give a try to the CAPSENSE version.
Simplified scenario...
There's a PCB containing three LEDs
Above the LED is 1mm thick diffusing epoxy
Above the epoxy is 1mm transparent glass. The user will touch this glass.
I want to make the capsense pads just below the LED. Size of pad is approx 4mmx2mm
A 3D photo is attached for better understanding.
Am I thinking in the correct direction or am I incorrect in the approch?
I have zero experience with cap sense.
Please help/guide...
Thanks!
Show LessHello!
Is it ok to route the output of the op-amp (in follower configuration) to the SARMUX internally?
Since the routing is internal, a resistive load cannot be connected to the opamp output. Without resistive loading, is there a possibility of unstability and also inaccuracy dueto overshoots and oscilations?
Thanks...
Show LessI am using a 4200, and have a switch on P3.5, with a falling edge interrupt. That works just great when the chip is awake. But when I put it into deep sleep, the interrupt never happens and the chip never wakes up. I'm stopping the ILO before deep sleep, and restarting the ILO on wakeup (which never happens). The IRQ should restart the IMO, and state should be retained. I have saved the state of PWMs and other UDBs, but even without any other configuration besides the single GPIO pin with the switch, it doesn't work.
Since it's deep sleep and all the clock are off, I am using transparent mode on an input pin configured as resistive pull-up, and with the input buffer enabled. I have also tried single-sync with input buffering.
Here's some code (I didn't include the obvious code to register the ISR, etc.) the ISR works fine when not in deep sleep.
CySysClkIloStop(); // turn off the ILO
CySysPmDeepSleep(); // go to DEEP sleep
CySysClkIloStart(); // turn the ILO on again (after the GPIO IRQ returns we should be here)
CY_ISR(ISR_SW_PWR_Handler)
{
SW_PWR_ClearInterrupt();
return;
}
Hello,
I have done a simple project for my daughter, it’s a Lullaby tune player but with a hack!
I attach the project zip file.
The problem is that in hibernation mode I have a consumption current of 265uA instead of 1 to 6uA and after checking all the specifications I can’t see from where the current consumption is coming from.
The values are at 2.7Volts.
So that you understand the code, the project is a PSoC 4 049-KIT (3.8mA while playing the tune) without the USB-serial interface (this part consumes 2.7mA).
It has a power switch, 2 AA 1.5V batteries, a schottky Diode (0.3 v) to protect against polarity inversion, it has a piezo disk, it has a voltage divider (1MOhm and 10KOhm pot) (consumption 2.7uA), it uses the Low Power Comparator to exit from hibernation (6uA), it uses the switch from the board to enter a configuration mode and before it enters hibernation, all pins are configured to high Z (impedance). In hibernation mode the documentation states that the current consumption is from 150nA to 1uA.
When the power is turned on, it plays a Brahms Lullaby for 5 minutes then it goes to hibernation, if it detects movement in the piezo (can be a not very hard nok to the table 1.5meters in distance) the low power comparator wakes the system from hibernation and plays for another 5 minutes, and goes to hibernation.
If you press the 049-KIT button and turn the power on it enters a configuration mode to set the sensitivity of the movement with the potentiometer, in this mode it plays a 0.5 seconds beep and goes into hibernation, then you have to turn it off and on again to go into the normal mode.
My question is did I make something wrong that isn’t optimizing the current consumption?
Currently the batteries last for 280 days on hibernation, but I would like at least to improve by a factor of 25 to the 10uA range. I would like to know how much I can push this design with PSoC.
Thank you,
Best regards,
João Nuno Carvalho
Show Less