Professional Documents
Culture Documents
Abstract
This Application Note describes the integration of the Cypress WirelessUSB™ and PSoC® CapSense
interface technologies into a wireless remote control with capacitive sensors. This implementation
demonstrates a WirelessUSB two-way simple protocol, a mixed-signal PSoC device, and implementation of
the capacitive switch design using the CSR user module in PSoC Designer™. The proposed device can be
used as a design starting point for the many popular wireless devices that markets demand today.
Capacitive sensors have advantages over A block diagram for this wireless remote control is
traditional mechanical switches, including greater shown in Figure 1. Technical specifications are
reliability and lower cost. Integration of the listed in Table 1.
Cypress WirelessUSB and PSoC CapSense
technologies into a wireless remote control with
capacitive sensors combines all these
advantages in a single device. The unique
architecture of the PSoC allows this device to be
built at a very affordable price with external
components kept to a minimum. The wireless
remote control with capacitive sensors can be
used as a remote control for various devices (TV
sets, air-conditioners and similar home
appliances), in distance-measuring equipment,
medical systems and related devices.
1
The proposed implementation in this Application Note is not
optimized for minimal power consumption. It is possible to
significantly decrease current consumption by increasing the
time interval between transferred packets.
Start Start
no
Go To Next
Channel
Channel
Available?
yes
Listen for Connect
Set TX_SEED Request Listen Time-out
Random
Set Default
PN Code, SEED
Connect Request
Connect Request
Connect Response Listen Time-out
Connect Response Time-out
Set TX_SEED
Set TX_SEED
Ping Request
Ping Response
Ping Request Time-out
Ping Response Time-out
Data
Data Response
Data Response Time-out
Data Receive Time-out
After the remote device sends the connect- After a correct pinging response, the devices go
response packet and the receiving device into the Data Transmission state. In every state,
receives this packet, the two devices set the new both devices control the operation of the Time-
selected code seed value TX_SEED and try to out Expired event. When the Time-out Expired
ping the channel for verification. This random event appears, the devices go to the Start state
unique code seed value protects the data from and begin all over again. This is the main rule of
being interpreted by similar devices as their own. the communication protocols.
To simplify the protocol, the PN code in this To verify connection between devices and
application is constant. provide for data transfer from the receiver to the
remote device, a data packet is sent at least
Remote device power consumption is minimized every second. This is how the Find Remote
by using sleep mode between data transfers. Device signal is sent from the receiver.
Increasing sleep time (or time between packet
transfers) decreases power consumption.
However, in sleep mode the capacitive sensor Conclusion
interface is not active. This decreases the This Application Note describes the Cypress
responsiveness of the device. An adaptive sleep WirelessUSB and PSoC CapSense interface
mode addresses this problem. Every 125 milli- technologies. A wireless remote control with
seconds (ms) the microcontroller wakes up and capacitive sensors is proposed. A PSoC project
checks the button state. The device only wakes and implementation of the capacitive switch
the radio module and sends a data packet if the design using the CSR User Module in PSoC
button state has changed. Otherwise, the high- Designer have been developed. A simple two-
power-consuming radio module stays in sleep way WirelessUSB protocol has been designed.
mode and the PSoC also returns to sleep mode. The proposed implementation can be used as a
design starting point for a wide variety of popular
wireless applications.
Figure 3. Wireless Remote Control Device with Capacitive Sensors (Actual Size)
Appendix: Schematics
Figure 4. Schematic of the Remote Device
VDD
BRight
VDD C2 0.1u
U1
28 BDown
R1 D1 Vdd
nL_R 1 27
820 2 P0[7] P0[6] 26 BOK
nPD_W P0[5] P0[4]
IRQ_W 3 25
4 P0[3] P0[2] 24
nRESET_W P0[1] P0[0] BUp
nSS_W 5 23
R2 D2 6 P2[7] P2[6] 22
MOSI_W P2[5] P2[4] BLef t
nL_D 7 21
820 8 P2[3] P2[2] 20
R3 D3 P2[1] P2[0] Y1 Buzzer
9 19 XRES
820 Vss Xres
R4 D4 nL_OK 10 18
P1[7] P1[6] SCK_W
nL_U 11 17
820 nL_L 12 P1[5] P1[4] 16
P1[3] P1[2] MISO_W
R5 D5 SCL 13 15 SDA
P1[1] P1[0]
820 14 J1
Vss 1
CY 8C21534 SCK_W 2
VDD MISO_W 3
J2 MOSI_W 4
1 nSS_W 5
2 nRESET_W 6
XRES 3 7
SCL 4 IRQ_W 8
SDA 5 9
10
ISR VDD 11
nPD_W 12
13
14
VDD
L1 100uH WirelessUSB Module
D6 MA2Q735 CYWUSB6934
BAT+
U3
+ C1 3 4 + C3
LX VOUT
VSS
220u 47u
XCY672S011PR
1
BAT-
VDD
VDD C2 0.1u
U1
28
R1 D1 Vdd
nL_R 1 27
820 2 P0[7] P0[6] 26
nPD_W P0[5] P0[4]
IRQ_W 3 25 BFind
4 P0[3] P0[2] 24
nRESET_W P0[1] P0[0]
nSS_W 5 23
R2 D2 6 P2[7] P2[6] 22
MOSI_W P2[5] P2[4]
nL_D 7 21
820 8 P2[3] P2[2] 20
R3 D3 P2[1] P2[0]
9 19 XRES
820 Vss Xres
R4 D4 nL_OK 10 18
P1[7] P1[6] SCK_W
nL_U 11 17
820 nL_L 12 P1[5] P1[4] 16
P1[3] P1[2] MISO_W
R5 D5 SCL 13 15 SDA
P1[1] P1[0]
820 14
Vss
CY 8C21534
VDD J1
J2 1
1 SCK_W 2
2 MISO_W 3
XRES 3 MOSI_W 4
SCL 4 nSS_W 5
SDA 5 nRESET_W 6
7
ISR IRQ_W 8
9
10
VDD 11
nPD_W 12
13
14
WirelessUSB Module
CYWUSB6934
VDD
L1 100uH
D6 MA2Q735
BAT+
U3
+ C1 3 4 + C3
LX VOUT
VSS
220u 47u
XCY 672S011PR
1
BAT-
Cypress Semiconductor
2700 162nd Street SW, Building D
Lynnwood, WA 98087
Phone: 800.669.0557
Fax: 425.787.4641
http://www.cypress.com/
Copyright © 2006 Cypress Semiconductor Corporation. All rights reserved.
PSoC is a registered trademark of Cypress Semiconductor Corp.
"Programmable System-on-Chip," PSoC Designer and PSoC Express are trademarks of Cypress Semiconductor Corp.
All other trademarks or registered trademarks referenced herein are the property of their respective owners.
The information contained herein is subject to change without notice. Made in the U.S.A.