FSM Lecture 47- Download QP™ Nano Arduino library

  • Post author:
  • Post category:Blog

 

Download QP™ Nano Arduino library

 

 

In this article, let’s understand downloading the QP-nano Arduino library.

For that, go-to state-machine.com website, click on resources and go to Arduino, as shown in Figure 1.

Figure 1. downloading the QP-nano Arduino library
Figure 1. downloading the QP-nano Arduino library

 

And after that, download QP Arduino for your machine; I will go for windows.

Figure 2. downloading the QP-nano Arduino library
Figure 2. downloading the QP-nano Arduino library

 

First, let’s install the QP framework. Just double click on qp-windows_6.9.3, as shown in Figure 3. 

Figure 3. QP framework application
Figure 3. QP framework application

 

After that, click next, as shown in Figure 4.

Figure 4. QP-bundle setup
Figure 4. QP-bundle setup

 

Figure 5. License agreement
Figure 5. License agreement

 

After that, select I accept the agreement and click next.

 

Figure 6. Select the directory
Figure 6. Select the directory

 

And select the directory. By default, it will get installed in the ‘C’ directory. That’s fine.

 

Figure 7. Selecting the components
Figure 7. Selecting the components

 

Here you can deselect the things which you don’t require. For example, we are not using an ARM processor here so you may deselect the option. And we’re also not using QP/C++ so that you can deselect that too. But I’ll keep everything because I have enough disk space. I will click next.

 

And click next (Figure 8), Install(Figure 9). 

Figure 8. Select Additional task
Figure 8. Select Additional task

 

Figure 9. Ready to install
Figure 9. Ready to install

 

Installing is taking some time.

Figure 10. Installing
Figure 10. Installing

 

After the installation, click finish, as shown in Figure 11.

Download QP™ Nano Arduino library
Figure 11. Completing the QP-bundle Setup Wizard

 

The installation is over. And now, let’s install the QP Arduino library. Let’s go back to the download and extract the Zip file, as shown in Figure 12.

Figure 12. QP Arduino library
Figure 12. QP Arduino library

 

After that, you have to copy all these things( shown in Figure 13) and paste it into the Arduino sketchbook location.

Download QP-nano Nano Arduino library
Figure 13. QP Arduino library

 

For that, open the Arduino IDE. Open the Arduino IDE→  Go to file → preferences. Copy the location, as shown in Figure 14;  

Then, go to File Explorer and open that location. 

Download QP-nano Arduino library
Figure 14. Preferences in Arduino IDE

 

See Figure 15; this is a sketchbook location. You have to paste it here.

Download QP-nano Arduino library
Figure 15. Sketchbook location

 

Now the files are copied into sketchbook location. And if you go under libraries, you can see there are two libraries. qpcpp for Arm-based Arduino boards and qpn is QP-nano framework for AVR-based Arduino boards, as shown in Figure 16. 

Download QP-nano Arduino library
Figure 16. Arduino Library

 

Download QP-Nano Arduino library
Figure 17. Arduino framework-related source files

 

This has all the framework-related source files. We successfully integrated the Arduino library. 

And in the following lecture, we will test a Transition execution sequence and event propagation on the Arduino board.

Download QP™ Nano Arduino library
Figure 18. Transition execution sequence and event propagation

 

This is an example of understanding various transition execution sequences and event propagation in a nested hierarchical state machine diagram. And this example is already available in the QP framework that you have downloaded and installed. It is at this location(Figure 18). So, you can test this application directly on your machine. You need not use any hardware, Arduino hardware, or any other board, you can directly test it on the machine.

 

FastBit Embedded Brain Academy Courses

Click here: https://fastbitlab.com/course1

 

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.

Leave a Reply