CN112785903A - 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
- CN112785903A CN112785903A CN202110214701.5A CN202110214701A CN112785903A CN 112785903 A CN112785903 A CN 112785903A CN 202110214701 A CN202110214701 A CN 202110214701A CN 112785903 A CN112785903 A CN 112785903A
- Authority
- CN
- China
- Prior art keywords
- color
- building blocks
- instruction
- programming
- colour
- 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.)
- Granted
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 controlling based on color identification, which solve the problem of complicated operation and inconvenient use of an upper computer 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 the form of programming by using an electronic screen or the upper computer is not suitable in some education fields.
Disclosure of Invention
The invention provides a programming device for controlling based on color recognition, which aims to solve the problems of complicated operation and inconvenient use 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 actuator by 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, the shell control panel is provided with an event coding area.
A programming method for controlling based on color recognition, comprising the steps of:
s1, instructing the building blocks to be inserted into the building block slots;
s2, the color sensor reads the color of the color coating on the surface of the instruction building block and sends the color to the controller through the serial bus;
s3, distinguishing the function 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 the execution mechanism to execute.
Preferably, the control logic command 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 splicing and inserting mode control program of building blocks, so that the complexity of programming by using an upper computer is eliminated when the young children learn programming, the children are more concentrated, the interestingness is enhanced, and the situation that the eyes of the children can be better protected by using 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 to be 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, a color sensor is arranged in each building block slot 21, a color coating is coated on the surface of each instruction building block 2, the instruction building block 2 is detachably installed in each building block slot 21, a singlechip 4, a communication module 5, a power supply module 6 and a controller 8 which are connected with one another are also arranged in the base 1, the singlechip 4 is connected with the color sensor, 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 the building blocks to be inserted into the building block slots;
s2, the color sensor reads the color of the color coating on the surface of the instruction building block and sends the color to the controller through the serial bus;
s3, distinguishing the function 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 the execution mechanism to execute;
wherein, the control logic instruction in the 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 the function of the instruction building block according to information corresponding to the color of the instruction building block and forms a control logic instruction to be sent to an execution mechanism to run.
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 instead of 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, the light sensor value is judged to control the LED by using "if … or …", two instruction blocks corresponding to "when the light is less than X" and "turn on the light" 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 (8)
1. The utility model provides a programming device based on colour discernment is controlled, which is characterized by, including base (1), instruction building blocks (2) and actuating mechanism (3), be equipped with shell control panel (11) on base (1), be equipped with a plurality of building blocks slot (12) on shell control panel (11), be equipped with color sensor in building blocks slot (21), instruction building blocks (2) surface scribbles the colour coating, instruction building blocks (2) detachably installs in building blocks slot (21), base (1) inside still is equipped with interconnect's singlechip (4), communication module (5), power module (6) and controller (8), singlechip (4) are connected with color sensor, communication module (5) are connected with actuating mechanism (3).
2. A programming device for control based on colour recognition, according to claim 1, characterized in that the colour sensor communicates with the single-chip microcomputer (4) via a serial bus, the colour coating corresponding to the 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. A programming device for control based on colour recognition according to claim 1 or 3, characterized in that the actuators (3) comprise a robot, a LED light and a buzzer.
5. The programming device for controlling based on color identification as claimed in claim 1, wherein the single chip microcomputer (4) is further connected with a light sensor (7).
6. A programming device for control based on color recognition according to claim 1, characterized in that the housing control panel (11) is provided with an event code area (13).
7. A programming method for performing control based on color recognition, which uses the programming apparatus for performing control based on color recognition according to claim 1, comprising the steps of:
s1, instructing the building blocks to be inserted into the building block slots;
s2, the color sensor reads the color of the color coating on the surface of the instruction building block and sends the color to the controller through the serial bus;
s3, distinguishing the function 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 the execution mechanism to execute.
8. The programming method for controlling based on color recognition according to claim 1, wherein the control logic command in S3 is triggered by an event code area.
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 |
CN202010545040.XA CN111710222A (en) | 2020-06-15 | 2020-06-15 | Programming device for controlling intelligent hardware based on color recognition |
CN202010545040X | 2020-06-15 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112785903A true CN112785903A (en) | 2021-05-11 |
CN112785903B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115019569A (en) * | 2022-06-02 | 2022-09-06 | 广西科技大学 | A educational teaching aid for improving children's colour discernment ability |
CN116954122A (en) * | 2023-07-27 | 2023-10-27 | 上海鲸鱼机器人科技有限公司 | Programming device and method based on serial identification code instruction |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050026537A1 (en) * | 2003-08-01 | 2005-02-03 | Hsieh Jennifer Chia-Jen | Physical programming toy |
CN102136208A (en) * | 2011-03-30 | 2011-07-27 | 中国科学院软件研究所 | Material object programming method and system |
CN106139614A (en) * | 2016-07-22 | 2016-11-23 | 苏州乐派特机器人有限公司 | A kind of method for gaming utilizing material objectization programming operation to carry out |
JP2017161770A (en) * | 2016-03-10 | 2017-09-14 | 株式会社デザイニウム | Device, method, and program for programming learning |
CN107886782A (en) * | 2017-11-15 | 2018-04-06 | 方昆阳 | A kind of character and voice system based on building-block jigsaw in kind programming |
CN207286688U (en) * | 2017-06-13 | 2018-05-01 | 杭州小目标电子科技有限公司 | It is a kind of be used to may be programmed building blocks model build component |
CN108472550A (en) * | 2016-01-05 | 2018-08-31 | 世嘉玩具有限公司 | Encode toy, block, platform, vivid body toys and coding method |
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 |
CN109830144A (en) * | 2019-02-21 | 2019-05-31 | 北京敏思创想软件技术有限公司 | Programmable component and its implementation are taught in a kind of joy |
DE102018109882A1 (en) * | 2018-04-24 | 2019-10-24 | Kinematics Gmbh | System for 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 |
-
2021
- 2021-02-25 CN CN202110214701.5A patent/CN112785903B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050026537A1 (en) * | 2003-08-01 | 2005-02-03 | Hsieh Jennifer Chia-Jen | Physical programming toy |
CN102136208A (en) * | 2011-03-30 | 2011-07-27 | 中国科学院软件研究所 | Material object programming method and system |
CN108472550A (en) * | 2016-01-05 | 2018-08-31 | 世嘉玩具有限公司 | Encode toy, block, platform, vivid body toys and coding method |
JP2017161770A (en) * | 2016-03-10 | 2017-09-14 | 株式会社デザイニウム | Device, method, and program for programming learning |
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 |
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 |
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 |
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 |
CN108986596A (en) * | 2018-09-11 | 2018-12-11 | 芜湖蓝宙电子科技有限公司 | A kind of liftable STEAM education program component of sensor |
CN109830144A (en) * | 2019-02-21 | 2019-05-31 | 北京敏思创想软件技术有限公司 | Programmable component and its implementation are taught in a kind of joy |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115019569A (en) * | 2022-06-02 | 2022-09-06 | 广西科技大学 | A educational teaching aid for improving children's colour discernment ability |
CN116954122A (en) * | 2023-07-27 | 2023-10-27 | 上海鲸鱼机器人科技有限公司 | Programming device and method based on serial identification code instruction |
Also Published As
Publication number | Publication date |
---|---|
CN112785903B (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112801250B (en) | Programming device and method for controlling by adopting radio frequency | |
CN112785903B (en) | Programming device and method for controlling based on color recognition | |
CN111240242A (en) | Materialized programming system and method | |
CN111710222A (en) | Programming device for controlling intelligent hardware based on color recognition | |
CN112775977B (en) | Programming device and method for controlling based on resistance | |
CN103456203A (en) | Portable physical programming method and system | |
KR20170053185A (en) | Motion control system for block kits using motion cards, and thereof method | |
CN108508812B (en) | AGV controller IO port multiplexing configuration system and method thereof | |
CN102289981A (en) | Programmable learning type robot | |
CN111722838A (en) | Programming device for controlling robot movement based on color recognition | |
CN109831858A (en) | A kind of intelligent illuminating system | |
CN109545035A (en) | The graphical hardware programming compatible system of more interacting messages and method | |
CN206795850U (en) | A kind of novel intelligent controls anthropomorphic robot | |
EP3631588B1 (en) | Modular control device | |
CN208819395U (en) | A kind of intelligent interactive learning machine and its system | |
CN101303630B (en) | Wireless control device and multiple indexes control method | |
CN208506542U (en) | A kind of AGV controller I/O port multiplexing configuration system | |
CN107315368A (en) | A kind of 96 holes auxiliary sample adding device | |
CN114055482A (en) | Multi-module education robot suite | |
CN207067717U (en) | A kind of 96 holes auxiliary sample adding device | |
CN202096722U (en) | Programmable learning robot | |
CN205255011U (en) | Small -size intelligent robot | |
CN109834713B (en) | Control center of humanoid brain robot and control center of humanoid brain walking robot | |
CN209729493U (en) | A kind of SCM Based modular portable music percussion pad | |
CN112764733A (en) | Programming device and method for controlling by adopting electromagnetic induction |
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 |