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
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.
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.
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?
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.
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?