CN113359564A - Children bicycle control system and method based on single chip microcomputer - Google Patents

Children bicycle control system and method based on single chip microcomputer Download PDF

Info

Publication number
CN113359564A
CN113359564A CN202110701220.7A CN202110701220A CN113359564A CN 113359564 A CN113359564 A CN 113359564A CN 202110701220 A CN202110701220 A CN 202110701220A CN 113359564 A CN113359564 A CN 113359564A
Authority
CN
China
Prior art keywords
chip microcomputer
single chip
module
bicycle
sensor
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
Application number
CN202110701220.7A
Other languages
Chinese (zh)
Inventor
邹玉英
武忆涵
杨振玲
牛彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changan University
Original Assignee
Changan University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changan University filed Critical Changan University
Priority to CN202110701220.7A priority Critical patent/CN113359564A/en
Publication of CN113359564A publication Critical patent/CN113359564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The invention discloses a children bicycle control system and a method based on a single chip microcomputer, wherein the system is based on a light-operated children intelligent bicycle controlled by the single chip microcomputer and provided with automatic positioning and obstacle detection functions, and the single chip microcomputer is respectively connected with a film pressure sensor, a GPS positioning module, a wireless transceiving module, a photosensitive sensor, an ultrasonic sensor and a temperature and humidity sensor; the single chip microcomputer is connected to an upper computer through a wireless transceiving module; the invention uses STM32 single chip microcomputer as a main core processor, and simultaneously the system carries a plurality of sensors, so as to achieve the effect of intelligent control. The system uses STM32 as a main control chip, is arranged on a bicycle and is a child bicycle device system with light structure and complete functions.

Description

Children bicycle control system and method based on single chip microcomputer
[ technical field ] A method for producing a semiconductor device
The invention belongs to the technical field of embedding, and particularly relates to a child bicycle control system and method based on a single chip microcomputer.
[ background of the invention ]
At present, the following problems mainly exist in children's bicycles: firstly, the existing children bicycle lacks a GPS automatic positioning system, which brings inconvenience for parents to quickly determine the position of a child; secondly, the existing children bicycle adopts a hand brake for braking, the braking force is generally not less than 50N, otherwise, the bicycle can not be braked, so that the children are harmed, and moreover, when the children ride the bicycle with an overlarge model or suddenly meet emergency and need braking during riding, the hand brake can not be held tightly or a braking system fails, so that the children can not brake the bicycle to collide with other people or objects, fall and are injured; thirdly, the product is not provided with a lighting device, so that when the light is dark, the children cannot be reminded of pedestrians in time due to high riding speed, and traffic participants and even the children are injured; fourth, children lack safety awareness and may inadvertently lose their bicycles.
[ summary of the invention ]
The invention aims to overcome the defects of the prior art and provides a child bicycle control system and method based on a single chip microcomputer, so as to solve the problems of potential safety hazards of the existing child bicycle, such as difficulty in intelligent obstacle avoidance and accurate positioning.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
a child bicycle control system based on a single chip microcomputer comprises the single chip microcomputer, wherein the single chip microcomputer is respectively connected with a film pressure sensor, a GPS positioning module, a wireless transceiving module, a photosensitive sensor, an ultrasonic sensor and a temperature and humidity sensor; the single chip microcomputer is connected to an upper computer through a wireless transceiving module;
the single chip microcomputer is respectively connected with an umbrella, a lighting device and a brake brush;
the single chip microcomputer, the film pressure sensor, the GPS positioning module, the wireless transceiving module, the photosensitive sensor, the ultrasonic sensor, the temperature and humidity sensor, the umbrella, the lighting device and the brake brush are all connected to a power supply;
the single chip microcomputer is an STM32F103RCT6 chip.
The invention is further improved in that:
preferably, the GPS positioning module is a UBLOX-6M GPS module, and the UBLOX-6M GPS module is connected with a pin of the single chip microcomputer through a serial port.
Preferably, the wireless transceiver module is an nRF24L01 single-chip radio frequency transceiver device, and the nRF24L01 single-chip radio frequency transceiver device is connected with the single-chip microcomputer through an MOSI module pin.
Preferably, the membrane pressure sensor is an RFP-ZH II membrane pressure sensor, and the RFP-ZH II membrane pressure sensor is connected with the single chip microcomputer through an MCU.
Preferably, the ultrasonic sensor is an HC-SR04 ultrasonic module, and the HC-SR04 ultrasonic module is connected with the single chip microcomputer through a TRIG pin.
Preferably, the temperature and humidity sensor is a DHT11 humidity sensor, and the DHT11 humidity sensor is connected with the single chip microcomputer through a DO end.
Preferably, the ultrasonic sensor is disposed at a front end of the bicycle.
Preferably, the brake brush is provided on a rear wheel of the bicycle.
A method of the child bicycle control system based on the single chip microcomputer comprises the following steps:
step 1, a film pressure sensor detects whether a user is on a seat or not, the detection result is transmitted to a single chip microcomputer, if yes, unlocking is carried out for the next step, and if not, the step 1 is repeated;
step 2, a GPS positioning module collects mobile phone positioning information, a photosensitive sensor collects light information, an ultrasonic sensor collects the distance between the front end of the bicycle and an obstacle, and a temperature and humidity sensor collects environment temperature and humidity information; all the collected information is transmitted to the single chip microcomputer;
step 3, the single chip microcomputer transmits the positioning information to an upper computer through a wireless transceiving module; the single chip microcomputer compares a set light intensity threshold value with light ray information and judges whether the lighting device is started; the single chip microcomputer compares the distance between the front end of the bicycle and the obstacle with a set distance threshold value, and judges whether the bicycle gives an alarm and decelerates; the single chip microcomputer judges whether the umbrella is opened or not by comparing the temperature and humidity information with a set temperature and humidity threshold value;
and 4, repeating the steps 1 to 3 until the riding is finished.
Preferably, in step 2, when the set light intensity threshold is greater than the light information, the lighting device is started, otherwise, the lighting device is not started; when the distance between the front end of the bicycle and the obstacle is larger than a set distance threshold value, the bicycle normally runs, otherwise, an alarm is given and the wheels are braked by a brake brush; and when the temperature is higher than the set temperature or the humidity is higher than the set humidity value, the umbrella is opened for operation, otherwise, the umbrella is normally operated.
Compared with the prior art, the invention has the following beneficial effects:
the invention discloses a children bicycle control system based on a single chip microcomputer, wherein the system is a light-operated children intelligent bicycle which is controlled by the single chip microcomputer and has automatic positioning and obstacle detection functions, and the single chip microcomputer is respectively connected with a film pressure sensor, a GPS positioning module, a wireless transceiving module, a photosensitive sensor, an ultrasonic sensor and a temperature and humidity sensor; the single chip microcomputer is connected to an upper computer through a wireless transceiving module; the invention uses STM32 single chip microcomputer as a main core processor, and simultaneously the system carries a plurality of sensors, so as to achieve the effect of intelligent control. The system uses STM32 as a main control chip, is arranged on a bicycle and is a child bicycle device system with light structure and complete functions.
Furthermore, the UBLOX-6M GPS positioning module is utilized to realize automatic positioning of the bicycle, and high-precision positioning can be realized in places where the common GPS receiving module can not realize positioning;
further, automatic unlocking and locking of the vehicle are realized by using an RFP-ZH II film pressure sensor;
furthermore, automatic illumination is realized by using the photosensitive resistor sensor module, and when a child rides a bicycle in an environment with insufficient light, the photosensitive resistor determines whether to trigger the illumination circuit or not by detecting the light intensity of the external environment, so that the riding safety of the child is ensured;
further, an HC-SR04 ultrasonic sensor is used for realizing automatic obstacle avoidance, and a brake patch is pulled up to decelerate the vehicle;
furthermore, utilize DHT11 humidity transducer automated inspection external environment's temperature and humidity, realize automatic rain-proof sun-proof, when external environment humidity, temperature reach a definite value, the rain-proof sun-proof device of automatic trigger roof prevents that children from being drenched or sunburn.
The invention also discloses a child bicycle control method of the single chip microcomputer, which detects whether a user is on a seat or not through the film pressure sensor, transmits a detection result to the single chip microcomputer, and carries out next step of collecting mobile phone positioning information, light information, distance information with an obstacle, temperature and humidity information of the environment through the single chip microcomputer and carries out next step of operation.
[ description of the drawings ]
FIG. 1 is a control block diagram of the software system of the STM32 single chip microcomputer.
FIG. 2 is a block diagram of the software system flow of the STM32 single chip microcomputer.
Fig. 3 is a schematic diagram of the hardware circuitry of the system of the present invention.
Fig. 4 is a GPS positioning circuit module of the present invention.
Fig. 5 is a nRF24L01 wireless transceiver module of the present invention.
Fig. 6 is a schematic circuit diagram of an RFP-ZH ii membrane pressure sensor module of the present invention.
Fig. 7 is a schematic circuit diagram of a photoresistor sensor module in accordance with the present invention.
Fig. 8 is a schematic diagram of an auto-triggering lighting module of the present invention.
FIG. 9 is an HC-SR04 ultrasonic module of the present invention.
FIG. 10 is a temperature and humidity sensor module of the present invention.
FIG. 11 is a bicycle construction view of the system of the present invention as applied to a bicycle.
1-a lighting device; 2-an ultrasonic sensor; 3-a photosensitive sensor; 4-a seat; 5-a pressure sensor; 6-umbrella; 7-a humidity temperature sensor; 8-a brake brush; 9-a single chip microcomputer; 10-a power supply; 11-a GPS positioning module; 12-wireless transceiver module.
[ detailed description ] embodiments
The invention is described in further detail below with reference to the accompanying drawings:
in the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention; the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance; furthermore, unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly and encompass, for example, both fixed and removable connections; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The utility model provides a children intelligence bicycle based on singlechip 9, its constitution includes host computer and inferior computer, and the host computer adopts cell-phone or computer, and singlechip 9 adopts STM32F103RCT6 chip, and the follow-up STM32 chip of short for short, STM32F103RCT6 chip link to each other with UBLOX-6M GPS orientation module 11, nRF24L01 monolithic wireless transceiver module 12, RFP-ZH II film pressure sensor 5, illumination detection module, HC-SR04 ultrasonic sensor and DHT11 humiture detection module respectively. The lower computer is connected with the wireless transceiving module 12 and the mobile terminal of the mobile phone.
Preferably, children's intelligence bicycle, adopt STM32 singlechip 9 minimum system to constitute singlechip 9 control module, minimum system includes STM32F103RCT6 main chip, clock circuit, reset circuit. The clock circuit of the singlechip 9 is simple and convenient to connect, the pins 5 and 6 of the singlechip 9 are connected with a crystal oscillator in series, two capacitors of 22pF are respectively connected to two sides of the crystal oscillator and grounded, the crystal oscillator adopts 8MHz frequency, and the capacitors at the two sides can also adjust an oscillating circuit in the singlechip 9; the reset circuit uses a power-on reset circuit, the NRST pin of the STM32 singlechip 9 inputs low level, the reset occurs, and the system restarts to operate at the moment.
Preferably, the child intelligent bicycle and the GPS positioning module 11 utilize a UBLOX-6M GPS module, and the UBLOX-6M GPS module has the advantages of being high in sensitivity, low in power consumption, small in size, high in tracking sensitivity and the like. The module is connected with RXD (send data) and TXD (receive data) pins of the STM32 singlechip 9 through a serial port, and GPS positioning information is transmitted to the singlechip 9 by applying an NMEA-0183 protocol through a serial line.
Preferably, in the child intelligent bicycle, the wireless transceiver module 12 adopts an nRF24L01 single-chip radio frequency transceiver device, the operating current is 160mA at 100mW, and the distance is farther than WiFi in data transmission. The module adopts three-state output and is connected to an SPI port of an STM32 chip to realize serial input and output of the SPI. The MOSI module pin on the module is connected with 9SPI1-MOSI of singlechip, realizes SPI serial input, and the SPI1-MISO of MISO pin and STM32 chip is connected and is realized SPI serial output.
Preferably, in the intelligent child bicycle, the RFP-ZH II film pressure sensor 5 can be used for statically and dynamically measuring the pressure of any contact surface, the RFP-ZH II film pressure sensor 5 is used for monitoring the pressure applied to the bicycle seat 4 in real time, the pressure is converted into a resistance signal, and then the STM32 chip is used for obtaining the change information of the external pressure according to the force-resistance calibration relation. The larger the pressure is, the smaller the output resistance is, and the unlocking and locking of the bicycle are realized by adding an automatic control iron rod on the rear wheel of the bicycle. A main MCU (micro control unit) in the RFP-ZHII film pressure sensor 5 is connected with an ADC (analog to digital converter) of an STM32 chip, and unlocking and locking of the bicycle are automatically controlled through the magnitude of current.
Preferably, the intelligent children bicycle is characterized in that the illumination detection module adopts a sensitive photoresistor, the brightness of detected light is adjusted through an adjustable potentiometer, and the output form of the intelligent children bicycle comprises DO digital switching value output and AO analog voltage output. When the ambient light brightness is lower than a set threshold, the DO end outputs a high level, and the lighting device 1 supplies power and shines; when the ambient light exceeds the threshold, the DO end outputs a low level, the lighting device 1 is not on, and the lighting device 1 is a bulb.
Preferably, the child intelligent bicycle uses the HC-SR04 ultrasonic module as the distance measuring module, the module has stable performance and accurate distance measurement, the TRIG pin of the module is connected with the 52 pin of the STM32 singlechip 9, a high-level signal of at least 10 mus is provided for the module, and then the module waits for high-level output at the receiving port. The ECHO pin is connected with the pin 51 of the STM32 singlechip 9, the distance is calculated by the timing time obtained by the timer when the receiving port is changed into low level, when the distance is not in the set range, the distance is considered to meet an obstacle, the buzzer gives an alarm, and the relay controlled by the singlechip 9 can decelerate the bicycle.
Preferably, in the intelligent bicycle for children, the temperature and humidity sensor 7 module is a DHT11 module, the DO end of the DHT11 humidity sensor is connected with a pin 25 of an STM32 chip, humidity change in air is converted into a digital signal, the digital signal is sent to the STM32 chip and then analyzed, and if the humidity change exceeds a threshold value, a port 9 of the single chip microcomputer outputs a high level; otherwise, a low level is output, thereby controlling the rotation of the motor. The motor is connected with the umbrella capable of automatically retracting, so that the device capable of preventing rain and sun by automatically monitoring the outside temperature and humidity is formed.
FIG. 1 is a software system control block diagram of an STM32 chip according to the present invention. The bicycle system mainly monitors the change of data through the sensor, transmits information to the STM32 chip, and through the corresponding algorithm of singlechip 9, realizes functions such as automatic unblock locking, light automatic lighting, rain-proof sun-proof, obstacle avoidance deceleration braking, automatic positioning. The method comprises the following steps that a UBLOX NEO-6M module is utilized to realize a GPS accurate positioning function, and an nRF24L01 radio frequency transceiver is installed to send positioning information to a mobile phone terminal; judging whether the seat is occupied or not by utilizing the pressure value measured by the RFP-ZH II film pressure sensor 5, thereby realizing the functions of automatic unlocking and locking; the light intensity of the external environment is detected by utilizing the photoresistor to control and trigger the automatic lighting module, when the light intensity is lower than a certain threshold value, the lighting circuit is automatically triggered, otherwise, the lighting circuit is automatically closed; the HC-SR04 ultrasonic sensor 2 is used for realizing the automatic obstacle avoidance function, and the brake patch is pulled up to brake the vehicle in a deceleration way; utilize DHT11 humidity temperature sensor ability automated inspection external environment's humidity and temperature to realize automatic rain-proof sun-proof function, when external environment humidity, temperature reach certain threshold, the rain-proof sun-proof device of automatic trigger roof.
FIG. 2 is a block flow diagram of the STM32 chip software system of the present invention. The bicycle system monitors the change of data through the sensor and adopts a parallelization transmission mode to transmit the data. Firstly, detecting whether a person is in a seat or not through a pressure sensor 5, unlocking if the person is in the seat, and entering subsequent detection; if no person is locked, the next cycle is entered. Secondly, the information of GPS, light intensity, distance, temperature, humidity and the like is detected and transmitted simultaneously in a parallel mode, whether the corresponding device is triggered to realize the functions of automatically turning on a light, decelerating and avoiding obstacles, automatically opening an umbrella and the like is determined by judging whether the numerical values of the light intensity, the distance, the temperature, the humidity and the like detected by the sensor reach a threshold value, and meanwhile, the GPS information is wirelessly transmitted to the mobile terminal of the mobile phone.
Fig. 3 is a schematic diagram of the hardware circuitry of the system of the present invention. In the whole system, the STM32F103RCT6 single chip microcomputer 9 plays a key role. The device is composed of the following parts: the first is a pressure detection circuit: the pressure of the current bicycle seat is detected through an RFP-ZH II film pressure sensor 5, and whether a person is on the seat to unlock/lock is automatically identified; the second is a GPS precise positioning and wireless receiving/transmitting circuit: the UBLOX NEO-6M module is connected with the STM32 chip, detected GPS positioning information is transmitted to the single chip microcomputer 9, and the nRF24L01 module receives, processes and transmits the positioning information to the mobile phone terminal; the third is an automatic triggering lighting circuit: the light intensity is detected by adopting a photoresistor sensor, and whether the ambient light brightness reaches a set threshold value is judged by utilizing a wide voltage LM393 comparator, so that the on-off of the car lamp is controlled; the fourth is a temperature and humidity detection circuit: if the current temperature (humidity) exceeds a set threshold, the bicycle automatically opens the umbrella, otherwise, the bicycle automatically closes the umbrella; the fifth is an ultrasonic ranging circuit: the HC-SR04 ultrasonic sensor provides 2 cm-400 cm non-contact distance sensing function, measures the distance to the ground when no obstacle exists, if the distance measured by the module is not in the range, the module can be considered to encounter an obstacle, the buzzer sends out an alarm, the relay controlled by the singlechip 9 works, and the brake pad is tightened to decelerate and brake the vehicle; the sixth is a clock control circuit: the STM32 chip has two groups of crystal oscillators, one group is used for providing a main clock (pin 5: OSC _ IN, pin 6: OSC _ OUT) for the singlechip 9, and the main clock crystal oscillator uses an 8MHz crystal oscillator (for the convenience of internal frequency doubling of a program, the crystal oscillator of 8MHz is generally selected); the other group is used to provide clock for RTC (pin 3: OSC32_ IN, pin 4: OSC32_ OUT), i.e. two capacitors are connected IN series and then connected IN parallel with the crystal to form a crystal oscillator circuit. The STM32 clock circuit is divided into an internal clock mode and an external clock mode, the external clock (main clock) is formed by adding an 8MHz crystal oscillator between OSC _ IN and OSC _ OUT, an internal oscillator of the singlechip 9 can generate self-oscillation to generate a clock signal, and chip capacitors of 20-30 pF are added on two sides of the crystal oscillator to play a role IN finely adjusting the clock frequency, so that the frequency is more stable; the internal clock is generated inside the STM32, and an on-chip oscillating circuit is used, so that an external oscillating device is not needed.
Fig. 4 is a GPS positioning circuit module of the present invention. The GPS positioning module 11 uses a UBLOX 6M module with high sensitivity and low power consumption, the extremely high tracking sensitivity of the UBLOX 6M module greatly enlarges the coverage of GPS positioning, and the UBLOX 6M module can be positioned with high precision in places where a common GPS receiving module can not be positioned, such as narrow urban sky and dense jungle environment. The module is directly connected with RXD pins and TXD pins of an STM32 chip, GPS positioning information is transmitted to the singlechip 9 by using an NMEA-0183 protocol through a serial line, and the information is in a frame form. The STM32 chip can generally transmit information at one time for 15 to 20 frames, and because the module GPS tracking information rate is 5Hz at most, the clock pulse is set to be square wave with 50% duty cycle (one second period) on 32 chips.
Fig. 5 is a nRF24L01 wireless transceiver module 12 of the present invention. The module uses nRF24L01 single-chip radio frequency transceiver to realize longer distance transmission than WiFi, and is more convenient for energy-saving design on children's bicycles. The nRF24L01 module is connected to the SPI port of the 32 chip by using a tri-state output, so that serial output and input of the SPI are realized. When the module transmits positioning data to the mobile phone, the nRF24L01 is firstly configured into a transmission mode, then a receiving node address TX _ ADDR and valid data TX _ PLD are written into an nRF24L01 buffer area by an SPI port according to time sequence, then CE is set to be high level and kept for at least 10 mu s, and data is transmitted after being delayed for 130 mu s; if auto-answer is on, nRF24L01 enters receive mode immediately after transmitting data, receiving an answer signal. If the response is received, the communication is considered to be successful, the TX _ DS is set to be high, and meanwhile the TX _ PLD clears the TX FIFO; if no acknowledgement is received, the data is automatically retransmitted (automatic retransmission is turned on). When the last transmission is successful, if CE is low, nRF24L01 enters idle mode 1; if the sending stack has data and the CE is high, entering next transmission; if there is no data in the transmit stack and CE is high, then idle mode 2 is entered.
When data transmitted by the 32-chip is received, the nRF24L01 is first configured to be in a receiving mode, and then the receiving state is delayed by 130 mus to wait for the data to arrive. When the receiver detects a valid address and CRC, the packet is stored in the RX FIFO with the interrupt flag RX _ DR high and IRQ low, generating an interrupt, informing the MCU to fetch the data. If the automatic response is started at the moment, the receiver simultaneously enters the transmitting state to transmit back the response signal. Finally, if CE goes low, nRF24L01 enters idle mode 1.
The SPI is a synchronous serial communication interface, the maximum transmission rate is 10Mb/s, and low-order bytes are transmitted to the 32 chips firstly and then high-order bytes are transmitted. But for a single byte, the high order bits are sent first and then the low order bits. There are 8 commands associated with the SPI, and these control commands are input by the MOSI of nRF24L01 when used. The corresponding status and data information is output from the MISO to the MCU.
Fig. 6 is a schematic circuit diagram of the module of the RFP-ZH ii membrane pressure sensor 5 of the present invention. RFP membrane pressure sensor 5 can perform both static and dynamic measurements of pressure at any interface. The RFP-611 resistance type film pressure patch is clamped by two pieces of soft cotton and placed below the bicycle seat 4, pressure is converted into a resistance signal through the RPF-ZHHII pressure sensor 5, then the STM32 main control chip obtains change information of the external applied pressure according to a calibration relation curve of force-resistance, and the larger the pressure is, the smaller the resistance output by the sensor is. An automatic control iron rod is added on the rear wheel of the bicycle to realize unlocking and locking of the bicycle. The change of current is obtained through the change of the resistance, and when the current of the ADC (24 pin) rises to a certain value, the main MCU automatically controls the unlocking of the bicycle through an algorithm; when the current of the ADC (24 pin) of the main control chip is reduced to a certain value, the main MCU automatically controls the locking of the bicycle through an algorithm.
Fig. 7 is a schematic circuit diagram of a photoresistor sensor module in accordance with the present invention. The sensitive photoresistor is adopted, the comparator outputs the photosensitive photoresistor, signals are clean, the waveform is good, the driving capability is strong and exceeds 15 mA; the adjustable potentiometer is matched to adjust the brightness of the detected light; the working voltage is 3.3-5V, which is suitable for the working voltage of the singlechip 9; the output form of the sensor is DO digital switching value output (0 and 1) and AO analog voltage output; a wide voltage LM393 comparator is used.
Fig. 8 is a schematic diagram of an auto-triggering lighting module of the present invention. The diode has one-way conductivity to control the circuit. When the ambient light brightness does not reach the set threshold, the DO end outputs high level, and the diode is conducted, so that the 10W bulb is turned on; when the external environment light brightness exceeds a set threshold, the DO end outputs a low level, the diode is not conducted, and the bulb is not lighted. R3 in series with the bulb acts as a current limiting protection for the leds. FIG. 9 is an HC-SR04 ultrasonic module of the present invention. The ultrasonic module HC-SR04 has VCC, GND, TRIG and ECHO four pins, has the non-contact distance sensing function of 2 cm-400 cm, and the distance measurement precision can reach 3 mm. Since the angle of measurement can reach 15 degrees, the device is installed between the front wheel and the axle, so that an oblique angle of about 15 degrees is formed between the front ground and the module. The module firstly inputs a high-level trigger signal of at least 10us to the TRIG pin by the main chip, and the module internally sends out 8 40kHz periodic levels and detects echoes. Once the ECHO signal is detected, the ECHO outputs a high level ECHO signal, at this time, the timer starts to count time, and the value of the timer when the port is changed to a low level is the measured time. The pulse width of the reverberation signal is proportional to the measured distance. The distance X can thus be calculated from the time interval between the transmission of the signal and the reception of the echo: distance X is high level time sound speed (340M/S)/2. And (3) measuring the distance L between the vehicle and the ground when no obstacle exists, taking L-3 cm-L +3cm (+3cm and-3 cm refer to the height of the obstacle), and if the number X measured by the module is not in the range, the vehicle can be considered to encounter the obstacle, and the buzzer can give an alarm to indicate that the vehicle is about to encounter the obstacle, so that a relay controlled by the singlechip 9 works, and the brake pad is tightened to decelerate the vehicle.
Fig. 10 is a temperature and humidity sensor 7 module. The DHT11 humidity sensor is used for sensing humidity change in the environment and converting the humidity change into a humidity signal, the signal is a digital signal, the DHT11 is connected with a data interface of an STM32 chip through a data line of the DHT11, the collected humidity signal is sent to the STM32 chip, the main control single chip microcomputer 9 analyzes and processes the signal after receiving the signal to obtain accurate and reliable humidity data, when the humidity data is higher than a certain value, a motor is started (the PC5 gives a high level), and when the humidity data is lower than the certain value, the motor is stopped (the PC5 gives a low level). The temperature measuring range of the module is 0-50 degrees, when the temperature data is higher than a certain value, the motor is started (PC5 is in a high level state), and when the temperature data is lower than the certain value, the motor is closed (PC5 is in a low level state) 1. An umbrella capable of automatically contracting is installed above the bicycle, the umbrella is contracted by controlling the rotation of a motor through a singlechip 9, when the PC5 is at a high level, the motor is powered, so that umbrella ribs are expanded towards two sides, and when the PC5 is at a low level, the umbrella ribs automatically contract.
Fig. 11 is a conceptual diagram of the general design of the present invention, which mainly includes a GPS module, an STM32, a power supply 10, a photosensor 3, a pressure sensor 5, a brake brush 8, and an ultrasonic sensor 2, wherein the lighting device 1 and the ultrasonic sensor 22 are both disposed at the front end of the bicycle, the photosensor 33 is disposed on the vehicle beam, the membrane pressure sensor 55 is disposed at the lower end of the seat 44 and contacts with the seat 44, the GPS positioning sensor 11 and the wireless transceiver module 1212 are disposed on the vehicle body, but the GPS positioning sensor 11 and the wireless transceiver module 1212 are as close as possible to facilitate the reception and transmission of information, the umbrella 6 is disposed behind the seat 44, the temperature and humidity sensor 711 is disposed on the bracket structure of the umbrella 6, the brake brush 88 is disposed on the rear wheel of the vehicle, and the single chip microcomputer 99 and the power supply 1010 are both disposed on the vehicle beam. 3
Description of the System development Environment: the software is written by using a KEILMDK5 programming language, and the model of the used singlechip 9 is STM32F103RCT 6.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. The children bicycle control system based on the single chip microcomputer is characterized by comprising the single chip microcomputer (9), wherein the single chip microcomputer (9) is respectively connected with a film pressure sensor (5), a GPS positioning module (11), a wireless transceiving module (12), a photosensitive sensor (3), an ultrasonic sensor (2) and a temperature and humidity sensor (11); the single chip microcomputer (9) is connected to an upper computer through a wireless transceiving module (11);
the single chip microcomputer (9) is respectively connected with an umbrella (6), the lighting device (1) and the brake brush (8);
the single chip microcomputer (9), the film pressure sensor (5), the GPS positioning module (11), the wireless transceiving module (11), the photosensitive sensor (3), the ultrasonic sensor (2), the temperature and humidity sensor (11), the umbrella (6), the lighting device (1) and the brake brush (8) are all connected to a power supply (10);
and the singlechip (9) is an STM32F103RCT6 chip.
2. The single-chip microcomputer-based children bicycle control system according to claim 1, wherein the GPS positioning module (11) is a UBLOX-6M GPS module, and the UBLOX-6M GPS module is connected with a pin of the single-chip microcomputer (9) through a serial port.
3. The single-chip microcomputer based children bicycle control system according to claim 1, wherein the wireless transceiver module (11) is an nRF24L01 single-chip radio frequency transceiver device, and the nRF24L01 single-chip radio frequency transceiver device is connected with the single-chip microcomputer (9) through a MOSI module pin.
4. The single-chip microcomputer based children bicycle control system according to claim 1, wherein the membrane pressure sensor (5) is an RFP-ZH II membrane pressure sensor, and the RFP-ZH II membrane pressure sensor is connected with the single-chip microcomputer (9) through an MCU.
5. The children's bicycle control system based on single chip microcomputer of claim 1, wherein the ultrasonic sensor (2) is a HC-SR04 ultrasonic module, and the HC-SR04 ultrasonic module is connected with the single chip microcomputer (9) through a TRIG pin.
6. The children bicycle control system based on the single chip microcomputer of claim 1, wherein the temperature and humidity sensor (11) is a DHT11 humidity sensor, and the DHT11 humidity sensor is connected with the single chip microcomputer (9) through a DO terminal.
7. The one-chip microcomputer based children bicycle control system according to claim 1, wherein the ultrasonic sensor (2) is arranged at the front end of the bicycle.
8. A one-chip microcomputer based child bicycle control system according to claim 1, wherein the brake brush (8) is provided on the rear wheel of the bicycle.
9. A method of controlling a child bicycle based on a single chip microcomputer according to claim 1, comprising the steps of:
step 1, a film pressure sensor (5) detects whether a user is on a seat (4) or not, and transmits a detection result to a single chip microcomputer (9), if yes, unlocking is carried out for the next step, and if not, the step 1 is repeated;
step 2, a GPS positioning module (11) collects mobile phone positioning information, a photosensitive sensor (3) collects light information, an ultrasonic sensor (2) collects the distance between the front end of the bicycle and an obstacle, and a temperature and humidity sensor (11) collects environment temperature and humidity information; all the collected information is transmitted to a singlechip (9);
step 3, the single chip microcomputer (9) transmits the positioning information to an upper computer through a wireless transceiving module (12); the single chip microcomputer (9) compares a set light intensity threshold value with light ray information and judges whether the lighting device (1) is started; the single chip microcomputer (9) compares the distance between the front end of the bicycle and the obstacle with a set distance threshold value, and judges whether the bicycle gives an alarm and decelerates; the single chip microcomputer (9) judges whether to prop the umbrella or not by comparing the temperature and humidity information with a set temperature and humidity threshold value;
and 4, repeating the steps 1 to 3 until the riding is finished.
10. The method for controlling a children's bicycle based on a single chip microcomputer according to claim 9, wherein in step 2, when the set light intensity threshold is greater than the light information, the lighting device (1) is activated, otherwise it is not activated; when the distance between the front end of the bicycle and the obstacle is larger than a set distance threshold value, the bicycle normally runs, otherwise, an alarm is given and the wheels are braked by a brake brush (8); and when the temperature is higher than the set temperature or the humidity is higher than the set humidity value, the umbrella is opened for operation, otherwise, the umbrella is normally operated.
CN202110701220.7A 2021-06-23 2021-06-23 Children bicycle control system and method based on single chip microcomputer Pending CN113359564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110701220.7A CN113359564A (en) 2021-06-23 2021-06-23 Children bicycle control system and method based on single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110701220.7A CN113359564A (en) 2021-06-23 2021-06-23 Children bicycle control system and method based on single chip microcomputer

Publications (1)

Publication Number Publication Date
CN113359564A true CN113359564A (en) 2021-09-07

Family

ID=77536060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110701220.7A Pending CN113359564A (en) 2021-06-23 2021-06-23 Children bicycle control system and method based on single chip microcomputer

Country Status (1)

Country Link
CN (1) CN113359564A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004075456A2 (en) * 2003-02-24 2004-09-02 Dan Gavish Method and apparatus for improving child safety while using a mobile ride-on toy
CN102060020A (en) * 2010-12-24 2011-05-18 上海信祯贸易有限公司 Device and method for automatically controlling safe running of electrical vehicle for children
CN204202621U (en) * 2014-10-31 2015-03-11 西安科技大学 A kind of bicycle code table with sunshade-rain umbrella control circuit
CN104843119A (en) * 2015-04-20 2015-08-19 苏州经贸职业技术学院 Intelligent safety reminder control device for children bicycle
CN105435462A (en) * 2015-12-18 2016-03-30 华侨大学 Automatic detecting, alarming and braking device of electric vehicle for child
CN105936314A (en) * 2016-05-10 2016-09-14 浙江大学 Auto-braking system of child's bicycle when meeting obstacles
CN106248983A (en) * 2016-07-21 2016-12-21 柳州国淘科技有限公司 One has illumination functions bicycle safe monitor and alarm system and control method
CN206704356U (en) * 2017-05-17 2017-12-05 周子涵 A kind of bicycle locking device
CN207584651U (en) * 2017-12-25 2018-07-06 江苏爱玛车业科技有限公司 Lamp group of driving a vehicle and electric vehicle
CN110722584A (en) * 2019-11-13 2020-01-24 徐州普瑞赛思物联网科技有限公司 Intelligent robot's anticollision prevents falling device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004075456A2 (en) * 2003-02-24 2004-09-02 Dan Gavish Method and apparatus for improving child safety while using a mobile ride-on toy
CN102060020A (en) * 2010-12-24 2011-05-18 上海信祯贸易有限公司 Device and method for automatically controlling safe running of electrical vehicle for children
CN204202621U (en) * 2014-10-31 2015-03-11 西安科技大学 A kind of bicycle code table with sunshade-rain umbrella control circuit
CN104843119A (en) * 2015-04-20 2015-08-19 苏州经贸职业技术学院 Intelligent safety reminder control device for children bicycle
CN105435462A (en) * 2015-12-18 2016-03-30 华侨大学 Automatic detecting, alarming and braking device of electric vehicle for child
CN105936314A (en) * 2016-05-10 2016-09-14 浙江大学 Auto-braking system of child's bicycle when meeting obstacles
CN106248983A (en) * 2016-07-21 2016-12-21 柳州国淘科技有限公司 One has illumination functions bicycle safe monitor and alarm system and control method
CN206704356U (en) * 2017-05-17 2017-12-05 周子涵 A kind of bicycle locking device
CN207584651U (en) * 2017-12-25 2018-07-06 江苏爱玛车业科技有限公司 Lamp group of driving a vehicle and electric vehicle
CN110722584A (en) * 2019-11-13 2020-01-24 徐州普瑞赛思物联网科技有限公司 Intelligent robot's anticollision prevents falling device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周兴华,等: "《手把手教你学ARM Cortex-M0基于STM32F0x2系列》", 31 January 2017, 北京航空航天大学出版社 *

Similar Documents

Publication Publication Date Title
CN102404875B (en) Distributed type intelligent wireless image sensor network node equipment
CN205025265U (en) Intelligence window
CN100394902C (en) Intelligent blind person walking guide instrument and its walking guide method
CN110924330A (en) Intelligent parking spot lock control system
CN203861819U (en) Multifunctional fire fighting truck system
CN104484978A (en) Old people on-chair falling alarming system based on Zigbee
CN113359564A (en) Children bicycle control system and method based on single chip microcomputer
WO2022143817A1 (en) Detection and alarm system for living body inside of vehicle
CN205769124U (en) Environment inside car detecting system
CN202615564U (en) School bus detection alarm device
CN204808545U (en) Human body detection device that tumbles based on dual sensor
CN208141623U (en) Night proximity-warning device and night crash bar
CN107804228A (en) A kind of rear-end warning system of hazardous materials transportation vehicle
CN206757399U (en) A kind of obstacle avoidance apparatus
CN211264373U (en) Entrance guard monitoring device and intelligent entrance guard reminding system based on Internet of things
CN209634420U (en) A kind of interior delay children's safety warning device
CN110223532A (en) A kind of Vehicular intelligent detector and intelligent parking space information system
CN206171300U (en) On -vehicle children's security protection ware of intelligence and intelligent on -vehicle children's security protection system
CN210136549U (en) Remote monitoring alarm system based on single chip microcomputer
CN210872446U (en) Multifunctional early warning and help seeking blind guiding stick device
CN207697622U (en) A kind of rear-end warning system of hazardous materials transportation vehicle
CN210181435U (en) Circuit for controlling infrared induction distance based on digital potentiometer
CN214851932U (en) Corridor lamp control circuit based on single chip microcomputer
CN206402215U (en) cover plate assembly and terminal
CN207152760U (en) One kind automatically updates human-computer dialogue intelligent blind-guiding device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210907