Disclosure of Invention
In order to overcome the defects, the invention aims to provide a building block robot capable of being adaptively and externally expanded.
The utility model provides a technical scheme that its technical problem adopted is: a building block robot capable of self-adapting to external expansion comprises a master robot, a photoelectric module and a light module, wherein the master robot comprises a control circuit, a driving motor, a power supply, a roller and an input magnetic suction interface;
one side of the photoelectric module is provided with a photoelectric detection head and a photoelectric indicator light, one side of the light module is provided with a photosensitive sensor and a light indicator light, the outer sides of the photoelectric module and the light module are respectively provided with a processing circuit, the photoelectric module and the light module are respectively provided with an output magnetic suction interface, and the photosensitive sensor and the photoelectric detection head are respectively connected with the output magnetic suction interface through the processing circuit.
Specifically, the device further comprises an adapter, an output magnetic suction interface is arranged on the side face of the adapter, an input magnetic suction interface is arranged on the upper face of the adapter, and the photoelectric module is adsorbed to the input end of the main control robot through the adapter and used for converting the detection directions of the photoelectric module and the light module.
Specifically, four pins, namely an anode pin, a cathode pin, a type pin and an identification pin, are arranged in the input magnetic suction interface and the output magnetic suction interface, the anode pin and the cathode pin are used for supplying power to the photoelectric module and the light module, the type pin is connected with an ID resistor and is connected with the processing chip, and the identification pin mainly has data communication and signal transmission functions.
Specifically, the processing circuit adopts an ATMEGA8A-AU processing chip, pins of the processing chip are respectively connected with four pins of the output magnetic suction interface, and the processing chip is respectively connected with a corresponding photoelectric detector head, a photosensitive sensor and a light ray indicator lamp.
Specifically, two driving motors are arranged in the master robot, one driving motor controls one roller, and a single chip microcomputer is arranged in the control circuit and connected with a power supply through a power supply circuit.
The utility model discloses following beneficial effect has: the utility model has simple operation mode and is suitable for infant users; the robot can automatically implement the scheme after power supply as long as a user places a corresponding input module at the input end of the robot without an upper computer; the processing method can be self-adaptively and externally expanded and automatically adjusted; communication is realized without means of external remote control and the like; the playability and the educational value are high, the safety of the food-grade ABS is high, the upgrading expansion is realized, the use is convenient, the clear sequence and logic can be realized, and the rule consciousness of children can be exercised.
Drawings
Fig. 1 is a schematic structural view of the main control robot of the present invention.
Fig. 2 is a first control circuit diagram of the present invention.
Fig. 3 is a second control circuit diagram of the present invention.
Fig. 4 is a circuit diagram of the photovoltaic module of the present invention.
Fig. 5 is a circuit diagram of the light module of the present invention.
Fig. 6 is a schematic view of embodiment 1 of the present invention.
Fig. 7 is a schematic view of embodiment 2 of the present invention.
Fig. 8 is a schematic view of embodiment 3 of the present invention.
Fig. 9 is a schematic view of embodiment 4 of the present invention.
In the figure 1, a main controller module, a roller 101, a charging interface 102, an electric quantity indicator light 104, a module indicator light 105, a photoelectric module 2, a photoelectric detector head 201, a light module 3, a photosensitive sensor 301, a light indicator light 302, a switching seat 4, illumination 5 and a tracing circuit 6.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings.
Example 1: object induction robot
As shown in fig. 1-5, the building block robot capable of adaptive external expansion includes a main control robot 1, a photoelectric module 2, and a light module 3, where the main control robot 1 includes a control circuit, a driving motor, a power supply, a roller 101, and an input magnetic suction interface 103;
one side of optoelectronic module 2 is equipped with photoelectric detection head 201, photoelectric indicator, and one side of light module 3 is equipped with photosensor 301, light indicator 301, is equipped with in the optoelectronic module 2, the light module 3 outside respectively and is equipped with processing circuit, all is equipped with output magnetism on optoelectronic module 2, the light module 3 and inhales the interface, photosensor 301, photoelectric detection head 201 inhale the interface through processing circuit and output magnetism respectively and are connected.
Specifically, the detection device further comprises an adapter 4, an output magnetic suction interface is arranged on the side surface of the adapter 4, an input magnetic suction interface is arranged on the adapter 4, and the photoelectric module 2 is adsorbed to the input end of the main control robot 1 through the adapter and used for converting the detection directions of the photoelectric module 2 and the light module 3.
Specifically, four pins, namely an anode pin, a cathode pin, a type pin and an identification pin, are arranged in the input magnetic suction interface 103 and the output magnetic suction interface, the anode pin and the cathode pin are used for supplying power to the photoelectric module 3 and the light module 2, the type pin is connected with an ID resistor and connected with the processing chip, and the identification pin mainly has functions of data communication and signal transmission.
Specifically, the processing circuit adopts an ATMEGA8A-AU processing chip, pins of the processing chip are respectively connected with four pins of the output magnetic suction interface, and the processing chip is respectively connected with the corresponding photoelectric detector 201, the photosensitive sensor 301 and the light ray indicator lamp 302.
Specifically, two driving motors are arranged in the main control robot 1, one driving motor controls one roller 101, and a single chip microcomputer is arranged in the control circuit and connected with a power supply through a power supply circuit.
As shown in fig. 6, one of the optoelectronic modules 3 is attached to the input end of the main control robot 1 by matching with the adapter 4, so that the transmitting and receiving head of the optoelectronic module faces the front sensing object; the power switch of the main control robot 1 is pressed, the positive and negative poles of the input end of the main control robot 1 supply power to the photoelectric module 3 through the adapter 4, the identity of the input module is judged through the identity identification pin, after the input end is determined to be the photoelectric module 3, the internal sensor of the photoelectric detection head 301 in the photoelectric module 3 converts external analog quantity into digital signals, the pin of the single chip microcomputer in the main control robot 1 is changed into low level through the data communication pin, the internal single chip microcomputer circuit triggers the motor driving circuits on the two sides of the robot to change into low level, and the robot moves backwards one step.
Embodiment 2 optically controlled robot
As shown in fig. 7, a main control robot 1 and a light module 3 are adopted, the light module 3 is magnetically attracted and adsorbed to the input end of the main control robot 1, so that an emitting and receiving head of the light module 3 faces a front induction object, a power key of the main control robot 1 is pressed, the positive electrode and the negative electrode of the input end of the main control robot 1 supply power to the light module 3 through a switching seat, the identity of an input module is judged through an identity identification pin, after the input end is determined to be the light module 3, an internal sensor of the light module 3 converts external analog quantity into a digital signal, a singlechip pin of an internal control circuit of the main control robot 1 is changed into a low level through a data communication pin, and the internal singlechip circuit controls driving motors on two sides of the main control robot 1, so that the main control robot 1 advances one step.
Example 3: following spot robot
As shown in fig. 8, a master robot 1 and two light ray modules 3 are adopted; the two light ray modules 3 are adsorbed to the main control robot 1 through the input magnetic attraction interface 103 and the output magnetic attraction interface; the power supply key of the main control robot 1 is pressed, the main control robot 1 respectively supplies power to the two light ray modules 3 through positive and negative pins of the input magnetic suction interface 103 and the output magnetic suction interface, and the identity of the input end module is detected through the identity identification pin; after the light module 3 circular telegram, the photosensor 301 of light module 3 discerns outside illumination intensity and reads different analog input signal about the input, carries the signal to 1 internal control circuit's of main control robot singlechip through the data transmission pin to control both sides driving motor rotates, drives gyro wheel 101, and the illumination 5 that light module detected of which side is strong, and the robot pursues to which side, realizes following spot the effect.
Example 4: tracing robot
As shown in fig. 9, a main control robot 1 and two photoelectric modules 2 are adopted, the two photoelectric modules 2 are respectively adsorbed to the input end of the main control robot 1, a power supply button of the main control robot 1 is pressed, the main control robot 1 respectively supplies power to the two photoelectric modules 2 through positive and negative pins of an input magnetic suction interface 103 and an output magnetic suction interface, and the identity of the input end module is judged through identity identification pins of each port; after detection and electrification, internal sensors of the left and right photoelectric modules 2 at the input end of the main control robot 1 detect a tracing line 6 on a map, the main control robot 1 reads different analog input signals and transmits the signals to a single chip microcomputer of an internal control circuit of the main control robot 1 through data transmission pins to control motor driving of two sides, the photoelectric module 2 on the left side detects the line, the main control robot 1 executes a left-turn instruction, and the photoelectric module 2 on the right side has the same principle, so that a tracing effect is achieved.
Note that:
if the master robot 1 cannot detect the input end signal, the master robot 1 does not act;
the light ray module 3 and the photoelectric module 2 can only be used in the same way in pairs and cannot be used in a mixed way.
The utility model discloses not be limited to the embodiment, anybody should learn the structural change who makes under the teaching of the utility model, all with the utility model discloses have the same or close technical scheme, all fall into the utility model discloses an within the protection scope.
The technology, shape and construction parts which are not described in detail in the present invention are all known technology.