Light stimulation method, device and system

文档序号:866242 发布日期:2021-03-19 浏览:4次 中文

阅读说明:本技术 一种光刺激方法、装置及系统 (Light stimulation method, device and system ) 是由 丁麒森 杨观止 于 2020-11-30 设计创作,主要内容包括:本发明公开了一种光刺激方法、装置及系统,应用于控制器中,所述控制器设置在光刺激系统中,所述光刺激系统还包括:LED光源,所述控制器与所述LED光源通信连接,所述LED光源与受控对象相连,所述受控对象体内设置有光敏蛋白,所述方法包括:接收用于调整所述受控对象运动状态的控制参数;获取与所述控制参数对应的目标指令标志位的目标值,所述目标指令标志位为用于驱动所述LED光源的多个指令标志位中的一个或多个;在所述目标值为预设值时,根据所述控制参数,驱动所述LED光源执行与所述控制参数对应的操作,以刺激所述受控对象体内的光敏蛋白,对所述受控对象的运动进行控制。(The invention discloses a light stimulation method, a device and a system, which are applied to a controller, wherein the controller is arranged in a light stimulation system, and the light stimulation system further comprises: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps: receiving control parameters for adjusting the motion state of the controlled object; acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source; and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.)

1. A light stimulation method, applied to a controller, the controller being provided in a light stimulation system, the light stimulation system further comprising: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps:

receiving control parameters for adjusting the motion state of the controlled object;

acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source;

and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

2. The optical stimulation method of claim 1, wherein after the receiving the control parameter for adjusting the controlled object motion state, the method further comprises:

determining a target length of the control parameter;

determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

3. The optical stimulation method of claim 2, wherein prior to the determining the target length of the control parameter, the method further comprises:

and detecting whether a tail frame of the control parameter is received, and if the tail frame is received, executing the step of determining the target length of the control parameter.

4. The optical stimulation method according to claim 1, wherein the driving the LED light source to perform an operation corresponding to the control parameter according to the control parameter comprises:

detecting whether the parameter value of the control parameter is within a preset parameter range;

and if so, driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter.

5. A light stimulation device for use in a controller disposed in a light stimulation system, the light stimulation system further comprising: the LED light source, the controller with LED light source communication connection, the LED light source links to each other with controlled object, be provided with photosensitive protein in the controlled object body, the light stimulation device includes:

the receiving unit is used for receiving control parameters for adjusting the motion state of the controlled object;

an obtaining unit, configured to obtain a target value of a target instruction flag corresponding to the control parameter, where the target instruction flag is one or more of a plurality of instruction flags for driving the LED light source;

and the driving unit is used for driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter when the target value is a preset value so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

6. An optical stimulation system, comprising:

the system comprises a background controller and a control terminal, wherein the background controller is connected with the control terminal through a wireless network;

the control terminal includes: the LED light source is connected with a controlled object, and photosensitive protein is arranged in the controlled object;

the background controller is used for acquiring and sending control parameters for adjusting the motion state of the controlled object;

the controller is used for receiving the control parameters; acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source; and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

7. The optical stimulation system of claim 6, wherein the controller is further configured to:

determining a target length of the control parameter;

determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

8. The optical stimulation system of claim 6, wherein the output optical power of the LED light source is 3-10 mW.

9. The optical stimulation system of claim 6, wherein the control terminal further comprises a driving device, and the driving device is connected with the controller in a pin hole row manner.

10. The optical stimulation system of claim 6, wherein the controller is further configured to: and when the LED light source is driven according to the control parameters, sending the state information of the LED light source to the background controller.

Technical Field

The invention relates to the field of computer control, in particular to a light stimulation method, a light stimulation device and a light stimulation system.

Background

The animal robot is used for applying stimulation to the nervous system of an experimental animal in a certain mode so as to regulate and control brain activity and further complete tasks which cannot be completed by a common robot under a difficult condition. Compare traditional robot, when narrow and small topography, animal robot's flexibility is higher to can seek food by oneself in uncontrolled time, energy supply is nimble convenient.

