PSoC™ 4 Forum Discussions
Hi,
I need to connect an external sensor on to the baseboard(CY8CKIT-042-BLE).I need some steps to create project and work according to the LM35 sensor.The LM35 sensor works with Vcc of +5V and and gives output as analog output.I need some guide to create projects and get familiar with the PSoC 4.I need some guide for the architecture level and schematic level.We are unable to understand where to configure the analog pins on to the baseboard.
Thanks
Srujani
Show LessI'm using the PSoC 4200 BLE CY8C4247LQ*-BL483 kit to run the Red LED blinking project that's discussed in the first training video "Software Output Pins".
Here are the steps I did in Creator 4.0:
1. Wrote the exact code in main.c
2. Connected Pin_Blue, Pin_Green, Pin_Red to P0[1], P0[2], P3[5], respectively (in Trial.cydwr - Trial being project name).
3. Unchecked the HW Connection box in all 3 Digital output pins. The odd part about this was that in the training video, the input arrow is still attached to the box representing the output LED (while the box representing the hardware disappears)...but in mine, both the hardware box and arrow disappear, making me wonder if my LED's are still being treated as output (in TopDesign.cysch).
4. Confirmed device was successfully programmed.
I programmed the BLE Pioneer Baseboard using the PSoC Programmer 3.25.0.
Everything I have done is "straight out of the textbook". Furthermore, I verified that my boards were not busted/corrupt by switching out the PSoC 4200 BLE with one that my dad had been using (with code he wrote for a blinking LED about 2 years ago) and it worked fine. My board does not.
Aside from programming the board in PP 3.25.0 and setting up Creator correctly, did I miss any preliminary steps?
Show LessHello,
A struct contaning all data required for my application stored in an uneven fashion which I crated just like how I arranged sensor data in HID input report using PRoC BLE device. By uneven I mean,
struct { uint8 data0; uint16 data1; uint32 data2; uint8 data3; uint16 data4; } InputReport;
The above type of declaration creates padding. Now since, CyBle_HidssSetCharacteristicValue() function requires character array as input for new data update, I did below coding for sending data.
InputReport report;
uint8 *dataForTransmission;
dataForTransmission = (uint8 *)malloc(sizeof(InputReport));
memcpy(dataForTransmission, &report, sizeof(InputReport));
CyBle_HidssSetCharacteristicValue(0, CYBLE_HIDS_REPORT_MAP, sizeof(InputReport), dataForTransmission);
Will the above code create any problem, since structure has padding and not sure if HID database for report map does not have any padding like thing?
Thanks
Ashutosh
Show LessHi,
Our application uses a mobile phone app to connect to a product using the CYBLE-222005-00. There seems to be a limit of only remembering the last connected 4 devices. Can this be increased by changing a stack parameter?
Show LessHi,
I saw an example project regarding usage of custom profile in psoc 4 BLE in which the colour of LED in PSoC 4 kit is changed from CYSmart APP. Can you point me to a code example(PSoC project) or a project which does the similar function as that of the CySmart?(Device in central role and which sends write characteristics command to the peripheral)
Thanks
Pramod
Show LessI'm trying to make a QR Code Scanner & Decoder.
I referred some material on Atmel's "SAM4S PIR Camera Reference Design" which uses a combination of PIR sensor + CMOS sensor to detect motion & take a VGA-compatible snapshot respectively.
The CY8CKIT-048 also has a PIR sensor. I want to know if a CMOS sensor can be used to obtain a similar functionality.
My primary objective is a QR code scanner, so, higher resolution is not a necessity.
Also, please let me know if there are other ways to do so using the CY8CKIT-048 or any other PSoC.
====================================================================================
Links to files:
"AT01180: Barcode and QR code scanner User Guide" - http://www.atmel.com/tools/SAM4S-WPIR-RD.aspx?tab=documents
Show LessHello everyone: I am working on a project in which I want to use two accelerometers on a PSOC4 BLE. I worked with an example where an I2C is connected a single accelerometer. I want to add another accelerometer. Could anyone point to me a PSOC example that could help me understand how to connect multiple sensors on an I2C. I read about I2C bus and about master/slave concept, but did not understand a lot.
It would be great if you could also answer following question:
1. when should I use master I2C and when a slave I2C?
2. is it possible to have two I2C each with one accelerometer connected to four pins on PSOC? right now I have one I2C with SCL going in pin 3[5] and SDA going in pin 3[4].
Thanks you in advance:
Apoorva
Show LessDear all,
I noticed using the very useful code snippet WriteUserSFlash for writing data to user flash prevents SW TX UART from working.
I understood that writing to user flash requires changing the system clock and SW TX UART requires a call to CyDelayFreq after this clock modification. But I do not know what to provide as a parameter, I tried 0 as this is the original value but it did not solve the problem.
I also imagine that as the system clock is restored after writing, thus there might be no impact as long as one does not use the SW TX UART component when the system clock is changed.
I attached a sample test derived from the original code snippet to demonstrate the issue on BLE pioneer kit.
Is there some information I missed that helps getting those two fellows working together ?
Thanks a lot for your help,
Maximilien.
Show LessDear,
I was doing cy8c4125 the bootloader, did not use the official components, encountered some problems:
1, how to do address remapping in cy8c4125 chip, as if the official did not give specific registers;
2, how to do the address jump.
3, how to understand. Scat file。
Hi,
I have tried looking for documentation regarding what does the coloring of clock sources mean in PSoC Top Design.
See the image attached.
The new clock color is white but after compilation it changes to purple. What do these colors signify?
-Best Regards
Show Less