This page presents the getting started guide of the Esus board.

Presentation

carteesus_details_en

Power 2.8 – 11.8 V
Microcontroller ESP8266 80 Mhz
Analog Input Pins 6
Mini-usb connector programming Esus board
On/Off switch Turn on and off the board. The PWR green led will light when power on.
10 pins connector
  • +3.3V : 3.3 Volt tension
  • GND : ground pins
  • SCK/IO14 : SPI clock or GPIO n°14
  • MISO/IO12 : Master Input Slave Output of SPI bus or GPIO n°12
  • MOSI/IO13 : Master Output Slave Input of SPI bus or GPIO n°13
  • IO2 : GPIO n°2
  • TX/IO1 : serial UART (transmit) or GPIO n°1
  • RX/IO3 : serial UART (receive )or GPIO n°3
  • GND : ground pins
  • +5V : +5V tension
H bridge out
  • Two outputs on screw terminals for the control of two DC motors.
  • Output current 1A per channel max.
Analog inputs (A0 – A5)
  • 8 bits resolution,
  • Input tension : 0-3.3V
    •  0 V = 0
    • 3.3V = 1023
Logic inputs (I2 – I3) Logic inputs (0 or3.3V)

Arduino IDE installation

Configuration

The first step is the configuration of the Arduino IDE for support the ESP8266 microcontroller.

  • Open Arduino IDE.
  • Next:
    • File->Preferences

en_img1

  • Additional Boards Manager URLs :

http://arduino.esp8266.com/stable/package_esp8266com_index.json

en_img2

  • Click Ok
  • Then , menu : Tools->Boards Managers :

en_img3

  • Then, search « esp8266 » :

esp_4

  • Install « esp8266 by ESP8266 Community » :

esp_5

  • Tools->Boards :

en_img4

Blink exemple :

en_img5

  • Verify and uploid the program :

esp_9

Install Esus libraries

  • Dowload arduino lib for Esus lib : here
    • Software/Arduino

github_esus

Then, puts this files in the repertory “libraries” of Arduino IDE :

  • esusBoard.cpp
  • esusBoard.h

ard_esus

  • Repertory EsusBoard with .c and .h files:

ard2_esus

  • Now, you can program the Esus board.

A simple exemple

#include <esusBoard.h>

int ledPin = 2;

void setup() 
{
  // initialisation
  initEsusBoard();

  // initialisation output
  pinMode(ledPin, OUTPUT);

}

void loop() 
{
  // turn on the led
  digitalWrite(ledPin, HIGH);

  // 2 secondes (2000 ms)
  delay(2000);

  // turn off
  digitalWrite(ledPin, LOW);

  delay(2000);
}