Extender
  • Extender Manual
  • Introduction
    • Safety Precautions
    • Specifications
    • Regulatory Compliance
    • What's in the box
    • External features
    • System requirements
  • Getting started
    • Syncing real-time clock
    • Updating firmware
    • Formatting SD Card
  • Modes of operation
    • Power only mode and Trigger Input
    • SD card recording mode
    • Pass-through mode
    • USB drive mode
  • Extender Details
    • Extender Button Functionality
    • Extender LED Functionality
    • Extender Charging
  • Hardware Triggering
    • Trigger Input & Cable
    • Example 1: 1s Pulses
    • Example 2: Serial Triggering
    • Example 3: MATLAB
  • Data Access
    • Downloading recordings
    • Decrypting recordings
    • Exported data format
  • Troubleshooting
    • Hardware Reset
Powered by GitBook
On this page
  1. Hardware Triggering

Example 1: 1s Pulses

PreviousTrigger Input & CableNextExample 2: Serial Triggering

Last updated 5 years ago

This example generates fixed time interval pulses into the trigger port of Extender and you can see in the last image how trigger pulses are represented in EmotivPRO.

Pictured below is an Arduino Uno connected to the trigger input cable.

Below is the code we used to test which had a 10% duty cycle. Output on pin 9 shared with the LED so you can see the pulses, input voltage was ~3.5V.

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
*/


// the setup function runs once when you press reset or power the board
void setup() {
  pinMode(9, OUTPUT);
}

// the loop function runs forever
void loop() {
  digitalWrite(9, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);                     
  digitalWrite(9, LOW);    // turn the LED off by making the voltage LOW
  delay(900);                       
}

We modified the default blink application to use pin 9 and set the high delay give a 10% duty cycle. 100ms High and 900ms low.

We saw the following output in EmotivPRO.