Programming Robotics and Artificial Intelligence is now simpler. Programming a Pic32 from Microchip Technology is now simpler !!!
QX7 IDPE is an Integrated Development and Programming Environment designed and developed for programmers in the fields of microcontrollers, robotics, artificial intelligence, IoT and embedded systems. The tool has been created to facilitate the programming of Microchip Technology PIC32MX microcontrollers. The ideal hardware tools to start with are the Microstick II and its Microstick II Plus Development Board, both from Microchip Technology.
QX7 IDE 2018 LT is FREE!!!!!! More advanced tools and plugins can be added afterwards for projects which require TCP/IP communications, interaction with input devices, intercommunications with other systems or security hardware.
Tutorials will guide you through the use of the entire Framework on a series of short simple programs. With the completion of the basic tutorials, you, the programmer, will have full knowledge of all the functions and resources available to control hardware connected to your PIC32MX. The Basic Level Tutorials are designed to use the Microstick ii with the Microstick ii Plus Development Board. The Intermediate Level Tutorials will direct you through the design and development of robotics projects and embedded systems. The Advanced Level Tutorials will challenge you on the design and development of complete solution with interoperation and intercommunications of multiple systems, the IoT. In QX7 you will program with C/C++ and Embedded C language structures.
Pic32 microcontrollers (Pic32 is a trademark of Microchip Technology Inc.) Best in class microcontrollers.
1. Download QX7 IDE 2018 LT : A .zip folder will be saved into your Downloads folder.
DOWNLOAD (QX7 IDE 2018 LT Installer)
2. Unzip the downloaded zipped folder: QX7 IDE 2018 Installer.zip
3. The unzipped folder has two files within it: setup (Application) and SetupQX7IDE2018 (Windows Installer Package).
4. Run the setup (Application): It will open the Installer Package and guide you through.
5. Once the process is completed you will have a QX7 IDE 2018 LT Shortcut icon on your desktop. In your Program’s Menu you will have a QX7 IDE 2018 LT shortcut under Recently added. Also in your Program’s Menu you will have a folder named Ai.Robotix Tools and within it a QX7 IDE 2018 LT shortcut.
6. Launch QX7 IDE 2018 from any of the shortcuts.
7. NOW LETS COMPLETE THE ADDITION OF THE NECESSARY TOOLS. WE ARE ALMOST DONE.!!
8. With QX7 IDE 2018 running – Click on Help and scroll down to Get Build Tools. This will open a window which will take care of running the process to get the necessary compiler and binary files tools.
9. Once the Build Tools installations are completed Close the Tools windows and proceed to make the First Test (Steps 10 and 11).
10. Save the current project (Ctrl+S): This will open the Save window, directing you to a folder named Qx7_Projects. Name this project FirstTest. A subfolder with the name FirstTest will be created. Within FirstTest subfolder a file named FirstTest and extension .aic will be saved.
11. Compile your program: Press (F5). This will initiate the process of compiling your code. You should see a green message notifying – Compile Successful and the date-time.
12. Lets verify what was created: Open folder Documents > Qx7_Projects > FirstTest. You shall heve three (3) files in the folder. These are: FirstTest.aic , FirstTest.aix and FirsTest.hex.
13. NOW we must ensure the tool for uploading your compiled code into the microcontroller is available and working.
14. Press (Ctrl+F5): This shall open a tool titled: Integrated Programming Environment v2.20. This is the necessary tool to upload your compiled program onto the microcontroller hardware.
15. IMPORTANT NOTE: IF YOU ARE NEW TO PROGRAMMING PIC32MX MICROCONTROLLERS FROM Microchip Technology Inc. you must install the tools and drivers for Windows to recognize your usb devices/microcontrollers. If so, follow the following steps:
DOWNLOAD ( Microchip IPE )
16. Click the button named DOWNLOAD (Microchip IPE) from this site. This will download and save a file named MPLABX-v2.20-windows-installer.exe.
17. Once the download is complete proceed to running the MPLABX-v2.20-windows-installer.exe. Follow the steps and install both tools. MPLABX IDE and MPLABX IPE.
18. SHUT DOWN AND RESTART YOUR COMPUTER: Since you have added new tools to your computer and drivers for hardware plug and play recognition you must restart your system.
19. Now that your system is back. You have all you need to start programming your PIC32MX.
20. Connect your Microstick ii and your Microstick ii Plus Development Board to your PC. Launch QX7 IDE 2018 LT. LET’S TAKE CONTROL OF THAT LED ON PIN 2!!!!!!
Technical Note: The Microstick ii development kit comes with four (4) microcontrollers. The default mounted microcontroller is the PIC32MX250F128B. We will begin with a series of tutorials for Pic32MX from basic levels and build your knowledge up to advanced levels.
In this first test and tutorial we will open an .aic project, compile the code and upload (load the binary file) the .hex file to your microcontroller. Once this tutorial is completed and you have control of the Red LED you will be ready to proceed confidently through all the tutorials at your own rhythm.
1. Download this Tutorial’s source code for reference. QX7_MICROSTICKII_LED.ZIP. The zip folder contains the .aic, .aix and .hex files.
DOWNLOAD (Flash Red LED Source Code)
2. Test your IPE and connectivity to your Microstick ii by uploading the QX7_MICROSTICKII_LED.hex file onto the microcontroller by performing the following steps.
3. Launch QX7 IDE 2018 LT.
4. Press Ctrl+F5: This shall open the tool titled: Integrated Programming Environment v2.20. This is the necessary tool to upload your compiled program onto the microcontroller hardware.
5. You shall ensure the following settings: Family: 32-bit MCUs (PIC32) ; Device : PIC32MX250H128B – If all tools have been properly installed, the connected microstick shall be recognized and the Tool setting shall reflect the device as PKOB SKDE S.No : BUR…..#
6. If the dot next to the Device description is green, Click the Apply Button and then Click the Connect button next to Tool: PKOB description.
7. A successful connection shall give you the following message:
Connecting to MPLAB Starter Kit on Board…
Firmware Suite Version…..01.28.57 *
Device ID Revision = A1
8. At this point the description of the button next to the Tool description shall read Disconnect.
9. NOW : Lets go get the hex file to program onto the PIC32.
10. Click the Browse button: The open file windows comes up. Look for your uncompressed QX7_MICROSTICKII_LED folder and within it select the file named QX7_MICROSTICKII_LED.hex and click Open.
11. You shall see a blue message indicating your Hex file loaded successfully.
12. Now Click the Program button. This will start the binary file upload process and reset your microcontroller to initiate running the new code.
13. Once the binary file upload is completed you shall receive a message indicating Programming/Verify complete, a blue message with the time and Programming complete and a PassCount: #.
14. Your Pic32 must be flashing its red LED one second on , one second off.
15. NOTE: If changes are made to the .aic, it must be recompiled to build a new .hex. To upload the new .hex it is necessary to click Browse and load the new .hex into the IPE before reprogramming the Pic32MX.
16. Now lets work with creating your own .aic and making variations to the red LED control……….
The device map is your guidance to aid visually on mapping your C++ code and setup to your microcontroller physical architecture. At any time, simply requesting an update, by clicking on the Device Map button on your Pannel you will obtain a visual update on all the peripherals you have setup to be connected to your design and the communications direction for each physical pin available.
The Serial Communications module is your indicator tracking, sending and receiving all the messages you send to your robot for instructions commands. It is also the module through which your robot communicates with you, send you the status of sensors, locations, or any data you have requested your system to return to you.
Your Qx7 Kits from Ai.Robotix include a USB to Serial communications hardware module. Known as an FTDI. For your computer to recognize the device you must download and install the corresponding drivers.
Programming Tip of the day
Challenge of the month