CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C
41
Example Projects
c. While pressing the CapSense gesture pad buttons, observe the data on the UART serial
terminal software, as shown in
.
Figure 5-4. Transmitter UART Data on Serial Terminal
Note:
For more details on the project, i.e., how to configure the CAN component, CapSense
component, IMO trimming, pin configurations, and so on, refer to Code Example
.
5.3
CAN_Simplex_Rx_CY8CKIT-044
5.3.1
Project Description
This project receives data sent from the CAN bus with pre-defined frame ID as 0x01. The first 3-
bytes of the received data will control the RGB LED status, color and brightness. If the first byte is '0',
the RGB LED will be OFF and when it is '1', the RGB LED switches ON. The second data byte has
values as 0, 1 or 2, then the red, green or blue LED turns ON correspondingly. The 3rd data byte
value controls the RGB LED brightness.
5.3.2
Hardware Connections
1. Plug-in the CY8CKIT-026 kit to the CY8CKIT-044 through Arduino connector.
2. Since there are two CAN transceivers on the CY8CKIT-026, choose one of the CAN transceivers
(U6 - CAN1 and U4 - CAN2). Connect J2_13 and J2_15 to the appropriate CANx_Rx and
CANx_Tx pins of the transceiver connector (J19 - CAN1 or J9 - CAN2), as provided in
.
3. CAN2 transceiver works with 5 V and CAN1 transceiver requires 12 V input supply.
4. If you have chosen CAN1 transceiver, then external 12 V supply has to be connected through
J11, J12, or J17. Refer to the
Power Supply Configurations on page 24
for more details on power
supply connections.
5. If you have chosen the CAN2 transceiver, you can use external 12 V supply which will be con-
verted to 5 V with the on board regulator, or you can power the CAN2 transceiver with the base-
board (CY8CKIT-044) by shorting pin 1 and 2 of the power selection jumper (J20).
6. When you are powering the CY8CKIT-026 from the baseboard with 5 V, ensure that the jumper
J9 on the baseboard (CY8CKIT-044) is set to the 5 V position. When you are using 12 V external
supply and powering the baseboard from the Shield Kit (without a USB connection), ensure that
the jumper J9 on the baseboard (CY8CKIT-044) is set to the 3.3 V selection. Refer to
Selection Jumper (J20) on page 28
for more details.
Table 5-4. Pin Connection on CY8CKIT-026
Arduino Header Pins
CAN1 Transceiver
CAN2 Transceiver
J2_13
J19_2 (CAN1_RX)
J9_3 (CAN2_RX)
J2_15
J19_1 (CAN1_TX)
J9_2 (CAN2_TX)