Table of contents
一.Hardware preparation
二.ArduinoIDE-2 environment construction
三. Download the program
Notice
same Pinout pin layout, same RGB three-color LED, factory preset Nano 33 Ble Bootloader
Added lithium battery charging management, the back pad can adjust the charging current (default 100ma, short circuit 500ma) Reserved sensor pin package (no device attached): MP34DT06JTR (microphone) Sensor pin packages are not reserved (but related pin pads are lead out): LPS22 (pressure sensor), LSM9DS1 (accelerometer gyroscope), HTS221 (humidity sensor) sensor), APDS-9960 (gesture sensor)
Note:
B-:Lithium battery 3.7V-
B+:Lithium battery 3.7V+
MAXIMUM Output current per pin is 15mA
MAXIMUM Input current per pin is 5mA
MAXIMUM External current is 25mA for the sum of all GPIO currents and the current drawn from VDD
VIN 5V input to the board
Note: CIPO/COPI was formerly known as MISO/MOSI
Connect this jumper “BOOST”, the charging current increases from 100ma to 500ma. Only do this if your battery is larger than 500mAh to avoid explosion.
Using a solder jumper to short-circuit only allows functionality in the SJ pin unit, it is also possible to change the pad connections for pins D7 and D8 in P0.09 and P0.10. Charging current selection jumper: Connect this jumper “BOOST”, the charging current increases from 100ma to 500ma. Only do this if your battery is larger than 500mAh to avoid explosion.
1. Download the development environment (official website address: https://www.arduino.cc/en/software) Here I use the latest version of ArduinoIDE2.3.2.
2. After the software is installed, as shown in the figure:
As shown in the picture, the software has been installed successfully! You can set your favorite theme here.
3. Download the firmware package of the development board, as shown in the picture: The development board here is NANO 33 BLE (core NRF52840) and is compatible with the official NANO 33 BLE development board. Look carefully at the red mark in the picture.
In the picture, I have marked the download order 1, 2, and 3 respectively. Red mark 2 enters the search content BLE 33. When the firmware is not downloaded, mark 3 is in INSTALL. If the download is successful, mark 3 is in REMOVE. I downloaded it in advance here.
4. Select the development board in Tools, as shown in the figure:
Also select according to the marking order 1, 2, 3, 4.
5. Select the port (COM?), as shown in the picture:
here is COM5 (choose according to your actual situation, everyone’s computer is different, so the COM? is also different)
1. Select a program routine in the software, as shown in the figure:
Also select according to the red mark order. This is just a test here, it’s up to you what functions you want to implement!
Tag 1 compiles the program.
Mark 2 Download the program to the development board.
Mark 3 is successfully downloaded (if no error in red font appears, it means the download is basically successful), there is a video below:
The yellow LED light on the development board will light up every 1 second.
The video is as follows: Double-click the image to open the video!