In the early development process of animal robots, electrical stimulation dominates, and the main principle of the electrical stimulation is that the electrical potential value on two sides of a cell membrane is changed by applying a specific electrical stimulation signal to an animal, so that the nerve activity of the animal is controlled. The nerve is affected simply and directly by using the electrical stimulation, the effect is obvious, but the generated electric field has a wide spread range in brain tissues and no directivity, and the precise motion control is difficult. The electrical stimulation is gradually replaced by the optical stimulation. In the prior art, optical stimulation is mainly to use a laser to transmit an optical signal into an experimental animal body through a connecting optical fiber.

The inventor of the present application finds that the above-mentioned technology has at least the following technical problems:

the laser has high manufacturing cost and complex equipment, so that the equipment cost is high and the experimental purpose is not easy to achieve.

Disclosure of Invention

The embodiment of the application provides a light stimulation method, a light stimulation device and a light stimulation system, solves the technical problems that in the prior art, a laser is expensive in manufacturing cost and complex in equipment, so that the experiment cost is high and the experiment purpose is not easy to achieve, and realizes simplification and low cost of light stimulation system equipment.

The embodiment of the application provides the following technical scheme:

in a first aspect, an embodiment of the present invention provides a light stimulation method, which is applied in a controller, where the controller is disposed in a light stimulation system, and the light stimulation system further includes: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps:

receiving control parameters for adjusting the motion state of the controlled object;

acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source;

and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

Preferably, after the receiving the control parameter for adjusting the motion state of the controlled object, the method further comprises:

determining a target length of the control parameter;

determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

Preferably, before said determining the target length of the control parameter, the method further comprises:

and detecting whether a tail frame of the control parameter is received, and if the tail frame is received, executing the step of determining the target length of the control parameter.

Preferably, the driving the LED light source to perform an operation corresponding to the control parameter according to the control parameter includes:

detecting whether the parameter value of the control parameter is within a preset parameter range;

and if so, driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter.

In a second aspect, an embodiment of the present invention further provides an optical stimulation apparatus, which is applied in a controller, where the controller is disposed in an optical stimulation system, and the optical stimulation system further includes: the LED light source, the controller with LED light source communication connection, the LED light source links to each other with controlled object, be provided with photosensitive protein in the controlled object body, the light stimulation device includes:

the receiving unit is used for receiving control parameters for adjusting the motion state of the controlled object;

an obtaining unit, configured to obtain a target value of a target instruction flag corresponding to the control parameter, where the target instruction flag is one or more of a plurality of instruction flags for driving the LED light source;

and the driving unit is used for driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter when the target value is a preset value so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

Preferably, after the receiving the control parameter for adjusting the motion state of the controlled object, the apparatus further comprises:

the length checking unit is used for determining the target length of the control parameter;

the first processing unit is used for determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and the second processing unit is used for setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

Preferably, before said determining the target length of the control parameter, the method further comprises:

and detecting whether a tail frame of the control parameter is received, and if the tail frame is received, executing the step of determining the target length of the control parameter.

Preferably, the driving the LED light source to perform an operation corresponding to the control parameter according to the control parameter includes:

detecting whether the parameter value of the control parameter is within a preset parameter range;

and if so, driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter.

In a third aspect, an embodiment of the present invention further provides an optical stimulation system, including:

the system comprises a background controller and a control terminal, wherein the background controller is connected with the control terminal through a wireless network;

the control terminal includes: the LED light source is connected with a controlled object, and photosensitive protein is arranged in the controlled object;

the background controller is used for acquiring and sending control parameters for adjusting the motion state of the controlled object;

the controller is used for receiving the control parameters; acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source; and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

Preferably, the controller is further configured to:

determining a target length of the control parameter;

determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

Preferably, the control terminal further comprises a driving device, and the driving device is connected with the controller in a pin-row and hole-row mode.

Preferably, the output light power of the LED light source is 3-10 mW.

Preferably, the controller is further configured to:

and when the LED light source is driven according to the control parameters, sending the state information of the LED light source to the background controller.

