Using TonyLabs / Adafruit’s CC3000 Wifi Shield with Arduino UNO / Mega 2560

This article is about Interfacing CC3000 Wifi Shield with Arduino UNO or Mega 2560.

Adafruit’s CC3000 Wifi Shield and TonyLabs CC3000 wifi shield are compatible with each other, the code used for Adafruit’s wifi shield can also work with TonyLabs CC3000 Wifi Shield. Hence we can use Adafruit’s cc3000 Wifi shield library to work with TonyLabs CC3000 Wifi shield.

Power Issue:

One issue that was being faced by me, while I was uploading any example from the library, that Arduino output stops when it is searching for available Access Points (AP). See the output below:

The code stops here and does nothing.

The same problem was faced by other peoples on Adafruit’s wifi shield, when they were interfaccing CC3000 Wifi Shield with Arduino. This was all due to low power, Wifi shield needs more power when it is searching and connecting to any wifi, or any communication between AP and cc3000 shield needs more power, hence using external supply can solve this problem.

Check this connection, without any external supply, just with USB supply from Computer.

CC3000 Wifi shield with ArduinoCC3000 Wifi shield with Arduino

The output at USB Supply:

CC3000 Wifi Shield with Arduino output at USB Supply or Low Power

Solution:

Now connecting External Supply voltage:

External Power for CC3000 Wifi shield with ArduinoExternal Supplied Voltage to CC3000 Wifi Shield with Arduino

 

The supply voltage from external power supply is: 5.43 volts as a random voltage more than 5 volts, to provide sufficient current to shield. The current drawn by shield is 0.12A, which increases when searching for wifi Access Points up to 0.31 Amperes and voltage drops to 5.30v due to load, this might be not the same in your case due to different power supplies.

The supply voltage is given to Vin and GND pins of Wifi Shield (same pins as Arduino):

External Voltage Supplied to CC3000 Wifi Shield with Arduino

With External supply now the output is:

CC3000 Wifi Shield with Arduino working with External Supplied Voltage

Code:

In the code above (same as Buidtest example in library), you just have to change the SSID, Password and Security type of AP (to which you want to connect to), see fig below:

Configuring SSID and Password in CC3000 Wifi Shield with Arduino

Attachments:

Download Adafruit’s CC3000 Wifi Shield Library for Arduino

 

Possible Errors:

When Interfacing CC3000 Wifi Shield with Arduino, users might get half the letters on Serial, not the complete message then the serial buffer is full probably, to increase buffer size, check this tutorial:

How to change Serial Buffer Size of Arduino

2 comments

  1. For years we #39;ve seen all sorts of microcontroller-friendly WiFi modules but none of them were really Adafruit-worthy.

  2. For years we #39;ve seen all sorts of microcontroller-friendly WiFi modules but none of them were really Adafruit-worthy.

Leave a Reply

Your email address will not be published. Required fields are marked *