WIFI Shield (CC3000) not working with plugged in power adapter

Hello,

Hope for your help. I am playing around with an CC3000 wifi shield and Arduino UNO r3.
The Arduino is an offical part from the arduino.cc however I purchased the wifi sheild in China for 14USD.

I am using the Adafruit CC3000 library and it works just fine when I only power the unit with the USB. However, when I plug in the 9V regulated power supply in the Arduino the serial connector shows the unit never connects to the router.

I've used the below example.
Any ideas? May there been a problem with the pin set up?

  • There is nothing wrong with the power adapter

I am using the "buildtest" example from Adafruit CC33000 library

Below is the first part of the code (couldnt post the whole thing due to too many words)

#include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <string.h>
#include "utility/debug.h"

// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   3  // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT  5
#define ADAFRUIT_CC3000_CS    10
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT,
                                         SPI_CLOCK_DIVIDER); // you can change this clock speed but DI

#define WLAN_SSID       "X"        // cannot be longer than 32 characters!
#define WLAN_PASS       "X"
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY   WLAN_SEC_WPA2

/ Seb

Some update.

If I measure the voltage between Vin - GND on the CC3000 shield it shows. Not sure if this is normal or not.

Only USB power connected: 3.9V

Power 9V regulated external power supply: 8.2V (weather or not I have the USB plugged in or not....)

I am still new to Arduino...

Hope for your help=)

Where is the rest of your program code?

If you run analogReadSerial example using the 9V adapter, do you see readings?

Hello Liu,

Sorry I cannot post the code, >9000 characters. I am using this example progamme with the Adafruit CC3000 library.

I tried the AnalogReadSerial example with the Uno+CC3000 shield with and without the 9V voltage supply. I dont really see any difference. Values around 200-250 on the analog read pin 0.

Any ideas?
Thanks!

/ Seb

At least your arduino is running with 9V so that is good news.

Did the example program result in connection using USB but fail to connect using 9V?

What does your 9V adapter say on its case? Is there a current value? Maybe it's too low to run a wifi shield.

Hello Liu,

I am using an regulated voltage supply rated 1700mA. I've been using several power supply's for other projects, no problem. It is only with the CC3000 shield I have having issues. Im starting to wonder if it may be due to bad soldering on the CC3000 but I cannot understand it is only affect when using external power supply and not when using the USB?
I've attached a photo.

Hope for your advice=)

The example program was running both with and without the external 9V power supply.

/ Seb

So the cc3000 example code runs with usb and 9v but your project code will not run on 9v? Strange. Can you post the markings on your 5v regulator? Does your board say arduino.org?

Hello Liu,

No, the CC3000 only work when I have the USB connected without the external power supply. It does not work with the 9V power supply at all..

/Seb

Try 7.5v on your adapter. You got a fake. Read marking on your regulator. Backward C then two vertical bars, correct?

Hello Liudr,

Late reply from my side... The power adapter is not the problem. I also tried with the below power upply and a linear voltage regulator L7809.

Anyone have another idea?

/Seb

If your code runs with usb but not with ac adapters, then the 5V regulator on your arduino is likely broken. Provide a link to where you bought the cc3000 shield. It is also possible a regulator on the shield is broken.

liudr:
If your code runs with usb but not with ac adapters, then the 5V regulator on your arduino is likely broken. Provide a link to where you bought the cc3000 shield. It is also possible a regulator on the shield is broken.

I am not sure how much info this gives you but heres the URL http://world.taobao.com/item/40882671255.htm?spm=a1z3o.7406521.0.0.tBmuzH

Thanks,

/ Seb

The black box near the reset button on the shield is the regulator. I don't think that one is broken but please check it. Have a meter, probe the large tab and a ground pin when you have it connected to USB, and AC adapter.

Also try the same with your arduino's 5V supply. Have it on AC adapter and measure its 5V output against ground.

liudr:
The black box near the reset button on the shield is the regulator. I don't think that one is broken but please check it. Have a meter, probe the large tab and a ground pin when you have it connected to USB, and AC adapter.

Also try the same with your arduino's 5V supply. Have it on AC adapter and measure its 5V output against ground.

Alright, please see attached file. Let me know if you have any ideas?

/Seb

regulator.pdf (129 KB)