Difference between revisions of "BPI:bit for Arduino"

From Banana Pi Wiki
Jump to: navigation, search
(Debian/Ubuntu Linux OS installation instructions)
(Debian/Ubuntu Linux OS installation instructions)
Line 80: Line 80:
 
  cd tools && \
 
  cd tools && \
 
  python2 get.py
 
  python2 get.py
 +
 +
=Mac OS install arduino IDE=

Revision as of 04:04, 20 February 2019

About BPI:bit

This product adopts esp-wroom-32 module as the core for design, and supports wi-fi, bluetooth, BLE and other wireless communication modes.

The BPI bit (also referred to as BPI-bit, stylised as bpi:bit) is an ESP32 with 32-bit Xtensa LX6 dual-core processor based embedded system. It supports Webduino, Arduino, MicroPython as well as Scratch X programming environments.

A BPI-Bit.jpg

More about Banana Pi BPI:bit,please see :BPI-Bit

BPI:bit for Arduino-IDE

Wired connection board

Connect the boards to your computer via the MicroUSB wire, it is same as BPI:bit with microPython.

please see this documents:2 Wired connection board

Development extension package

Arduino-esp32 developer kit, click the previous link to get the developer kit

From arduino-esp32, an open source project of github (espressif), it is recommended to use github DeskTop tool to update the suite at any time.

Windows installation instructions

  • Download and install the latest version of the Arduino IDE, Windows Installer from arduino.cc
Win-1.png
  • Unzip the Arduino expansion package: [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32
ARDUINO_SKETCHBOOK_DIR:generally is C:/Users/[YOUR_USER_NAME]/Documents/Arduino listed below the "Sketchbook location" in the Arduino preference
Win-2.png
  • In turn open directory [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32 /tools, and double-click the get operation. Exe
Win-3.png
  • When get.exe runs out, you should see the following files in the directory
Win-4.png
  • Insert the BPI:bit board and wait for the driver to install (or manually install) Serial CH341
  • Run the Arduino IDE
  • Select your version (bpi-bit) Tools>Board menu
Win-5.png
  • Select the COM port to which the BIT board is connected, such as COMx
  • Compile and upload your engineering code (BIT board design has automatic recording circuit, just click to upload)
Win-6.png

Debian/Ubuntu Linux OS installation instructions

  • Get and install the latest version of the arduino IDE from the arduino.cc website
  • Open the terminal and execute the following command (copy-> paste and click enter):
sudo usermod -a -G dialout $USER && \
sudo apt-get install git && \
wget https://bootstrap.pypa.io/get-pip.py && \
sudo python get-pip.py && \
sudo pip install pyserial && \
mkdir -p ~/Arduino/hardware/espressif && \
cd ~/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python2 get.py
  • Rerun the Arduino IDE
  • If you have installed arduino to ~/directory, please execute the following code. If not, please start from mkdir-p ~/ arduino /hardware:
cd ~/Arduino/hardware
mkdir -p espressif && \
cd espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python2 get.py

Mac OS install arduino IDE