User Tools

Site Tools


demoboard_getting_started

Layerone Demoscene Board - Getting Started


Power Up

There are two ways to power the Layerone Demoscene Board: USB microAB or External power.

USB microAB - 5V:

External power input range: 4.75v to 15.0v:


Development Environment

The Layerone Demoscene Board is based on the PIC24FJ256DA206. You can program this microcontroller using MPLAB X and the XC16 Compiler. You will need both.

Instructions:

  1. Click the “Downloads” tab near the bottom of the page and download the latest version of MPLAB X IDE
  2. Install MPLAX X IDE
  3. XC16 Compiler Download Site: https://www.microchip.com/mplab/compilers
  4. Click the “Downloads” tab near the bottom of the page and download the latest XC16 compiler
  5. Install the XC16 Compiler

Example C Code - Getting Started

Instructions:

  1. Download the Example Project - L1Demo Getting Started:
    https://github.com/arkorobotics/L1Demo_Getting_Started
  2. Open MPLAB X IDE
  3. Select“File→Open Project” and navigate to the “L1Demo_Getting_Started” folder
  4. Open the project “L1Demo_Getting_Started.X”
  5. Click the “Clean and Build Project” icon to build the hex file
  6. The generated .hex file will be available at:
    “L1Demo_Getting_Started/L1Demo_Getting_Started.X/dist/default/production/L1Demo_Getting_Started.X.production.hex”

Programming

Once you've compiled your code using MPLAB X, you can upload the “.hex” file using either method:

  • USB Programming via Bootloader (default, requires no additional hardware)
    • Pros: Free, easy to use
    • Cons: No debug information

OR

  • Programming via PICKIT3 Programmer/Debugger (highly-recommended, requires additional hardware)
    • Pros: Debugging allows users to step through code, watch values of variables during run-time. Huge time-saver.
    • Cons: Additional costs

USB Bootloader Programming

The Layerone Demoscene Board ships with a USB Bootloader programmed to Flash Memory so that anyone with a Mac or PC can program the board without any additional hardware such as a debugger.

Instructions:

  1. Download and Install the L1Demo GUI Loader (Mac/Windows/Linux):
    https://github.com/thedeltaflyer/L1Demo-GUI-Loader/releases/
  2. Windows Users will need to download and install drivers for the demoboard: Win 64-bit or Win 32-bit or Manual Install with INI file
  3. Run the “L1Demo GUI Loader” application. On newer Macs, you may need to right-click on the app icon and hit “Open”.
  4. Connect the L1 Demoscene Board to your Mac/PC using a USB A to USB MicroAB cable
  5. Connect the VGA Cable and Audio Jack from your monitor and speakers to the L1 Demoscene Board
  6. Power-up the L1 Demoscene Board using either USB or external power (see “Power Up” section)
  7. Click “Choose File” on GUI and navigate to the .hex file you wish to flash to the board:
  8. IMPORTANT: *The next sequence of events are time sensitive*
  9. Press the RESET button on the L1 Demoscene Board
  10. On the GUI, under the “Device” drop down, select the USB COM/tty port for the L1 Demoscene Board
  11. Press the RESET button on the L1 Demoscene Board again
  12. Click the “PROGRAM” button on the GUI:
  13. The program will Verify, Load, and Write the hex file to the board:

Additional Notes:

  1. When you power up the board without a jumper, you have 5 seconds to upload your new hex file. After 5 seconds, the bootloader will automatically load the application from flash memory. If you need more than 5 seconds, you can place the Jumper on PGEC1 and PGED1 to force the bootloader to load indefinitely at reset:
  2. To force the application to load, place a jumper on PGED1 and GND:

PICKIT3 Programming

  1. WARNING: The following procedure will erase the bootloader on the board!
  2. Purchase a PICKIT3: https://www.sparkfun.com/products/9973 (or from your favorite vendor)
  3. Connect the PICKIT3 to the L1 Demoscene Board:
  4. Open MPLAB X
  5. Select the PICKIT3 as the programming device
  6. For MPLAB X: Select PICKIT3 in the Project Properies → Device
  7. Upload by clicking the “Download” button

Documentation

Datasheet for PIC24FJ256DA206: pic24fj256da206.pdf

Graphics Controller Module datasheet for PIC24FJ256DA206: 39731a.pdf


Code

C Code Example: L1Demo Getting Started

Assembly Examples: L1 Demoscene Board


Hardware

Board and Schematic Files: L1 Demoscene Board & Schematic

demoboard_getting_started.txt · Last modified: 2023/02/19 02:35 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki