Professional Documents
Culture Documents
POP32 Installation Procedures
POP32 Installation Procedures
microcontroller board
technical manual
chapter 1
Technical features
The POP-32i is a microcontroller board based on STM32F103CBT6 the 32-bit
microcontroller from STMicroelectronics (www.st.com). It has two built-in USB ports for
data communication, upload and debugging.The POP-32i uses hardware and software
from an open source microcontroller project called Arduino (www. .arduino.cc) Let's
continue to improve. A large number of hardware interface C language libraries are
provided. Makes it easy to write programs to operate various devices without having
to study into the details of the microcontroller.
Figure 1-1 shows the POP-32i board layout. All components of the POP-32i board
are summarized as follows:
2 of LED indicators for low battery monitor and USB port connection status
2. On top position is installed with the SWD (Serial Wire Debugger) module
(pink board) for debugging and uploading code (DEBUG)
There is a terminal block for connecting the external power supply. Accepts 6
to 9V power supply. There is an on-off switch to turn on the power supply.
Operate with a maximum of 2 cells of lithium polymer battery 7.4V to 8.4V after
fully charged.
There is a 3.3V regulator circuit to supply the voltage for the microcontroller,
OLED display and the main input/output port.
2 of I2C bus connector ; SDA and SCL are connected together by using
connector type PH4 arranged as GROVE type connector.
There is the UART serial data communication port; PB7 (RxD) and PB6 (TxD).
4-channels of DC motor driver cicrcuit with LED indicators. The motor connectors
are 2-pin IDC connector and 2-pin screw terminal block per channel. It supports 3 to 12V
DC motors. Output currect is 1.5A per channel with 2A current limit circuit.
There is a piezo speaker for driving sound. By connecting to the port pin PB5.
2. SW-A (orange button) is connected to the PC13 pin with a pull-up resistor.
and connect with blue LED to show logic status.
3. SW-B (white button) is connected to the PB2 pin with a pull-up resistor.
and connect with green LED to show logic status.
chapter 2
Arduino IDE installation
The development of programs for the POP32i board here uses the C/C++
programming language using an open platform called Arduino. The main software is
the Arduino IDE that handles the whole process with a single program. Since there is the
C/C++ code generating part, there are standard libraries, C/C++ compilers or compilers,
linkers and the uploading part of the code to write into the program memory of the
microcontroller. In this chapter presents the steps to install the Arduino IDE program until
the initial test.
(1) Connect your computer to the Internet. Then open a web browser to the
Arduino website at https://www.arduino.cc. Then click on SOFTWARE as shown in Figure
2-1.
Figure 2-2 Choose the installation file of Arduino IDE version 1.8.x for older
computer
(2) Scroll down to the bottom and find Legacy IDE, select Windows Win 7 and
Newer to download the Arduino IDE version 1.8.X software installation file as shown in
Figure 2-2 for older computers. If it is a newer computer that is installed with Windows 64-
bit operating system and uses an SSD hard disk, it is recommended to install version 2.0.x
or higher as shown in Figure 2-3.
Figure 2-3 Choose the installation file of Arduino IDE version 2.0.x
microcontroller board technical manual 7
Figure 2-4 The license software Figure 2-5 The component selection
agreement window of Arduino IDE window for installation of Arduino IDE
(3) Then a window will appear, choose to download or select to support the
development of the program. Click the JUST DOWNLOAD button to download the setup
file.
(4) Double click on the Arduino IDE software installation file. A window will appear
for starting to install the Arduino IDE program as shown in Figure 2-4.
(5) Then a window for selecting program components to be installed will appear
as shown in Figure 2-5. Click the Next button.
(6) A window to select the folder for program installation as shown in Figure 2-6
appears. Click the Install button to begin installing the Arduino IDE program.
(7) Then wait until the program installation is complete, as shown in Figure 2-7, click
Close button.
Figure 2-6 The installation folder Figure 2-7 The Arduino IDE setup
selection windows completed window
8 microcontroller board technical manual
(1) Open program Arduino IDE. The main window of Arduino IDE will appear as
shown in Figure 2-8.
(3) The Preferences window appears as shown in Figure 2-10. Make the settings as
follows.
(3.1) Click on the item Verify code after upload to remove the check mark.
(3.2) Click on the item Check for updates on startup to remove the check mark.
https://github.com/INEXdev/ArduinoSTM32/raw/main/package_inex_stm32_index.json
Figure 2-10 Setting the Preferences window for preparing to install hardware
information of the POP-32i board via Board manager feature of Arduino IDE
10 microcontroller board technical manual
(4) Select Menu Tools > Board:xxx > Boards Manager… as in Figure 2-11.
(5) The Boards Manager window appears as shown in Figure 2-12. Type INEX to
search. It will find a list of hardware information installer named INEX_STM32 which
includes board information. Then click Install button to install.
(6) Enter the library installation process. Wait until the installation is complete. Then
close the Arduino IDE program.
รูปที2-13
่ แสดงการเลือกบอรด
Figure 2-11 How to choose the menu Tools>Board:xxx>Boards Manager…
Figure 2-12 The Boards Manager setting for installation library and hardware
information of the INEX_STM32
microcontroller board technical manual 11
(1) Connect your computer to the Internet. Then open the web browser program.
to go to the website of STMicroelectronics follow the following link
https://www.st.com/en/development-tools/stm32cubprog.html
(3) If you have previously registered with the website www.st.com, enter your
email and password and click the Login button to log in. Then skip to step (9). In case of
using for the first time, click the Create Account button as shown in Figure 2-14.
(4) You will go to the registration page as shown in Figure 2-15. Fill out the form,
provide information for registration then click the Register button.
(6) If there is no error, the registrant will receive an email as shown in Figure 2-16.
Click the Validate now button to confirm the registration and open a user account for
the website. STMicroelectronics (www.st.com)
(7) The system will bring you to the registration page as shown in Figure 2-17. Set a
password and click the Submit button to confirm the registration is complete.
Note that under the icon, there will be the word Hi followed by the user’s
name as in Figure 2-18.
(10) Extract the .zip file and go into the extracted folder. Double-click the
SetupSTM32 CubeProgrammer_win64.exe file to enter the installation of the STM32 Cube
Programmer program.
(1) Connect the USB cable to the upper USB port of the SWD Module (it is pink
color module) on the board as shown in Figure 2-19 to connect the POP32i board to the
computer
Figure 2-19 Connect the POP32i board with computer for uploading code
18 microcontroller board technical manual
Figure 2-20 shows how to choose the POP-32 for both POP-32 and POP-32i
(2) Supply power to the POP32i board and turn on the POWER switch
(3) At the main program window of Arduino IDE, select Menu Tools > Board:xxx >
INEX STM32 > POP-32 as shown in Figure 2-20.
(4) Choose a method for uploading code by selecting Menu Tools > Upload
method > STM32Cube Programmer (SWD) as shown in Figure 2-21.
(5) Type the code according to the Program 2-1 for testing the operation. Then
click the Upload button.
Figure 2-21 Shows how to choose the uploading method as STM32 Cube
Programmer for POP32i board
microcontroller board technical manual 19
#include <POP32.h>
void setup()
{
oled.text(0,0,”Hello POP-32");
oled.show();
}
void loop()
{}
Program 2-1 The testing code for displaying the message on the POP32i
board’s OLED screen
Figure 2-22 Uploading code to the POP32i board successful and the POP32i
board will run immediatly
(6) When the program upload is over. At the status window of the program will
inform the status of the compilation, program upload process and the status of uploading
the program as shown in Figure 2-22, then the board will work immediately.
The POP32i board displays the message Hello POP-32 on the OLED
display.
20 microcontroller board technical manual
(1) Connect the MAC computer to the Internet network. Then open a web browser
to the Arduino website at https://www.arduino.cc. Then click on SOFTWARE as shown in
Figure 2-23.
Figure 2-23 The official website of Arduino on MAC computer’s web browser
Figure 2-24 Shows the installation file of Arduino IDE download web page
microcontroller board technical manual 21
Figure 2-25 Shows the JUST DOWNLOAD button for downloading Arduino
IDE software
(2) Then a window will appear as shown in Figure 2-25. Click JUST DOWNLOAD
button to download the installation file. You will get a .zip file.
(3) Double-click the .zip file to extract it, then an Arduino application will be created
as shown in Figure 2-26.
(4) Suggest to moves the Arduino application to the Applications section of the
MAC computer as in Figure 2-27, then run the Arduino IDE.
Figure 2-27 Shows an Arduino application that has been moved to the
Applications section of MAC OSX computer
(1) Open up the Arduino IDE program. At the very first time after installing the
program in case the Activation confirmation window appears as shown in Figure 2-28,
click the Open button.
(2) The main window of the Arduino IDE program will appear ready to use as in
Figure 2-29.
Figure 2-29 Shows the main window of the Arduino IDE program.
Figure 2-30 Shows the Preferences menu selection of the Arduino IDE
program on MAC OSX computer
24 microcontroller board technical manual
Figure 2-31 Shows settings in the Preferences window to prepare for installing
data of Board POP32i.
(3) While the Arduino IDE program is active, at the top menu bar, click menu
Arduino > Preferences… as shown in Figure 2-30.
(4) The Preferences window will appear as shown in Figure 2-31, make the following
settings.
(4.1) Click on the box Verify code after upload to remove the check mark.
(4.2) Click on the box Check for updates on startup to remove the check
mark.
https://github.com/INEXdev/ArduinoSTM32/raw/main/package_inex_ stm32_index.json
(5) Select menu Tools > Board:xxx > Boards Manager… as in Figure 2-32.
(6) The Boards Manager window will appear as shown in Figure 2-33. Type a search
with INEX. It will find a list of hardware information installer named INEX_STM32 which
includes board information. Then click the Install button to install.
microcontroller board technical manual 25
Figure 2-33 Shows the Boards Manager window for installing INEX_STM32
library and hardware information.
26 microcontroller board technical manual
(8) Connect the USB cable to connect the POP32i board with the computer in
the same way as Figure 2-19.
(9) Supply power to the POP32i board and turn on the POWER switch.
(10) At the top menu bar of Arduino IDE, select menu Tools > Board:xxx > INEX
STEM32 > POP-32 as shown in Figure 2-35.
Figure 2-35 Shows the selection of the POP-32 board, which can be used
with both POP32 and POP32i boards.
microcontroller board technical manual 27
Figure 2-36 Shows the upload method selection for the Arduino IDE to the
POP-32i board.
(11) Choose a method for uploading code by selecting menu Tools > Upload
method > STM32Cube Programmer (SWD) as shown in Figure 2-36.
(12) At the main window of the Arduino IDE program, type the code according
to the program 2-1 for testing the display of text on the OLED screen, then click the
Upload button.
(13) When the program upload is over, the board will run immediately.
The OLED display of the board shows the message Hello POP-32.
28 microcontroller board technical manual