An I / O interface circuit, its control method, and an electronic programming robot

Through the design of the I/O interface circuit, the pull-up circuit is controlled by the second I/O port, the diversity and flexibility of the I/O port of the electronic programming robot is realized, the problem of high hardware design costs is solved, and the appearance aesthetics is improved.

CN116414055BActive Publication Date: 2025-07-04SHENZHEN MAKER WORKS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111668451.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-07-04
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing electronic programming robots need to be configured with multiple interfaces to adapt to a variety of external devices, resulting in high hardware design costs and unsightly appearance.

Method used

The I/O interface circuit is adopted, including a connection base and a control circuit, and the pull-up circuit is controlled through the second I/O port to realize the functional changes of the first I/O port, and supports the connection of a variety of peripheral modules to save port resources.

Benefits of technology

It realizes dual reuse of I/O ports, saves port resources, improves the appearance integrity and aesthetics of electronic programming robots, and reduces hardware design costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414055B_ABST
    Figure CN116414055B_ABST
Patent Text Reader

Abstract

The present application provides an I / O interface circuit, a control method thereof, and an electronic programming robot. The I / O interface circuit includes a connection base and a control circuit; the connection base is used for connecting a first type of peripheral module and a second type of peripheral module; the control circuit includes a first I / O port, a second I / O port, and a pull-up circuit; the first I / O port is connected to the connection base; the pull-up circuit is connected to the first I / O port and can pull up the voltage of the first I / O port under the control of the second I / O port; when the first I / O port is used to output a control signal to the first type of peripheral module, the second I / O port controls the pull-up circuit to stop pulling up the voltage of the first I / O port; when the first I / O port is used to interact and communicate signals with the second type of peripheral module, the second I / O port controls the pull-up circuit to pull up the voltage of the first I / O port, so that the first I / O port forms a single-bus signal transmission port. The present application improves the functional diversity of the I / O interface on the electronic programming robot to adapt to a variety of peripheral modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic programming robots, and particularly to an I / O interface circuit, a control method for the I / O interface circuit, and an electronic programming robot. Background Art

[0002] Currently, the types of external devices that cooperate with electronic programming robots are diverse. Therefore, electronic programming robots need to be correspondingly configured with a variety of interfaces to achieve specific interface functions. In the prior art, generally, it is achieved by configuring more MCUs in the electronic programming robot or by expanding the I / O ports, and it is also necessary to reserve ports on the surface of the housing of the electronic programming robot for matching a variety of external devices. Therefore, the hardware design cost is greatly increased.

[0003] The above information disclosed in the background art section is only used to enhance the understanding of the background of this application. Therefore, it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0004] One object of this application is to improve the functional diversity of the I / O interfaces on an electronic programming robot to adapt to a variety of peripheral modules.

[0005] To solve the above technical problems, this application adopts the following technical solutions:

[0006] According to one aspect of this application, this application provides an I / O interface circuit, including:

[0007] A connection base for connecting a first type of peripheral module and a second type of peripheral module;

[0008] A control circuit including a first I / O port, a second I / O port, and a pull-up circuit; the first I / O port is connected to the connection base; the pull-up circuit is connected to the first I / O port and can pull up the voltage of the first I / O port under the control of the second I / O port.

[0009] When the first I / O port is used to output a control signal to the first type of peripheral module, the second I / O port controls the pull-up circuit to stop pulling up the voltage of the first I / O port; when the first I / O port is used to interact with the second type of peripheral module to communicate a signal, the second I / O port controls the pull-up circuit to pull up the voltage of the first I / O port so that the first I / O port forms a single-bus signal transmission port.

[0010] According to an embodiment of the present application, the connection base is further used for connecting a third type of peripheral module; the control circuit further includes a third I / O port, and the third I / O port is connected to the connection base; the pull-up circuit is also connected to the third I / O port;

[0011] When the third I / O port is used to receive the signal input by the third type of peripheral module, the control circuit controls the pull-up circuit to stop pulling up the voltage of the third I / O port and stop receiving the signal on the first I / O port.

