PSoC™ 4 Forum Discussions
Hi everyone,
I breadboarded the circuit in the attached picture and got unexpected results from the opamp. The ADC is configured to use the 1.024V bypassed reference in single-ended mode and the input on the non-inverting opamp pin is max 6 mV, so I configured the gain of the opamp to be 147. But when I measured the voltage on pin 1.3 (OP1.out) it was ~ 1.4V instead of the expected ~900 mV - the screenshot of the opamp config is also attached.
When I used an external opamp (AD8629), result was correct: 882 mV.
I am using the CY8CKIT-049-41xx development kit.
So what did I miss?
Thanks,
Todor
PS. The voltage on the output pin was measured with a multimeter 😉
Show LessAs I would like to do some processing like finding top to top AC values, average values etc on multiple ADC reading results on the client (phone) side, I am searching for a way to send (int16) array as/in a bluetooth chracteristic. However, I can't find a tutorial on how to set this up.
In the bluetooth profile, I can find the sint16 array property for a characteristic, but I can't find any information on how to set this up.
My questions are;
How many samples can I send in one array (how many values can be stored and sent in one array)
How do I store these values in the array in the main.c function before I send it? For sending individual ADC result values I now have the below piece of code where 'meetwaarde' is an int16 in which the ADC result is stored. What do I need to change to send an array instead of one single value?
CYBLE_GATTS_HANDLE_VALUE_NTF_T tempHandle;
tempHandle.attrHandle = CYBLE_BLUEVOLTSERVICE_KANAAL_1_CHAR_HANDLE;
tempHandle.value.val = (uint8 *)&meetwaarde;
tempHandle.value.len = 2;
CyBle_GattsWriteAttributeValue(&tempHandle, 0, &cyBle_connHandle,0);
if (updateNotify ) {
CyBle_GattsNotification(cyBle_connHandle,&tempHandle);
}
And of course, how can the values be pulled out of the array on the client side (android) again?
I have a function for pulling a value from a characteristic now which looks like the code below;
private void updateWaarde(BluetoothGattCharacteristic c) { int waarde = c.getIntValue(BluetoothGattCharacteristic.FORMAT_SINT16, 0); EditText textVeld = (EditText) findViewById(R.id.editMessage); textVeld.setText(Integer.toString(waarde)); }
I am wondering how I can store the array which I get back in the characteristic in a local (java) array.
Any support would be much appreciated.
Show LessHi,
Is there reference design to understand, how to communicate between 2 PSOC 4 BLE modules ?
Example: Using capsense of "Module A" control intensity and color of LED on "Module B"
There are similar examples available, but it demonstrates 2-way communication btw a BLE module and Smart Phone (CySmart App)
[Capsense on BLE module reflected on slider in CySmart App and From CySmart app, control LED colour and intensity]
I tried to tweak the example projects, but couldn't succeed.
Any suggestions / handy examples ?
rgds,
myr
Show LessI'm currently trying to interface accelerometer LIS3DH to the PSoC4 BLE. I selected spi master full duplex mode in PSoC creator.Can someone please tell me whether it's the correct one. And what's the difference between the normal mode and SCB mode?
Also, the registers of the accelerometer are to be configured by writing values into them. So do I have to write my own function for writing into registers or are there already some APIs in the creator.
I'm also confused about the HSIOM mentioned in the datasheet.Are we supposed to configure those registers?
Finally, pin assignments in '.cydwr' file are different than those given in the datasheet.
(e.g:
in the datasheet: MOSI=P0.0, MISO=P0.1, SCLK=P0.3 and
in the .cydwr file: MOSI=P0.0, MISO=P0.2, SCLK=P0.1)
Would I have to change the pin assignment in cydwr file?
Show LessThe CY8CKIT-049-42xx kit was working before. Recently, it is not getting recognized by my Win7 PC. Attached screen shots show what is happening after the board is inserted. I can program the board using MiniProg3, but I want to use USB Serial port. Please help.
Show LessHi,
I m new to psoc program. I need a simple watch dog program, The watchdog timer will call every 5 at once to system restart.
Regards
Duraisamy P
Show LessI am using CYBLE-022001-00 module , i am looking and thinking about my BLE code updates can be programmed through Android app. it become easy for further upgrade of your hardware device over BLE network no need to conect MiniProg 3 each time .
Show LessI find cyble10563 worked very well below 3.3V, but some sensor in my pcb board worked wrong! so I want to stop the system when the voltage is below 3.3V.
what can I do ?
Show LessHi All
I m new for BLe, I need a help for connecting central with another already know 4 peripheral devices and exchange the data automatically from four peripheral devices to central device. Please share some example program.
Regards
Duraisamy p
Show Less