TURN ON A LED WITH A STRING WITH ANDROID

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
DaUt_3924326
Level 1
Level 1
First like received First like given

Hi everyone,

I have CY8CKIT-042-BLE PIONEER KIT and a Samsung with Android 8.0.

I want to turn on a LED (RGB LED) of CY8CKIT-042-BLE Pioneer Baseboard with a specific string (a word, like "hei" or "light"...)

through bluetooth from ANDROID 8.0.

Example: i send string like "light" from Android's OS and to the Pioneer Baseboard the blue led lights up (see the attached picture).

What i use:

- On Pioneer Baseboard i use PRoC BLE CYBL10563-56LQXI device.

- On Android's OS i use an app to communicate with PRoC BLE, called Serial Bluetooth Terminal (downloaded it from Play Store of Google).

- I use Central-Peripheral firmware (see the attached files), where Pioneer Baseboard is a peripheral and Samsung's Smartphone is a central.

- On the PC i use PSoC Creator 4.2 and Tera Term to emulate the serial port.

Anyone can help me?

Thanks,

Daniele

1 Solution
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello Daniele,

Please refer to the attached project. When we write a string data "light" from the Android device then the blue LED will glow on the peripheral device.

In the CYBLE_EVT_GATTS_WRITE_CMD_REQ event please check the write values from the Client device and update it accordingly.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
1 Reply