Laser instrument based on laser displacement sensor
By measuring distance using a laser displacement sensor to generate note codes, and combining this with a microcontroller and MIDI sound source, the problems of large size and limited playing methods of laser instruments have been solved, achieving miniaturization and diverse playing effects.
Patent Information
- Application Number
- CN202322943579.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2033-11-01
AI Technical Summary
Existing laser musical instruments have a single triggering method, resulting in large size and limited playing methods, which cannot meet diverse performance needs.
Using a laser displacement sensor, the distance between the obstructing object and the sensor is measured to generate MIDI format note codes. Combined with a microcontroller and a MIDI sound source, the changes in musical scales are realized, simplifying the structural design.
It has achieved miniaturization of laser musical instruments, diversified playing methods, the ability to simulate a variety of musical instruments, and simple structure with low cost.
Smart Images

Figure CN221977593U_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of laser sensor electronic musical instruments, and in particular to a laser musical instrument based on a laser displacement sensor. Background Art
[0002] Laser musical instruments are new electronic musical instruments that use laser sensors as trigger devices. By blocking or intercepting their laser beams, the laser sensors generate electrical signals, triggering the electronic sound source to produce music. At present, laser musical instruments generally use switch-type laser sensors as trigger devices. The output signal of such sensors is in the form of changes in high and low levels, that is, there are only two states, 0 and 1. Therefore, one sensor can only trigger one note, resulting in a laser musical instrument with many laser sensors to meet the demand for the number of notes. On the other hand, the use of switch-type sensors also limits the playing method and appearance design of laser musical instruments. Whether using a beam sensor or a reflective sensor, or whether it is a horizontal or vertical light cutting playing method, in essence, one ray of light corresponds to one note, and the playing method is to block these rays by beating with hands, hammers or drumsticks, which requires a certain position space and operating space, so the laser musical instruments we see are all large in size and have a single playing method. Therefore, it is necessary to change the triggering method of laser musical instruments to achieve the purpose of increasing the playing effect and reducing the external size. Summary of the invention
[0003] In order to solve the technical problems of single triggering mode and oversized size of laser musical instruments, the present invention provides a laser musical instrument based on a laser displacement sensor.
[0004] The laser musical instrument based on the laser displacement sensor proposed in the present disclosure comprises a musical instrument body, a laser displacement sensor, a single chip microcomputer and a MIDI sound source;
[0005] The laser displacement sensor is mounted on the top surface of the piano body;
[0006] The single-chip microcomputer and MIDI sound source are installed inside the piano;
[0007] The detection distance of the laser displacement sensor is evenly divided into segments, and each distance corresponds to a musical scale;
[0008] The laser displacement sensor measures the distance between the obstructing object and the sensor in real time, and transmits the analog signal containing the distance information to the microcontroller through the data line;
[0009] The single chip microcomputer receives the analog signal sent by the laser displacement sensor, calculates the distance between the blocking object and the sensor, and generates the MIDI format note code of the corresponding scale according to the corresponding relationship between the distance and the scale;
[0010] The MIDI sound source input terminal is connected to the single-chip microcomputer output terminal, and the MIDI sound source receives the MIDI format note code output by the single-chip microcomputer to emit the musical instrument sound of the corresponding scale.
[0011] Furthermore, a laser musical instrument based on a laser displacement sensor includes a long slide bar, a hollow sleeve, a push-pull handle and a light shielding sheet;
[0012] The long slide bar is fixed on the side of the piano body, the hollow sleeve is sleeved on the long slide bar, the push-pull handle and the light shielding sheet are fixed on the hollow sleeve, the push-pull handle can drive the hollow sleeve to slide on the long slide bar, and the light shielding sheet on the hollow sleeve can block light.
[0013] Furthermore, a laser musical instrument based on a laser displacement sensor includes a sensor support rod, and the upper and lower ends of the sensor support rod are respectively connected to the laser displacement sensor and the instrument body.
[0014] Beneficial effects: The laser musical instrument disclosed in the present invention has a simple structure and low cost, and is a new type of laser musical instrument with a special playing method. The present invention changes the unchanging clapping playing method of laser musical instruments, and can change the playing method with only one laser displacement sensor. It operates on a section of light with a limited length, changes the pitch by changing the distance, has delicate performance movements, flexible appearance design, can be made into a small size, easy to carry, and can simulate a variety of laser musical instruments, such as laser cello, laser theremin, laser trombone, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a first embodiment of a laser musical instrument based on a laser displacement sensor.
[0016] Figure 2 The flowchart of the working process of a laser musical instrument based on laser displacement sensor is shown in FIG.
[0017] Figure 3 This is a second embodiment of a laser musical instrument based on a laser displacement sensor.
[0018] Figure 4 This is the third embodiment of a laser musical instrument based on a laser displacement sensor. DETAILED DESCRIPTION
[0019] Hereinafter, exemplary embodiments of the disclosed embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0020] In the embodiments disclosed in the present invention, it should be understood that terms such as "include" or "have" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of the existence or addition of one or more other features, numbers, steps, behaviors, components, parts or a combination thereof.
[0021] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] Figure 1 This is a first embodiment of a laser musical instrument based on a laser displacement sensor. As shown in the figure, a laser musical instrument based on a laser displacement sensor includes a musical instrument body 1, a laser displacement sensor 2, a single chip microcomputer and a MIDI sound source;
[0023] The laser displacement sensor 2 is installed on the top surface of the piano body 1;
[0024] The single chip microcomputer and the MIDI sound source are installed in the piano body 1;
[0025] The detection distance of the laser displacement sensor 2 is evenly divided into segments, and each distance corresponds to a musical scale;
[0026] The laser displacement sensor 2 measures the distance between the obstructing object and the sensor in real time, and transmits the analog signal containing the distance information to the single chip microcomputer through the data line;
[0027] The single chip microcomputer receives the analog signal sent by the laser displacement sensor, calculates the distance between the blocking object and the sensor, and generates the MIDI format note code of the corresponding scale according to the corresponding relationship between the distance and the scale;
[0028] The MIDI sound source input terminal is connected to the output terminal of the single-chip microcomputer. The MIDI sound source receives the MIDI format note code output by the single-chip microcomputer and emits the sound of the instrument corresponding to the scale (such as Figure 2 shown).
[0029] The first embodiment imitates the appearance and sound generation mode of a cello. The cello body 1 is made in the form of a cello fingerboard. The finger is used as a shielding object to shield the laser emitted by the laser displacement sensor 2 ( Figure 1 The single chip microcomputer and MIDI sound source in the piano body 1 are triggered to make sounds. The scale of the sound made by the MIDI sound source is adjusted by changing the shielding object and the laser displacement sensor 2.
[0030] Figure 3 This is a second embodiment of a laser musical instrument based on a laser displacement sensor. As shown in the figure, a laser musical instrument based on a laser displacement sensor also includes a long slide bar 3, a hollow sleeve 4, a push-pull handle 5 and a light shield 6;
[0031] The long slide bar 3 is fixed on the side of the piano body 1, the hollow sleeve 4 is sleeved on the long slide bar 3, the push-pull handle 5 and the light-blocking sheet 6 are fixed on the hollow sleeve 4, the push-pull handle 5 can drive the hollow sleeve 4 to slide on the long slide bar 3, and the light-blocking sheet 6 on the hollow sleeve 4 can block light.
[0032] The second embodiment imitates the appearance and sounding mode of a trombone. The light shield 6 serves as a shielding object. When playing, the push-pull handle 5 is held and slid back and forth, and the light shield 6 shields the laser emitted by the laser displacement sensor 2, thereby triggering the single-chip microcomputer and MIDI sound source in the piano body 1 to emit sound. As the sliding distance changes, the scale changes, and the music performance is completed.
[0033] Figure 4 This is a third embodiment of a laser musical instrument based on a laser displacement sensor. As shown in the figure, a laser musical instrument based on a laser displacement sensor comprises a sensor support rod 8, and the upper and lower ends of the sensor support rod 8 are respectively connected to the laser displacement sensor 2 and the instrument body 1.
[0034] The third embodiment imitates the appearance and sound-generating mode of the Theremin. The palm is used as a shielding object. When playing, the palm shields the laser emitted by the laser displacement sensor 2, thereby triggering the single-chip microcomputer and MIDI sound source in the piano body 1 to emit sound. As the distance of the palm changes, the scale changes, and the music is played.
[0035] The following is combined with Figure 2 The workflow flowchart describes the specific implementation mode of the utility model.
[0036] In the embodiment, the laser displacement sensor 2 is a BX-LV400 laser displacement sensor with a detection distance of 0-400 mm and a corresponding output analog voltage of 0-5 V, which is linearly related to the distance.
[0037] The single chip microcomputer adopts ATmega328P single chip microcomputer module, which is used to divide the 0-5V analog voltage signal output by the laser displacement sensor 2 into 15 segments evenly, and convert each segment of the signal into MIDI format note code, and output it to the MIDI sound source.
[0038] The MIDI sound source adopts the miniEngine pro finished MIDI sound source machine, which has 128 timbres, reverb, vibrato and other functions, and is directly installed in the box 1. The scale of the sound output by the MIDI sound source is determined by the MIDI format note code output by the single-chip microcomputer, and the timbre, reverb, intensity, sustain and other parameters and effects of the sound are set in real time on the MIDI sound source.
[0039] In the embodiment, the sensing range of the laser displacement sensor 2 with a detection distance of 400 mm is evenly divided into 15 parts, corresponding to 15 scales, constituting two complete octaves in music. The information corresponding to each distance segment is detailed in Table 1. The scale (or frequency) and MIDI format note code of the same distance segment are specified by the MIDI protocol, that is, the distance and the scale form a corresponding relationship. For example, the single-chip microcomputer detects the analog signal emitted by the laser displacement sensor 2, and after settlement, the distance is within the first distance segment, and the generated MIDI format note code is 72. After the MIDI sound source receives the MIDI format note code 72 output by the single-chip microcomputer, it emits the sound of an instrument with a frequency of 523.3 Hz and a scale name of C6.
[0040] Table 1 Data information corresponding to each distance segment of the embodiment
[0041]
[0042] In the embodiment, the detection distance of the laser displacement sensor 2 is evenly divided into segments, each distance corresponding to a scale. Due to the difficulty of playing and the distance between scales, the detection distance of the laser displacement sensor 2 should not be divided into too many segments.
Claims
1. A laser musical instrument based on a laser displacement sensor, characterized in that: A laser musical instrument based on a laser displacement sensor comprises a musical instrument body, a laser displacement sensor, a single chip microcomputer and a MIDI sound source; The laser displacement sensor is mounted on the top surface of the piano body; The single-chip microcomputer and MIDI sound source are installed inside the piano; The detection distance of the laser displacement sensor is evenly divided into segments, and each distance corresponds to a musical scale; The laser displacement sensor measures the distance between the obstructing object and the sensor in real time, and transmits the analog signal containing the distance information to the microcontroller through the data line; The single chip microcomputer receives the analog signal sent by the laser displacement sensor, calculates the distance between the blocking object and the sensor, and generates the MIDI format note code of the corresponding scale according to the corresponding relationship between the distance and the scale; The MIDI sound source input terminal is connected to the single-chip microcomputer output terminal, and the MIDI sound source receives the MIDI format note code output by the single-chip microcomputer to emit the musical instrument sound of the corresponding scale.
2. A laser musical instrument based on a laser displacement sensor according to claim 1, characterized in that The laser musical instrument based on the laser displacement sensor comprises a long sliding rod, a hollow sleeve, a push-pull handle and a light shielding sheet; The long slide bar is fixed on the side of the piano body, the hollow sleeve is sleeved on the long slide bar, the push-pull handle and the light shielding sheet are fixed on the hollow sleeve, the push-pull handle can drive the hollow sleeve to slide on the long slide bar, and the light shielding sheet on the hollow sleeve can block light.
3. The laser musical instrument based on the laser displacement sensor according to claim 1, characterized in that The laser musical instrument based on the laser displacement sensor comprises a sensor support rod, and the upper and lower ends of the sensor support rod are respectively connected to the laser displacement sensor and the instrument body.