In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used to implement the steps of any one of the above methods when executed by a processor.

In an embodiment of the present invention, the optical stimulation method is applied to a controller, the controller is disposed in an optical stimulation system, and the optical stimulation system further includes: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps: receiving control parameters for adjusting the motion state of the controlled object; acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source; and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

In the above scheme, the light source is changed from the laser to the LED light source, so that the technical problems that the laser is expensive in manufacturing cost and complex in equipment in the prior art, the equipment cost is high, and the experimental purpose is not easily achieved are solved, and the simplification and the low cost of the optical stimulation system equipment are realized.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.

Fig. 1 is a flowchart of a photo-stimulation method according to an embodiment of the present invention;

fig. 2 is a flowchart illustrating a setting of a command flag by a controller of an optical stimulation system according to an embodiment of the present invention;

fig. 3 is a flowchart illustrating a method for driving an LED light source according to a target value of a command flag by a controller of an optical stimulation system according to an embodiment of the present invention;

fig. 4 is a schematic device diagram of a light stimulation device according to a second embodiment of the present invention.

Fig. 5 is a system structural diagram of a light stimulation system according to a third embodiment of the present invention.

Detailed Description

The embodiment of the application provides a light stimulation system, and solves the technical problems that in the prior art, a laser is expensive in manufacturing cost and complex in equipment, so that the equipment cost is high and the experimental purpose is not easy to achieve.

In order to solve the technical problems, the general idea of the embodiment of the application is as follows:

a light stimulation method applied to a controller, the controller being disposed in a light stimulation system, the light stimulation system further comprising: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps: receiving control parameters for adjusting the motion state of the controlled object; acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source; and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.

First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

Example one

The present embodiment provides a light stimulation method, as shown in fig. 1, which is a flowchart of the light stimulation method provided in the embodiments of the present specification, and is applied to a controller, where the controller is disposed in a light stimulation system, and the light stimulation system further includes: the LED light source is in communication connection with the controller, the LED light source is connected with a controlled object, photosensitive protein is arranged in the controlled object, and the method comprises the following steps:

step S101: receiving control parameters for adjusting the motion state of the controlled object;

step S102: acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source;

step S103: and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

In the specific implementation process, step S101 is first executed: and receiving control parameters for adjusting the motion state of the controlled object.

Specifically, the controlled object may be a small animal such as a pigeon, and the control parameters may include various parameters, such as: the starting control parameters of the LED light source, the pulse waveform adjusting parameters of the LED light source, the closing control parameters of the LED light source and the like. The LED light source can be controlled to perform different operations through the control parameters, so that the controlled object can be controlled to perform a series of movements, such as controlling a pigeon to perform running, jumping, spreading wings and the like.

As an alternative embodiment, after the receiving the control parameter for adjusting the motion state of the controlled object, step S101 further includes:

determining a target length of the control parameter;

determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

In the specific implementation process, the preset relationship between the parameter length and the driving instruction may be preset, and the corresponding parameter lengths may be different for different driving instructions. In this embodiment, the driving instruction may include an instruction to start the LED light source, an instruction to turn off the LED light source, an instruction to adjust parameters of the LED light source, and the like. The parameter length corresponding to each driving command may be set according to actual needs, for example, the parameter length corresponding to the start command of the LED light source may be 35 bytes, and the parameter length corresponding to the off command of the LED light source may be 40 bytes.

And after receiving the control parameters, determining the target length of the control parameters, and determining the driving instructions corresponding to the received control parameters based on the preset relationship between the parameter length and the driving instructions. Still using the above example, if the target length of the received control parameter is 35 bytes, it can be determined that the driving instruction corresponding to the control parameter is the start instruction of the LED light source through the preset relationship, and further, the instruction flag bit corresponding to the start instruction of the LED light source is set to the preset value. Specifically, the preset value may be set according to actual needs, for example, the preset value is 1.

In addition, if the target length is not found in the preset relationship between the parameter length and the driving instruction, the control parameter may be cleared and information may be returned to the background controller, for example: the control terminal clears the control parameter and returns information such as 'the parameter length is illegal, please re-input' and the like to the background controller.

