PSoC™ 4 Forum Discussions
I'm trying to make a luxometer using PSOC 5LP CY8C5888LTI-LP097 with this code
#include <project.h>
#include <stdio.h>
#include <math.h>
int main()
{
uint8 i;
int Lux;
LCD_Start();
char8 publicar1 [22];
float32 conversion1,conversion2;
CyGlobalIntEnable;
ADC1_Start();
ADC1_StartConvert();
ADC1_IsEndConversion(ADC1_WAIT_FOR_RESULT);
for(;;)
{
LCD_PrintString("Int.Luminosa");
LCD_Position(1,8);
conversion1 = ADC1_GetResult16(0);
conversion2 = ((5.000000*conversion1)/1024)*0.232;
Lux = ((2500/conversion2)-500)/5;
LCD_PrintString("Lux");
LCD_PrintNumber(Lux);
LCD_Position(0,2);
CyDelay(200);
if(Lux>=51 && Lux <=200)
{
for(i=0;i<30;i+=2)
{
LCD_DrawHorizontalBG(1,0,2,i);
CyDelay(150);
}
LCD_ClearDisplay();
}
if(Lux>=202 && Lux <=350)
{
for(i=0;i<30;i+=2)
{LCD_DrawHorizontalBG(1,0,3,i);
CyDelay(150);
}
LCD_ClearDisplay();
}
if(Lux>=360 && Lux <=600)
{
for(i=0;i<30;i+=2)
{LCD_DrawHorizontalBG(1,0,4,i);
CyDelay(150);
}
LCD_ClearDisplay();
}
if(Lux>=620)
{
for(i=0;i<30;i+=2)
{LCD_DrawHorizontalBG(1,0,5,i);
CyDelay(150);
}
LCD_ClearDisplay();
}
}
}
and this is the diagram for the protoboard
and the ports P2[6:0] and P0[6]
please help
Show LessHi,
We have plan to create a circular trackpad using PSoC4.
Can Cypress provide us a recommended sensor pattern as single layer?
A typical trackpad sensor uses diamond pattern, but we cannot configure vias because we plan to use PC (polycarbonate) for the substrate.
Therefore, we cannot use diamond pattern due to bridge and the sensor pattern and layer must be a single layer.
Requirement of trackpad is as follows;
- HW;
- Overlay : 1mm (material is PC)
- Sensor A/A : Φ 67mm
- Sensor pattern : TBD Ask to Cypress as the above
- Substrate : PC (Film)
- Device : PSoC4000S series
- FW;
- # of finger : 1
- Finger size : Φ 8mm
- Support gesture (Tap, Double tap, Swipe)
- Accuracy : TBD (expectation is < 2mm)
- Linearity : TBD (expectation is < 2mm)
- Sensing method : Mutual or Self or Hybrid
Let me know if you need more information.
Best regards,
Show LessHi,
New board featured PSOC4 and LoRa module available
$10 HelTec CubeCell LoRa Board Features Cypress PSoC 4 MCU
Show Less
BACKGROUND:
I'm working on a new design and considering using the PSoC EZ-BLE Creator Module. I have it working great on the Pioneer Kit but I need to qualify the method of programming for production before committing to my customer.
I assumed I could use the CYBLE-014008-00 EZ-BLE Creator Module: ( https://www.cypress.com/file/190771/download )
and program them before installation using the EZ-BLE™ MODULE PROGRAMMING KIT https://www.cypress.com/documentation/development-kitsboards/cyble-014008-prog-ez-ble-module-programming-kit
PROBLEM:
When trying to buy the programming kit, I received the error at checkout: "CYBLE-014008-PROG EZ-BLE™ MODULE PROGRAMMING KIT is pruned and not available for purchase."
Is this a deprecated solution? Is there a replacement? Should I be looking at a different module/programmer series/version/etc.?
This is my first PSoC project so I'm looking for the right module / programming solution for new designs.
Thanks!
Frank Jackson
Show LessHi,
Just for your information.
Today I was writing an article about PSoC and Debugging.
Thanks for the building cleaning,
I had to work at my home instead of my office.
So I borrowed my son's desk to work.
Then I found that the PSoC 4 4100S board I'm testing can not be debugged correctly.
Every few steps "dbg.M0015" was thrown and the debugger was disconnected from the board.
All the hardware, the board, KitProg, and PC were working fine in my office until late last night.
I googled "dbg.M0015" and found many topics about it, and I tried to apply some of them but in vain.
Suddenly I noticed that I was placing the board and KitProg just under my son's Iiyama monitor!
So using USB A-A(female) extension cable, I moved my board and kit to the bookshelf
which is separated from the working desk and no electricity seems scrawling around.
Bingo!
Now the board and KitProg work without problem.
Quite stupid event, but we may need to be aware that something like this happens..
moto
Show LessHi All,
I have created the Spooky Halloween Pumpkin with BLE and cap-sense enabled. The project includes Psoc4 BLE board, DF Mp3 Player board, LED's (white & RGB) and
Speaker. Used shielded wires for Cap-sense. CySmart App is used for control/config the mode and colors. Few kids got scared by touching this pumpkin and they really enjoyed. hope you can also make one with Psoc4 BLE.
Follow here for instant reply https://www.instagram.com/embeddedclub/
The working demo is here Happy Halloween 2019!
Thanks
Ashok R
Show LessAlthough there is a #define DEBUG made when compiling in debug mode there is no choice to in- or exclude a component based on that.
The reason for that is: the fitter process runs before any C-Language is compiled and so does not "see" any external symbols.
BUT
You can do it the other way: In each ComponentName.h file a symbol is #defined which you may use for conditional compiling. So you just need todisable your bootloadable (and bootloader when you use both) in the Top>>Design schematic.
Bob
Show LessAs some of the folks here noticed, I have not been quite active in a couple of previous weeks.
During the time I was teaching the 13th annual FPGA design course at Ryukoku University.
この二週間程、私の書込みが殆ど無かったことに気づかれた方もおいでかと思います。
実は滋賀県にある龍谷大学で今年で13年目になる FPGA設計の夏季集中講座を行っていました。
In the 10 days of AND gate to 4-bit CPU course, I dedicated one day for PSoC Hands on so that the students can have feeling of "real" CPU instead of a minimalist 4-bit CPU.
10日間で ANDゲートのような基本回路から 4-bit CPU の設計までを行うコース中で、
断捨離な 4-bit CPU ではなく実用にともされている CPU の感触も知ってほしいと一日を使用して PSoC のハンズオンを行いました。
The PSoC course started from input to output hardwired circuit to CapSense button sample.
Then signed up to CDC and down loaded and tested the Ultra Sonic Sensor Sample.
In the last minutes, POT -> ADC -> PWM -> Servo Motor sample was presented as an additional ad-lib design.
PSoC のハンズオンではお馴染みの 入力ピンと出力ピンを直結する回路から、CapSense のボタンを使用するサンプルまでの実習を行い、
デベロッパーコミュニティにも登録して、超音波センサのサンプルをダウンロードして試すという実験も行いました。
最後に余った時間で 外付けPOT → ADC → PWM → サーボモーター という回路をアドリブで披露させていただきました。
Meantime their lab-teacher helped me to assemble a robot-arm to demonstrate the control of multiple servo motors.
また、実験担当の先生には、複数サーボモーター制御の例を見せるためのロボットアームの準備にご協力いただきました。
One of the students developed a Reversi application using both the FPGA board and the CY8CKIT-044.
FPGA receives key input from the user and PSoC analyzes the movement(s) and show the steps on the PC via UART.
最後の自由課題では、FPGAボードとCY8CKIT-044 を合わせて使用して、
オセロゲーム(のようなもの)に挑戦した学生さんもおいででした。
FPGA で受けたユーザー入力を PSoC で解析して、PCのシリアルターミナル上に経過を表示していました。
On the 4th of Sep. we had a shower in the afternoon.
When I exited the building, I could see a nice rainbow.
9月4日には午後に強いにわか雨があり、講義終了後に棟を出たところ綺麗な虹を見ることが出来ました。
Scotty, beam me up!
それでは、お後がよろしいようで!
moto
Show LessHi. Just received the CY8CKIT-148 inductive sensing evaluation kit and the out of the box experience is quite poor.
Touch of the center PROXIMITY pad works - LED7 lights ON / OFF.
Use of the Cypress black metal plate on PROXIMITY pad works to light up the LEDS4..6.
BTN1 (metal) works once in a while to light up LED1. BTN2 & BTN3 do not work at all to light up LED2 and LED3, respectively.
Is there new firmware for testing? Will review but TI solution is much more stable but due to a specific need, reviewing the 4700S.
Also, this kit is based on KITPROG2? Not KITPROG3? Will try to hunt down the tools to upgrade this firmware which we believe to be stale.
Welcome any feedback on allowing us to validate the quality of BTN1..BTN3 so we can move to our code development.
Update (after toying with this for 30 minutes) - summary - Kit has out dated firmware.
To assist future readers (competitors):
1) Ran PSOC programmer -> the tool complained that the Kitprog2 is "out of date". Sure but just bought this new from Arrow..
Utilities tab -> Upgrade firmware button was greyed out.
Reviewed this webpage (thanks element14!!) and noted the similarity of the firmware issues.
Pressed SW1 MODE switch and bingo, the Upgrade firmware button is no longer grey and available for my use.
2) Navigated to File -> File load -> go to folder with the (CY8CKIT-148) CE222867_MagSense_With_Feedback_LEDs.hex file -> File -> Program. After a few seconds, all works well.
PS: For our box, C:\Users\lab\Downloads\CY8CKIT-148 PSoC 4700S Inductive Sensing Evaluation Kit Code Examples was the selected folder.
Now we are good to start our real review.
Show LessHi,
This is to announce that a new version (1.0) of the Annotation Library been uploaded into Community Code Examples section:
The Library can be used to annotate PSoC projects and make schematics. The Library Datasheet is attached.
regards,
odissey1
Figure 1. Annotation example of GLCD project using KIT-044 annotation stub
Show Less