PSoC™ 4 Forum Discussions
I am attempting to pair a remote to the psoc board. Being very new to BLE I am honestly just not sure where to even start. I am using a PSOC4 BLE pioneer kit, and attempting to connect a bluetooth remote to it (Link to remote at the bottom). My current goal is to get button presses from the remote to adjust the color of the built in LED on the pioneer kit.
Things I need advice on:
Connecting a peripheral device to the psoc 4 pioneer kit.
Using the peripheral device in this case a remote to interact with the built in LED.
https://www.amazon.com/gp/product/B08HHC4Z21/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1
Show Less
Hello,
Some of the devices in PSoC4 have multiple VDDD pins.
(For example, CY8C4126AXI-S423)
Is it possible to supply power to only one of these pins and leave the other pins open?
If not, please let me know the reason.
(All VDDD pins are shorted inside the chip, right?
Regards,
Shimamura
Show Less
Hello All,
I am developing software for the Trackpad.
For this i have referred following two examples.
CE195394_HID_Mouse - In this example 3 Bytes mouse data is sent over USB. Byte1-Button, Byte2- X data, Byte3- Y data
CE216892 USB-HID Trackpad - In this example algorithm is developed to use trackpad and five bytes data is sent over USB.
Byte1- Button Data, Byte2- X data, Byte3 - Y data, Byte4- 0 (Scroll), Byte5 - XY negative sign data.
In this example CE195394_HID_Mouse USB HID Descriptor is available for 3bytes.
I am using algorithm from this example CE216892 USB-HID Trackpad and descriptor from CE195394_HID_Mouse this example.
I have to modify the descriptor for five Bytes. Here What item value should I select for XYdirection data.
XYdirection is uint8 variable and values are either 1, 2 & 3.
if someone has worked on this USB HID Touchpad/Trackpad example please help.
Thank you.
Show Less
Dear community members,
I've attached an Led to an gpio pin. The led is later driven by a PWM component. But until I reach the state that I can initialize the PWM the control the behavior of the led it's just turned on. Since it's an RGB led it shows some color I don't want.
The initial driving state drop-down in the pin configuration is disabled. How can I achieve that the led is initially powered off?
Thank you for taking your time,
Daniel
Show LessA device receives CAN messages from two other devices.
Within the CAN receive ISR, I don't want to blindly read each mailbox. Instead, how does one check for data present within a mailbox N? Something like:
for each receive mailbox i
if mailbox(i) has data // How to do this?
read mailbox(i)
What are the registers to be checked, which status bits and is there any documentation of the registers?
Thanks
Show Less
1.- Make a program using EZI2C that controls an LED and a 2-channel ADC. The i2c buffer should have the following registers:
Buffer [0] ==> LED blink speed in milliseconds (Low Part) (R / W)
Buffer [1] ==> LED blink rate in milliseconds (High Part) (R / W)
Buffer [2] ==> ADC conversion speed in milliseconds (Low Part) (R / W)
Buffer [3] ==> ADC conversion speed in milliseconds (High Part) (R / W)
Buffer [4] ==> ADC resolution (12/8 bits) (R / W)
Buffer [5] ==> start (1) or stop (0) ADC conversions (R / W)
Buffer [4] ==> Result Channel 0 of the ADC (Low Part) (R)
Buffer [4] ==> Result Channel 0 of the ADC (High Part) (R)
Buffer [4] ==> Result Channel 1 of the ADC (Low Part) (R)
Buffer [4] ==> Result Channel 1 of the ADC (High Part) (R)
--------------------------------------------------------------------------------------------------------------
2.- Make a program that emits an audible alarm sound, and turn a red led on and off, if the card receives a hit of a certain magnitude. Sensitivity to shocks should be graduated using a potentiometer. The alarm will remain on and the led will flash, until SW2 of the card is pressed once. When pressed a second time, the circuit should be reset, turning on and off a green led at a rate proportional to the sensitivity (if the sensitivity is high it should turn on and off very quickly, if it is low, it should turn on and off slowly.
----------------------------------------------------------------------------------------------------------------------------------------
3.- Make a program that turns on an audible alarm, if a person opens a door, unless they first type an access code through a matrix keyboard using one of the alphanumeric keys as enter (specify which one in your report). By providing the correct password, the alarm will deactivate for 10 seconds, during which time a Blue LED will light up, and the door can be opened. The access code will be 8 digits and can be changed through the uart using the command "NewKey X1 X2" where X1 are the 8 digits of the previous password, and X2 are the 8 digits of the new password. If the previous key does not match the one stored, the change should not be made and the message "Incorrect previous key" should be sent through the UART, if it matches, the key will be changed and the message " Key Changed Successfully ", The key will be stored in a 24CXX series EEPOM memory, so it should not be lost even if the circuit is disconnected. The default password when turning on the card for the first time should be "12345678" Make a door with cardboard to demonstrate the operation of the program, you can use the sensor that you think is convenient to detect the opening and closing of the door.
Show Less
setup :
SCB I2C slave and SCB I2C Master examples
Master send 3 bytes [] and Slave return 3bytes which status reg update after master is write
in Master example implement with Delay CyDelay(CMD_TO_CMD_DELAY)
dialog da14531 write and read at once two bytes
dialog da14531 write 3 bytes 1 reg address and 2 bytes data
CY8CKIT-046 update readbuffer 2 bytes of data
from what reason need delay in master ?
problem : when dialog da14531 read from CY8CKIT-046 we need double reading
i trying working with ST microcontroller not able preproduce the double reading issue
any suggestion how correct write to slave and how slave update readbuffer correctly
Show Less
My Project is BLE with Fixed stack bootloader: CYBLE-224116-01 Silicon: 1A6F, Family: AA, Major/Minor Rev: AC
Bootloader and Bootloadable component version is 1.60
Some boards program fine. Others, once OTA upgraded successfully, are then is stuck in a boot loop. You cannot attach a debugger because it is not stable enough to get the device ID.
Using PSoc Programmer, the .HEX files read from the two devices are identical.
What could be wrong?
Show Less
Hi everyone
I am trying to count milliseconds in a project, but I don´t know how to adjust the parameters. I attach the scheme of this part of my project.
uint32 counter_ms=0;
CY_ISR(TC_InterruptHandler){
//Clears the timer terminal count interrupt//
Timer_ClearInterrupt(Timer_INTR_MASK_TC);
counter_ms++;
}
int main(){
CyGlobalIntEnable;
Timer_Start();
TC_Interrupt_StartEx(TC_InterruptHandler);
}
Show LessHello, thanks to supporting me,
I Program a CY8C4014LQI-421 (PSOC 4) with the PSOC programmer and PSOC miniprog3 and the target device was not well choosen. The target indicated was CY8C3666AXI-037T (PSOC 3) .
I did not see the difference using the target card, software response is correct .
Could you precise to me if the target device influence the programming in this case ?
NB : I didn't have any error message.
Thanks for your help.