TinyCircuits

WIFI

WIFI
« on: November 24, 2013, 04:29:13 PM »
Is there a Lib for the WIFI Shield?

Re: WIFI
« Reply #1 on: November 25, 2013, 08:07:02 PM »
Is there a Lib for the WIFI Shield?
'

I'm wondering the same thing. I finally unpacked my TinyDuino, and was looking for a WiFi how to on the website.

Re: WIFI
« Reply #2 on: November 26, 2013, 01:37:09 PM »
I, too, am looking for any info regarding the WiFI TinyShield. The only potentially useful info I have been able to find is that the Wifi module uses pins A3, 2, 8, MISO, MOSI, and SCK. The last three are helpful in that they are standard for most of the libraries you can find for the CC3000, but the first three don't help me because I don't know which functions those pins are being used for.

Hopefully someone close to the project can come and answer some questions in this thread. It seems there are how-tos (http://tiny-circuits.com/learn/) for every module but WiFi.

Re: WIFI
« Reply #3 on: November 26, 2013, 02:19:08 PM »
Through my searches, I have found that the Adafruit CC3000 library (https://github.com/adafruit/Adafruit_CC3000_Library) seems to work so far. Using this and playing with variables, it seems that CS from the wifi module is bound to pin 8, IRQ on pin 2, and the final pin is A3 (I believe this is used to turn the WiFi on/off).

Someone please correct me if I am wrong.

Re: WIFI
« Reply #4 on: November 26, 2013, 03:11:56 PM »
mhudspeth,

I was just looking at the Adafruit library too. I'm completely new to Arduino, so bear with me, but taking the InternetTime.ino code as an example the following would be true?

Code: [Select]
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   2 // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT  A3
#define ADAFRUIT_CC3000_CS    8
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11


Re: WIFI
« Reply #5 on: November 26, 2013, 03:31:03 PM »
mhudspeth,

I was just looking at the Adafruit library too. I'm completely new to Arduino, so bear with me, but taking the InternetTime.ino code as an example the following would be true?

Code: [Select]
. . .

That's what I had, yes. Make sure you have the network SSID, password, and security information on the next couple lines.

Code: [Select]
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ   2  // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT  A3
#define ADAFRUIT_CC3000_CS    8
// 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_DIV2); // you can change this clock speed but DI

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

Re: WIFI
« Reply #6 on: November 26, 2013, 03:34:56 PM »
Woo! That worked. I couldn't figure out why I wasn't seeing anything, then found the console was hidden. Seems to be working to me!


Re: WIFI
« Reply #7 on: December 02, 2013, 10:24:30 PM »
yeah.. every new module must have a Hello Word working example.. we have waiting this module a long time.. without that and without the proper information I think is practically a quimera to get it working integrated in any  project.. nice piece of hardware but a lack of time.. and of money too , perhaps?

Re: WIFI
« Reply #8 on: December 04, 2013, 06:16:11 AM »
But, isn't the CC3000 board capable of the so called SimpleLink technology so that it does not need a source code WiFi configuration to connect to the WiFi network?
Camillo

Re: WIFI
« Reply #9 on: December 04, 2013, 06:59:22 PM »
Sorry all for the lack of documentation on this board - there is now a section under the Learn part of the website that lists how to get going with this:  https://tiny-circuits.com/learn/using-wifi-tinyshield

As a number of you have determined, this will work with the Adafruit CC3000 Arduino libraries, and all of their examples will work, the only change are that the pin mapping needs changed at the beginning of the Arduino sketches.

Also one of our Kickstarter backers just put up a nice tutorial of making a WiFi Temperature sensor using the TinyDuino and the WiFi TinyShield: http://www.openhomeautomation.net/tiny-wifi-temperature-arduino/

Thanks!

Ken
TinyCircuits

Re: WIFI
« Reply #10 on: February 09, 2014, 01:10:36 AM »
I will be posting a basic tutorial video on the WiFi TinyShield to YouTube soon, I'll post to the User Code / Example section as well as here when it's done and uploaded.

This shield is a fantastic piece of work!

Re: WIFI
« Reply #11 on: February 09, 2014, 03:20:33 PM »
As promised you can find my WiFi TinyShield video tutorial here:

http://youtu.be/irk95KCqngQ

Like and subscribe if you find it useful please, and I will produce more videos on all the Tiny products!

Re: WIFI
« Reply #12 on: March 29, 2014, 03:27:39 AM »
I'm looking to call a PHP script on the web. Does anyone know how to do this? Thanks!