CY8CKIT-059 with HC-05

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.
PrGa_4677506
Level 1
Level 1
25 sign-ins 10 sign-ins 5 replies posted

Hello all,

         I'm involved in designing a project with CY8CKIT-059. here I have to communicate with PSoC using UART . the original project  I had made and tested using PSOC 3 IC in CY8CKIT-001 works fine . but when I adapt the project for CY8CKIT-059, it does not work. there is no serial communication happening. Specifically I want pins 1.6 and 1.7 of CY8CKIT-059 to send and receive data using the HC-05 module. I have attached the original working code which I tested using CY8CKIT-001 . please guide me in using CY8CKIT-059 UART.

0 Likes
8 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

PrGa,

I downloaded your project and made the following changes:

  • Device = Cy8C5888LTI-LP097
  • Rx_1 set to P12.6 *
  • Tx_1 set to P12.7 * 
  • UART_1 Baud = 115200 bps.

* I don't have a HC-05.  I'm using the COM port assigned to the KitProg on the CY8CKIT-059.

Once I programmed the CY8CKIT-059 and reset it, the following line showed up on my terminal program:

Electromagnet driver

So far, no issue with the UART.

Len
"Engineering is an Art. The Art of Compromise."
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I think that the point Len-san specified is correct.

We need to change the target device by using menu

Project > Device Selector...

So I also downloaded your project and

(1) Changed the device to CY8C5888LTI-LP097

(2) Reassigned pins as below

Note: By changing the device, PSoC Creator unmapped rx_1 and tx_1

002-Pins.JPG

(3) Connected an external USB-Serial adapter

adapter tx -> PSoC Rx (P1[6])

adapter rx -> PSoC Tx (P1[7])

adapter gnd -> Board's GND

(4) Started Tera Term with the USB-Serial adapter (9600 bps)

(5) Built, Programmed the CY8CKIT-059 and ran debugger,

The Tera Term output looked like below

001-TeraTerm-log.JPG

moto

almost near to my target design, can you please tell me how did you power the CY8CKIT-059? was it through kit prog or through any of the VDD pins of the KIT? and by the way is it correct to power the kit by using J4? please help?

0 Likes

PrGa,

I used the KitProg to power the kit.

You can use J4 for VDD and find a GND point elsewhere on the board for VSS.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

I read the CY8CKIT-059 kit guide and found that J4 is provided to measure the current consumption of the design. And your point also seems to say that. I have some questions ...J4 has two pins which one is in contact with VDD and what is the function of the other pin? where is it terminated?

 

0 Likes

PrGa,

J4 has a 0 ohm resistor between the two terminals.   With that resistor still in place you can place your connection to VDD on either pin.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
PrGa_4677506
Level 1
Level 1
25 sign-ins 10 sign-ins 5 replies posted

Dear Len and motoo, I have already changed the device. the project I have shared is the original one used for PSoC3.  Motoo's work is more nearer to  my target design. but I have to connect to PSoC using Bluetooth. using HC-05 module. Ok let me try once again. Thanks both of you for your help.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I think that your original question was the ported program in CY8CKIT-059 does not work.

No serial communication was taking place.

But now serial communication should be established.

Then if you want to control/communicate the external device via UART 

some more work will be required to send/receive data or packet.

To play with such condition, I wrote and submitted the following code example.

It would be nice it can also be some hint or help.

https://community.cypress.com/t5/Code-Examples/tty-utils-a-utility-sample-for-CLI-type-program/m-p/7...

moto

0 Likes