CN112785903B - Programming device and method for controlling based on color recognition - Google Patents
Programming device and method for controlling based on color recognition Download PDFInfo
- Publication number
- CN112785903B CN112785903B CN202110214701.5A CN202110214701A CN112785903B CN 112785903 B CN112785903 B CN 112785903B CN 202110214701 A CN202110214701 A CN 202110214701A CN 112785903 B CN112785903 B CN 112785903B
- Authority
- CN
- China
- Prior art keywords
- color
- building block
- instruction
- controller
- programming
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B23/00—Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes
- G09B23/06—Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics
- G09B23/18—Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics for electricity or magnetism
- G09B23/183—Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics for electricity or magnetism for circuits
- G09B23/185—Models for scientific, medical, or mathematical purposes, e.g. full-sized devices for demonstration purposes for physics for electricity or magnetism for circuits for building block systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Algebra (AREA)
- Mathematical Optimization (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Toys (AREA)
Abstract
The invention discloses a programming device and a method for carrying out control based on color identification, which solve the problem that an upper computer is complicated to operate and inconvenient to use in the prior art. According to the invention, by utilizing the color recognition technology, the complexity of using an upper computer for programming is avoided when the young children learn programming, so that the children are more attentive, the interestingness is enhanced, and the eyes of the children can be better protected by using a scene of an electronic screen.
Description
Technical Field
The invention relates to the technical field of programming, in particular to a programming device for controlling based on color identification.
Background
With the rapid development of programming technology, children of low age now also begin to learn programming. For intelligent hardware programming in the education field, an intelligent hardware control program is mainly written through text codes or graphic codes, a PC/PAD is required to be used as an upper computer, and in some education fields, the form of programming by using an electronic screen or the upper computer is not suitable.
Disclosure of Invention
The invention provides a programming device for controlling based on color identification, which aims to solve the problems of complexity and inconvenience in operation of an upper computer in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
the utility model provides a programming device based on colour discernment is controlled, which comprises a base, instruction building blocks and actuating mechanism, be equipped with shell control panel on the base, be equipped with a plurality of building blocks slots on the shell control panel, be equipped with colour sensor in the building blocks slot, instruction building blocks surface scribbles the colour coating, instruction building blocks detachably installs in the building blocks slot, inside interconnect's singlechip, communication module, power module and the controller of still being equipped with of base, the singlechip is connected with colour sensor, communication module is connected with actuating mechanism.
According to the invention, the execution mechanism is controlled by adopting a building block splicing and inserting mode control program, so that the complexity of using an upper computer to program is eliminated when the young children learn programming, the children are more concentrated, the interestingness is enhanced, and the situation that an electronic screen is used is avoided, and the eyes of the children can be better protected.
Preferably, the color sensor is communicated with the single chip microcomputer through a serial bus, and the color coating corresponds to code data.
Preferably, the communication module is connected with the actuating mechanism through Bluetooth.
Preferably, the actuator comprises a robot, an LED lamp and a buzzer.
Preferably, the single chip microcomputer is further connected with a light sensor.
Preferably, an event coding area is arranged on the shell control panel.
A programming method for controlling based on color recognition, comprising the steps of:
s1, instructing a building block to be inserted into a building block slot;
s2, reading the color of the color coating on the surface of the instruction building block by the color sensor and sending the color to the controller through a serial bus;
s3, distinguishing the functions of the instruction building blocks according to the color data and forming a control logic instruction by the controller;
and S4, the controller sends the control logic command to an execution mechanism for execution.
Preferably, the control logic instruction in S3 is triggered by an event coding region.
Therefore, the invention has the following beneficial effects:
1. according to the invention, the execution mechanism is controlled by adopting a building block splicing and inserting mode control program, so that the complexity of using an upper computer for programming is eliminated when the young children learn programming, the children are more attentive, the interestingness is enhanced, and the situation that the eyes of the children can be better protected by using a scene of an electronic screen is avoided;
2. by utilizing a color identification technology, setting colors for the instruction building blocks to coat color coatings, reading color information of the instruction building blocks by the color identification sensor, converting the color information into control logic instructions, and sending the control logic instructions to the execution mechanism for execution by the controller;
3. logic judgment content is arranged in advance on the event coding area and is triggered by the instruction building block, the controller is triggered to generate a control logic instruction, the control logic instruction is sent to the execution mechanism to operate, the whole process only needs to control the instruction building block to be placed into the building block slot, complex functions are achieved through simple actions, and the integration level is high.
Drawings
Fig. 1 is a schematic structural diagram of the present embodiment.
Fig. 2 is a circuit diagram of the present embodiment.
Fig. 3 is a schematic structural diagram of the control panel of the housing according to the embodiment.
Fig. 4 is a partially disassembled structural schematic diagram of the present embodiment.
Fig. 5 is a schematic structural diagram of an event encoding region according to the present embodiment.
FIG. 6 is a schematic view of example 2.
In the figure: 1. the system comprises a base 11, a shell control panel 12, building block slots 13, an event coding area 2, an instruction building block 3, an executing mechanism 31, a robot 4, a single chip microcomputer 5, a communication module 6, a power supply module 7, a light sensor 8, a controller 9, a control switch 10 and a power switch.
Detailed Description
The invention is further described with reference to the following detailed description and accompanying drawings.
Example 1:
the embodiment provides a programming device for controlling based on color identification, which comprises a base 1, an instruction building block 2 and an executing mechanism 3, wherein a shell control panel 11 is arranged on the base 1, a plurality of building block slots 12 are arranged on the shell control panel 11, color sensors are arranged in the building block slots 12, a color coating is coated on the surface of the instruction building block 2, the instruction building block 2 is detachably arranged in the building block slots 12, a singlechip 4, a communication module 5, a power supply module 6 and a controller 8 which are mutually connected are also arranged in the base 1, the singlechip 4 is connected with the color sensors, and the communication module 5 is connected with the executing mechanism 3; the color sensor communicates with the single chip microcomputer 4 through a serial bus, the color coating corresponds to code data, the communication module 5 is connected with the execution mechanism 3 through Bluetooth, the execution mechanism 3 comprises a robot, an LED lamp and a buzzer, the single chip microcomputer 4 is further connected with the light sensor 7, the shell control panel 11 is provided with an event coding area 13, the surgical control panel 11 is further provided with a control switch 9, and the outer side wall of the base 1 is provided with a power supply annual house 10.
The invention also correspondingly provides a programming method based on color identification for control, which comprises the following steps:
s1, instructing a building block to be inserted into a building block slot;
s2, reading the color of the color coating on the surface of the instruction building block by the color sensor and sending the color to the controller through the serial bus;
s3, distinguishing the functions of the instruction building blocks according to the color data and forming a control logic instruction by the controller;
s4, the controller sends the control logic command to an execution mechanism to execute;
wherein, the control logic instruction in S3 is triggered by the event coding area.
The working principle of the invention is as follows: the main body is divided into two parts, namely a base and an instruction building block, wherein the instruction building block is placed in a building block slot of the base, a color coating on the surface of the instruction building block is identified through a color sensor and is sent to a controller through a serial bus and Bluetooth, the color coatings on the surfaces of the instruction building blocks are different, different color coatings correspond to different codes, and a program algorithm of the controller distinguishes functions of the instruction building block according to information corresponding to the colors of the instruction building block, forms a control logic instruction and sends the control logic instruction to an execution mechanism to operate.
The instruction building block is changed into an materialization, the logic is in advance, namely the sequential structure, in order to realize the logic judgment function, the invention introduces an event programming mechanism and starts from an event coding area; and writing a sensor event trigger program in the event coding area to replace a logic judgment statement. In this embodiment, the light sensor is required to control the on and off of the LED lamp, a programming mode of logic judgment is used, if 8230is used, otherwise 8230is used, the light sensor value is judged to control the LED, and two instruction blocks corresponding to "when the light is less than X" and "turn on" are programmed in the event coding region, where X is 50 in this embodiment, and the turn on instruction of the LED lamp is executed when the light is less than 50.
Example 2:
the execution mechanism of the embodiment adopts a robot, the rest of the settings are the same as the embodiment, building block slots 12 which are arranged in sequence are arranged on a shell control panel 11 of a base 1, a color sensor for instructing building blocks 2 to be put into the building block slots 12 to read the colors of the building blocks is arranged, a controller forms code information according to the types of codes represented by the colors to form a control logic instruction and sends the control logic instruction to the robot 31 through Bluetooth communication, and the robot runs the code information to move forward, backward, left and right/turn.
According to the invention, the execution mechanism is controlled by using a splicing and inserting mode control program of building blocks by using a color recognition technology, so that the complexity of using upper computer programming is eliminated when the young children learn programming, the children are more attentive, the interestingness is enhanced, the eyes of the children can be better protected by using a scene of an electronic screen, the event coding region is provided with logic judgment contents in advance, the logic judgment contents are triggered by the instruction building blocks and trigger the controller to generate control logic instructions to be handed to the execution mechanism to operate, the whole process only needs to control the instruction building blocks to be placed in the building block slots, the complex functions are realized by simple actions, and the integration level is high.
The above embodiments are described in detail for the purpose of further illustrating the present invention and should not be construed as limiting the scope of the present invention, and the skilled engineer can make insubstantial modifications and variations of the present invention based on the above disclosure.
Claims (6)
1. A programming device based on color identification for control is characterized by comprising a base (1), an instruction building block (2) and an execution mechanism (3), wherein a shell control panel (11) is arranged on the base (1), a plurality of building block slots (12) are formed in the shell control panel (11), a color sensor is arranged in each building block slot (12), a color coating is coated on the surface of the instruction building block (2), the instruction building block (2) is detachably installed in each building block slot (12), a singlechip (4), a communication module (5), a power supply module (6) and a controller (8) which are connected with one another are further arranged in the base (1), the singlechip (4) is connected with the color sensor, and the communication module (5) is connected with the execution mechanism (3); the executing mechanism (3) comprises a robot, an LED lamp and a buzzer, and the color sensor is communicated with the singlechip (4) through a serial bus; an event coding area (13) is arranged on the shell control panel (11); the controller (8) distinguishes the functions of the instruction building blocks (2) according to the color data and forms control logic instructions; the control logic instructions are triggered by an event coding region (13); a sensor event trigger program is written in the event coding region (13) to replace a logic judgment statement, or logic judgment content is set in advance on the event coding region (13) and is triggered by an instruction building block, and a controller (8) is triggered to generate a control logic instruction to be sent to an execution mechanism (3) for operation.
2. The programming device for controlling based on color recognition as claimed in claim 1, wherein the color coating layer corresponds to code data.
3. A programming device for control based on colour recognition according to claim 1, characterised in that the communication module (5) is connected to the actuator (3) via bluetooth.
4. The programming device for controlling based on color identification according to claim 1, wherein the single chip microcomputer (4) is further connected with a light sensor (7).
5. A programming method for performing control based on color recognition, which uses the programming apparatus for performing control based on color recognition as claimed in claim 1, comprising the steps of:
s1, instructing a building block to be inserted into a building block slot;
s2, reading the color of the color coating on the surface of the instruction building block by the color sensor and sending the color to the controller through a serial bus;
s3, distinguishing the functions of the instruction building blocks according to the color data and forming a control logic instruction by the controller;
and S4, the controller sends the control logic command to an execution mechanism to execute.
6. The method as claimed in claim 5, wherein the control logic command in S3 is triggered by the event coding region.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2020105394522 | 2020-06-14 | ||
CN202010539452.2A CN111722838A (en) | 2020-06-14 | 2020-06-14 | Programming device for controlling robot movement based on color recognition |
CN202010545040X | 2020-06-15 | ||
CN202010545040.XA CN111710222A (en) | 2020-06-15 | 2020-06-15 | Programming device for controlling intelligent hardware based on color recognition |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112785903A CN112785903A (en) | 2021-05-11 |
CN112785903B true CN112785903B (en) | 2022-10-25 |
Family
ID=75761922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110214701.5A Active CN112785903B (en) | 2020-06-14 | 2021-02-25 | Programming device and method for controlling based on color recognition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112785903B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115019569B (en) * | 2022-06-02 | 2023-05-02 | 广西科技大学 | Educational aid for improving color recognition capability of children |
CN116954122A (en) * | 2023-07-27 | 2023-10-27 | 上海鲸鱼机器人科技有限公司 | Programming device and method based on serial identification code instruction |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106139614A (en) * | 2016-07-22 | 2016-11-23 | 苏州乐派特机器人有限公司 | A kind of method for gaming utilizing material objectization programming operation to carry out |
CN108986596A (en) * | 2018-09-11 | 2018-12-11 | 芜湖蓝宙电子科技有限公司 | A kind of liftable STEAM education program component of sensor |
CN109814875A (en) * | 2017-12-12 | 2019-05-28 | 上海葡萄纬度科技有限公司 | Program the method and system reversely programmed, the equipment, medium of toy |
US10304353B1 (en) * | 2016-08-15 | 2019-05-28 | Delfin Lozano | Tray-and-block apparatus for device programming |
DE102018109882A1 (en) * | 2018-04-24 | 2019-10-24 | Kinematics Gmbh | System for programming |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7316567B2 (en) * | 2003-08-01 | 2008-01-08 | Jennifer Chia-Jen Hsieh | Physical programming toy |
CN102136208B (en) * | 2011-03-30 | 2013-01-09 | 中国科学院软件研究所 | Material object programming method and system |
JP6176870B2 (en) * | 2016-01-05 | 2017-08-09 | 株式会社セガ トイズ | Coding toy, block, stage, figurine toy and coding method |
JP6321066B2 (en) * | 2016-03-10 | 2018-05-09 | 株式会社デザイニウム | Apparatus, method and program for programming learning |
CN207286688U (en) * | 2017-06-13 | 2018-05-01 | 杭州小目标电子科技有限公司 | It is a kind of be used to may be programmed building blocks model build component |
CN107886782A (en) * | 2017-11-15 | 2018-04-06 | 方昆阳 | A kind of character and voice system based on building-block jigsaw in kind programming |
KR20200008871A (en) * | 2018-07-17 | 2020-01-29 | 주식회사 에드토이 | Color block recognition device applied to coding education system for children |
CN110838255A (en) * | 2018-08-19 | 2020-02-25 | 王威立 | Building block type programming language system |
CN109830144A (en) * | 2019-02-21 | 2019-05-31 | 北京敏思创想软件技术有限公司 | Programmable component and its implementation are taught in a kind of joy |
-
2021
- 2021-02-25 CN CN202110214701.5A patent/CN112785903B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106139614A (en) * | 2016-07-22 | 2016-11-23 | 苏州乐派特机器人有限公司 | A kind of method for gaming utilizing material objectization programming operation to carry out |
US10304353B1 (en) * | 2016-08-15 | 2019-05-28 | Delfin Lozano | Tray-and-block apparatus for device programming |
CN109814875A (en) * | 2017-12-12 | 2019-05-28 | 上海葡萄纬度科技有限公司 | Program the method and system reversely programmed, the equipment, medium of toy |
DE102018109882A1 (en) * | 2018-04-24 | 2019-10-24 | Kinematics Gmbh | System for programming |
CN108986596A (en) * | 2018-09-11 | 2018-12-11 | 芜湖蓝宙电子科技有限公司 | A kind of liftable STEAM education program component of sensor |
Also Published As
Publication number | Publication date |
---|---|
CN112785903A (en) | 2021-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112785903B (en) | Programming device and method for controlling based on color recognition | |
CN112801250B (en) | Programming device and method for controlling by adopting radio frequency | |
CN112775977B (en) | Programming device and method for controlling based on resistance | |
CN111240242A (en) | Materialized programming system and method | |
CN111710222A (en) | Programming device for controlling intelligent hardware based on color recognition | |
KR20120130420A (en) | Programming block assembly, robot system operated by program using the same, and programming method thereof | |
KR20170053185A (en) | Motion control system for block kits using motion cards, and thereof method | |
CN102289981A (en) | Programmable learning type robot | |
CN108508812B (en) | AGV controller IO port multiplexing configuration system and method thereof | |
CN108230828A (en) | A kind of material objectization programing system and programmed method | |
KR20030012488A (en) | Training system for microrobot control program and method thereof | |
CN111722838A (en) | Programming device for controlling robot movement based on color recognition | |
CN206795850U (en) | A kind of novel intelligent controls anthropomorphic robot | |
EP3631588B1 (en) | Modular control device | |
CN111722836A (en) | Programming device for controlling robot movement by adopting electromagnetic induction | |
CN106541413A (en) | Based on Arduino platforms and the underwater robot control system of machine vision module | |
CN101303630B (en) | Wireless control device and multiple indexes control method | |
CN208506542U (en) | A kind of AGV controller I/O port multiplexing configuration system | |
CN114055482A (en) | Multi-module education robot suite | |
CN109686350A (en) | A kind of SCM Based modular portable music percussion pad | |
CN202096722U (en) | Programmable learning robot | |
CN213667911U (en) | Toy car | |
CN101893856B (en) | Relay board and control method and device thereof | |
CN209729493U (en) | A kind of SCM Based modular portable music percussion pad | |
CN107678605A (en) | A kind of programmable touch key-press display device based on ARM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |