PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I am working on a group project at my University using the Psoc 5LP Development kit and as a first step in our project we are attempting to collect data (voltage measurements) through the device and transfer it to a PC. We all have extremely limited C coding and hardware backgrounds so we've tried following the example found at: codesign.cs.tamu.edu/images/files/psoc/LabManualPdf_PSoC5/ADC_USB.pdf to configure the USBUART settiings.
The code is executing and voltage measurements are being taken (they show up on the LCD screen), but when we try seeing the output through Hyperterminal nothing shows up. Is there any special driver needed or some way to configure Hyperterminal so that we can see our output on the PC?
Any help would be appreciated. Thanks.
Show LessHello everyone,
I am new to Cypress world so I don't know whether my question below has been asked somewhere yet though I did search this forum before opening this topic.
I am finding a way for a linux host to communicate to a PSoC 5LP 050 development kit via USBUART. When the host sends a RTS (Request To Send) to the development board, it expects a CTS (Clear To Send) signal sent back from the board. From the PSoC board, I am able to know when the line control changes and check whether there is a RTS from the host or not. But I could not find any way to send back to the host a CTS.
Any suggestion, sample, idea, etc. from you guys would be highly appreciated.
Best
Tony
Hello,
I have a few LM34 temperture ICs to play with, the IC puts out an analog voltage proportional to the ambient temperture.
1mv per degree F So 78 degree will be 78mv. Any thoughts on seting up the PGA and what the best ADC would be to choose?
Thanks,
Alan
Show LessHello,
Just getting started in Psoc and using the CY3210-Eval kit. I have an 8 Bit ADC generating values to use for the pulse width of an 8 Bit PWM, reading the 0-5V pot output . Have a scope on the PWM out and the pulse width changes as I would expect. Then I decided to print the ADC results to the LCD and I am seeing counts of 130 to 980. I was expecting to see 0-256. Can you see what is wrong. Also if there ia amore elegent way of doing this please comment. Code follows.
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
void main(void)
{
unsigned int bADCdata;// holds the ADC Data
unsigned int i;
char adc_val[12];
M8C_EnableGInt; // enable global interupts
PGA_1_Start(PGA_1_HIGHPOWER); // Start Programable Amp
ADCINC_1_Start(ADCINC_1_HIGHPOWER);// Start ADC
ADCINC_1_GetSamples(0); // Get samples continously
PWM8_1_Start();// Start PWM
LCD_1_Start();
while (1)
{
if (ADCINC_1_fIsDataAvailable() !=0)// Check is data ia available from the ADC conversion
bADCdata = ADCINC_1_bGetData(); // Put ADC Data into a variable
PWM8_1_WritePulseWidth(bADCdata); // write the ADC Data to the Pulse Width Register in PWM
itoa(adc_val,bADCdata,10);//convert ADC data to a Char
LCD_1_Position(0,0);
LCD_1_PrString(adc_val);// Print the Char to LCD
ADCINC_1_fClearFlag();// Clear the flag for the next ADC conversion
}
}
Hello, I am a student who is new to PSOC and I'm trying to understand how USB data transferring works. I've already tried many of the examples provided in Creator 3.0, including the recommended USBFS_Bulkwraparound, but with no success.
The kit I am using is the CY8CKIT-050 PSoC® 5LP Development Kit.
Ideally, I would like to output data (voltage or current) into a excel spreadsheet on my PC by connecting the USB mini cable to the COM port on the PSOC 5LP. Is there a example project in creator that's considered the best for this operation? Or do more example projects using USB transfers exist?
I am using PSoc1 series Cy8c28452, I am using it to measure temperatue using a 'K' Type thermocouple. For Reference temp I am using a simple diode which is connect to Port P0.5. the thermocuple Port pins are P0.0 and P0.1. I am using EzADC user module as I found it to be quite impressive, with offset calibration and corelated double sampling . My problem is how do I multiplex the input of ADC between the diode (Room Temp0 and the Thermocouple output which is thro' an Instrumention amp module.(INSAMP)
.
Show LessHello,
I have converted a float variable using ftoa and am writting to the LCD with " LCD_1_PrString(presult) "
I would like to limit the numer of places past the decimal point to two. Is ther an argument that I can add, I looked around but do not see how to do this.
Thanks,
Alan
Show LessI am working on a proximity sensor using capsense. I started with the example code "CapSense_CSD_WithTuner" and modified the pins to connect to the external sensor I built. This tuner works without any problem. I can use the automatic tuning feature and end up getting a SNR over 10.
Then I try to work into an API so I can read the sensor in firmware. This is where I am having lots of problems:
1. When the CapSense_CSD block is set to use automatic tuning, the firmware locks up as soon as it runs the CapSense_CSD_Start() API.
2. When I switch to manual tuning and put in the values that the automatic tuner came up with, I can only read the raw data. When I try to use CapSense_CSD_CheckIsWidgetActive(), it always returns a 0.
Any advice or examples is greatly appreciated.
Show Less