PSoC™ 5, 3 & 1 Forum Discussions
Hello community, to express my gratitude towards the competent assistance I received in a recent thread (see full thread here) here are a couple of learnings.
I could not post this in the original thread as it is locked for some reason now - maybe because I marked it as solved.
- Signal Level shifting problems can be addressed via the component configurator (pin properties input threshold) e.g., CMOS or LVTTL or via the CTL registers of the ports. In case you use the emFile component set the threshold of the MISO pin to LVTTL via the control register of the corresponding port. This is particularly handy when you work with microSD breakouts that have mixed signal levels e.g. inputs are level shifted but outputs are not.
- Some pins in the KIT for PSoC 5LP have hard wired capacitors which can "distort" the signals to a point where logical levels are not reached anymore. So for the SCLK signal pay attention not to use 0.2 0.3 0.4 pins as these have the bespoke capacitors.
- I did test the emFile with the above modifications and I got to read the label of the disk. Unfortunately, the result was not stable/repeatable and I did not manage to read a file or dir on the card. Pls check the original post where BiBi did a successful test. So this solution for emFile should principally work. I just don't have the time to look deeper into the situation with an oscilloscope and will work with fatFs instead.
- fatFs is slightly more flexible than emFile in that all SPI wiring is openly accessible and you can configure the pins with the IDE
- fatFS for long file names has some issues unless you use a recent version. I did deploy the latest version with my current project. It did not work out of the box so I had to apply a number of changes to the source files to make it compile and work.
- both emFile and fatFs seem to work with a 32GB microSD (sandisk) in the case of fatFs full function is quasi tested.
Thanks again to BiBi and Leo for your kind assistance.
Cheers,
Stefan
Hi Forum
As part of my project I would like to be able to read the output of a LIDAR sensor on a serial monitor over the I2C bus, using a PSoC 5LP. (Linked below)
I found a post that took the ardunio libraries and converted them to PSoC 4 libraries. (Linked below)
https://www.hackster.io/vlad-radoiu/measuring-distance-with-vl53l0x-tof-sensor-1080f1
I have the serial monitor part working however I cannot get the sensor to initiate. I had an printf after the initialization of each component (Timer and I2C block) showing the place where the program hangs. (picture attached)
Any help on whether this is a bug in my code or a hardware issue would be greatly appreciated.
Below is attached my workspace archive (Minimal) and an image of what is displayed in PuTTy
Thanks
Show Lessi have a glass of water placed on a plank. i am holding the plank.I nedd a mechanism to rotate the plank and but eventhough i try to rotate the plank the mechanism should compensate the change and stabilise the plank so that the glass of water wont be affected that the level remeains tha same.The control must be done using Psoc C059 suggest me most economical way to do this and most easy and feasible way for hardware implementation .
Show LessHello,
I made a basic watt meter project with a PSOC5.
The setup consists of:
1. A sigma-delta ADC object set to 18-bits. The voltage reference is 1.024V and the input is set to differential (+/-1.024V).
2. A multiplexer feeding a voltage and current input term to the ADC.
External to the PSOC:
1. Is a 1001:1 resistive divider connected to an op-amp buffer. This buffer is single-ended and feeds only the positive terminal of the A to D (the negative terminal is grounded). This serves as the voltage input to the watt meter.
2. Is a differential amplifier with a gain of 8.2 that measures voltage across a 0.5 ohm resistor. This serves as the ammeter current input to the watt meter.
I have the meter working flawlessly right now but it is coded using floating point arithmetic. I want to optimize the algorithm to use fixed point. I have been out of school for several years now and am rusty.
So how do you suggest I scale the numbers for optimal volts * amps precision given my hardware setup?
Show LessCan anyone help clarify my understanding of the I2S block? The advanced tab allows the number of channels to be set for both RX and TX. However simply setting RX to 4 channels chnages the block such that SDI is now marked up as sdi[1:0]. The console then warns that 'Terminal "I2S_1.sdi[1:0]" with width 2 is connected to "Net_105" with width 1.' with terminal and its connected wire do not have the same width.
Does this imply that a multichannel I2S block is effectively N stereo pairs in parallel rather than a true serial TDM mode?
FWIW I'm trying to establish if I can use one of these M0 or M3 parts to convert multi-channel serial audio to SPI.
TVMIA.
Show Lesssmartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/PSoC-5-3-1/CCG5%E4%B8%AD%E6%80%8E%E4%B9%88%E5%81%9ADR-SWAP/td-p/683316
Show LessWhen enabling the systick by a call to CySysTickStart(), interrupt 15 (=I2C) is also enabled.
This is a bug. Systick is exception nr 15, not interrupt nr 15
void CySysTickInit(void)
{
......
CySysTickClear();
CyIntEnable(CY_INT_SYSTICK_IRQN); <---------------------------------------- BUG!!!!!!!!!!!!!!!!!!!!! This enables I2C interrupt
}
2 hours ago, the drop down forum menus were working.
Now, there are no drop down menus. I have to keep going back to Infineon homepage in order to get to the forum I want.
I had to choose a Forum from this form, but the problem is with ALL the forum drop down menus. They're non-existent.
Running PC with Win10, MS Edge.
How about back tracking to the previous release of the forum software!!! It worked well enough to use. The current release is not usable.
Show Less
I need to develop a temperature sensing controller demo. This system will be installed in a vehicle which carries food products across locations. The temperature needs to be changed based on the food product i.e. different temperature for milk products, fruits etc. Can you suggest which kind of sensor will be suitable - Thermistor, Thermocouple or diode for this application?
Show Less