Using the WiFi TinyShield Tutorial

by TinyCircuits Staff February 19, 2016

Using the WiFi TinyShield Tutorial

Overview:

(Caution: This board has been discontinued. Updated tutorials exist for our current WiFi TinyShield.)

The TinyShield WiFi Board lets you connect up your projects to the Internet over WiFi. This TinyShield is based around the TI CC3000 WiFi Module, which supports 802.11b/g, different security modes (None, WEP, WPA and WPA2) and has a built in TCP/IP Stack that supports up to 4 concurrent sockets.


WiFi TinyShield Signals:

TinyShield Signal Function Description
SCLK (13) SPI_CLK This signal is the serial SPI clock out of the TinyDuino and into the WiFi module.
MISO (12) SPI_DOUT This signal is the serial SPI data out of the WiFi module and into the TinyDuino.
MOSI (11) SPI_DIN This signal is the serial SPI data out of the TinyDuino and into the WiFi module.
2 SPI_IRQ This signal is the interrupt output from the WiFi module and into the TinyDuino.
8 SPI_CS This signal is the SPI chip select output from the WiFi module and into the TinyDuino.
A3 VBAT_SW_EN This signal is an input to the WiFi module and is used to enable or disable the module. Set this high to enable the module.

Powering the System

The TI CC3000 module draws up to 275mA when operating, so a coin cell battery is not sufficient to run this board.

The WiFi TinyShield includes a local voltage regulator and level shifters, so your TinyDuino system can operate from 3 – 5 Volts safely.


Using the WiFi TinyShield

Upon power up, the enable pin, VNAT_SW_EN must be driven HIGH in order to allow the CC3000 to operate.


Example

The WiFi TinyShield is completely compatible with Adafruit CC3000 WiFi library for the Arduino: Adafruit CC3000 Library

The one change that is needed is that the VBAT_SW_EN, SPI_IRQ, and SPI_CS are on different pins, so a minor change is required near the beginning of the Adafruit example projects.


// Pin definitions for the TinyCircuits WiFi TinyShield

// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   2  // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT  A3
#define ADAFRUIT_CC3000_CS    8


TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

TinyZero Accelerometer BMA250 Internet of Things Project with Cayenne
TinyZero Accelerometer BMA250 Internet of Things Project with Cayenne

by Laverena Wienclaw November 21, 2018

In this tutorial, we will use Cayenne to capture some accelerometer readings on their nice Internet of Things dashboard

View full article →

TinyZero Setup Tutorial
TinyZero Setup Tutorial

by Laverena Wienclaw November 21, 2018

Ready to get started with your new TinyCircuits product? This tutorial will cover basic setup of the TinyZero.

View full article →

Using the TinyZero Accelerometer
Using the TinyZero Accelerometer

by Laverena Wienclaw November 21, 2018

This tutorial will guide you through reading values from the Accelerometer that can be populated on the TinyZero

View full article →