Home

Downloads

This page has links to recent Videos and their Arduino code if any.  Most of the code will be in PlatformIO format, see Below for instructions on how to install it if so desired.
However, converting the code to work with the Arduino IDE is usually fairly easy.  You can follow the folowing general guidelines:

1.   Download the .zip file and unzip it in an appropriate location on your computer.  Then view the unzipped files with Windows File Explorer (or something similar if not using Windows).
2. Create a new sketch in the Arduino IDE, select an appropriate Board and COM Port and save it.  Point File Manager to the folder where you just saved the new sketch (you should see the new .ino file there), you will be copying new files there in step 4.  Then Close the Arduino IDE.
3. Open the platformio.ini file in a text editor (notepad in windows will suffice) and look for a section called "lib_deps".  If there is no such section there are no libraries in use so you can skip to step 4.
The format of lib_deps items is: author/library-name@version-number.  In the Arduino IDE select the Libraries icon and find the corresponding library by library-name and check that the author and version-number are the same and install it.  Do this for any libraries listed under lib_deps.
4. Copy all the .h and .cpp files in the platformIO  include and src folders to the Arduino folder you saved the new sketch to in step2.
5. There should be a main.cpp file, amongst the files you copied and there should be a .ino file there already which was created when you saved the new sketch in step 2.  Note the name of the .ino file and delete it.  Now rename the main.cpp file to the same name as the .ino file you deleted.  For example, if you saved your sketch as mysketch.ino, after deleting it rename the main.cpp file to mysketch.ino
6. Open the sketch again with the Arduino IDE and you should see the code.  Either delete or comment out the line at the top with #include <arduino.h> since it won't be needed. And you should now be able to compile and upload the sketch.

Downloads for the Xiao Starterkit Episodes:

Video(s) Video Link Downloads (if any)
Episode 1: Xiao Starter Kit; Intro & Getting Started. n/a
Episode 2:  Creating a Motion Controlled Light. Light Sensor, Motion Detector, Led Panel Code.
Episode 3: WiFi Digital Clock. WiFi Digital Clock Code.

 

To install PlatformIO, you need to::
  1. Download and install official Microsoft Visual Studio Code.
  2. Open VSCode Package Manager.
  3. Search for the official platformio ide extension.
  4. Install PlatformIO IDE.
The installation process may vary depending on your operating system. For example, on Linux, you can use the Snap Store.
On Mac OS X, you’ll be installing both VS Code and Python 3.  On Windows 10, the installation is very simple.
Once you have installed VS Code, you can install the PlatformIO plugin for VS Code.
Learn more: