Uploading a Sketch for your SKAARHOJ Device

From Skaarhoj
Jump to: navigation, search

This tutorial will instruct you how to upload the software needed for your SKAARHOJ controller to work. It's assumed you have already made a successful connection with your controller Connecting to your ATEM switcher by using the ATEMmonitor.

What you need:

  • SKAARHOJ Controller
  • ATEM Switcher

MAC

This demo is performed on Mac OS 10.8.2 (Mountaion Lion) with Arduino IDE 1.01

Step 1: Get Support Libraries

  • Download all support Libraries at the GitHub
  • Press Raw to download
  • Move the folders from inside the AllSupportLibraries to /Users/Your Username/Arduino/Libraries/

ATEMLibraries.png

Step 2: Restart Arduino and confirm

  • Restart the Arduino IDE if open
  • Confirm installtion of libraries by observing the folder File -> Examples

ATEMLibrariesLlst.png

Step 3: Traditional or NewMethod

Traditional Method

Step 1: Chose Sketch

  • Chose sketch you want to upload from File -> Examples -> ATEM
  • Set IP address and MAC address (found on label at bottom of controller) of SKAARHOJ controller (see [Connecting to your ATEM switcher] for details)
  • The addresses of SKAARHOJ/ATEM needs to be on the same subnet 192.168.10.*. By default (unless otherwise stated) the IP address for the SKAARHOJ unit is always set to 192.168.10.99 and 192.168.10.240 for the ATEM switchers in all SKAARHOJ libraries.

Step 2: Board

  • Set the right board in Tools -> Board (either Arduino Ethernet or Arduino Mega 2560 or Mega ADK
  • Upload sketch by pressing upload button.
  • Confirm upload by open Serial Monitor (Tools -> Serial Monitor) and observe data being transmitted.
  • Congratulations - you have uploaded a model sketch to your SKAARHOJ controller!

New Method

Step 1: Chose Sketch

  • Chose sketch (needs to be one of the new with automatic IP detection) from File -> Examples -> ATEM (e.g. Skaarhoj_C90).

Step 2: Board

  • Set the right board in Tools -> Board (either Arduino Ethernet or Arduino Mega 2560 or Mega ADK

Step 3: Setup

  • Run sketch and open Serial Monitor (Tools -> Serial Monitor)
  • If data is saved in EEPROM memory you're good to go (and model sketch is uploaded) - if not, open ConfigEthernetAddresses in File -> Examples -> ATEM -> ConfigEthernetAddresses
  • Here you can set the SKAARHOJ IP address, ATEM switcher IP address, SKAARHOJ Device MAC address (found on label at bottom of controller). Upload sketch - this information is now saved in the EEPROM memory!
  • The addresses of SKAARHOJ/ATEM needs to be on the same subnet 192.168.10.*. By default (unless otherwise stated) the IP address for the SKAARHOJ unit is always set to 192.168.10.99 and 192.168.10.240 for the ATEM switchers in all SKAARHOJ libraries.
  • Upload sketch again and confirm by open Serial Monitor (Tools -> Serial Monitor). Observe connection.
  • Congratulations - you have uploaded a model sketch to your SKAARHOJ controller!