As an alternative embodiment, before the determining the target length of the control parameter, step S101 further includes: and detecting whether a tail frame of the control parameter is received, and if the tail frame is received, executing the step of determining the target length of the control parameter.

Specifically, the code end of each control parameter carries an end frame, and after receiving the control parameter, it needs to detect whether the control parameter carries the end frame, and then performs the next operation after detecting the end frame. For example: the tail frame of the control parameter is set to 0100, when a control parameter is received, the system detects the control parameter byte by byte, the control parameter is stopped to be received until 0100 is received, and then the target length of the received control parameter is judged.

Further, step S102 is executed: and acquiring a target value of a target instruction zone bit corresponding to the control parameter, wherein the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source.

In step S102, each control parameter has a corresponding instruction flag bit, and there may be a plurality of control parameters, such as: the starting control parameters of the LED light source, the pulse waveform adjustment parameters of the LED light source, the closing control parameters of the LED light source and the like, and the corresponding instruction zone bits can be respectively as follows: a start flag, a light source adjustment flag, a shut down flag, etc. For each instruction flag bit, the instruction flag bit may have a plurality of state values, and taking the instruction flag bit having two state values as an example, if the value of the instruction flag bit is 1, the representation needs to execute the corresponding instruction according to the control parameter, and if the value of the instruction flag bit is 0, the corresponding instruction is not executed.

In the embodiment of the present specification, after the control parameter is acquired, the target value of the target instruction flag corresponding to the control parameter is determined, for example, when the start control parameter of the LED light source is acquired, the current value of the start flag is read as the target value.

Further, step S103 is performed: and when the target value is a preset value, driving the LED light source to execute an operation corresponding to the control parameter according to the control parameter so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

In a specific implementation process, a preset value of the instruction flag bit may be set according to actual needs, where the preset value may be any one of state values included in the instruction flag bit, and in this embodiment of the present specification, a state value used for representing an instruction corresponding to an execution control parameter is used as a target value. Taking the target value as 1 as an example, the control parameter is a parameter for controlling the controlled object to run, and when the value of the corresponding instruction flag bit is 1, the LED light source is driven to emit a light signal corresponding to the control parameter, and the light signal stimulates the photosensitive protein implanted in the controlled object, so as to control the controlled object to run.

The photosensitive protein is a protein, and a photosensitive ion channel expressed on a nerve cell can respond to a light signal with specific wavelength and intensity, so that specific ions pass through the photosensitive protein, the potential on two sides of a cell membrane is changed, the nerve cell is accurately activated or inhibited, and the effect of controlling a controlled object to perform various motions is further realized.

As an alternative embodiment, in step S103, driving the LED light source to perform an operation corresponding to the control parameter according to the control parameter includes: detecting whether the parameter value of the control parameter is within a preset parameter range; and if so, driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter.

Specifically, the control parameters have a preset parameter range for protecting the system and the device. Before the LED light source is driven according to the control parameters, whether the control parameters are within a preset parameter range or not is detected, and the control parameters which accord with the preset parameter range can be used for driving the light source. For example: the control time of the preset driving parameter is 0-20s, and when the control time of the received driving control parameter is 15s, the driving parameter accords with the preset parameter range.

In order to better understand the scheme of the embodiment of the present invention, as shown in fig. 2 and fig. 3, the present invention provides a flowchart of setting the command flag by the controller and a flowchart of driving the LED light source according to the target value of the command flag by the controller.

Fig. 2 is a flowchart of setting the instruction flag bit by the controller, and the main process is as follows:

301: whether a tail frame is received;

judging whether the end frame of the control parameter is received, for example: if the parameter end frame is 0100, detecting whether a control parameter ending at 0100 is received.

If the control parameter end frame is received, execute 302: checking the length of the parameter;

if no end frame is received, perform 3012: and judging whether the buffer area overflows or not.

