走马观花

gesture recognition device

 
Overview

Question requirements

      Based on TI's sensor chip FDC2214, a gesture recognition device is designed and produced to realize guessing games (gestures "rock", "scissors", "paper") and punching games (gestures "1", "2", "3", " 4", "5").

Question analysis

      FDC2214 is a chip that reads capacitance and converts the capacitance into frequency output. This question uses the different capacitance of the copper plate under different gestures to judge gestures. FDC2214 sends the frequencies of different gestures to the STM32 microcontroller through the IIC protocol, and determines the current gesture through a series of signal processing.

      We mainly use three major modules, namely STM32F103ZET6 microcontroller, FDC2214 circuit, and serial port screen. The microcontroller is mainly used for data processing and communication with the serial screen and FDC2214; FDC2214 is used to obtain frequency values ​​under different gestures; the serial screen is mainly used for switching working modes and displaying results.

      This design mainly has two working modes, namely input mode and judgment mode. First, we select the input mode through the serial port screen, and then input the reference values ​​of various gestures respectively. After the input is completed, switch to the judgment mode through the serial port screen. The microcontroller will process the value output by FDC2214 at this moment and compare it with the reference value of the previously input gesture to determine the current gesture and display it through the serial port screen.

 

 

flow chart:

flow chart

Schematic design instructions

 

Source: FDC2214RGHT verification board- Jialichuang EDA open source hardware platform (oshwhub.com)

 

Physical map:

PCB design instructions

Since the capacitance needs to be measured, all four channels need to be filled with copper. Since they are all weak current signals, the wiring does not need to be thick.

Software description

This design code is mainly divided into three parts, namely communication with the serial screen, communication with FDC2214, and data processing
code block 1: communication with the serial screen

Code block 2: Communication with FDC2214
//FDC2214 initialization
     

//Read the output value of each channel
//Final value after calculation
Code Block 3: Data Processing

//Guess the punch output function
//shitou, jiandao, and bu are the benchmark values ​​for data entry, x is the value read by FDC2214 during judgment, and the current gesture is obtained by comparing the two.
 

Physical display instructions

Figure 1: Gesture for cloth

cloth

Figure 2: Gesture for StoneStone

Figure 3: Gesture for scissors

Scissors

Figure 4: The gesture is "1"

Figure 5: The gesture is "2"

 

Figure 6: The gesture is "3"

Figure 7: The gesture is "4"

Figure 8: The gesture is "5"

 

Precautions

Since the serial port screen and the copper-clad board are very close, when entering data, you need to put your hand on the copper board and press the buttons on the serial port screen. The proximity of the hand will cause errors in the entered data, so you can add a delay and wait for the keys to be pressed. Press and leave before starting to read data.

Demo video

Link: https://pan.baidu.com/s/1CbPFdzUnYVe-XCSHZ-9m5A?pwd=fzdwExtraction 
code: fzdw

Upload other attachments

 none

参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 03:15:44

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号