Example 1: 1s Pulses

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.

  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)
  digitalWrite(9, LOW);    // turn the LED off by making the voltage LOW

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.

Last updated