Checking the length of the parameter, that is, determining whether the length of the parameter matches a preset length, which is described in detail in this embodiment and is not described herein again; the controller is internally provided with a buffer area, the maximum parameter length is preset in the buffer area, and when the controller does not receive the parameter tail frame, the received parameters are stored in the buffer area.

When the parameter length stored in the buffer area exceeds the preset maximum parameter length, the buffer area overflows, and the following steps are executed 3013: receiving error, and clearing received parameters.

When the parameter length in the buffer does not exceed the maximum parameter length, which means that the buffer does not overflow, 3014: and continuously receiving the parameters and storing the parameters into the buffer area until the tail frame is received.

Executing 303: and judging whether the parameter length meets the preset length.

When the parameter length satisfies the preset length, executing 304: setting the flag bit of the control parameter corresponding to the instruction as a target value;

if the parameter length does not meet the preset length, executing 3031: receiving errors and clearing parameters.

Finally, 305 is executed: the instruction flag is cleared.

Namely, the instruction flag bit set to the target value is cleared.

Fig. 3 is a flowchart of driving the LED light source by the controller according to the target value of the command flag, and the main process is as follows:

first, 401 is executed: the controller is initialized.

Then 402 is executed: detecting an instruction flag bit; 403: whether there is an instruction flag bit set to the target value.

If there is an instruction flag set to the target value, execute 404: and judging the reason why the target instruction flag bit is the instruction.

That is, when the instruction flag is set to the target value, the instruction flag is confirmed as the target instruction flag, and it is further determined which instruction the target instruction flag is, for example: a start instruction, a time control instruction, an end instruction, etc.

If there is no instruction flag set to the target value, then 402 is repeated.

After judging which kind of instruction the target instruction flag bit is, execute 405, 406: checking a parameter range; performing 4051, 4061: whether it passes the check.

Namely, whether the control parameter meets the preset parameter range is judged.

If yes, executing 4052, 4062: and returning an acknowledgement frame.

That is, sending acknowledgement information to the background controller, and then executing 4053: clearing the target value of the instruction zone bit; 4063: the LED starts to be driven.

If the control parameter does not meet the preset parameter range, executing 4053 and 4067: the instruction flag target value is cleared.

After the LED light source starts to be driven, 4064: it is checked whether there is a abort parameter.

I.e. detecting whether there is a parameter suspending the operation of the LED light source.

If not, perform 4065: normally driving the light source until the driving is finished;

if the abort parameter is detected, execute 4066: the driving is suspended.

After the driving is finished, 4067 is executed: the target value on the target instruction flag bit is cleared.

Finally, the process is repeated.

Example two

Based on the same inventive concept, the present specification provides an optical stimulation apparatus 200, which is applied in a controller, the controller is disposed in an optical stimulation system, and the optical stimulation system further includes: the LED light source, the controller with LED light source communication connection, the LED light source links to each other with controlled object, be provided with photosensitive protein in the controlled object, as shown in figure 4, for its device schematic diagram, the light stimulation device includes:

a receiving unit 201 that receives a control parameter for adjusting a motion state of the controlled object;

an obtaining unit 202, configured to obtain a target value of a target instruction flag corresponding to the control parameter, where the target instruction flag is one or more of a plurality of instruction flags for driving the LED light source;

and the driving unit 203 is configured to drive the LED light source to execute an operation corresponding to the control parameter according to the control parameter when the target value is a preset value, so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

As an optional embodiment, after the receiving the control parameter for adjusting the motion state of the controlled object, the apparatus further includes:

the length checking unit is used for determining the target length of the control parameter;

the first processing unit is used for determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction;

and the second processing unit is used for setting the value of the instruction zone bit corresponding to the driving instruction as the preset value.

As an optional embodiment, before the determining the target length of the control parameter, the method further comprises:

and detecting whether a tail frame of the control parameter is received, and if the tail frame is received, executing the step of determining the target length of the control parameter.

As an alternative embodiment, the driving the LED light source to perform the operation corresponding to the control parameter according to the control parameter includes:

detecting whether the parameter value of the control parameter is within a preset parameter range;

and if so, driving the LED light source to execute the operation corresponding to the control parameter according to the control parameter.

