CN109331409A - It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit - Google Patents

It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit Download PDF

Info

Publication number
CN109331409A
CN109331409A CN201811348091.2A CN201811348091A CN109331409A CN 109331409 A CN109331409 A CN 109331409A CN 201811348091 A CN201811348091 A CN 201811348091A CN 109331409 A CN109331409 A CN 109331409A
Authority
CN
China
Prior art keywords
video
signal
riding
playing
ridden
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.)
Pending
Application number
CN201811348091.2A
Other languages
Chinese (zh)
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.)
Foshan Gao Ming District Senior Technical School
Original Assignee
Foshan Gao Ming District Senior Technical School
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 Foshan Gao Ming District Senior Technical School filed Critical Foshan Gao Ming District Senior Technical School
Priority to CN201811348091.2A priority Critical patent/CN109331409A/en
Publication of CN109331409A publication Critical patent/CN109331409A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B22/00Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements
    • A63B22/06Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with support elements performing a rotating cycling movement, i.e. a closed path movement
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/213Input arrangements for video game devices characterised by their sensors, purposes or types comprising photodetecting means, e.g. cameras, photodiodes or infrared cells
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1025Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals details of the interface with the game device, e.g. USB version detection
    • A63F2300/1031Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals details of the interface with the game device, e.g. USB version detection using a wireless connection, e.g. Bluetooth, infrared connections
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/302Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device specially adapted for receiving control signals not targeted to a display device or game input means, e.g. vibrating driver's seat, scent dispenser

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Cardiology (AREA)
  • Vascular Medicine (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses ridden virtual scene simulation system and implementation method based on Embedded real-time visit, system includes ride device and playing device, the device of riding includes single-chip microcontroller, photoelectric sensor and signal format transition components, and the playing device includes reading in component, Broadcast Control component and playing frame to save component.The present invention detects that the rotation of bicycle generates after signal triggers single-chip microcontroller generation interrupt signal by photoelectric sensor and is converted into video display signals, so that the preset VB program response video display signals in all-in-one machine play video or pause plays video, without riding on the spot, it not only can just realize that the comprehensive outdoor scene of varying environment plays indoors, reduce cost, it is implantable simultaneously strong, any video can be recorded to be laid out visit for unit and as the experience project for creating objective center, be conducive to promote and apply.

Description

It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit
Technical field
The present invention relates to field of embedded technology, and in particular to one kind is ridden virtual scene based on Embedded real-time visit Simulation system and its implementation.
Background technique
As the improvement of people's living standards, bicycle is no longer only common transport, walking-replacing tool, but people give pleasure to Happy, leisure and the first choice taken exercise.Especially in recent years, bicycle is with its low-carbon environment-friendly, it is easy to use and by more and more people Favor, long-distance ride of bicycle have become a kind of motion mode of fashion.
It rides however, current bicycle is served only for open air, is not set specifically for the characteristics of cycling on the spot but Count it is a can indoors sport and body-building and without go sight-seeing on the spot also realize VR technology map visit bicycle.Also, room Riding outside, consuming time is long, at high cost, moreover existing 3D technology does not apply to indoor bicycle.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of based on embedded Real-time visit ride virtual scene simulation system and its implementation, it is intended to the single-chip microcontroller of bicycle by connection and is planted Enter preset video to connect with the all-in-one machine of VB program, using embedded technology, and the control circuit by being installed on bicycle, The landscape video for triggering all-in-one machine plays, and allows sporter to have visit impression on the spot in person, and can record any video on demand Implantation backstage, has extremely strong portability.
The technical proposal for solving the technical problem of the invention is as follows:
One kind is ridden virtual scene simulation system, including ride device and playing device based on Embedded real-time visit, is ridden Device is connect with playing device signal, and playing device responds the movement broadcasting for device of riding or pause plays video, wherein
The device of riding includes:
Signal acquisition component, for obtaining sensor signal of riding;
Single-chip microcontroller is connected to the signal acquisition component, generates interrupt signal for responding sensor signal of riding;
Signal format transition components are connected to the single-chip microcontroller, for receiving the interrupt signal of the single-chip microcontroller generation and to institute It states interrupt signal to format, interrupt signal is converted into video display signals;
The playing device includes:
Broadcast Control component, for obtaining video display signals, and respond video display signals play video, pause play video and Simulate the corresponding scene video of sensor of riding described in playing.
It is described to be ridden virtual scene simulation system based on Embedded real-time visit, wherein the device of riding also wraps Wheel is included, the signal acquisition component is installed on wheel, and when vehicle wheel rotation, signal acquisition component gets sensor of riding Signal.
It is described to be ridden virtual scene simulation system based on Embedded real-time visit, wherein the communication of the single-chip microcontroller Baud rate and the baud rate of the playing device are consistent.
It is described to be ridden virtual scene simulation system based on Embedded real-time visit, wherein the playing device also wraps It includes:
Component is read in, for reading in video to be played;
It plays frame and saves control, for saving current broadcasting frame when suspending and playing.
It is described to be ridden virtual scene simulation system based on Embedded real-time visit, wherein the playing device also wraps It includes:
Play time reset component, for video playing arrive a last frame when, generate play end signal, playing device respond It is initial play frame that end signal, which is played, by video playing framing control.
It is described to be ridden virtual scene simulation system based on Embedded real-time visit, wherein device of riding further include:
Turn signal trigger assembly generates when turning left or turn right more than predetermined angle for the headstock in device of riding and turns to letter Number, and turn signal is sent to playing device;
Playing device further include:
Turn signal obtains control, and for obtaining the turn signal for device of riding, playing device responds turn signal and plays Video or right-hand rotation video.
It as described above is ridden virtual scene simulation system based on Embedded real-time visit the present invention also provides a kind of Implementation method, comprising the following steps:
Signal acquisition component obtains sensor signal of riding, and carries out default processing to sensor signal of riding;
Single-chip microcontroller responds sensor signal of riding and generates interrupt signal;
Signal format transition components format interrupt signal, are converted to video display signals;
Broadcast Control component obtains video display signals, and responds video display signals and play video, pause broadcasting video and simulation It rides described in broadcasting the corresponding scene video of sensor.
It is described to be ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, wherein described right Sensor signal of riding carries out the step of default processing and specifically includes:
To riding, sensor signal carries out baud rate matching, and the communication baud rate of single-chip microcontroller and preset baud rate is made to keep one It causes.
It is described to be ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, wherein described to broadcast It controls component and obtains video display signals, and respond the step of video display signals play video or pause broadcasting video and include:
It obtains and plays end signal, and respond broadcasting end signal and video playing node is adjusted to start node;
Continue to play video.
It is described to be ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, wherein described to broadcast It controls component and obtains video display signals, and after the step of responding video display signals broadcasting video or pause broadcasting video, also Comprising steps of
The turn signal of playing device obtains the turn signal that control obtains device of riding, and playing device responds turn signal and plays Left-hand rotation video or right-hand rotation video.
It is provided by the present invention a kind of to be ridden virtual scene simulation system and its realization side based on Embedded real-time visit Method the utility model has the advantages that
1. single-chip microcontroller uses embedded technology, so that control circuit is small in size, it is at low cost, and bi-directional voltage exports, and improves peace Quan Xing.
2. without riding on the spot, can interior ride, occupied space area reduces.
3. the present invention had both been able to achieve sport and body-building, leisure effect, while realizing comprehensive shoot on location, with overcoming current VR Figure goes sight-seeing false defect, realizes that outdoor scene visit has impression on the spot in person.
4. the hard work amount and expensive expenditure, cost that solve the exploitation of 3D map substantially reduce.
5. user any recorded video implantation backstage, editable can be highly suitable for greatly portability on demand Unit layout goes sight-seeing and as the experience project for creating objective center, is more favorable for promoting and applying.
Detailed description of the invention
Fig. 1 is provided by the invention a kind of based on the Embedded real-time structural frames for going sight-seeing virtual scene simulation system of riding Figure.
Fig. 2 is that device provided by the invention of riding is bicycle structure schematic diagram.
Fig. 3 is provided by the invention described based on the Embedded real-time control electricity for going sight-seeing virtual scene simulation system of riding Lu Tu.
Fig. 4 is provided by the invention a kind of based on the Embedded real-time realization side for going sight-seeing virtual scene simulation system of riding The flow chart of method preferred embodiment.
Fig. 5 is provided by the invention a kind of based on the Embedded real-time realization side for going sight-seeing virtual scene simulation system of riding The flow chart of method another preferred embodiment.
Fig. 6 is the interface schematic diagram of playing device preferred embodiment provided by the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to It is of the invention in limiting.
Embodiment one
The present invention provide it is a kind of ridden virtual scene simulation system based on Embedded real-time visit, as shown in Figure 1, Fig. 1 is this It is a kind of based on the Embedded real-time structural block diagram for going sight-seeing virtual scene simulation system of riding provided by invention, as shown in Figure 1, It is described that ride device 100 and playing device 200 are included based on Embedded real-time virtual scene simulation system of riding of going sight-seeing, it rides Device 100 is connect with 200 signal of playing device, and device 100 of riding carries out network by network connection with playing device 200 and leads to News, and playing device 200 responds the movement broadcasting for device 100 of riding or pause plays video, for example, device of riding described in example 100 be bicycle, when detect ride 100 setting in motion of device when, if bicycle spoke starts turning, then the device of riding 100 send the signal for playing video to playing device 200, and the playing device 200 touches after receiving the broadcasting vision signal It sends out single-chip microcontroller control video and carries out automatic play operation;When detect ride 100 stop motion of device when, as bicycle spoke stops Rotation stop is dynamic, then the device 100 of riding sends the signal that pause plays video to playing device 200, and the playing device 200 connects It receives triggering single-chip microcontroller control video after the pause plays vision signal and carries out pause playback process.In this way, when people are riding During row, it is not necessary that video is manually operated, while improving riding safety, landscape on the way can be appreciated at any time.Wherein, video can To be the scenery gone sight-seeing along scenic spot, it can be the video of unmanned plane shooting, be also possible to any landscape painting of editing processing Face.
Specifically, as shown in Figure 1, the device 100 of riding includes:
Signal acquisition component 111, for obtaining sensor signal of riding;
Single-chip microcontroller 131 is connected to the signal acquisition component 111, generates interrupt signal for responding sensor signal of riding;
Signal format transition components 132 are connected to the single-chip microcontroller 131, the interruption letter generated for receiving the single-chip microcontroller 131 Number and the interrupt signal is formatted, interrupt signal is converted into video display signals.
Certainly, the device 100 of riding further includes wheel 110, and the signal acquisition component 111 is installed on wheel 110, And when the rotation of wheel 110, signal acquisition component 111 gets sensor signal of riding.
Wherein, the signal acquisition component 111 refers to that sensor module, the sensor module include photoelectric sensing Device, be installed in it is described ride on device 100, generated infrared signal when riding for detecting, the sensor letter of riding It number is the infrared signal that generates when rotating.In specific implementation, as shown in Fig. 2, the photoelectric sensor 12 is installed in voluntarily On the spoke 11 of vehicle, and close to blockchain one end, the single-chip microcontroller 131 and the preset VB program for being embedded in the single-chip microcontroller 131 It is integrally installed on printed circuit board, and realizes that embedded development, the printed circuit board are mounted on certainly by control circuit 300 lower section of vehicle seat of driving, and the single-chip microcontroller 131 is connected to realize that signal data is communicated by connection.Bicycle in Fig. 2 Rear-wheel is erected by bracket 400, therefore, can be used for interior and ride, in this way, user both can reach sport and body-building effect by riding Fruit, while without riding on the spot, substantially reduces development cost, is ridden different rings by video-see with impression on the spot in person Border reaches virtual reality effect, realizes visit experience more true than the visit of VR map, further enhances user experience.
Please continue to refer to Fig. 1, the playing device 200 includes:
Broadcast Control component 240 for obtaining video display signals, and responds video display signals and plays video, pause broadcasting video And the corresponding scene video of sensor of riding described in simulation broadcasting.For example, the Broadcast Control component 240 can be soft button or hard Button, soft button can be the program module when VB program in integration, as the pause in all-in-one machine video clip is pressed Button, broadcast button, hard button can be in the control circuit of single-chip microcontroller for one of the input of analog photoelectricity sensor signal by Button.In specific implementation, the hot-zone where soft button is clicked or clicked in the all-in-one machine for having touch function to soft button mouse Realize input, hard button will be pressed by user's finger, and usual hard button uses restoration type button.
As shown in Figure 1, the playing device 200 further include:
Component 230 is read in, for reading in video to be played;
It plays frame and saves control 250, for saving current broadcasting frame when suspending and playing.
When it is implemented, when photoelectric sensor 12 detects bicycle rotation, by reflected infrared ray on spoke 11 Signal triggers single-chip microcontroller 131 and generates the first interrupt signal, passes through the signal format transition components connecting with the single-chip microcontroller 131 Video display signals are obtained after 132 progress signal conversions and are sent to the reading component 230, and the reading component 230 receives Determine whether after to the video display signals effectively, if reading in VB program video to be played then to carry out broadcasting for video It puts;And when photoelectric sensor 12 detects that automatic vehicle stops operating, i.e., infrared signal is not reflected on spoke 11, i.e., without Single-chip microcontroller 131 is triggered when signal and generates the second interrupt signal, passes through the signal format conversion group connecting with the single-chip microcontroller 131 Part 132 obtains video pause play signal after carrying out signal conversion and is sent to the reading component 230, the reading component 230 receive and control the video being currently played after the video pause play signal and carry out pause processing, and described in triggering It plays frame preservation control 250 and saves current broadcasting frame, make index and record effect for use in subsequent video playing again.
Further, it reads in whether data received by component 230 are effectively to input, needs to carry out data format With operation, that is, the data effectively inputted in VB program are preset as unblank, carriage return, punctuation mark, once the data received When for effective input data, then determine that reading in the data that component 230 receives is that standard reads in data.
Referring to Fig. 1, the playing device 200 further include:
Play time reset component 220, for video playing arrive a last frame when, generate broadcasting end signal, playing device It is initial play frame that 200 responses, which play end signal for video playing framing control,.
In specific implementation, when detecting video playing to a last frame, judge whether the instruction behaviour for obtaining other videos Make, if not occurring receiving the instruction of other videos, automatic accent is started to execute by VB program, handles video playing with this To last one section, restart the video for playing the load of first segment program.
Further, it rides device 100 further include:
Turn signal trigger assembly 121 produces when turning left or turn right more than predetermined angle for the headstock 120 in device 100 of riding Raw turn signal, and turn signal is sent to playing device 200;
Playing device 200 further include:
Turn signal obtains control 210, and for obtaining the turn signal for device 100 of riding, playing device 200 responds turn signal Play left-hand rotation video or right-hand rotation video.
In specific implementation, when detecting video playing to bifurcated mouth, that is, bicycle headstock (or right) pendulum to the left is detected Dynamic is more than default rotational angle, and such as more than 45 °, then the travel switch stress on the front-wheel left side (or the right) starts triggering turn signal Trigger assembly 121 generates corresponding left rotaring signal (or right turn signal), and the signal after conversion is passed to VB by single-chip microcontroller 131 Program is handled, so that turn signal obtains control 210 according to left rotaring signal (or right turn signal) to execute the program to turn left Video (or the program video to turn right).Certainly, only turn left if detecting in bifurcated mouth, do not turn right, and at this time voluntarily Chinese herbaceous peony wheel right avertence is pressed onto right side travel switch, then it is assumed that this is the operation that is not accordant to the old routine, and programmed decision is violation operation without holding Row, and make current video placed in a suspend state.Likewise, only turning right if detecting in bifurcated mouth, do not turn left, and Front wheel left avertence is pressed onto left side travel switch at this time, it also hold that this is the operation that is not accordant to the old routine, programmed decision is in violation of rules and regulations Operation makes current video placed in a suspend state without executing.
Referring to Fig. 3, Fig. 3 is described based on the Embedded real-time control circuit for going sight-seeing virtual scene simulation system of riding Figure.As shown in figure 3, the control circuit includes protection circuit 20, single-chip microcontroller 131, oscillating circuit 10, Switching Power Supply 13, photoelectricity Sensor, signal format conversion chip (component) 132 and all-in-one machine 600.
The protection circuit 20 is connect with power supply VCC, and the protection circuit 20 is used for the protection of circuit, including first Capacitor C1 and first resistor R1, the first capacitor C1 and the first resistor R1 are connected in series, and the first resistor R1's is another One end ground connection.
The oscillating circuit 10 includes the second capacitor C2 and third capacitor C3, the second capacitor C2 and the third capacitor C3 is connected in series, and in parallel with crystal resonator VCO, the node ground connection between the second capacitor C2 and the third capacitor C3, The second capacitor C2 connects the XTAL1 pin of the single-chip microcontroller 131, and the third capacitor C3 connects the single-chip microcontroller 131 XTAL2 pin.The oscillating circuit 10 forms internal oscillator with the single-chip microcontroller 131, for generating 11.0592MHZ oscillation.
The single-chip microcontroller 131 uses the chip of model STC89C51RC, and the RST pin of the single-chip microcontroller 131 is connected to A node between the first capacitor C1 and the first resistor R1, for resetting.
The Switching Power Supply 13 is zero curve PE, firewire L and ground wire N for connecing conducting wire, the conducting wire.The Switching Power Supply 13 It is exported using bi-directional voltage, 1 node is started to exchange fire line L, for exporting 5V voltage, and connects the power pins VCC of the single-chip microcontroller 131 (i.e. 5V) and the 31st pin.2 node earthing line N, i.e. 0V, for connecting the GND pin of the single-chip microcontroller 131.3 nodes connect zero Line PE connect the photoelectric sensor 12 for exporting 24V voltage, and with the COM node of the Switching Power Supply 13.The photoelectricity Sensor 12 is also connected with the P3.7 pin of the single-chip microcontroller 131.When it is implemented, Switching Power Supply 13 is that single-chip microcontroller 131 provides 5V DC power supply, provide the DC power supply of 24V for photoelectric sensor 13.
The signal format conversion chip 132 uses the chip of model Max232, for realizing communication data format Conversion.The signal format conversion chip 132 is separately connected four pins of the single-chip microcontroller 131, i.e. RXD pin, TXD draws Foot,Pin and RD pin.In specific implementation, the single-chip microcontroller 131 is combined into for 132 groups with the signal format conversion chip The serial signal of single-chip microcontroller 131 is converted to USB port by one piece of complete function circuit board, the signal format conversion chip 132 Standard signal format be sent into all-in-one machine 600 in VB program handled.
The all-in-one machine 600 can be the computer for being implanted with default VB program or instructional video software etc., not limit Property processed, it is only necessary to which the all-in-one machine 600 meets certain driving with the control circuit and matches, it is, a kind of by 9 The method that needle serial port communication is converted to USB port communication.Such as turn serial ports driver in computer one end installation USB, USB port The format that the data of reading are converted to 9 needle serial port data is given VB software and is handled.
In some embodiments, the capacitance of the first capacitor C1 is 10u, and the resistance value of the first resistor is 10k. Above-mentioned component and value are simultaneously unrestricted.
In some embodiments, the second capacitor C2 and third capacitor C3 is Leaded Ceramic Disc Capacitor, and performance number is equal For 30P.Above-mentioned component and value are simultaneously unrestricted.
In some embodiments, the communication baud rate of the communication baud rate of the playing device 200 and single-chip microcontroller 131 is kept It unanimously, is 9600bps, therefore, so that single-chip microcontroller 131 is to generate accurate 9600bps baud rate.
The working principle of above-mentioned control circuit is as follows:
Photoelectric sensor 12 acquires bicycle spoke signal and is sent to single-chip microcontroller 131, and the single-chip microcontroller 131 obtains photoelectric sensor 12 collected infrared signals, generate interrupt signal, by RXD, TXD,, RD pin is to signal format conversion chip 132 (M ax232)
Video playing trigger signal is sent to all-in-one machine 600 after conversion, the VB software control video in all-in-one machine 600 is broadcast at this time The functions such as put, suspend.
Using above-mentioned chip microcontroller embedded development, while not only making circuit small in size, low in energy consumption, 5V confession is provided Electricity, it is highly-safe.
The main code of above-mentioned preset VB program is as follows:
Private Sub Command1_Click () // broadcasting button is pressed, and control WindowsMediaPlaye is executed R1.Controls.play // program is allowed to play
Text1.Text=" broadcasting "
WindowsMediaPlayer1.Controls.play
End Sub
Private Sub Form_Load () // load serial ports processing routine
MSComm1.CommPort=4 // current serial ports can in the equipment manager of computer using simulative serial port 4( See)
MSComm1.settings=" 9600, n, 8,1 " // setting baud rate be 9600bps, data bit 8, stop position 1 Position
MSComm1.InputMode=1 // serial ports reads data in a binary fashion
The data that MSComm1.RThreshold=1 // serial ports reads 1 byte then generate OnCom event
MSComm1.PortOpen=True // permission serial ports is opened
End Sub
Private Sub Dir1_Change()
File1.Path=Dir1.Path //VB opens the control in video file path
End Sub
Private Sub Drive1_Change()
Dir1.Path=Dirve1.Dirve //VB reads the control of video file
End Sub
Private Sub File1_DblClick()
WindowsMediaPlayer1.URL = Dir1.Path & "\" & File1.List(File1.ListIndex) //VB records video file path
End Sub
Private Sub MSComm1_Oncomm()
If (MSComm1.CommEvent=comEvReceive) Then // serial ports detects that data then play
Text1.Text=" broadcasting "
WindowsMediaPlayer1.Controls.play
See whether serial ports has data reading again within Timer1.Interval=1000 // delay 1 second Enter, nothing then executes pause function
End If
End Sub
Private Sub pause_Click()
Text1.Text=" pause " // pause control function
WindowsMediaPlayer1.Controls.pause
End Sub
Private Sub Timer1_Timer()
WindowsMediaPlayer1.Controls.pause
End Sub
The main code of program of the single-chip microcontroller 131 is as follows:
#include<the reg51.h>// predefined header file of 51 single-chip microcontrollers of load
sbit sw=P3^7;// with sw replace P3.7 port name
Void main () // main program
{
unsigned int a;
TMOD=0x20;// setting interruption of work mode (baud rate)
TL1=0xfd;
TH1=0xfd;
SCON=0x50;
TR1=1;
If (sw==0) // as P3.7 collects sensor signal
{for(a=0;a<200;a++);
SBUF=0x01;// repeat to send 01 code
while(TI!=1);If // P3.7 has always signal input, continue to send, otherwise reset interrupt mark Will TI
TI=0;
}
}
Embodiment two
The present invention also provides a kind of based on described based on the Embedded real-time realization for going sight-seeing virtual scene simulation system of riding Method, as shown in figure 4, described ridden the realization side of virtual scene simulation system based on described based on Embedded real-time visit Method the following steps are included:
S100, signal acquisition component obtains sensor signal of riding, and carries out default processing to sensor signal of riding.
Specifically, photoelectric sensor obtains sensor signal of riding in real time, i.e. whether real-time detection bicycle rotates, when certainly When believing vehicle rotation, infrared signal is acquired.The default processing refers to so that sensor signal progress baud rate matching, makes list The communication baud rate of piece machine is consistent with preset baud rate.
S200, single-chip microcontroller respond sensor signal of riding and generate interrupt signal.
In the embodiment of the present invention, the infrared signal that photoelectric sensor will test, that is, sensor signal of riding is sent to Single-chip microcontroller, the single-chip microcontroller generate interrupt signal after receiving the sensor signal of riding, i.e., setting single-chip microcontroller, which is in, interrupts Operating mode, and being sent in the signal format transition components being attached thereto, it is specific as above-mentioned based on described based on embedded It is real-time visit ride described in virtual scene simulation system.
S300, signal format transition components format interrupt signal, are converted to video display signals.
Based on step S200, the signal format transition components obtain the interrupt signal, and to the interrupt signal into Row format conversion, is converted to video display signals, for the incoming playing device connecting with the device of riding, so that playing dress The default VB program set receives.
S400, Broadcast Control component obtain video display signals, and respond video display signals and play video, pause broadcasting video And the corresponding scene video of sensor of riding described in simulation broadcasting.
Specifically, when detecting the video display signals, the starting of component is read in triggering, controls the Broadcast Control component The video display signals are obtained, read preset video, response video display signals play video or pause plays video Function, and current video playing frame is saved in real time.
Further, when detecting video playing to last frame, the Broadcast Control component, which obtains, reads in what component was sent Play receive signal, at this point, response play receive signal, video playing node is adjusted to start node, for subsequently after Video is put in continued broadcasting.
Further, when headstock 120 turns to the left or to the right, the behavior switch of starting headstock 120, triggering turns to letter Number trigger assembly 121 generates turn signal to single-chip microcontroller 131, pass through single-chip microcontroller 131 identifying processing generate it is specific turn left letter Number or right turn signal, by signal format transition components 132 conversion after by after conversion video left rotaring signal or video turn right letter Number, and it is sent to the turn signal securing component 210 of playing device 200, so that preset VB program executes the program view to turn left Frequency or the program video to turn right.
In order to be best understood from technical solution of the present invention, it is illustrated with a specific embodiment, as shown in Figure 5.
Soft button is clicked such as mouse or is clicked in the all-in-one machine for having touch function in step S800, soft button manual operation Input is realized to send a signal to computer all-in-one machine in the hot-zone at place, the video playing interface of a playing device as shown in FIG. 6, Then step S603 is executed;
Step S700, hard button manual operation execute step S601 that is, by finger push button;
Step S600, cycle wheel turn signal, i.e. photoelectric sensor generate infrared when detecting the vehicle wheel rotation of bicycle Line signal executes step S601;
Step S601, single-chip microcontroller obtain the collected signal of signal acquisition component institute, and generate interrupt signal and to the signal Format transition components are sent, and then execute step S602;Wherein, the collected signal is by executing step S620- step S625 is obtained;
Step S602, the interrupt signal for receiving transmission format, and being converted into playing device (such as all-in-one machine) can play Standard USB interface signal, such as play vision signal, pause play vision signal, left rotaring signal, right turn signal, then hold Row step S603;
Step S603, computer all-in-one machine receive the signal and other video instructions signals after the conversion of signal format transition components, such as The signal of soft button manual operation input, then executes step S604;
Step S604 starts, and executes step S605;
Step S605 reads in video, that is, obtains preset VB program file path and preset video playing file path, pass through Preset VB program loads the preset video, then executes step S606;
Step S606, allowing video, the Play button that is, program does not read VB is pressed or single-chip microcontroller is defeated placed in a suspend state The signal entered, then automatic program execution control " WindowsMediaPlayer1.Controls.pause " allows video to be in temporary Stop state, if video is suspended, WindowsMediaPlayer1.Controls.pause control can temporary recording played arrive Present frame, then execute step S607;
Whether step S607, playing device collect signal, i.e., the Play button that program reads VB is pressed or by monolithic The signal inputted after machine processing, if it is not, step S606 is executed, if so, executing step S608;
Step S608 executes broadcasting, i.e., when the Play button is triggered or single-chip microcontroller have signal input then since present frame after It is continuous to play forward, it is performed simultaneously step S609;
Step S609, real-time recording played progress are performed simultaneously step S610;
Step S610, judges whether video is played to the last frame of video, if so, S611 is thened follow the steps, if it is not, then executing Step S612;
Step S611, from the beginning plays, i.e., in the case where the instruction for not occurring jumping to other videos, is broadcast according to generated End signal is put, the last frame of video playing is adjusted to initial video and plays frame, to restart to play first segment program Then the video of load executes step S606;
Step S612, judges whether currently playing video reaches fork on the road, if so, S613 is thened follow the steps, if it is not, then holding Row step S607;
Step S613, judges whether bicycle headstock rotates, if it is not, S607 is thened follow the steps, if so, executing step S614;
Step S614 judges whether generation left rotaring signal, i.e. bicycle headstock swings certain angle to the left, if so, executing step Rapid S617, if it is not, thening follow the steps S615;
Step S615 judges whether generation right turn signal again, i.e. bicycle headstock swings to the right certain angle, if so, holding Row step S616, if it is not, thening follow the steps S613;
Step S616 executes right-hand rotation video, then executes step S607;
Step S617 executes left-hand rotation video, then executes step S607.
Wherein, above-mentioned steps S620- step S625 is specifically included as follows:
Step S620 starts;
Step S621, whether detection bicycle sensor has signal, if so, step S622 is executed, if it is not, executing step S620;
Step S622, baud rate matching setting, i.e. the communication baud rate phase of the communication baud rate and bicycle of setting playing device Together, step S623 is then executed;
Step S623, triggering single-chip microcontroller generates interrupt signal, i.e., when bicycle sensor has detected signal, triggers single-chip microcontroller Interrupt signal is generated, step S624 is then executed;
Step S624 sends interrupt signal and gives signal format transition components, i.e., interrupt signal is sent to signal by the described single-chip microcontroller Format transition components carry out the conversion of signal so that playing device can correctly be read, are performed simultaneously step S625;
Step S625 carries out sensor detection signal every preset time (i.e. delay preset time), and the preset time is 0.1s。
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, It is that related hardware can be instructed (as located by riding virtual scene simulation system control program based on Embedded real-time visit Manage device, controller etc.) it completes, the program can be stored in a computer-readable storage medium, which is holding It may include the process such as above-mentioned each method embodiment when row.Wherein the storage medium can be memory, magnetic disk, CD etc..
In conclusion the invention discloses one kind based on it is Embedded it is real-time visit ride virtual scene simulation system and its Implementation method, system include ride device and playing device, and device of riding is connect with playing device signal, and playing device responds Ride device movement play or pause play video, wherein the device of riding includes: signal acquisition component, for obtaining It rides sensor signal;Single-chip microcontroller is connected to the signal acquisition component, believes for responding sensor signal of riding and generating to interrupt Number;Signal format transition components are connected to the single-chip microcontroller, for receiving the interrupt signal of the single-chip microcontroller generation and to described Interrupt signal formats, and interrupt signal is converted to video display signals;The playing device includes: Broadcast Control component, For obtaining video display signals, and responds video display signals and play described in video, pause broadcasting video and simulation broadcasting The corresponding scene video of sensor of riding.The present invention detects that the rotation of bicycle generates infrared signal by photoelectric sensor Triggering single-chip microcontroller is converted into video display signals after generating interrupt signal, so that the preset VB program in all-in-one machine responds Video display signals play video or pause plays the functions such as video, without riding on the spot, not only can just realize indoors different The comprehensive shoot on location of environment, reduces cost, while implantable strong, can record any video for the visit of unit layout and As the experience project for creating objective center, it is conducive to promote and apply.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. one kind is ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that including ride device and Playing device, device of riding are connect with playing device signal, and playing device responds the movement broadcasting for device of riding or pause is broadcast Put video, wherein
The device of riding includes:
Signal acquisition component, for obtaining sensor signal of riding;
Single-chip microcontroller is connected to the signal acquisition component, generates interrupt signal for responding sensor signal of riding;
Signal format transition components are connected to the single-chip microcontroller, for receiving the interrupt signal of the single-chip microcontroller generation and to institute It states interrupt signal to format, interrupt signal is converted into video display signals;
The playing device includes:
Broadcast Control component, for obtaining video display signals, and respond video display signals play video, pause play video and Simulate the corresponding scene video of sensor of riding described in playing.
2. according to claim 1 ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that The device of riding further includes wheel, and the signal acquisition component is installed on wheel, and when vehicle wheel rotation, signal acquisition component Get sensor signal of riding.
3. according to claim 1 ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that The communication baud rate of the single-chip microcontroller and the baud rate of the playing device are consistent.
4. according to claim 1 ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that The playing device further include:
Component is read in, for reading in video to be played;
It plays frame and saves control, for saving current broadcasting frame when suspending and playing.
5. according to claim 4 ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that The playing device further include:
Play time reset component, for video playing arrive a last frame when, generate play end signal, playing device respond It is initial play frame that end signal, which is played, by video playing framing control.
6. according to claim 4 ridden virtual scene simulation system based on Embedded real-time visit, which is characterized in that It rides device further include:
Turn signal trigger assembly generates when turning left or turn right more than predetermined angle for the headstock in device of riding and turns to letter Number, and turn signal is sent to playing device;
Playing device further include:
Turn signal obtains control, and for obtaining the turn signal for device of riding, playing device responds turn signal and plays Video or right-hand rotation video.
It as claimed in any one of claims 1 to 6 is ridden virtual scene simulation system based on Embedded real-time visit 7. a kind of Implementation method, which comprises the following steps:
Signal acquisition component obtains sensor signal of riding, and carries out default processing to sensor signal of riding;
Single-chip microcontroller responds sensor signal of riding and generates interrupt signal;
Signal format transition components format interrupt signal, are converted to video display signals;
Broadcast Control component obtains video display signals, and responds video display signals and play video, pause broadcasting video and simulation It rides described in broadcasting the corresponding scene video of sensor.
8. according to claim 7 ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, It is specifically included it is characterized in that, described pair of sensor signal of riding carries out the step of default processing:
To riding, sensor signal carries out baud rate matching, and the communication baud rate of single-chip microcontroller and preset baud rate is made to keep one It causes.
9. according to claim 7 ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, It is characterized in that, the Broadcast Control component obtains video display signals, and responds video display signals and play video or pause broadcasting The step of video includes:
It obtains and plays end signal, and respond broadcasting end signal and video playing node is adjusted to start node;
Continue to play video.
10. according to claim 7 ridden the implementation method of virtual scene simulation system based on Embedded real-time visit, It is characterized in that, the Broadcast Control component obtains video display signals, and responds video display signals and play video or pause broadcasting After the step of video, further comprise the steps of:
The turn signal of playing device obtains the turn signal that control obtains device of riding, and playing device responds turn signal and plays Left-hand rotation video or right-hand rotation video.
CN201811348091.2A 2018-11-13 2018-11-13 It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit Pending CN109331409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811348091.2A CN109331409A (en) 2018-11-13 2018-11-13 It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811348091.2A CN109331409A (en) 2018-11-13 2018-11-13 It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit

Publications (1)

Publication Number Publication Date
CN109331409A true CN109331409A (en) 2019-02-15

Family

ID=65314914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811348091.2A Pending CN109331409A (en) 2018-11-13 2018-11-13 It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit

Country Status (1)

Country Link
CN (1) CN109331409A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113663313A (en) * 2021-08-19 2021-11-19 厦门任和运动器材有限公司 A control system for a sports equipment equipped with a smart display screen and a starting method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6152856A (en) * 1996-05-08 2000-11-28 Real Vision Corporation Real time simulation using position sensing
CN103041544A (en) * 2013-01-06 2013-04-17 复旦大学 Detachable travel fitness system on basis of network streetscape service
CN103120840A (en) * 2011-11-21 2013-05-29 西安博昱新能源有限公司 Indoor fitness bicycle system
CN103127657A (en) * 2011-11-22 2013-06-05 西安嘉乐世纪机电科技有限公司 Riding fitness simulation travelling device
CN103785140A (en) * 2012-11-01 2014-05-14 西安天动数字科技有限公司 Virtual bicycle riding tourism system
CN107115627A (en) * 2017-05-11 2017-09-01 浙江理工大学 System and method for adjusting and playing virtual reality video in real time by bicycle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6152856A (en) * 1996-05-08 2000-11-28 Real Vision Corporation Real time simulation using position sensing
CN103120840A (en) * 2011-11-21 2013-05-29 西安博昱新能源有限公司 Indoor fitness bicycle system
CN103127657A (en) * 2011-11-22 2013-06-05 西安嘉乐世纪机电科技有限公司 Riding fitness simulation travelling device
CN103785140A (en) * 2012-11-01 2014-05-14 西安天动数字科技有限公司 Virtual bicycle riding tourism system
CN103041544A (en) * 2013-01-06 2013-04-17 复旦大学 Detachable travel fitness system on basis of network streetscape service
CN107115627A (en) * 2017-05-11 2017-09-01 浙江理工大学 System and method for adjusting and playing virtual reality video in real time by bicycle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113663313A (en) * 2021-08-19 2021-11-19 厦门任和运动器材有限公司 A control system for a sports equipment equipped with a smart display screen and a starting method thereof

Similar Documents

Publication Publication Date Title
CN102147658B (en) Method and device for realizing interaction of augment reality (AR) and mobile terminal
JP3733587B2 (en) INPUT DEVICE AND METHOD FOR PROVIDING SIGNALS AFFECTING TRANSLATION AND ROTATION OF OBJECTS ON DISPLAY IMAGE
CN108939418B (en) A VR fitness interactive system based on unity 3D
CN101833232B (en) Table tennis game visual support and game analysis system and system operation method
CN105664469B (en) Kinematic system and its implementation with simulated scenario
CN106502424A (en) Based on the interactive augmented reality system of speech gestures and limb action
CN109821190A (en) An interactive system of VR spinning bike with automatic resistance control
CN103394191A (en) Electronic three-order magic cube game system
CN106730617A (en) A kind of man-machine interaction Spinning and its application method
CN107569819A (en) A kind of bicycle virtual emulation riding simulation system and its application method
CN107456694A (en) A kind of virtual fire-fighting fire extinguishing training systems of 3D
CN109107093B (en) VR-based spinning interaction system
CN109331409A (en) It is ridden virtual scene simulation system and implementation method based on Embedded real-time visit
CN103744511B (en) A kind of interactive shadow play performance system and method for controlling operation thereof
CN107967060A (en) Multi-freedom parallel connection vivid platform data real-time collecting system and method
CN110075530A (en) A kind of virtual reality system applied to Spinning
CN115564929B (en) A method for dynamic real-time perspective fusion of virtual characters and real scenes
CN110850976A (en) Virtual reality projection and retrieval system based on environment perception
CN201404655Y (en) Body-building instrument with 3D virtual scene control device
CN212282697U (en) Intelligent spinning of multisensor
CN210786116U (en) Bicycle experience system based on virtual reality
CN206444081U (en) A kind of application virtual reality technology carries out the system that health is ridden
CN201499247U (en) Intelligent classroom recording system
CN207541499U (en) Intelligent track telecar based on VR
Romanuke et al. An IoT-based system of mechanizing sport competition motion for perception improvement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215