[0012] According to an embodiment of the present application, the pull-up circuit includes a switch circuit, a pull-up power supply, and a pull-up resistor;

[0013] One end of the pull-up resistor is connected to the pull-up power supply, and the other end is interconnected with the first I / O port and the second I / O port; the switch circuit has a first end, a second end, and a controlled end; the first end is connected between the pull-up power supply and the pull-up resistor, the second end is grounded, and the controlled end is connected to the second I / O port;

[0014] The second I / O port controls the switch circuit to conduct / turn off by outputting a control signal, so as to control the first I / O port to be connected to the pull-up power supply.

[0015] According to an embodiment of the present application, the switch circuit includes a first switch tube, a second switch tube, a first resistor, and a second resistor;

[0016] The controlled end of the first switch tube is connected to the second I / O port through the first resistor, the first end of the first switch tube is connected to the controlled end of the second switch tube, and the second end of the first switch tube is grounded; the first resistor is connected between the controlled end and the second end of the first switch tube;

[0017] The second end of the second switch tube is connected to the pull-up power supply, the first end of the second switch tube is connected to the first end of the pull-up resistor, and the second resistor is connected between the controlled end and the second end of the second switch tube;

[0018] The second end of the pull-up resistor is connected to the first I / O port and the second I / O port.

[0019] According to an embodiment of the present application, the pull-up circuit further includes an anti-reverse diode, the anode of the anti-reverse diode is connected to the pull-up resistor, and the cathode of the anti-reverse diode is connected to the first I / O port to prevent the signal on the first I / O port from being transmitted to the second switch tube.

[0020] According to an embodiment of the present application, the I / O interface circuit further includes a second input circuit, and the second input circuit is connected between the third I / O port and the first I / O port; the second input circuit includes a third resistor, a fourth resistor, and a first capacitor;

[0021] The third I / O port is interconnected with the second end of the third resistor and the first end of the fourth resistor, and the first end of the third resistor is connected to the first I / O port; the second end of the fourth resistor is grounded through the third resistor;

[0022] The first capacitor is connected between the third I / O port and the ground terminal.

[0023] On the other hand, the present application also proposes a control method for an I / O interface circuit. The I / O interface circuit includes a connector and a control circuit. The control circuit includes a first I / O port, a second I / O port, and a pull-up circuit; the first I / O port is connected to the connector; the pull-up circuit is connected to the first I / O port; the method includes:

[0024] Obtaining the type of the peripheral module connected to the connector;

[0025] When the type of the peripheral module is a first type of peripheral module, configuring the first I / O port to an output working mode for outputting a control signal, and controlling the pull-up circuit to stop pulling up the voltage of the first I / O port through the second I / O port;

[0026] When the type of the peripheral module is a second type of peripheral module, configuring the first I / O port to a single-bus working mode for interacting communication signals with the second type of peripheral module; and controlling the pull-up circuit to pull up the voltage of the first I / O port through the second I / O port.

[0027] According to an embodiment of the present application, the control circuit further includes a third I / O port, and the third I / O port is connected to the connector; the method further includes:

[0028] When the type of the peripheral module is a third type of peripheral module, configuring the third I / O port to an input working mode for receiving signals input by the third type of peripheral module, and controlling the pull-up circuit to stop pulling up the voltage of the second I / O port and stop receiving signals on the first I / O port through the second I / O port.

[0029] On the other hand, the present application also proposes an electronic programming robot, including the I / O interface circuit, wherein the connector is exposed on the surface of the electronic programming robot for connecting a peripheral module.

[0030] According to an embodiment of the present application, a human-computer interaction component is provided on the electronic programming robot. The human-computer interaction component is used for a user to select the type of peripheral module to be connected to the connection base, and a control circuit of the I / O interface circuit controls each I / O port in the I / O interface circuit to work according to the type of the peripheral module.