With regard to the above-mentioned apparatus, the specific functions of the respective units have been described in detail in the embodiments of the optical stimulation method provided in the embodiments of the present specification, and will not be elaborated herein.

EXAMPLE III

Based on the same inventive concept, the present specification provides an optical stimulation system 100, as shown in fig. 5, which is a schematic structural diagram, and includes:

the system comprises a background controller 101 and a control terminal 102, wherein the background controller 101 is connected with the control terminal 102 through a wireless network;

the control terminal 102 includes: the LED light source 1022 is connected with the controller 1021, the controller 1021 is in communication connection with the LED light source 1022, the LED light source 1022 is connected with a controlled object, and photosensitive protein is arranged in the controlled object;

the background controller 101 is used for acquiring and sending control parameters for adjusting the motion state of the controlled object;

a controller 1021 for receiving control parameters; acquiring a target value of a target instruction zone bit corresponding to the control parameter, where the target instruction zone bit is one or more of a plurality of instruction zone bits for driving the LED light source 1022; when the target value is a preset value, the LED light source 1022 is driven to perform an operation corresponding to the control parameter according to the control parameter, so as to stimulate photosensitive protein in the body of the controlled object and control the movement of the controlled object.

In this embodiment, taking a pigeon as an example, a user performs wireless communication with the control terminal through a wireless communication module on a mobile phone or a computer, and the control terminal can be set as a small backpack to be carried on the body of the pigeon.

Specifically, the control terminal 102 and the background controller 101 are first allowed to establish a wireless connection, and the background controller obtains the control parameters, which may be obtained by detecting user input or preset default control parameters. Taking user input as an example, the background controller 101 transmits the control parameter input by the user to the control terminal 102 through the wireless network, and the controller 1021 of the control terminal 102 drives the LED light source 1022 according to the control parameter after receiving the control parameter. After the LED light source 1022 is driven, a light stimulation signal corresponding to the control parameter is emitted to stimulate the light-sensitive protein, and the light-sensitive protein controls the controlled object to move according to the light stimulation signal.

In a specific implementation process, the background controller may be a computer, a mobile phone, a remote control device, and the like, and the wireless connection network may be LoRa, WiFi, ZigBee, and the like. The background controller can be provided with a display screen, an interactive interface used for interaction between a user and the system is arranged on the display screen, and the background controller acquires corresponding control parameters by detecting input operation of the user on the interactive interface. The user inputs control parameters for adjusting the motion state of the controlled object through the interactive interface, the motion state can be forward and backward walking, turning, spreading wings and the like, and specifically, the control parameters can be related parameters of the optical stimulation waveform or control commands, such as waveform length, interval time, interruption instructions and the like. Different light stimulation signals are generated through different waveforms, so that the light-sensitive protein activates or inhibits different nerve cells of the controlled object under different stimulation, and the controlled object can be controlled to perform different motions.

The control terminal can comprise a power supply module, a controller, a controllable constant current source circuit and an LED light source. During specific operation, the power supply module of the control terminal supplies power to the controller and the controllable constant current source circuit, and after the controller receives the control parameters, the controller controls the controllable constant current source circuit to supply current to the LED light source according to the control parameters so as to drive the LED light source. The LED light source is driven to generate a light stimulation signal to stimulate the photosensitive protein, and the photosensitive protein receives the light stimulation signal and controls the controlled object to move according to the light stimulation signal.

Further, the background controller is further configured to detect whether the control parameter meets a preset parameter range of the system, and if so, send the control parameter to the control terminal.

Specifically, the background controller packages and sends out the control parameters, judges whether the acquired control parameters are in a preset parameter range or not before the control parameters are packaged, and packages and sends out the control parameters if the acquired control parameters are in the preset parameter range; if not, a message is returned to the user. For example, the preset light power is 0-30 mW, the time is 20s, if the control parameter input by the user is '24 mW, 15 s', the preset parameter range is met, and the background controller packages and sends out the control parameter; if the control parameter input by the user is 34mW and 10s, the control parameter is not in accordance with the preset parameter range, the background controller does not pack the control parameter, and sends information to the user, such as 'input error, please re-input', and the like.

