CN103035273A - Device by utilizing knob type digital coding switch for switching audio files - Google Patents

Device by utilizing knob type digital coding switch for switching audio files Download PDF

Info

Publication number
CN103035273A
CN103035273A CN2012105333863A CN201210533386A CN103035273A CN 103035273 A CN103035273 A CN 103035273A CN 2012105333863 A CN2012105333863 A CN 2012105333863A CN 201210533386 A CN201210533386 A CN 201210533386A CN 103035273 A CN103035273 A CN 103035273A
Authority
CN
China
Prior art keywords
knob type
type digital
code switch
digital code
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012105333863A
Other languages
Chinese (zh)
Other versions
CN103035273B (en
Inventor
王日昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NINGBO HI-TECH ZONE BARY SOUND TECHNOLOGY Co Ltd
Original Assignee
NINGBO HI-TECH ZONE BARY SOUND TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NINGBO HI-TECH ZONE BARY SOUND TECHNOLOGY Co Ltd filed Critical NINGBO HI-TECH ZONE BARY SOUND TECHNOLOGY Co Ltd
Priority to CN201210533386.3A priority Critical patent/CN103035273B/en
Publication of CN103035273A publication Critical patent/CN103035273A/en
Application granted granted Critical
Publication of CN103035273B publication Critical patent/CN103035273B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a device by utilizing a knob type digital coding switch for switching audio files. The device comprises a central processor module, a digital signal processing module, a power module, and a memorizer used for storing the audio files. The central processor module is connected with the digital signal processing module, the digital signal processing module is connected with the memorizer used for storing the audio files, and the power module is respectively connected with the central processor module and the digital signal processing module. The device further comprises the knob type digital coding switch for switching the audio files. The knob type digital coding switch is provided with a first output pin and a second output pin, and the first output pin and the second output pin are respectively connected with the central processor module. The device by utilizing the knob type digital coding switch for switching the audio files has the advantages of being simple and convenient to operate, and quick in switching speed.

Description

A kind of device that utilizes the knob type digital code switch that audio file is switched
Technical field
The present invention relates to a kind of device that audio file is switched, especially relate to a kind of device that utilizes the knob type digital code switch that audio file is switched.
Background technology
At present, most of digital audio-frequency player relates to when song files or file switch and all adopts one group of button to realize.This group button generally comprises forward switching key and backward switching key, realizes the choosing of the audio file of front by the operation to switching key forward, by the operation of switching key backward being realized choosing the audio file of back.Whenever by once forward switching key or backward switching key, realize the switching of a file,, need continuously by forward switching key or backward switching key in position during non-conterminous file when needs switch with current file.Used switch is generally the mechanical elasticity switch in the existing button, and the mechanical elasticity switch all is attended by shake in moment closed and that disconnect, trembles processing in order to prevent that misoperation from need to disappear to button.Thus, cause key scroll unhappy, if to the too fast problem that also can occur not responding of button operation; Especially for non-hand-held audio player, when button is carried out pressing type operation, because the impact of the factors such as work angle, dynamics, very inconvenient when carrying out frequently actuation of keys.
Summary of the invention
Technical matters to be solved by this invention provides a kind of easy and simple to handle, the device that utilizes the knob type digital code switch that audio file is switched that the file switch speed is fast.
The present invention solves the problems of the technologies described above the technical scheme that adopts: a kind of device that utilizes the knob type digital code switch that audio file is switched, comprise CPU module, digital signal processing module, power module, be used for depositing the storer of audio file, described CPU module is connected with described digital signal processing module, described digital signal processing module is connected with described storer be used to depositing audio file, described power module respectively with described CPU module be connected digital signal processing module and be connected, also comprise the knob type digital code switch that just is used for switching audio file, described knob type digital code switch is provided with the first output pin and the second output pin, described the first output pin be connected the second output pin and be connected with described CPU module respectively, when rotating described knob type digital code switch, the first output pin of described knob type digital code switch is exported the first pulse signal, the second output pin of described knob type digital code switch is exported the second pulse signal, when the first pulse signal during from high level to low level, described CPU module records the level of the second pulse signal, when the first pulse signal during again from high level to low level, described CPU module again records the level of the second pulse signal and compares the level of the second pulse signal of twice record in front and back, draw the sense of rotation information of described knob type digital code switch and be transferred to described digital signal processing module, described digital signal processing module switches the audio file in the storer.
Described CPU module is that singlechip chip, reset circuit, clock circuit and the peripheral circuit of STM32F103RBT6 forms by model, described reset circuit, described clock circuit and described peripheral circuit are connected with the STM32F103RBT6 chip respectively, the first output pin of described knob type digital code switch is connected with the 9th pin of STM32F103RBT6 chip, and the second output pin of described knob type digital code switch is connected with the tenth pin of STM32F103RBT6 chip.
Describedly utilize device that the knob type digital code switch switches audio file also to comprise for the button that switches file, described button is provided with the first input pin, the second input pin, the first output pin and the second output pin, the first input pin of described button be connected input pin and all be connected with the 11 pin of STM32F103RBT6 chip, the first output pin of described button and the equal ground connection of the second output pin, whenever click described button and can produce a low level, described CPU module receives this low level information and converting transmission to described digital signal processing module, and described digital signal processing module switches file.
Describedly utilize device that the knob type digital code switch switches audio file to comprise that also described pilot lamp is connected with described CPU module for the pilot lamp that shows audio file and file switching state.
Describedly utilize device that the knob type digital code switch switches audio file to comprise that also described display screen is connected with described CPU module for the display screen that shows in real time current audio file and/or folder information.
Compared with prior art, the invention has the advantages that by adopting the knob type digital code switch to come audio file is switched in conjunction with CPU module, the knob type digital code switch rotates efficient and convenient, the CPU module fast response time, with respect to existing button audio file switching device shifter, overcome the slow and difficult shortcoming of switching continuously of keyswitch reaction, easy and simple to handle, switch speed is fast;
When also comprising, the device that utilizes the knob type digital code switch that audio file is switched can realize the switching between a plurality of files when switching the button of file, more practical;
When the device that utilizes the knob type digital code switch that audio file is switched also comprises when showing the pilot lamp of audio file and file switching state, can show intuitively to be at present file selection mode or audio file selection mode, prevent maloperation;
When the device that utilizes the knob type digital code switch that audio file is switched also comprises when in real time showing the display screen of audio file and/or folder information, can be with corresponding audio file information, comprise song, duration, sequence number etc. or number of folders, numbering, the information outputs such as title are to display screen, realize simultaneous display, handled easily.
Description of drawings
Fig. 1 is theory diagram of the present invention;
Fig. 2 is CPU module of the present invention, power module, be used for depositing the connecting circuit figure of storer, knob type digital code switch, display screen and the button of audio file;
Fig. 3 is the dsp chip of digital signal processing module of the present invention and the circuit diagram of peripheral circuit;
Fig. 4 is the storage chip of digital signal processing module of the present invention and the circuit diagram of peripheral circuit.
Embodiment
Embodiment is described in further detail the present invention below in conjunction with accompanying drawing.
Embodiment: as shown in Figure 1, a kind of device that utilizes the knob type digital code switch that audio file is switched, comprise CPU module 1, digital signal processing module 2, power module 3, be used for depositing the storer 4 of audio file, CPU module 1 is connected with digital signal processing module 2, digital signal processing module 2 is connected with the storer 4 that is used for depositing audio file, power module 3 is connected with digital signal processing module with CPU module 1 respectively and is connected, also comprise the knob type digital code switch 5 that just is used for switching audio file, knob type digital code switch 5 is provided with the first output pin A and the second output pin B, the first output pin A be connected output pin B and be connected with CPU module 1 respectively, when turning knob formula numerical coding switch 5, the first output pin A of knob type digital code switch 5 exports the first pulse signal, the second output pin B of knob type digital code switch 5 exports the second pulse signal, when the first pulse signal during from high level to low level, the level of CPU module 1 record the second pulse signal, when the first pulse signal during again from high level to low level, CPU module 1 again records the level of the second pulse signal and compares the level of the second pulse signal of twice record in front and back, draw the sense of rotation information of knob type digital code switch 5 and be transferred to digital signal processing module 2, the audio file in 2 pairs of storeies of digital signal processing module 4 switches.
In the present embodiment, CPU module 1 is that singlechip chip, reset circuit, clock circuit and the peripheral circuit of STM32F103RBT6 forms by model, reset circuit, clock circuit and peripheral circuit are connected with the STM32F103RBT6 chip respectively, the first output pin A of knob type digital code switch 5 is connected with the 9th pin PC1 of STM32F103RBT6 chip, and the second output pin B of knob type digital code switch 5 is connected with the tenth pin PC2 of STM32F103RBT6 chip.
In the present embodiment, utilize the device that 5 pairs of audio files of knob type digital code switch switch also to comprise for the button 6 that switches file, button is provided with the first input pin, the second input pin, the first output pin and the second output pin, the first input pin of button 6 be connected input pin and all be connected with the 11 pin PC3 of STM32F103RBT6 chip, the first output pin of button 6 and the equal ground connection of the second output pin, whenever click button 6 and can produce a low level, CPU module 1 this low level information of reception and converting transmission are to digital signal processing module 2, and 2 pairs of files of digital signal processing module switch.
In the present embodiment, utilize the device that the knob type digital code switch switches audio file to comprise that also pilot lamp 7 is connected with CPU module 1 for the pilot lamp 7 that shows audio file and file switching state, pilot lamp 7 can be the LED lamp.
In the present embodiment, utilize the device that the knob type digital code switch switches audio file also to comprise for the display screen 8 that shows in real time current audio file and/or folder information, display screen 8 is connected with CPU module 1, and display screen 8 can be the LCD LCDs.
The CPU module 1 of present embodiment, power module 3, be used for depositing the storer 4 of audio file, the connecting circuit figure of knob type digital code switch 5, display screen 8 and button 6 as shown in Figure 2, the dsp chip of the digital signal processing module 2 of present embodiment and the circuit diagram of peripheral circuit as shown in Figure 3, the storage chip of digital signal processing module 2 of the present invention and the circuit diagram of peripheral circuit are as shown in Figure 4.
The principle of work of present embodiment is: the first output pin A of knob type digital code switch 5 is connected with the 9th pin PC1 of STM32F103RBT6 chip, and the second output pin B of knob type digital code switch 5 is connected with the tenth pin PC2 of STM32F103RBT6 chip.The level that knob type digital 5 two output pins of code switch (A, B) cause during the operation of STM32F103RBT6 chip detection changes, and forms command adapted thereto.Digital signal processor 2 is connected with CPU module 1, presses UART asynchronous serial communication protocol exchange instruction and data.When storing audio file in the storer 4, turning knob formula numerical coding switch 5, the first output pin A of knob type digital code switch 5 exports the first pulse signal, and the second output pin B of knob type digital code switch 5 exports the second pulse signal.CPU module 1 detects the level variation that the first pulse signal and the second pulse signal cause in real time, when central processing unit module 1 detects the first pulse signal from high level to low level, CPU module 1 can record the level of the second pulse signal, when central processing unit module 1 detects the first pulse signal again from high level to low level, CPU module 1 again records the level of the second pulse signal and compares the level of the second pulse signal of twice record in front and back, if the second pulse signal first 0 again 1, then the rotation direction of knob type digital code switch 5 is right-hand rotation, otherwise then the rotation direction of knob type digital code switch 5 is left-hand rotation; To digital signal processing module 2, the audio files in 2 pairs of storeies of digital signal processing module 4 switch CPU module 1 with the sense of rotation communication of the knob type digital code switch 5 that obtains.Knob type digital code switch 5 turns lattice and produces a recurrence interval, just consisted of once and switched, usually knob type digital code switch 5 one circles have more than ten lattice, convenient and quick, digital signal processing module 2 forms instruction according to the information that obtains, forward or backward audio file information is read in an address, realizes the switching of audio file.
When needs switch file, button 6 is operated, the first input pin of button 6 be connected input pin and all be connected with the 11 pin PC3 of STM32F103RBT6 chip, button 6 is whenever by can produce a low level next time, STM32F103RBT6 chip detection in the CPU module 1 will form a switching command to low level and be transferred to digital signal processing module 2, digital signal processing module 2 spanned files folder switching command is with the operand change of knob type digital code switch 5.The STM32F103RBT6 chip IO pin connects pilot lamp 7 positive poles in the CPU module 1, when file is carried out blocked operation, this pin can continue to export high level and light pilot lamp 7, and when button 6 triggers when changing the audio file operation over to then output low level, pilot lamp 7 extinguishes; The STM32F103RBT6 chip connects display screen 8 in the CPU module 1, in real time corresponding file and audio file information (comprising the information such as song, duration, sequence number or number of folders, numbering and title) are outputed to display screen 8, realize simultaneous display, handled easily.

Claims (5)

1. device that utilizes the knob type digital code switch that audio file is switched, comprise CPU module, digital signal processing module, power module, be used for depositing the storer of audio file, described CPU module is connected with described digital signal processing module, described digital signal processing module is connected with described storer be used to depositing audio file, described power module respectively with described CPU module be connected digital signal processing module and be connected, characterized by further comprising the knob type digital code switch that just is used for switching audio file, described knob type digital code switch is provided with the first output pin and the second output pin, described the first output pin be connected the second output pin and be connected with described CPU module respectively, when rotating described knob type digital code switch, the first output pin of described knob type digital code switch is exported the first pulse signal, the second output pin of described knob type digital code switch is exported the second pulse signal, when the first pulse signal during from high level to low level, described CPU module records the level of the second pulse signal, when the first pulse signal during again from high level to low level, described CPU module again records the level of the second pulse signal and compares the level of the second pulse signal of twice record in front and back, draw the sense of rotation information of described knob type digital code switch and be transferred to described digital signal processing module, described digital signal processing module switches the audio file in the storer.
2. a kind of device that utilizes the knob type digital code switch that audio file is switched according to claim 1, it is characterized in that described CPU module is the singlechip chip of STM32F103RBT6 by model, reset circuit, clock circuit and peripheral circuit form, described reset circuit, described clock circuit and described peripheral circuit are connected with the STM32F103RBT6 chip respectively, the first output pin of described knob type digital code switch is connected with the 9th pin of STM32F103RBT6 chip, and the second output pin of described knob type digital code switch is connected with the tenth pin of STM32F103RBT6 chip.
3. a kind of device that utilizes the knob type digital code switch that audio file is switched according to claim 2, characterized by further comprising for the button that switches file, described button is provided with the first input pin, the second input pin, the first output pin and the second output pin, the first input pin of described button be connected input pin and all be connected with the 11 pin of STM32F103RBT6 chip, the first output pin of described button and the equal ground connection of the second output pin, whenever click described button and can produce a low level, described CPU module receives this low level information and converting transmission to described digital signal processing module, and described digital signal processing module switches file.
4. a kind of device that utilizes the knob type digital code switch that audio file is switched according to claim 2, characterized by further comprising for the pilot lamp that shows audio file and file switching state, described pilot lamp is connected with described CPU module.
5. according to claim 2 or 3 described a kind of devices that utilize the knob type digital code switch that audio file is switched, characterized by further comprising for the display screen that shows in real time current audio file and/or folder information, described display screen is connected with described CPU module.
CN201210533386.3A 2012-12-12 2012-12-12 A kind of device that utilizes knob type digital code switch to switch audio file Expired - Fee Related CN103035273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210533386.3A CN103035273B (en) 2012-12-12 2012-12-12 A kind of device that utilizes knob type digital code switch to switch audio file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210533386.3A CN103035273B (en) 2012-12-12 2012-12-12 A kind of device that utilizes knob type digital code switch to switch audio file

Publications (2)

Publication Number Publication Date
CN103035273A true CN103035273A (en) 2013-04-10
CN103035273B CN103035273B (en) 2016-05-25

Family

ID=48022092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210533386.3A Expired - Fee Related CN103035273B (en) 2012-12-12 2012-12-12 A kind of device that utilizes knob type digital code switch to switch audio file

Country Status (1)

Country Link
CN (1) CN103035273B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915229A (en) * 2016-04-06 2016-08-31 珠海格力电器股份有限公司 Method and device for processing output of rotation encoder switch
CN107589933A (en) * 2017-09-06 2018-01-16 大唐终端技术有限公司 Knob type digital code switch device and its working condition recognition methods
WO2018032822A1 (en) * 2016-08-19 2018-02-22 深圳喜乐航科技有限公司 Indicator light system based on audio signal control
CN114113993A (en) * 2020-08-26 2022-03-01 深圳和而泰智能控制股份有限公司 Code switch detection method, computer storage medium and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5479408A (en) * 1994-02-22 1995-12-26 Will; Craig A. Wireless personal paging, communications, and locating system
US5825353A (en) * 1995-04-18 1998-10-20 Will; Craig Alexander Control of miniature personal digital assistant using menu and thumbwheel
CN1276546A (en) * 1999-05-13 2000-12-13 索尼公司 Information processing method, device and medium
CN1463460A (en) * 2001-05-21 2003-12-24 索尼株式会社 Operating device
CN101611373A (en) * 2007-01-05 2009-12-23 苹果公司 Utilize the attitude of touch-sensitive device control, manipulation and editing media file
CN101639671A (en) * 2009-08-24 2010-02-03 傅涛 Method and device for controlling object selection and parameter setting
CN101710246A (en) * 2009-11-13 2010-05-19 宁波吉盛电器有限公司 Control circuit of oven
CN101901710A (en) * 2010-07-09 2010-12-01 深圳和而泰智能控制股份有限公司 Rotary encoder switch
CN102594241A (en) * 2012-03-20 2012-07-18 江苏物联网研究发展中心 Intelligent controller for electric eddy current retarder
CN202394776U (en) * 2011-12-15 2012-08-22 蚌埠依爱消防电子有限责任公司 Rotating-wheel type input device for fire alarm control units
CN202501954U (en) * 2012-04-23 2012-10-24 中意泰达(营口)汽车保修设备有限公司 Balancing machine button structure
CN203085169U (en) * 2012-12-12 2013-07-24 宁波高新区百瑞音响科技有限公司 Device capable of using knob-type digital coding switch for switching of audio files

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5479408A (en) * 1994-02-22 1995-12-26 Will; Craig A. Wireless personal paging, communications, and locating system
US5825353A (en) * 1995-04-18 1998-10-20 Will; Craig Alexander Control of miniature personal digital assistant using menu and thumbwheel
CN1276546A (en) * 1999-05-13 2000-12-13 索尼公司 Information processing method, device and medium
CN1463460A (en) * 2001-05-21 2003-12-24 索尼株式会社 Operating device
CN101611373A (en) * 2007-01-05 2009-12-23 苹果公司 Utilize the attitude of touch-sensitive device control, manipulation and editing media file
CN101639671A (en) * 2009-08-24 2010-02-03 傅涛 Method and device for controlling object selection and parameter setting
CN101710246A (en) * 2009-11-13 2010-05-19 宁波吉盛电器有限公司 Control circuit of oven
CN101901710A (en) * 2010-07-09 2010-12-01 深圳和而泰智能控制股份有限公司 Rotary encoder switch
CN202394776U (en) * 2011-12-15 2012-08-22 蚌埠依爱消防电子有限责任公司 Rotating-wheel type input device for fire alarm control units
CN102594241A (en) * 2012-03-20 2012-07-18 江苏物联网研究发展中心 Intelligent controller for electric eddy current retarder
CN202501954U (en) * 2012-04-23 2012-10-24 中意泰达(营口)汽车保修设备有限公司 Balancing machine button structure
CN203085169U (en) * 2012-12-12 2013-07-24 宁波高新区百瑞音响科技有限公司 Device capable of using knob-type digital coding switch for switching of audio files

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915229A (en) * 2016-04-06 2016-08-31 珠海格力电器股份有限公司 Method and device for processing output of rotation encoder switch
CN105915229B (en) * 2016-04-06 2019-04-30 珠海格力电器股份有限公司 The method and device that the output of rotary coding switch is handled
WO2018032822A1 (en) * 2016-08-19 2018-02-22 深圳喜乐航科技有限公司 Indicator light system based on audio signal control
CN107589933A (en) * 2017-09-06 2018-01-16 大唐终端技术有限公司 Knob type digital code switch device and its working condition recognition methods
CN107589933B (en) * 2017-09-06 2024-04-09 大唐终端技术有限公司 Knob type digital coding switch device and working state identification method thereof
CN114113993A (en) * 2020-08-26 2022-03-01 深圳和而泰智能控制股份有限公司 Code switch detection method, computer storage medium and device

Also Published As

Publication number Publication date
CN103035273B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN201590076U (en) Interface extending circuit and mobile terminal with the circuit
CN103035273A (en) Device by utilizing knob type digital coding switch for switching audio files
CN104202034B (en) A kind of recyclable multi-center selection circuit system
CN102945081A (en) Led luminous keyboard
CN102969186B (en) Polychrome phase LED illuminated keyboard
CN104461368A (en) User-defined touch screen locking method and device
CN203085169U (en) Device capable of using knob-type digital coding switch for switching of audio files
CN102685314B (en) Mobile device and control method thereof
CN204887344U (en) Radio earpiece
CN202720638U (en) Serial conversion circuit
CN102402309A (en) Bluetooth mouse for quickly switching connection target
CN105425927A (en) Multi-key reset circuit and electronic product provided with same
CN201662779U (en) Key multiplexing type multifunctional mouse
CN202153331U (en) Keyboard capable of switching ports
CN201607706U (en) Device capable of switching functions of left and right keys of mouse
CN201191400Y (en) Electronic terminal
CN201159862Y (en) Computer main unit supporting independent start of multiple hard disks
CN101604298B (en) Operation method for local hard disk information of shutdown system by USB interface
CN201251769Y (en) Device capable of locking keystroke
CN210157162U (en) Key combined circuit for realizing hardware reset
CN201616074U (en) Multi-output multifunctional keyboard
CN102523003B (en) Time-sharing multiplexing keyboard display scanning circuit applied to fire alarm controller
CN201608802U (en) Television cursor remote controller
CN101241383B (en) Computer main unit supporting multi- hard disk independent startup and its accomplishing method
CN104965660A (en) Method for implementing tri-state key on tablet computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160525

Termination date: 20171212

CF01 Termination of patent right due to non-payment of annual fee