Driver 4 Tutorial

September 28, 2020
This guide helps you to get started with Ynvisible Segment Display Driver 4 (beta). The driver is included in the Segment Display Kit. Follow the simple steps below and you'll be up and running in minutes.
Rdot Display Driver

Required Hardware

  1. Ynvisible 2x7-segment display (or another design if you prefer)
  2. Ynvisible driver V4.1
  3. Arduino Uno (or other Arduino with I2C interface)
  4. 4 jumper wires (male-female)

Required Software

Connecting the components

  1. Connect the Arduino to the driver board with the jumper wires.
  2. SDA to A4 (On Uno) or SDA pin
  3. SCL to A5 (On Uno) or SCL pin
  4. VCC to 5V
  5. GND to GND
  6. Insert the display in the connector on the driver board. Make sure that the display electrodes are well aligned with the connector electrodes. The leftmost display electrode must be connected to the leftmost electrode in the connector.
Rdot Display Driver Connection

Add the library to the Arduino IDE

  1. Install and open Arduino IDE
  2. Click "Sketch"/"Include Library"/"Add .ZIP Library..." in the main menu
  3. Go to your downloads folder and choose RDOT_ECD_I2C_1.0.zip

Upload your first code

  1. Connect the Arduino to your computer with a USB cable
  2. Create a new file in the Arduino IDE
  3. Replace the code in the editor with the code below:

#include <RDOT_ECD_I2C_1.0.h>

int i2c_address = 43;         //The i2c address of driver board 4.1
int number_of_segments = 15;  //Number of segments on display (1-15)

RDOT_ECD ECD(i2c_address, number_of_segments); //ECD Object

void setup() {
}

void loop() {
  for(int i=-99; i<100; i++){ //Counting from -99 to 99.
    ECD.setNumber2x7(i);      //Set display to number i
    delay(5000);              //5 seconds delay between each update
  }
}

  1. Click "upload" (the right arrow on the upper left in the Arduino IDE)
  2. Congratulations! Your display should now count from -99 to 99.

For more information about the Arduino library, read the documentation here.

Please don't hesitate to contact sales@ynvisible.com if there are questions or comments.

Read more