UNO

Components

Components to complete this tutorial are the following:

  • UNO
  • ESP 8266
  • Micro USB to USB cable
  • Generic bread board
  • Jumper cables (Male and Female)

Setup Your Environment

  • Install the Arduino IDE (Integrated development environment). This is where You can download it for Mac OS X, Windows and Linux here.

Detailed instructions can be found below:

If you are completely unfamiliar with the Arduino IDE, watch this video here to give you a better understanding of how it works.

In the Arduino IDE:

  • Go to menu: Tools > Board > Boards Manager
  • Search for Arduino AVR Boards. When found, click Install
  • Select the Arduino\Genuino Uno board type by going to Tools > Board
  • Select the port that displays Arduino\Genuino Uno

If no name is displayed, you can find the port with the following steps:

Linux and Mac OS X

  • Download and install the FTDI drivers from here. Select the appropriate version for your operating system and architecture.
  • Open a terminal window and run the command ls /dev/tty*
  • Look for a device with the name that begins with /dev/tty e.g. /dev/tty.usbmodemPy343431 on MAC or /dev/ttyUSB0/dev/ttyACM0 on Linux.

For Linux, you may need to run the two commands below. Once you've completed that, reboot your computer. This will add permissions that will allow you to upload a sketch to the board.

sudo usermod -a -G tty ${USER} sudo usermod -a -G dialout ${USER}

Windows

  • Download and install the FTDI drivers from here. Select the appropriate version for your operating system and architecture.
  • Open the Windows start menu and search for Device Manager
  • The COM port for the Pycom device will be listed as USB Serial Device or something similar
  • Keep note of the COM port (e.g. COM4)

Connecting the hardware

To connect the Arduino Uno to the ESP 8266 you'll need to connect the following pins:

Arduino UNOESP 8266
3v3VCC
GNDGND
10RX
11TX
3v3CH_PD

As the Ardnuino Uno takes male jumper cables while the ESP 8266 requires female jumper cable, a bread board can be used to make the connections. Its also useful as the boh the CH_PD and VCC pins on the ESP 8266 require power.

Create a new Sketch

  • Click on File > New to create a new Sketch
  • Copy and paste the publishEvent.ino or publishLocation.ino from the example code below
C
C
Copy
  • Add the WIFI_SSID and PASSWORD
  • Add the device_secret_key with your device secret key from the Wia Dashboard (the one that begins with d_sk)
  • Sketch > Upload to send it to your MKR GSM 1400

Go to the Wia dashboard to view the data coming through to your device.

If you need any help with getting setup or you don't understand the tutorial, tweet us, email support@wia.io or chat on Intercom.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard