Summary of the invention
The purpose of the present invention is to provide a kind of wireless downloading development board based on Arduino, it is intended to solution make mobile phone or
Computer etc. is connected with what the equipment of Bluetooth function can be convenient with development board, and developer is facilitated to carry out exploitation use to development board
The technical issues of.
The invention is realized in this way a kind of wireless downloading development board based on Arduino, described based on Arduino's
Wireless downloading development board includes pcb board, and the pcb board is equipped with main control module, bluetooth module, inversed module, serial ports modulus of conversion
Block, power supply interface conversion module, Voltage stabilizing module, I/O interface module and DC MOTOR CONTROL module, the bluetooth module connect institute
Main control module two-way communication is stated, the connection status output end of the bluetooth module connects the input terminal of the inversed module, described
The output end of inversed module connects the RESET input of the main control module, and the main control module connects the serial ports conversion module
Two-way communication, the I/O interface module connect the main control module two-way communication, and the power supply interface conversion module is electrically connected
The Voltage stabilizing module, the output end of the main control module connect the input terminal of the DC MOTOR CONTROL module, the pressure stabilizing mould
Block is electrically connected bluetooth module, I/O interface module, main control module, inversed module, DC MOTOR CONTROL module and serial ports and turns
Change the mold block.
A further technical solution of the present invention is: the interface modular converter includes that USB turns serial port unit and USB public affairs mouth B
Type interface, the USB public affairs mouth Type B interface connect the USB and turn serial port unit two-way communication.
A further technical solution of the present invention is: the I/O interface module includes first interface unit and second interface list
Member, the first interface unit and second interface unit are respectively arranged on the both sides on the pcb board, the first interface unit with
The second interface unit is parallel.
A further technical solution of the present invention is: the main control module include chip U1, capacitor C4, capacitor C1, capacitor C2,
Resistance R1 and crystal oscillator Y1, capacitor C18, resistance R15, the 6th of connecting terminal P5 and key switch S2, the chip U1 the, 4,18 feet
The one end and power supply+5V, the 20th foot of the chip U1 for being separately connected the capacitor C4 are grounded through the capacitor C18, the core
The 8th foot of piece U1 is separately connected one end of one end of the resistance R1, one end of crystal oscillator Y1 and capacitor C1, and the of the chip U1
7 feet are separately connected one end of the other end of the resistance R1, the other end of crystal oscillator Y1 and capacitor C2, the 29th foot of the chip U1
It is separately connected one end of 1 foot of the connecting terminal P5, one end of resistance R15 and key switch S2, the resistance R15's is another
End connection power supply+5V, the 30th foot of the chip U1 connect 3 feet of the connecting terminal P5, and the 31st foot of the chip U1 connects
Connect 2 feet of the connecting terminal P5.
A further technical solution of the present invention is: the bluetooth module includes chip U6, resistance R4 and light emitting diode D1,
The 24th foot of the chip U2 connects the anode of the light emitting diode D1, the yin of the light emitting diode D1 through the resistance R4
Pole ground connection.
A further technical solution of the present invention is: the wireless downloading development board based on Arduino further includes power supply electricity
Source, the power supply are electrically connected the pcb board.
A further technical solution of the present invention is: the inversed module includes resistance R3, resistance R2, capacitor C3 and triode
Q1, the base stage of the triode Q1 connect one end of the resistance R3, and the emitter of the triode Q1 is separately connected the electricity
Hinder one end of R2 and one end of capacitor C3.
A further technical solution of the present invention is: the serial ports conversion module include chip U2, diode D2, resistance R16,
Capacitor C6, capacitor C7, capacitor C8, crystal oscillator Y2, capacitor C5, resistance R14, capacitor C20 and USB interface X1, the 3rd of the chip U2 the
Foot connects the cathode of the diode D2, and the 4th foot of the chip U2 connects one end of the resistance R16, the chip U6's
5th foot connects one end of the capacitor C16, and the 8th foot of the chip U2 connects the other end of the capacitor C6, the chip U2
The 9th foot be separately connected one end of the crystal oscillator Y2 and one end of capacitor C8, the 10th foot of the chip U2 is separately connected described
16th foot of the other end of crystal oscillator Y2 and one end of capacitor C7, the chip U2 is separately connected one end and the electricity of the resistance R14
Hold one end of C20, the 19th foot of the chip U2 is separately connected one end and the power supply+5V of the capacitor C5, the USB interface X1
The 1st foot connect one end of the resistance R5, the other end of the resistance R5 connects power supply+5V.
A further technical solution of the present invention is: the Voltage stabilizing module includes 5V voltage regulation unit and 3.3V voltage regulation unit, institute
The output end for stating 5V voltage regulation unit connects the input terminal of the 3.3V voltage regulation unit, and the 5V voltage regulation unit includes chip L1, electricity
Hold C9, capacitor C11, inductance L2, capacitor C10, capacitor C12 and voltage-stabiliser tube VD1, the 1st foot of the chip L1 is separately connected described
2nd foot of the anode of capacitor C9 and one end of capacitor C11, the chip L1 is separately connected the cathode and electricity of the voltage-stabiliser tube VD1
The one end for feeling L2 exports 5V voltage, and the 4th foot of the chip L1 is being separately connected the other end of the inductance L2, capacitor C10 just
Pole, one end of capacitor C12 and power supply+5V.
A further technical solution of the present invention is: the 3.3V voltage regulation unit include chip U7, capacitor C15, capacitor C13 and
Capacitor C14, the 1st foot of the chip U7 are separately connected the 3rd foot and power supply+5V of one end of the capacitor C15, chip U7, institute
The 2nd foot for stating chip U7 is separately connected the other end and the ground connection of the capacitor C15, and the 4th foot of the chip U7 is through the capacitor
C14 ground connection, the 5th foot of the chip U7 are separately connected one end and the output voltage 3.3V of the capacitor C13.
A further technical solution of the present invention is: the DC MOTOR CONTROL module includes chip U4, chip U5, capacitor
C16, capacitor C17, connecting terminal E1 and connecting terminal E2, the 1st foot of the chip U4 connect the connecting terminal E1+wiring
Column, the 4th foot of the chip U4 connect the connecting terminal E1-binding post, the chip U4 the 2nd, 3 feet be separately connected electricity
One end of pressure+5V and the capacitor C16, the 1st foot of the chip U5 connect the connecting terminal E2+binding post, the core
The 4th foot of piece U5 connect the connecting terminal E2-binding post, the chip U5 the 2nd, 3 feet be separately connected voltage+5V and institute
State one end of capacitor C17, the other end of the capacitor C16, the other end of capacitor C17, the 5th of chip U4 the, 8 feet and chip U5
5th, 8 feet are grounded respectively.
Another object of the present invention is to provide a kind of wireless downloadings for the wireless downloading development board based on Arduino
Method, the wireless downloading method the following steps are included:
S1, starting development board and computer establish connection, judge that development board establishes whether connection succeeds with computer, under then executing in this way
One step, if not, return step S1,;
S2, that the program of development board blue lamp will be lighted in Arduino IDE is corresponding in development board selection Arduino UNO selection
Bluetooth serial ports number uploads;
S3, it checks whether Arduino IDE uploads and successfully prompts, if any prompt, then observing bluetooth indicator light on development board is
Whether no extinguishing, development board have reset, and whether development board blue LED lights, and are such as all, then the success of program wireless downloading, such as
It does not prompt, then checks whether development board model and serial port are selected pair, if so, other failures are then checked for, if not,
Return step S1.
The beneficial effects of the present invention are: development board, on the basis of retaining original Arduino UNO development board function, compatibility is opened
The USB data line that connect with computer of hair plate and using wireless transmission method, greatly facilitate developer's progress program development and
Debugging, enhances the mobility of mainboard;Wireless blue tooth development board based on Arduino has been compatible with former Arduino UNO exploitation
USB data line that plate is connect with computer simultaneously uses wireless transmission method, greatly facilitates developer and carries out program development and adjust
Examination, compared with other similar product, mobile phone or computer end with Bluetooth function is can be used in this development board, can be with this
Development board connection directly carries out program downloading and debugging using Arduino IDE, without separately installing any software, can also make
It is downloaded with special downloading wire.
Specific embodiment
As shown in figs. 1-11, the wireless downloading development board provided by the invention based on Arduino, it is described to be based on Arduino
Wireless downloading development board include pcb board, the pcb board be equipped with main control module, bluetooth module, inversed module, serial ports conversion
Module, power supply interface conversion module, Voltage stabilizing module, I/O interface module and DC MOTOR CONTROL module, the bluetooth module connection
The main control module two-way communication, the connection status output end of the bluetooth module connect the input terminal of the inversed module, institute
The output end for stating inversed module connects the RESET input of the main control module, and the main control module connects the serial ports modulus of conversion
Block two-way communication, the I/O interface module connect the main control module two-way communication, and the power supply interface conversion module electrically connects
The Voltage stabilizing module is connect, the output end of the main control module connects the input terminal of the DC MOTOR CONTROL module, the pressure stabilizing
Bluetooth module, I/O interface module, main control module, inversed module, DC MOTOR CONTROL module and serial ports is electrically connected in module
Conversion module.Development board saves what development board was connect with computer on the basis of retaining original Arduino UNO development board function
USB data line and use wireless transmission method, greatly facilitate developer carry out program development and debugging, enhance mainboard
Mobility.
The interface modular converter includes that USB turns serial port unit and USB public affairs mouth Type B interface, the USB public affairs mouth Type B interface
It connects the USB and turns serial port unit two-way communication.
The I/O interface module includes first interface unit and second interface unit, and the first interface unit and second connect
Mouth unit is respectively arranged on the both sides on the pcb board, and the first interface unit is parallel with the second interface unit.
The main control module includes chip U1, capacitor C4, capacitor C1, capacitor C2, resistance R1 and crystal oscillator Y1, capacitor C18, electricity
Resistance R15, the 6th of connecting terminal P5 and key switch S2, the chip U1 the, 4,18 feet be separately connected the capacitor C4 one end and
Power supply+5V, the 20th foot of the chip U1 are grounded through the capacitor C18, and the 8th foot of the chip U1 is separately connected the resistance
7th foot of one end of one end of R1, one end of crystal oscillator Y1 and capacitor C1, the chip U1 is separately connected the another of the resistance R1
It holds, one end of the other end of crystal oscillator Y1 and capacitor C2, the 29th foot of the chip U1 is separately connected the 1 of the connecting terminal P5
The other end of one end of foot, one end of resistance R15 and key switch S2, the resistance R15 connects power supply+5V, the chip U1
The 30th foot connect 3 feet of the connecting terminal P5, the 31st foot of the chip U1 connects 2 feet of the connecting terminal P5.
The bluetooth module includes described in the 24th foot warp of chip U6, resistance R4 and light emitting diode D1, the chip U2
Resistance R4 connects the anode of the light emitting diode D1, the minus earth of the light emitting diode D1.
The wireless downloading development board based on Arduino further includes power supply, and the power supply is electrically connected institute
State pcb board.
The inversed module includes the base stage connection of resistance R3, resistance R2, capacitor C3 and triode Q1, the triode Q1
One end of the resistance R3, the emitter of the triode Q1 are separately connected one end of the resistance R2 and one end of capacitor C3.
The serial ports conversion module includes chip U2, diode D2, resistance R16, capacitor C6, capacitor C7, capacitor C8, crystal oscillator
Y2, capacitor C5, resistance R14, capacitor C20 and USB interface X1, the chip U2 the 3rd foot connect the cathode of the diode D2,
The 4th foot of the chip U2 connects one end of the resistance R16, and the 5th foot of the chip U6 connects the one of the capacitor C16
End, the 8th foot of the chip U2 connect the other end of the capacitor C6, and the 9th foot of the chip U2 is separately connected the crystal oscillator
One end of Y2 and one end of capacitor C8, the 10th foot of the chip U2 are separately connected the other end and capacitor C7 of the crystal oscillator Y2
One end, the 16th foot of the chip U2 are separately connected one end of the resistance R14 and one end of capacitor C20, the chip U2's
19th foot is separately connected one end and the power supply+5V of the capacitor C5, and the 1st foot of the USB interface X1 connects the resistance R5's
The other end of one end, the resistance R5 connects power supply+5V.
The Voltage stabilizing module includes 5V voltage regulation unit and 3.3V voltage regulation unit, and the output end of the 5V voltage regulation unit connects institute
State the input terminal of 3.3V voltage regulation unit.
The 5V voltage regulation unit includes chip L1, capacitor C9, capacitor C11, inductance L2, capacitor C10, capacitor C12 and pressure stabilizing
Pipe VD1, the 1st foot of the chip L1 are separately connected the anode of the capacitor C9 and one end of capacitor C11, and the of the chip L1
2 feet are separately connected the cathode of the voltage-stabiliser tube VD1 and one end output 5V voltage of inductance L2, the 4th foot difference of the chip L1
Connect the other end of the inductance L2, the anode of capacitor C10, one end of capacitor C12 and power supply+5V.
The 3.3V voltage regulation unit includes chip U7, capacitor C15, capacitor C13 and capacitor C14, the 1st foot of the chip U7
It is separately connected one end of the capacitor C15, the 3rd foot of chip U7 and power supply+5V, the 2nd foot of the chip U7 is separately connected institute
The other end and the ground connection of capacitor C15 are stated, the 4th foot of the chip U7 is grounded through the capacitor C14, the 5th foot of the chip U7
It is separately connected one end and the output voltage 3.3V of the capacitor C13.
The DC MOTOR CONTROL module includes chip U4, chip U5, capacitor C16, capacitor C17, connecting terminal E1 and connects
Line terminals E2, the 1st foot of the chip U4 connect the connecting terminal E1+binding post, the 4th foot of the chip U4 connects institute
State connecting terminal E1-binding post, the chip U4 the 2nd, 3 feet be separately connected one end of voltage+5V and the capacitor C16,
The 1st foot of the chip U5 connect the connecting terminal E2+binding post, the 4th foot of the chip U5 connects the terminals
Sub- E2-binding post, the chip U5 the 2nd, 3 feet be separately connected one end of voltage+5V and the capacitor C17, the capacitor
The other end of C16, the other end of capacitor C17, the 5th of chip U4 the, the 5th of 8 feet and chip U5 the, 8 feet are grounded respectively.
The chip U1 is using ATmega328P-AU model chip, and the chip U2 is using CH340T model
Chip, chip U7 are adopted using RT9193 model chip, chip L1 using LM2596S_5.0 model chip, chip U6
It is JDY-30 model chip, chip U4, chip U5 are identical, are all made of L9110s model chip.
Development board mainly include JDY-30 bluetooth module, inverter cricuit, microcontroller (MCU) circuit, power supply circuit and its
He forms auxiliary circuit, and bluetooth module pin TX, RX are connected with RX with the TX pin of MCU respectively, carries out data for bluetooth and MCU
Communication.Bluetooth module STAT pin is connected to inverter cricuit input terminal, and inverter cricuit output end connects after 10 F capacitors
To MCU reset pin, reseting pulse signal is sent to MCU in write-in program.
Bluetooth module is integrated in Arduino development board, bluetooth module sends by inverter cricuit and capacitor to MCU multiple
Digit pulse signal.
Wireless blue tooth development board based on Arduino, circuit include five parts, respectively bluetooth module, power supply electricity
Road, inverter cricuit, USB turn serial port circuit and microcontroller circuit, are connect using bluetooth module with mobile phone or apparatus such as computer;It is micro-
Controller circuitry is connect with bluetooth module, realizes the wireless communication between mobile phone or computer and microcontroller;Inverter cricuit respectively with
Bluetooth module is connected with microcontroller circuit, and bluetooth module sends handshake to microcontroller before realization downloading program;USB
Turn serial port circuit to connect with microcontroller circuit, realizes that development board and computer carry out wired connection.
The development board includes 7 chief components, power supply is inserted into for electrical outlet 8 when use, turns on the power switch, make
It is attached with computer bluetooth discovery bluetooth module corresponding with mainboard, password default 1234 after successful connection, checks bluetooth pair
Serial port is answered, Arduino IDE is opened and selects mainboard model Arduino UNO, the corresponding serial port of bluetooth is selected, selects journey
Sequence or after writing program, program downloading can be carried out to mainboard by clicking downloading.
Development board saves the USB that development board is connect with computer on the basis of retaining original Arduino UNO development board function
Data line and use wireless transmission method, greatly facilitate developer and carry out program development and debugging, enhance mainboard can
Mobility.
Another object of the present invention is to provide a kind of wireless downloadings for the wireless downloading development board based on Arduino
Method, the wireless downloading method the following steps are included:
Step S1, starting development board and computer establish connection, judge that development board establishes whether connection succeeds with computer, then hold in this way
Row next step, if not, return step S1;1) development board powers on, and turns on the power switch, and opens computer set interface, choosing
Bluetooth and other equipment option, selection addition bluetooth or other equipment are selected, bluetooth discovery is selected, finds Contshine## point
Connection is hit, prompts input 1234 when input PIN to click connection, successful connection computer controlled has matched.
Step S2 will light the program of development board blue lamp in development board selection Arduino UNO choosing in Arduino IDE
Corresponding bluetooth serial ports number is selected to upload;Arduino IDE is opened, the program of development board blue lamp, development board selection are lighted in write-in
Arduino UNO selects corresponding bluetooth serial ports number, clicks and uploads.
Step S3 checks whether Arduino IDE uploads and successfully prompts, if any prompt, then observes bluetooth on development board
Whether indicator light extinguishes, and whether development board has reset, and whether development board blue LED lights, and is such as all, then program wireless downloading
Success does not prompt such as, then checks whether development board model and serial port are selected pair, if so, other failures are then checked for,
If not, return step S1.It checks whether Arduino IDE uploads successfully to prompt, observing bluetooth indicator light on development board is
Whether no extinguishing, development board have reset, then observe whether development board blue LED lights again, are all then program wireless downloadings
Otherwise success checks whether development board model and serial port are selected pair.
2 development board of example sends character string " Hello Word " to computer
1) serially printing " Hello Word " program is written to development board.
2) open whether bluetooth indicator light on Arduino IDE serial ports monitor observation development board extinguishes after uploading successfully,
Whether monitor window prints " Hello Word " printed words, otherwise checks whether serial port baud rate is 115200, and serial port is
No selection is correct.
2 computer of example sends character string to development board
1) it gives development board write-in program: when serial ports receives character string " 1 ", lighting the blue led of development board, receive character string " 2 "
When extinguish.
2) IDE serial ports monitor is opened, bluetooth indicator light extinguishes, and inputs 1 in input frame, clicks and send, observe blue led
Whether light, inputs 2 in input frame, click and send, whether observation blue led extinguishes, otherwise check whether program is write correctly,
Whether mainboard is successfully written, and whether serial ports selects correctly.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.