[0031] In the present application, since the connection base is connected to the first I / O port, when the first I / O port is used to output a control signal to the first type of peripheral module, at this time, the second I / O port outputs a corresponding signal to control the pull-up circuit to stop pulling up the voltage of the first I / O port; at this time, the connection base can be used as an ordinary I / O output type port. When the first I / O port is used to interact and communicate signals with the second type of peripheral module, the second I / O port controls the pull-up circuit to pull up the voltage of the first I / O port, so that the first I / O port forms a single-bus signal transmission port, and at this time, the connection base can be used as a communication port. Therefore, the present application realizes the dual reuse of I / O ports, saving port resources. Moreover, there is no need to separately set ports on the electronic programming robot for connecting the first type of peripheral module and the second type of peripheral module, which is beneficial to improving the integrity and beauty of the appearance of the electronic programming robot.

[0032] It should be understood that the above general description and subsequent detailed description are only exemplary and cannot limit the present application. Description of the Drawings

[0033] By referring to the accompanying drawings and describing its exemplary embodiments in detail, the above and other objectives, features, and advantages of the present application will become more apparent.

[0034] Figure 1 is a circuit structure block diagram of an I / O interface circuit illustrated according to an example.

[0035] Figure 2 is a circuit diagram of an I / O interface circuit illustrated according to an example.

[0036] Figure 3 is a flowchart of a control method for an I / O interface circuit illustrated according to an example;

[0037] Figure 4 is a perspective three-dimensional view of an electronic programming robot illustrated according to an example;

[0038] Figure 5 is a perspective three-dimensional view of an electronic programming robot from another perspective illustrated according to an example. Detailed Description of the Embodiment

[0039] Although the present application can be easily embodied in different forms of embodiments, only some specific embodiments are shown in the drawings and will be described in detail in this specification. At the same time, it can be understood that this specification should be regarded as a demonstration of the principles of the present application and is not intended to limit the present application to what is described herein.

[0040] Accordingly, a feature pointed out in this specification will be used to illustrate one feature of one embodiment of the present application, rather than implying that each embodiment of the present application must have the feature described. In addition, it should be noted that this specification describes many features. Although some features may be combined together to show possible system designs, these features can also be used in other combinations not specifically described. Accordingly, unless otherwise stated, the described combinations are not intended to be limiting.

[0041] In the embodiments shown in the drawings, the indication of directions (such as up, down, left, right, front and back) is used to explain that the structures and movements of various elements of the present application are not absolute but relative. When these elements are in the positions shown in the drawings, these explanations are appropriate. If the descriptions of the positions of these elements change, then the indications of these directions will also change accordingly.

