Have you ever wanted to harness the power of PSOC™ 6 without a steep learning curve? Now you can! With PSOC™ 6 available on the Arduino platform, new possibilities are unlocked.
Experience the world of PSOC™ 6 using Arduino IDE!
DisclaimerPSOC™ 6 for Arduino is work in progress and not all features are available, yet!
Have a look here for details.
Hardware SetupConnect the USB cable to your computer and the Type-C cable to the board debugger. All the PSOC™ 6 boards come with an on-board debugger required for flashing/debugging operations during development.
Software InstallationI hope you have Arduino IDE installed. If not, download and install the software. We recommend using Arduino IDE 2.0 or higher.
The next step is to install the PSOC™ 6 boards in the Arduino IDE.
Paste the following URL into the Additional boards manager URLs input field under File > Preferences to add Infineon’s PSOC™ 6 microcontroller boards to the Arduino IDE:
https://github.com/Infineon/arduino-core-psoc6/releases/latest/download/package_psoc6_index.json
To install the board, navigate to Tools > Board > Boards Manager… and search for PSOC6. Now you can install the Infineon PSOC™ 6 microcontroller boards. Click Install to add the boards to your Arduino IDE. This might take up to 2 minutes.
In the boards list at Tools > Board > Infineon PSOC6 Boards, you will now find the supported PSOC™ 6 microcontroller boards. Select the CY8CKIT-062S2-AI board:
Select serial port corresponding to your PSOC™ 6 board by selecting Tools > Port:
To begin, let's create a simple yet exciting project - blinking the onboard LED!
Go to the File > Examples > Basics > Blink:
This will get us started with controlling the LED. Are you ready to give it a try?
Click the Verify (or Compile) button, typically represented by a checkmark icon, located in the top left corner of the Arduino IDE window. This will compile the code and check for any errors. Let's do it!
Once the compilation is successful, click on the upload icon. This will upload the compiled code to your board and flash it with the blinky LED program.
Wait for the upload process to complete, and... voilà! Your board's onboard LED should now start blinking!
Ready to explore Infineon's XENSIV™ Digital Pressure Sensor? Well, good that this one is already included on your PSOC™ 6 AI Kit!
We'll dive into an example that reads temperature and pressure data. Sounds cool, right? Let's follow the steps and bring the sensor to life.
Go to the Library Manager, search for dps3xx library and you will find the XENSIV™ Digital Pressure Sensor library from the search results. Click the install button to add the library to your IDE. You are one step closer to working with your pressure sensor!
Now let's access the example code. For that go to File > Examples > XENSIV Digital Pressure Sensor > i2c_command. This example code will help you get started with reading temperature and pressure data from the sensor.
Compile and upload the example. Once uploaded, open the Serial Monitor from the Tools tab.
In the Serial Monitor, you should start seeing temperature and pressure readings from the DPS368 barometric pressure sensor!
Curious for more?Dive deeper into our documentation for additional information.Stay ahead of the curve: explore our upcoming features and projects on GitHub.
Comments
Please log in or sign up to comment.