Difference between revisions of "How to use with Arduino IDE"

From Banana Pi Wiki
Jump to: navigation, search
(Created page with "===Ardino IDE=== * Arduino IDE:Open File -> Preferences, as shown in the following figure: File:Uno32_pic_1.png * Click the button in the red circle above and add th...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
===Ardino IDE===
 
===Ardino IDE===
* Arduino IDE:Open File -> Preferences, as shown in the following figure:
+
===How to setup and start ===
[[File:Uno32_pic_1.png]]
 
  
* Click the button in the red circle above and add the following URL in the newly popped
+
Need to be prepared:
::window:https://git.oschina.net/dfrobot/FireBeetle-ESP32/raw/master/package\_esp32\_index.json
+
*BPI-UNO32 1 or BPI:bit 1
::As shown below:
+
*Jumper Cap 4
 +
*microUSB 1
  
[[File:Uno32_pic_2.png]]
+
quickstart:
  
* Open Tools->Board->Board Manager. Pull down to see FireBeetle-ESP32 and click Install.Please select the relevant model after installation.
+
1,connect the four jumper caps to the top of the board, respectively, to connect the RGB LED to the buzzer. Then use the microUSB line to connect the development board to the computer.
  
[[File:Uno32_pic_3.png]]
+
*port:
 +
[[File:Uno32_start_0.png]]
 +
*Connect:
 +
[[File:Uno32_start_1.png]]
  
* Open a project in the upper left corner of the file, or open an example.
+
open Arduino IDE and install ESP32 Expansion pack
  
[[File:Uno32_pic_4.png]]
+
Arduino IDE Software:(*[[https://www.arduino.cc/en/Main/Software  Arduino IDE]])
  
* Select a correct port in Tools -> Ports, then click ”compile"will be compiled code,clickwill "run" be burn program。
+
ESP32 Expansion pack:(*[[https://github.com/espressif/arduino-esp32/blob/master/README.md  Installation guide]]) ->Installation Instructions
  
[[File:Uno32_pic_5.png]]
+
*Open Arduino IDE and setup baord:
 +
[[File:ArduinoIDE-1.png]]
  
[[File:Uno32_pic_6.png]]
+
If you install ESP32 package you can ESP32 board in Tools->Boards see <ESP32 Arduino>
  
*PlatformIO for Atom/VS Code
+
*Arduino IDE Compile and Download:
 +
[[File:ArduinoIDE-2.png]]
 +
*Arduino IDE serial port setup:
 +
[[File:ArduinoIDE-3.png]]
  
 
+
2,You can click Serial Monitor in Arduino IDE. It will open a new window ,in this window ,you can setup serial :
1,First open the PlatformIO Home page, then click Open Project to open the project. \(You can choose the test code.\) If you write your own code to burn, then the platformio.ini file should write the following code
+
*Serial Config:
 
+
[[File:ArduinoIDE-4.png]]
[env:BPI-uno32]
 
platform = espressif32
 
board = nodemcu-32s
 
framework = arduino
 
 
 
[[File:Uno32_pic_7.png]]
 
 
 
[[File:Uno32_pic_8.png]]
 
 
 
2,The code path under PlatformIO project is generally src/main.cpp. Open the code and use Ctrl+\` to open the terminal debugger. Enter platformio run --target upload.
 
[[File:Uno32_pic_9.png]]
 
 
 
3,Make sure the board is connected. The program will be compiled first and then burned into the BPI-uno32 board. There are some points to note. If the above code does not specify the port, please try to avoid other serial devices connected on the computer. For serial port numbers, run platformio --help.
 
 
 
[[File:Uno32_pic_10.png]]
 

Latest revision as of 21:00, 24 August 2018

Ardino IDE

How to setup and start

Need to be prepared:

  • BPI-UNO32 1 or BPI:bit 1
  • Jumper Cap 4
  • microUSB 1

quickstart:

1,connect the four jumper caps to the top of the board, respectively, to connect the RGB LED to the buzzer. Then use the microUSB line to connect the development board to the computer.

  • port:

Uno32 start 0.png

  • Connect:

Uno32 start 1.png

open Arduino IDE and install ESP32 Expansion pack

Arduino IDE Software:(*[Arduino IDE])

ESP32 Expansion pack:(*[Installation guide]) ->Installation Instructions

  • Open Arduino IDE and setup baord:

ArduinoIDE-1.png

If you install ESP32 package you can ESP32 board in Tools->Boards see <ESP32 Arduino>

  • Arduino IDE Compile and Download:

ArduinoIDE-2.png

  • Arduino IDE serial port setup:

ArduinoIDE-3.png

2,You can click Serial Monitor in Arduino IDE. It will open a new window ,in this window ,you can setup serial :

  • Serial Config:

ArduinoIDE-4.png