[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this application will be more complete and thorough, and will fully convey the concept of the example embodiments to those skilled in the art. The drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted.

[0043] The preferred embodiments of the present application will be further elaborated in detail below in conjunction with the drawings of this specification.

[0044] Please refer to Figure 1 , Figure 1It is a circuit structure block diagram of an I / O interface circuit illustrated according to an example. This application proposes an I / O interface circuit, which can be provided on various electronic programming robots for the electronic programming robots to connect with peripheral modules. Specifically, the I / O interface circuit includes a connector 13 and a control circuit 11; the connector 13 is used for connecting a first type of peripheral module 21 and a second type of peripheral module 22; the control circuit 11 includes a first I / O port, a second I / O port, and a pull-up circuit 12; the first I / O port is connected to the connector 13; the pull-up circuit 12 is connected to the first I / O port and can pull up the voltage of the first I / O port under the control of the second I / O port; when the first I / O port is used to output a control signal to the first type of peripheral module 21, the second I / O port controls the pull-up circuit 12 to stop pulling up the voltage of the first I / O port; when the first I / O port is used to interact and communicate signals with the second type of peripheral module 22, the second I / O port controls the pull-up circuit 12 to pull up the voltage of the first I / O port so that the first I / O port forms a single-bus signal transmission port.

[0045] Here, the connector 13 is exposed on the surface of the electronic programming robot for the electronic programming robot to physically connect with the peripheral module. In an embodiment, the connector 13 includes three pins. The first pin 1 is used to connect to the first I / O port, the second pin 2 is connected to the power supply to supply power to the peripheral module, and the third pin 3 is grounded. A resistor R5 is provided on the first pin 1 to limit the current at the first pin 1 and avoid burning out the peripheral module with a large current. A resistor R6 and a second capacitor C1 can be provided on the first I / O port to limit the current of the signal output from the first I / O port and filter out the clutter on the first I / O port respectively. A resistor R7 can be provided at the second I / O port to limit the current of the signal output from the second I / O port.

[0046] Here, the first type of peripheral module 21 can be a controlled peripheral module, which is used to receive a control signal or receive data information from the control circuit 11. In some embodiments, the first type of peripheral module 21 can be a servo motor, and the control circuit 11 sends a control signal to the servo motor through the connector 13 to control the rotation of the servo motor. The first type of peripheral module 21 can also be a light strip, and the light strip receives the control signal sent by the control circuit 11 from the connector 13 and emits light according to the control signal. The second type of peripheral module 22 can be an interactive device / component to send a signal to the electronic programming robot of this application or receive a signal from the electronic programming robot. The second type of peripheral module 22 can be a smart terminal or a communication device.

[0047] The control circuit 11 can be a control chip, such as an MCU, a single-chip microcomputer, a DSP, etc. The control circuit 11 generally includes several I / O ports, and the I / O interfaces are used for data exchange with external devices. Most of the I / O interfaces are programmable. The I / O interfaces can be used as parallel interfaces or serial interfaces.

[0048] Since both the first I / O port and the second I / O port are I / O ports, they have all the functions of I / O ports and can have input / output functions under the control of the control circuit 11. In this application, the first I / O port and the second I / O port cooperate with each other to realize the change of the function of the first I / O port, so as to match different types of peripheral modules.

[0049] Specifically, when the first I / O port is used to output a control signal to the first type of peripheral module 21, at this time, the second I / O port outputs a corresponding signal to control the pull-up circuit 12 to stop pulling up the voltage of the first I / O port; at this time, the first I / O port is an ordinary I / O output type port. When the first I / O port is used to interact with the second type of peripheral module 22 for communication signals, the second I / O port controls the pull-up circuit 12 to pull up the voltage of the first I / O port, so that the first I / O port forms a single-bus signal transmission port. The single-bus signal transmission port transmits both clock and data, and the data transmission is bidirectional, with many advantages such as simple resource structure, low cost, convenient bus expansion and maintenance. In this application, the pull-up voltage of the first I / O port is regulated by the second I / O port, so that the first I / O port becomes a single-bus signal transmission port with a single-bus signal transmission function, so as to be able to realize bidirectional signal interaction with the second type of peripheral module 22. Therefore, this application realizes the dual reuse of I / O ports and saves port resources. Moreover, there is no need to separately set a port on the electronic programming robot for the second type of peripheral module 22 to connect, which is beneficial to improving the integrity and beauty of the appearance of the electronic programming robot.

[0050] Please continue to refer to Figure 1 Furthermore, in an embodiment, the connection base 13 is also used for connecting the third type of peripheral module 23; the control circuit 11 further includes a third I / O port, and the third I / O port is connected to the connection base 13; the pull-up circuit 12 is also connected to the third I / O port, and under the control of the second I / O port, it can pull up the voltage of the third I / O port; when the third I / O port is used to receive the signal input by the third type of peripheral module 23, the control circuit 11 controls the pull-up circuit 12 to stop pulling up the voltage of the third I / O port and stop receiving the signal on the first I / O port.

[0051] The third type of peripheral module 23 can be a transmitting device or equipment. For example, a temperature sensor, an image collector, etc. At this time, the third I / O port is used to receive the analog signal sent by the third type of peripheral module 23, so the third I / O port serves as an ADC interface.

[0052] The third I / O port also needs to cooperate with the second I / O port. When the third I / O port is set to work or configured as an input mode, the second I / O port outputs a corresponding signal to control the pull-up circuit 12 to stop pulling up the voltage on the second I / O port, so that the third I / O port still has the input function of a general I / O port.

[0053] Since both the first I / O port and the third I / O port are connected to the connector 13, in order to prevent a signal from being emitted from the pins of the first I / O port, which may affect the electronic programming robot from receiving signals from the third type of peripheral module 23, therefore, in terms of hardware, an isolation circuit can be set. The isolation circuit is set between the first I / O port and the connector 13 to isolate the output of the first I / O port signal. At the same time, it also isolates the signal from the connector 13 from being input through the first I / O port, thus affecting the data processing process of the control circuit 11. It is also possible to set through software that when the third I / O port is working or configured as an input mode, the control circuit 11 does not process the signal on the first I / O port.

[0054] When the first I / O port is configured as an output mode, the second I / O port can be isolated through the isolation circuit to prevent the second I / O port from outputting a signal to the peripheral module, thus interfering with the signal output by the first I / O port. It is also possible to perform a shielding process on the second I / O port through software.

[0055] In summary, in the solution of this application, through the cooperation of the three I / O ports, the function of the I / O port is extended, there is no need to replace the model of the existing control chip, and the flexible use of the I / O port is realized. At the same time, by connecting to the first I / O port and the second I / O port, the connector 13 can realize input, output, and bidirectional communication functions, so that at least three types of peripheral modules can be connected, the function is extended, and the user experience is improved. Moreover, the connector 13 only needs to be connected to the first I / O port and the second I / O port, thus saving the number of pins of the connector 13 and reducing the connection complexity.

[0056] Please refer to Figure 2 , Figure 2It is a circuit diagram of an I / O interface circuit illustrated according to an example. In the foregoing embodiment, it is mentioned that the pull-up circuit 12 is connected to the first I / O port and the second I / O port, so as to be able to pull up the first I / O port and the second I / O port, thereby changing the functions of the first I / O port and the second I / O port to match the communication connection with the second type of peripheral module 22.

[0057] In one embodiment, the pull-up circuit 12 includes a switching circuit, a pull-up power supply, and a pull-up resistor Rp; one end of the pull-up resistor Rp is connected to the pull-up power supply, and the other end is interconnected with the first I / O port and the second I / O port; the switching circuit has a first end, a second end, and a controlled end; the first end is connected between the pull-up power supply and the pull-up resistor Rp, the second end is grounded, and the controlled end is connected to the second I / O port; the second I / O port controls the switching circuit to conduct / turn off by outputting a control signal, so as to control the first I / O port to be connected to the pull-up power supply, thereby forming a single-bus signal transmission port.

[0058] Specifically, in one embodiment, the switching circuit includes a first switching transistor Q1, a second switching transistor Q2, a first resistor R1, and a second resistor R2; the controlled end of the first switching transistor Q1 is connected to the second I / O port through the first resistor R1, the first end of the first switching transistor Q1 is connected to the controlled end of the second switching transistor Q2, and the second end of the first switching transistor Q1 is grounded; the first resistor R1 is connected between the controlled end and the second end of the first switching transistor Q1; the second end of the second switching transistor Q2 is connected to the pull-up power supply, the first end of the second switching transistor Q2 is connected to the first end of the pull-up resistor Rp, and the second resistor R2 is connected between the controlled end and the second end of the second switching transistor Q2; the second end of the pull-up resistor Rp is connected to the first I / O port and the second I / O port. Here, the first switching transistor Q1 and the second switching transistor Q2 can be triodes or MOS transistors.

[0059] Specifically, when the control circuit 11 configures the first I / O port as an output port, at this time, the control circuit 11 makes the second I / O port output a low level, and the first switching transistor Q1 turns off. At this time, the first end of the first switching transistor Q1 is at a high level, so that the second switch is in an off state, and the pull-up power supply cannot provide a pull-up voltage for the first I / O port through the pull-up resistor Rp. Therefore, the first I / O port is an ordinary I / O port to realize its output function.

[0060] When the control circuit 11 configures the first I / O port as a single-bus signal transmission port, at this time, the control circuit 11 makes the second I / O port output a high level, thereby triggering the first switching transistor Q1 to conduct. At this time, the first end of the first switching transistor Q1 is grounded, thereby triggering the second switch to conduct, and the pull-up power supply provides a pull-up voltage for the first I / O port through the pull-up resistor Rp, making it a single-bus signal transmission port.

[0061] Similarly, when the control circuit 11 configures the second I / O port as an input port, the control circuit 11 makes the second I / O port output a low level at this time, and the first switching transistor Q1 is turned off. At this time, the first end of the first switching transistor Q1 is at a high level, so that the second switch is in an off state, and the pull-up power supply cannot provide a pull-up voltage for the second I / O port through the pull-up resistor Rp. Therefore, the second I / O port is a normal I / O port, realizing its input function.

[0062] The second I / O port can also be configured as a single-bus signal transmission port. When the control circuit 11 configures the second I / O port as a single-bus signal transmission port, the control circuit 11 makes the second I / O port output a high level at this time, thereby triggering the first switching transistor Q1 to conduct. At this time, the first end of the first switching transistor Q1 is grounded, thereby triggering the second switch to conduct, and the pull-up power supply provides a pull-up voltage for the second I / O port through the pull-up resistor Rp, making it a single-bus signal transmission port.

[0063] Since the first I / O port is connected to the connector 13, the voltage on the first I / O port will be affected by the voltage of the peripheral module plugged into the connector 13. When there is a voltage on the first I / O port, current backflow may occur when the second switching transistor Q2 is conducting. Therefore, in an embodiment, the pull-up circuit 12 is further provided with an anti-reverse diode D1. The anode of the anti-reverse diode D1 is connected to the pull-up resistor Rp, and the cathode of the anti-reverse diode D1 is connected to the first I / O port and the second I / O port to block the signal on the first I / O port from being transmitted to the second switching transistor Q2.

[0064] In order to protect the third I / O interface from large current impact, in an embodiment, the I / O interface circuit is further provided with a second input circuit. The second input circuit is connected between the third I / O port and the first I / O port; the second input circuit includes a third resistor R3 and a fourth resistor R4; the third I / O port is interconnected with the second end of the third resistor R3 and the first end of the fourth resistor R4, and the first end of the third resistor R3 is connected to the first I / O port; the second end of the fourth resistor R4 is grounded through the third resistor R3. The third resistor R3 and the fourth resistor R4 form a voltage dividing circuit to provide a voltage-divided analog voltage for the third I / O port, effectively protecting the safety of the third I / O port. The second input circuit further includes a first capacitor, and the first capacitor is connected between the third I / O port and the ground terminal to filter out the clutter in the signal input to the third I / O port.

[0065] Please refer to Figure 3 , Figure 3It is a flowchart of a control method for an I / O interface circuit illustrated according to an example. This application also proposes a control method for an I / O interface circuit. The I / O interface circuit includes a connector 13 and a control circuit 11. The control circuit 11 includes a first I / O port, a second I / O port, and a pull-up circuit 12. The first I / O port is connected to the connector 13. The pull-up circuit 12 is connected to the first I / O port. The method includes:

[0066] S31, obtaining the type of the peripheral module connected to the connector 13;

[0067] Here, a human-machine interaction component can be set on the electronic programming robot. The human-machine interaction component is used for the user to select the type of the peripheral module connected to the connector 13. The control circuit 11 configures the function of the first I / O port and the output level of the second I / O port by obtaining the type of the peripheral module, so as to regulate whether the pull-up resistor Rp pulls up the voltage on the first I / O port.

[0068] S32, when the type of the peripheral module is the first type of peripheral module 21, configuring the first I / O port as an output working mode for outputting a control signal, and controlling the pull-up circuit 12 to stop pulling up the voltage of the first I / O port through the second I / O port;

[0069] S33, when the type of the peripheral module is the second type of peripheral module 22, configuring the first I / O port as a single-bus working mode for interacting and communicating signals with the second type of peripheral module 22; and controlling the pull-up circuit 12 to pull up the voltage of the first I / O port through the second I / O port.

[0070] Further, the control method for the I / O interface circuit further includes:

[0071] When the type of the peripheral module is the third type of peripheral module 23, configuring the third I / O port as an input working mode to receive the signal input by the third type of peripheral module 23, and stopping pulling up the voltage of the second I / O port and stopping receiving the signal on the first I / O port.

[0072] The embodiments of the control method for the I / O interface circuit in this application can refer to the embodiments of the I / O interface circuit above.

[0073] Such as Figure 4 and Figure 5, this application also provides an electronic programming robot, which includes the I / O interface circuit in the above embodiments. Among them, the connection base 13 is exposed on the surface of the electronic programming robot for connecting peripheral modules. A human-computer interaction component is provided on the electronic programming robot, and the human-computer interaction component is used for the user to select the type of peripheral module connected to the connection base 13. The control circuit 11 of the I / O interface circuit controls the operation of each I / O port in the I / O interface circuit according to the type of peripheral module. The shape of the electronic programming robot can be in the form of a vehicle or in the form of a robot, which is not limited here. Here, the human-computer interaction component can include a touch screen, buttons, a voice receiving component, a gesture receiving component, etc.

[0074] Before or after inserting the peripheral module, the user can select the type of the peripheral module through the human-computer interaction component, so that the control circuit 11 of the electronic programming robot configures the operation of the first I / O port, the second I / O port, and the third I / O port in the above embodiments, so as to realize normal cooperation with the inserted peripheral module and complete specific functions.

[0075] In one embodiment, as Figure 4 and Figure 5 , the electronic programming robot includes a body and wheels installed on the body. A control circuit board is arranged in the body. The control circuit board can be electrically connected to a touch screen, buttons, a gesture receiving component, an audio player, a small servo, and other mechanical parts, and can also be connected to a light sensor, a temperature sensor, a sound sensor, an ultrasonic sensor, a line-tracking sensor, a gyroscope, etc. through ports. The rich sensors can realize various functions such as data collection, line tracking, and obstacle avoidance. In the design of the interaction between the robot and the user, children can also use the programming software matching the robot to explore and use their imagination. Through programming design, they can control the actions and sounds of the electronic programming robot, etc., so that children can explore the mysteries of robots and programming in the intimate interaction with the robot.

[0076] Although this application has been described with reference to several exemplary embodiments, it should be understood that the terms used are illustrative and exemplary, rather than restrictive. Since this application can be embodied in many forms without departing from the spirit or essence of the invention, it should be understood that the above embodiments are not limited to any of the foregoing details, but should be broadly construed within the spirit and scope defined by the appended claims. Therefore, all changes and modifications falling within the scope of the claims or their equivalents should be covered by the appended claims.

Claims

1. An I / O interface circuit, characterized in that, Comprising: A connection base for connecting a first type of peripheral module, a second type of peripheral module, and a third type of peripheral module; A control circuit including a first I / O port, a second I / O port, a third I / O port, and a pull-up circuit; the first I / O port is connected to the connection base; the third I / O port is connected to the connection base; The pull-up circuit is connected between the first I / O port and the third I / O port, and under the control of the second I / O port, can pull up the voltage of the first I / O port; when the third I / O port is used to receive a signal input by the third type of peripheral module, the control circuit controls the pull-up circuit to stop pulling up the voltage of the third I / O port and stop receiving the signal on the first I / O port; When the first I / O port is used to output a control signal to the first type of peripheral module, the second I / O port controls the pull-up circuit to stop pulling up the voltage of the first I / O port; when the first I / O port is used to interact and communicate signals with the second type of peripheral module, the second I / O port controls the pull-up circuit to pull up the voltage of the first I / O port, so that the first I / O port forms a single-bus signal transmission port; Wherein, the first type of peripheral module includes a controlled peripheral module for receiving a control signal or receiving data information from the control circuit; the second type of peripheral module includes an interactive device or component for sending a signal to or receiving a signal from an electronic programming robot; the third type of peripheral module includes a sending device or equipment.

2. The I / O interface circuit according to claim 1, characterized in that, The pull-up circuit includes a switch circuit, a pull-up power supply, and a pull-up resistor; One end of the pull-up resistor is connected to the pull-up power supply, and the other end is interconnected with the first I / O port and the second I / O port; the switch circuit has a first end, a second end, and a controlled end; the first end is connected between the pull-up power supply and the pull-up resistor, the second end is grounded, and the controlled end is connected to the second I / O port; The second I / O port controls the switch circuit to conduct / turn off by outputting a control signal, thereby controlling the first I / O port to be connected to the pull-up power supply.

3. The I / O interface circuit according to claim 2, characterized in that, The switch circuit includes a first switch tube, a second switch tube, a first resistor, and a second resistor; The controlled end of the first switch tube is connected to the second I / O port through the first resistor, the first end of the first switch tube is connected to the controlled end of the second switch tube, and the second end of the first switch tube is grounded; the first resistor is connected between the controlled end and the second end of the first switch tube; The second end of the second switch tube is connected to the pull-up power supply, the first end of the second switch tube is connected to the first end of the pull-up resistor, and the second resistor is connected between the controlled end and the second end of the second switch tube; The second end of the pull-up resistor is connected to the first I / O port and the second I / O port.

4. The I / O interface circuit according to claim 3, wherein The pull-up circuit further includes an anti-reverse diode. The anode of the anti-reverse diode is connected to the pull-up resistor, and the cathode of the anti-reverse diode is connected to the first I / O port to prevent the signal on the first I / O port from being transmitted to the second switching transistor.

5. The I / O interface circuit according to claim 1, wherein The I / O interface circuit further includes a second input circuit connected between the third I / O port and the first I / O port. The second input circuit includes a third resistor, a fourth resistor, and a first capacitor. The third I / O port is interconnected with the second end of the third resistor and the first end of the fourth resistor. The first end of the third resistor is connected to the first I / O port. The second end of the fourth resistor is grounded through the third resistor. The first capacitor is connected between the third I / O port and the ground terminal.

6. A control method for an I / O interface circuit, characterized in that, The I / O interface circuit includes a connector and a control circuit. The control circuit includes a first I / O port, a second I / O port, a third I / O port, and a pull-up circuit. The first I / O port is connected to the connector. The third I / O port is connected to the connector. The pull-up circuit is connected to the first I / O port. The method includes: Obtaining the type of the peripheral module connected to the connector. When the type of the peripheral module is the first type of peripheral module, configuring the first I / O port in an output working mode for outputting a control signal, and controlling the pull-up circuit to stop pulling up the voltage of the first I / O port through the second I / O port. When the type of the peripheral module is the second type of peripheral module, configuring the first I / O port in a single-bus working mode for interacting with the second type of peripheral module to communicate signals, and controlling the pull-up circuit to pull up the voltage of the first I / O port through the second I / O port. When the type of the peripheral module is the third type of peripheral module, configuring the third I / O port in an input working mode for receiving the signal input by the third type of peripheral module, and controlling the pull-up circuit to stop pulling up the voltage of the second I / O port and stop receiving the signal on the first I / O port through the second I / O port. Wherein, the first type of peripheral module includes a controlled peripheral module for receiving a control signal or data information from the control circuit. The second type of peripheral module includes an interactive device or component for sending a signal to the electronic programming robot or receiving a signal from the electronic programming robot. The third type of peripheral module includes a sending device or equipment.

7. An electronic programming robot, characterized in that, Including the I / O interface circuit according to any one of claims 1 to 5, wherein the connector is exposed on the surface of the electronic programming robot for connection of the peripheral module.

8. The electronic programming robot according to claim 7, wherein, The electronic programming robot is provided with a human-computer interaction component for the user to select the type of the peripheral module connected to the connector, and the control circuit of the I / O interface circuit controls the operation of each I / O port in the I / O interface circuit according to the type of the peripheral module.

Citation Information

Patent Citations

  • Interface multiplexing circuit and desktop robot

    CN211149438U

  • I2C communication circuit and numerical control voltage signal output device

    CN212965789U