supremeOne

VC-02 Offline Voice Home Appliance Remote Control/Voice Night Light

 
Overview

 
Description of the development process:
1. Hardware:
1. First, the VC-02 module. For a detailed introduction to this module, see the link:
(135 messages) [Offline Voice Special ①] Tutorial on the use of the latest offline voice module VC series factory firmware of Anxinke - SDK open source? _Anxinke offline voice_Anxinke Technology's blog-CSDN blog
For the manual of VC-02, see Anxinke's official website.
      For the chip itself, the key ones are the microphone signal input port (MIC+ and MIC-) and the speaker signal output port (SPK+ and SPK-). The serial port also has several IO ports for driving peripherals. (Servos, motors, and lighting small lights are all possible)
PS Since I have no experience in hardware design, I did not lead all the chip IO ports to the pin header at the beginning, which made it difficult to troubleshoot problems during subsequent welding and downloading and debugging (assuming that the serial port pin is not led out, if the chip becomes bricked, it will be troublesome to handle it even if there is a matching debugger on hand). It is specially recorded here.
2. The external servo switch light
     servo I use is MG995 (180 degrees, some of the 360-degree servos can only rotate in circles and cannot be fixed at one angle), which is about less than 10g. This brings a problem-the torque is not enough. At that time, the epidemic was at home, and the lights in the school dormitory used large switches, which did not require much effort to press, but the light switches at home were all the harder boat-shaped switches, and the servo could not be pressed at all. Later, I bought a rudder arm, which could hardly be pressed. Later, there was no way to stick it with tape.
     There is another pit. The servo cannot turn. It is likely that the duty cycle of the output PWM is too close to 0% or 100%. You can test it with a number in the middle first.
3.
     When the voice switch light of the external infrared module was realized, I bought an infrared self-learning module online, which can learn the infrared waves of most home appliance remote controls. The infrared signal emitted by the infrared remote control of general home appliances is modulated by a 38KHz carrier. The use of the module is relatively simple. You need to read the protocol definition of the module communication first (actually, it is the definition of the meaning of the serial port data). The module can learn instructions in advance, and then correspond each instruction to a serial port data frame. The corresponding data frame can be sent by the serial port of VC-02 to complete the control.
     In the video, I used VC-02 and the infrared module to replace the remote control of the TV.
 
2. Software:
     Anxinke has an offline voice platform. You can configure the program according to your needs and download it without programming. You can refer to the first link above.
Functional Overview:
① Use VC02 as the main control chip, the microphone receives voice commands, and the speaker broadcasts the reply content of each command.
② According to the received voice command, the chip outputs the corresponding data to the infrared self-learning module through the UART1 serial port. The infrared module sends infrared waves with different codes to control the TV, replacing the operation of pressing the remote control. ③
The chip outputs PWM waves through the IO port, controls the angle of the servo by adjusting the duty cycle, simulates the operation of pressing the switch to turn on or off the light, and realizes contactless switching of the light. ④ The
infrared module uses a 37KHZ carrier wave, which can control most of the daily electrical appliances or devices that support remote control.
(The specific effect is shown in the two videos in the attachment)
 
Hardware diagram:
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-11 09:35:35

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号