TinyCircuits Forum

General Category => General Discussion => Topic started by: Speedy on November 24, 2013, 04:29:13 PM

Title: WIFI
Post by: Speedy on November 24, 2013, 04:29:13 PM
Is there a Lib for the WIFI Shield?
Title: Re: WIFI
Post by: pdxbrit 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.
Title: Re: WIFI
Post by: mhudspeth 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/ (http://tiny-circuits.com/learn/)) for every module but WiFi.
Title: Re: WIFI
Post by: mhudspeth 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 (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.
Title: Re: WIFI
Post by: pdxbrit 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

Title: Re: WIFI
Post by: mhudspeth 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
Title: Re: WIFI
Post by: pdxbrit 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!

(https://s3-us-west-2.amazonaws.com/droplr.storage/files/acc_132517/sZYx?AWSAccessKeyId=AKIAJSVQN3Z4K7MT5U2A&Expires=1385501663&Signature=70%2BIqB5V1WcOJpNdgvG0tdqRU8o%3D&response-content-disposition=inline%3B%20filename%3Dtinyduino-wifi.png%3B%20filename%2A%3DUTF-8%2527%2527tinyduino-wifi.png)
Title: Re: WIFI
Post by: absys 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?
Title: Re: WIFI
Post by: camillo777 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
Title: Re: WIFI
Post by: TinyCircuits 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
Title: Re: WIFI
Post by: Josephur 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!
Title: Re: WIFI
Post by: Josephur 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!
Title: Re: WIFI
Post by: acarson 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!