Further, the background controller and the control terminal perform wireless data transmission through Bluetooth.

Specifically, the background controller and the control terminal each include a bluetooth communication module, and the background controller receives the control parameters and then sends the control parameters to the bluetooth communication module of the control terminal through the bluetooth communication module on the background controller.

As an alternative embodiment, the controller 1021 is further configured to: determining a target length of a control parameter; determining a driving instruction corresponding to the target length based on the target length and a preset relation between the parameter length and the driving instruction; and setting the value of the instruction zone bit corresponding to the driving instruction as a preset value.

With regard to the above-mentioned apparatus, the specific functions of the respective units have been described in detail in the embodiments of the optical stimulation method provided in the embodiments of the present specification, and will not be elaborated herein.

As an alternative embodiment, the output light power of the LED light source is 3-10 mW.

Specifically, in the art, optical power of 3mW or more is generally required to open the photosensitive ion channel. When the light power exceeds 10mW, the LED light source will be heated and the body of the controlled object will be damaged if the output power is too large. Therefore, the output light power of the LED light source is set to be 3-10 mW.

As an optional embodiment, the control terminal further includes a driving device, and the driving device is connected to the controller in a pin-row and hole-row manner.

Specifically, in order to minimize the size of the control terminal, the control terminal is divided into a controller and a driving device at the time of design. The controller and the driving device are connected by using pin header holes, namely the controller and the driving device are overlapped up and down, a pin header is arranged on the controller or the driving device, a hole header is arranged on the other device, and then the two devices are connected by using a pin header hole plugging mode.

As an alternative embodiment, the controller is further configured to:

and when the LED light source is driven according to the control parameters, sending the state information of the LED light source to the background controller.

Specifically, the control terminal is wirelessly connected with the background controller, so that a user can know the running state of the control terminal in real time conveniently, and the running state of the LED light source can be sent to the background controller every time the control terminal drives the LED light source. For example: when the control terminal drives the LED light source to start, the background controller is required to send information of the started LED light source.

Further, a stm32f103c8t6 processor is used as the processor of the control device.

In particular, the stm32f103c8t6 processor is the smallest in size, and meets the requirement that the hardware part is designed to be small in size. The function of the system is to receive, check and analyze instructions from a background control program, and then drive a power part to output an optical signal waveform meeting the requirements.

Further, an LM3402 switch chip is adopted as a main power chip of the power device.

Specifically, in order to achieve the dimming effect and take the problem of chromatic aberration into consideration, the power device may adopt an LM3402 switch chip as a main power chip, receive a PWM signal from a microprocessor, and achieve the dimming effect by means of PWM dimming.

With regard to the above-described system, the specific functions of the respective structures and devices have been described in detail in the embodiments of the optical stimulation method provided in the embodiments of the present specification, and will not be elaborated herein.

The technical scheme in the embodiment of the application at least has the following technical effects or advantages:

1. through changing the laser into the LED light source, the technical problems that the laser is expensive in manufacturing cost and complex in equipment in the prior art, so that the experiment cost is high and the experiment purpose is not easy to achieve are solved, and the simplification and the low cost of the animal robot experiment are realized.

2. Through using wireless network connection backstage controller and control terminal, solved among the prior art and used the wired mode to carry out the light stimulation animal robot experiment and restricted animal robot range of motion's technical problem greatly, realized the expansion to animal robot range of motion.

3. The controller and the driving device of the control terminal are connected in a pin header hole connection mode, so that the size of the control terminal is greatly reduced, a controlled object is more convenient to carry, and the experiment effect is better.

4. The output light power of the LED light source is set to be 3-10mW, the LED light source is arranged outside the controlled object body, and the photosensitive ion channel can be opened, and meanwhile, the brain of the controlled object can be prevented from being burned by overlarge output power.

Example four

Based on the same inventive concept as the optical stimulation method in the previous embodiments, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the above-described methods.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种儿科临床医生用儿科黄疸治疗装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!