Specifications
CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev. *B 55
Code Examples
5.3 Temperature Sensing Keyboard
5.3.1 Project Description
This project example operates similar to a keyboard, although it does not look like a standard keyboard. The
example is a temperature sensor using potentiometer (VR1 and VR2)
as surrogates for real
temperature sensors
. When plugged in using USB, the project enumerates as a keyboard and starts
printing out temperature values.
The following modules are used in the project:
■ ADCIN: It is a differential input ADC from where the samples are received and used as the refer-
ence values to calculate the real temperature.
■ LCD: It is used to display the values of the real temperatures.
■ PGA: It is used as an amplifier where it amplifies the signal received from ADCINC.
■ USB: This module is used to handle the request from the USB host (PC) to communicate with the
device. It handles all the data packet transfer between the host and device connected to host
through the USB.
5.3.2 Hardware Connection
1. Connect the jumper wire between S1 on J2 and P3.0 (P30 on J10).
2. Connect the jumper wire between S2 on J2 and P3.1 (P31 on J10).
3. Connect the jumper wire between VR1 on J2 and P3.6 (P36 on J10).
4. Connect the jumper wire between VR2 on J2 and P3.7 (P37 on J10).
5. Connect the jumper wire between P2.7 (P27 on J12) and LS1 on J2.