CN116056276A - A control system and control method for an electronic cigarette indicator light based on a random number generator - Google Patents
A control system and control method for an electronic cigarette indicator light based on a random number generator Download PDFInfo
- Publication number
- CN116056276A CN116056276A CN202211310973.6A CN202211310973A CN116056276A CN 116056276 A CN116056276 A CN 116056276A CN 202211310973 A CN202211310973 A CN 202211310973A CN 116056276 A CN116056276 A CN 116056276A
- Authority
- CN
- China
- Prior art keywords
- random number
- indicator light
- number generator
- control system
- electronic cigarette
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/40—Constructional details, e.g. connection of cartridges and battery parts
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/50—Control or monitoring
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/50—Control or monitoring
- A24F40/51—Arrangement of sensors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/58—Random or pseudo-random number generators
- G06F7/588—Random number generators, i.e. based on natural stochastic processes
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
- H05B45/37—Converter circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Illuminated Signs And Luminous Advertising (AREA)
Abstract
本发明公开了一种基于随机数发生器的电子烟指示灯控制系统,包括:随机数发生器、主控芯片和指示灯;其中所述随机数发生器用于随机产生自然数发送给主控芯片,主控芯片通过自然数的信号控制指示灯的开断,每颗指示灯的开断或发光颜色为独立控制,指示灯的开断或发光颜色或其组合能组成一系列有意义的信号。本发明提供的控制系统使指示灯亮灯的数量或颜色产生了随机性,大大增加了把玩性和趣味性,给使用的消费者带来新的乐趣,有效提高了消费者的使用体验。
The invention discloses an electronic cigarette indicator light control system based on a random number generator, comprising: a random number generator, a main control chip and an indicator light; wherein the random number generator is used to randomly generate natural numbers and send them to the main control chip, The main control chip controls the on-off of the indicator light through the signal of natural number. The on-off or light-emitting color of each indicator light is independently controlled. The off-off or light-emitting color of the indicator light or its combination can form a series of meaningful signals. The control system provided by the invention makes the number or color of the indicator lights random, greatly increases the playability and interest, brings new fun to consumers, and effectively improves the consumer experience.
Description
技术领域technical field
本发明电子烟技术领域,特别涉及一种基于随机数发生器的电子烟指示灯的控制系统。The technical field of the electronic cigarette of the present invention particularly relates to a control system of an electronic cigarette indicator light based on a random number generator.
背景技术Background technique
近年来,电子烟在国内外的应用已经越来越广泛。通常情况下,每个电子烟产品会有一颗或数颗指示灯(例如LED指示灯),用于表征电池电量信号或电子烟工作状态。现有技术文件中,CN 210043206U,LED灯通过控制系统实现电子烟工作状态的显示。In recent years, the application of electronic cigarettes at home and abroad has become more and more extensive. Usually, each electronic cigarette product has one or several indicator lights (such as LED indicators), which are used to represent the battery power signal or the working status of the electronic cigarette. In the prior art document, CN 210043206U, the LED lamp realizes the display of the working state of the electronic cigarette through the control system.
技术文件CN 106649048 A中,公布了一种LED灯的控制方法,该方法是通过处理器执行存储装置中的特定指令,实现对指示灯控制系统的特定状态的实现。In the technical document CN 106649048 A, a method for controlling LED lamps is disclosed. The method implements a specific state of the indicator light control system by executing specific instructions in the storage device through a processor.
目前,针对指示灯的控制系统的技术方案都是使指示系统实现某种特定的指示状态,传递特定的工作状态或者特定信号,这固然有助于消费者了解电子烟的工作状态,但偏于严肃刻板,缺乏把玩性和趣味性,对消费者或客户的吸引力有待提升。At present, the technical solutions for the control system of the indicator light are all to enable the indicator system to achieve a specific indication state and transmit a specific working state or a specific signal, which certainly helps consumers understand the working state of the electronic cigarette, but it is biased Serious and rigid, lacking in playfulness and fun, the appeal to consumers or customers needs to be improved.
发明内容Contents of the invention
本发明第一方面提供了一种基于随机数发生器的电子烟指示灯控制系统,其包括:随机数发生器、主控芯片和指示灯;其中所述随机数发生器用于随机产生自然数发送给主控芯片,主控芯片通过自然数的信号控制指示灯的开断,每颗指示灯的开断或发光颜色为独立控制,指示灯的开断或发光颜色或其组合能组成一系列有意义的信号。The first aspect of the present invention provides an electronic cigarette indicator light control system based on a random number generator, which includes: a random number generator, a main control chip and an indicator light; wherein the random number generator is used to randomly generate natural numbers and send them to The main control chip, the main control chip controls the on-off of the indicator light through the signal of natural number, the off-off or luminous color of each indicator light is controlled independently, and the on-off or luminous color of the indicator light or its combination can form a series of meaningful Signal.
本发明中的随机数发生器可以响应用户按键来产生,例如用户每按键一次就产生一个随机数。The random number generator in the present invention can be generated in response to the user pressing a key, for example, a random number is generated every time the user presses a key.
优选地,所述随机数发生器是传感器,该传感器用于感知外部信号并将感知到的信号转换为电信号,外部信号可以是压力信号、声音信号、光信号、电信号或气流信号的至少一种或其组合,将传感器所感测的某个用户随机动作产生的物理量的数值作为随机数来源得到所述随机数。此时传感器与随机数发生器是合二为一的,即所述传感器本身就是随机数发生器。Preferably, the random number generator is a sensor, which is used to sense an external signal and convert the sensed signal into an electrical signal. The external signal can be at least one of a pressure signal, an acoustic signal, an optical signal, an electrical signal or an airflow signal. One or a combination thereof, the random number is obtained by using the numerical value of a physical quantity generated by a user's random action sensed by the sensor as a source of the random number. At this moment, the sensor and the random number generator are combined into one, that is, the sensor itself is the random number generator.
或者,该电子烟指示灯控制系统还包括独立于所述随机数发生器而存在的传感器,所述传感器将该电信号传输给所述随机数发生器,所述随机数发生器基于接收到传感器的电信号来产生随机产生一个自然数并将该数字发送给主控芯片进行运算。Alternatively, the electronic cigarette indicator light control system further includes a sensor that exists independently of the random number generator, and the sensor transmits the electrical signal to the random number generator, and the random number generator receives the sensor based on The electrical signal is used to generate a natural number at random and send the number to the main control chip for calculation.
优选地,主控芯片通过随机数发生器的信号控制指示灯的开断或发光颜色;Preferably, the main control chip controls the on-off or light-emitting color of the indicator light through the signal of the random number generator;
其中,随机数发生器可以是一个独立的实物元件,也可以是主控芯片中的一段程序代码。Wherein, the random number generator can be an independent physical component, or a section of program code in the main control chip.
其中,所述指示灯的颗数为≥2的自然数,且各个所述指示灯的开断或发光颜色通过主控芯片独立控制。Wherein, the number of the indicator lights is a natural number ≥ 2, and the on-off or light-emitting color of each indicator light is independently controlled by the main control chip.
本发明第二方面提供了一种基于随机数发生器的电子烟指示灯控制方法,所述方法使用根据本发明第一方面所述的基于随机数发生器的电子烟指示灯控制系统。The second aspect of the present invention provides a random number generator-based electronic cigarette indicator light control method, which uses the random number generator-based electronic cigarette indicator light control system according to the first aspect of the present invention.
所述电子烟指示灯的个数为自然数M,所述主控芯片用随机数发生器随机产生的自然数除以M取余数,并通过以下规则控制指示灯:余数为1至M-1时,余数是几则几个指示灯亮,余数为0时则M个指示灯全亮。例如,所述电子烟指示灯的个数为六个,所述主控芯片用随机数发生器随机产生的自然数除以六取余数,并通过以下规则控制指示灯:余数为1至5时,余数是几则几个指示灯亮,余数为0时则六个指示灯全亮。The number of the electronic cigarette indicator lights is a natural number M, the main control chip divides the natural number randomly generated by the random number generator by M to get the remainder, and controls the indicator lights according to the following rules: when the remainder is 1 to M-1, The remainder is how many indicator lights are on, and when the remainder is 0, all M indicator lights are on. For example, the number of the electronic cigarette indicator lights is six, and the main control chip divides the natural number randomly generated by the random number generator by six to get the remainder, and controls the indicator lights according to the following rules: when the remainder is 1 to 5, The remainder is how many indicator lights are on, and when the remainder is 0, all six indicator lights are on.
本发明的上述技术特征在不矛盾的情况下可以自由组合。The above-mentioned technical features of the present invention can be freely combined under the condition of no contradiction.
本发明具有以下有益效果:The present invention has the following beneficial effects:
本发明提供的控制系统使指示灯亮灯的数量或颜色产生了随机性,而随机性因其不可预测性和不可控制性,会给消费者增加了把玩性和趣味性,给使用的消费者带来新的乐趣,有效提高了消费者的使用体验。The control system provided by the present invention makes the quantity or color of the indicator lights random, and because of its unpredictability and uncontrollability, the randomness will increase the playfulness and interest of the consumers, and bring joy to the consumers who use it. Bring new fun, effectively improve the consumer experience.
现实生活中充满了利用随机性来决定事情的案例,最常见的类型是各种棋类比赛中的奇偶猜先或比大小猜先、各种多人桌游中的掷骰子、各种决定娱乐性输赢的随机性锤子-剪子-布游戏、彩票开奖摇号、餐馆中的随机点菜、抓阄等等,都充满了随机性和趣味性,都可以采用本发明。Real life is full of cases where randomness is used to decide things. The most common types are odd-even guessing or ratio guessing in various chess games, dice throwing in various multiplayer board games, and various decision entertainments. Hammer-scissors-cloth games, lottery lottery lottery numbers, random ordering in restaurants, lottery, etc., are full of randomness and fun, and the present invention can be used.
本发明的优选实施方案中,基于传感器测到的信号值,例如用户用电子烟烟具敲击桌面时产生的振动压力值、用户抽吸动作产生气流压差值、用户对着电子烟烟具咳嗽一下产生的分贝值等,来产生一个随机数,进而控制指示灯通断或颜色,大大提高了用户参与性和趣味性。In a preferred embodiment of the present invention, based on the signal value measured by the sensor, for example, the vibration pressure value generated when the user taps the table with the electronic cigarette appliance, the airflow pressure difference value generated by the user's puffing action, the user coughing at the electronic cigarette appliance Generated decibel values, etc., to generate a random number, and then control the on-off or color of the indicator light, which greatly improves user participation and fun.
附图说明Description of drawings
图1为一种基于随机数发生器的电子烟指示灯的控制系统原理框架。Figure 1 is a schematic framework of a control system for an electronic cigarette indicator light based on a random number generator.
图2为实施例1的电路原理图。FIG. 2 is a schematic circuit diagram of
附图标记:1-传感器,2-随机数发生器,3-主控芯片,4-指示灯,5-指示灯驱动。Reference signs: 1 - sensor, 2 - random number generator, 3 - main control chip, 4 - indicator light, 5 - indicator light drive.
具体实施方式Detailed ways
下面通过具体实施方式进一步说明本发明的内容。The content of the present invention will be further described below through specific embodiments.
实施例1Example 1
本实施例相当于给电子烟上装上了一个“电子骰子”。This embodiment is equivalent to installing an "electronic dice" on the electronic cigarette.
如图2所示,一种基于随机数发生器的电子烟指示灯的控制系统,所述控制系统包括:传感器1、随机数发生器2、主控芯片3、LED指示灯4;As shown in Figure 2, a control system of an electronic cigarette indicator light based on a random number generator, the control system includes: a
所述传感器为震动传感器1。The sensor is a
当震动传感器1受到振动或敲击作用时,可将该信号转换为电信号,传输给随机数发生器2。信号传输内容不限,可以是以ON/OFF模式单纯控制随机数发生器的启动与否,启动则随机产生一个;也可以是将具体检测到的震动压力值传递给随机数发生器,随机数发生器基于该震动压力值经过特定规则或不特定规则的运算来随机产生一个自然数。When the
随机数发生器2接受到电信号后,产生一个随机的自然数m,并将m传输给主控芯片。After receiving the electrical signal, the
主控芯片对m进行运算,运算方式为将其除以6求余数,得到余数n。The main control chip performs an operation on m, and the operation method is to divide it by 6 to find the remainder, and obtain the remainder n.
LED灯的数量为6颗,当余数为1至5时,余数是几则几个指示灯亮,余数为0时则六个指示灯全亮。The number of LED lights is 6. When the remainder is 1 to 5, several indicator lights are on, and when the remainder is 0, all six indicator lights are on.
当然,其中传感器1也可以省略,纯靠用户按某个特定的按键来启动随机数发生器。Of course, the
对应的控制系统原理框架图和电路图如图1和图2所示,当然这也仅仅是示范性的,完全还可以有其他等效方法。The corresponding principle frame diagram and circuit diagram of the control system are shown in Fig. 1 and Fig. 2 , of course, this is only exemplary, and other equivalent methods are completely possible.
实施例2Example 2
本实施例相当于给电子烟上装上了一个电子版的“锤子-剪子-布”发生器。This embodiment is equivalent to installing an electronic version of the "hammer-scissors-cloth" generator on the electronic cigarette.
如图2所示,一种基于随机数发生器的电子烟指示灯的控制系统,所述控制系统包括:传感器1、随机数发生器2、主控芯片3、指示灯4;As shown in Figure 2, a control system for an electronic cigarette indicator light based on a random number generator, the control system includes: a
所述传感器为加速度传感器1。The sensor is an
当用户晃动电子烟并骤停时(这个动作模拟了用户做出手势时的动作,非常符合用户习惯),该传感器将骤停时的加速度信号转换为电信号,传输给随机数发生器2。When the user shakes the e-cigarette and stops suddenly (this action simulates the action when the user makes a gesture, which is very in line with the user's habits), the sensor converts the acceleration signal at the time of the sudden stop into an electrical signal and transmits it to the
随机数发生器2接受到电信号后,产生一个随机的自然数m,并将m传输给主控芯片。After receiving the electrical signal, the
主控芯片对m进行运算,运算方式为将其除以3求余数,得到余数n。The main control chip performs an operation on m, and the operation method is to divide it by 3 to obtain the remainder, and obtain the remainder n.
LED灯的数量为3颗,当余数为1时,1个指示灯亮起,余数为2时2个指示灯亮起,余数为0时则3个指示灯全亮,用户之间可例如预先约定1个灯亮代表锤子,2个灯亮代表剪子,3个灯亮代表步,由此决定输赢,这种约定完全可以由用户自行设定。The number of LED lights is 3. When the remainder is 1, 1 indicator light is on, when the remainder is 2, 2 indicator lights are on, and when the remainder is 0, all 3 indicator lights are on. Users can pre-arrange 1 One light on represents a hammer, two lights on represent scissors, and three lights on represent a step, which determines the winner or loser. This agreement can be set by the user.
以上具体实施方式仅举例说明本发明,但不打算对本发明做任何限定,事实上,技术人员基于本发明的创意还可以设定更多玩法及其所对应的随机数产生方案和指示灯控制方案,因此,本发明的实际保护范围应该以权利要求中的高度抽象概括为准。The specific implementation above is only an example to illustrate the present invention, but it is not intended to limit the present invention in any way. In fact, based on the creativity of the present invention, technicians can also set more playing methods and corresponding random number generation schemes and indicator light control schemes. Therefore, the actual protection scope of the present invention should be based on the highly abstract summary in the claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211310973.6A CN116056276A (en) | 2022-10-25 | 2022-10-25 | A control system and control method for an electronic cigarette indicator light based on a random number generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211310973.6A CN116056276A (en) | 2022-10-25 | 2022-10-25 | A control system and control method for an electronic cigarette indicator light based on a random number generator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116056276A true CN116056276A (en) | 2023-05-02 |
Family
ID=86130100
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211310973.6A Pending CN116056276A (en) | 2022-10-25 | 2022-10-25 | A control system and control method for an electronic cigarette indicator light based on a random number generator |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116056276A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN204134187U (en) * | 2014-10-28 | 2015-02-04 | 洪伟涛 | Electronic dice cup |
| CN204682523U (en) * | 2012-08-21 | 2015-10-07 | 惠州市吉瑞科技有限公司 | Electronic cigarette device |
| CN207799832U (en) * | 2018-01-08 | 2018-08-31 | 哈尔滨理工大学 | It is a kind of to light lamp system applied to the random of contest |
| CN219459336U (en) * | 2022-10-25 | 2023-08-01 | 深圳市博迪科技开发有限公司 | Electronic cigarette indicator lamp control system based on random number generator and electronic cigarette |
-
2022
- 2022-10-25 CN CN202211310973.6A patent/CN116056276A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN204682523U (en) * | 2012-08-21 | 2015-10-07 | 惠州市吉瑞科技有限公司 | Electronic cigarette device |
| CN204134187U (en) * | 2014-10-28 | 2015-02-04 | 洪伟涛 | Electronic dice cup |
| CN207799832U (en) * | 2018-01-08 | 2018-08-31 | 哈尔滨理工大学 | It is a kind of to light lamp system applied to the random of contest |
| CN219459336U (en) * | 2022-10-25 | 2023-08-01 | 深圳市博迪科技开发有限公司 | Electronic cigarette indicator lamp control system based on random number generator and electronic cigarette |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3333773B2 (en) | GAME DEVICE, GAME DEVICE CONTROL METHOD, AND INFORMATION STORAGE MEDIUM | |
| JP6535354B2 (en) | Gaming machine | |
| JP6262528B2 (en) | Program and server system | |
| JP5259548B2 (en) | Game machine | |
| JP2002035427A5 (en) | ||
| WO2008046009A3 (en) | Methods and apparatus for enhanced interactive game play in lottery and gameing environments | |
| JP2018038895A (en) | Program and server system | |
| CN219459336U (en) | Electronic cigarette indicator lamp control system based on random number generator and electronic cigarette | |
| JP2009082337A (en) | Game machine | |
| JP3899107B2 (en) | GAME SYSTEM AND GAME INFORMATION CONTROL METHOD | |
| JP2010162078A (en) | Game system | |
| CN116056276A (en) | A control system and control method for an electronic cigarette indicator light based on a random number generator | |
| US11673056B2 (en) | Computer system, server system, and game system | |
| JP2009254406A (en) | Game apparatus and game program | |
| JP2014198169A (en) | Server system | |
| JP2022099970A (en) | Computer system, game system, and program | |
| JP2019165879A (en) | program | |
| CN2424813Y (en) | Controls for interactive electronic toys | |
| CN203223750U (en) | Game lamp with function of dicing | |
| CN113730903B (en) | Realistic toy system | |
| US8469823B2 (en) | Method and apparatus for generating special effects | |
| JP2018038894A (en) | Program and server system | |
| US20210236941A1 (en) | Computer system and game system | |
| CN104100910A (en) | Dice game desk lamp | |
| JP6521927B2 (en) | Gaming machine |
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 |