2014年1月2日 星期四

Arduino UNO + CC3000 WiFi Module

This demo is CC3000 module for the WiFi communication, uses the examples code "EchoServer.ino", it connects to the access point, get a connection with DHCP.

Board : Arduino Uno
Module : CC3000 WiFi Module
On the CC3000 shield, I use the following pin connections.
  • PIN 1 - GD to Arduino GND
  • PIN 2 - VD to Arduino 3.3V
  • PIN 3 - CS to Digital 10
  • PIN 4 - DO(MISO) to Digital 12
  • PIN 5 - DI(MOSI) to Digital 11
  • PIN 6 - CK(CLK) to Digital 13
  • PIN 7 - IQ(IRQ) to Digital 3
  • PIN 8 - EN(VBEN) to Digital 5
Library & Examples code : Adafruit_CC3000 librar

Demo : 

To run the sample sketches, you'll have to edit them to include the SSID and password of your access point.
#define WLAN_SSID     "myNetwork"      // cannot be longer than 32 characters!
#define WLAN_PASS     "myPassword"

Also, make sure that the right wireless security scheme is selected (unsecured, WEP, WPA, or WPA2).
// Security can be WLAN_SEC_UNSEC, WLAN_SEC_WEP, WLAN_SEC_WPA or WLAN_SEC_WPA2
#define WLAN_SECURITY   WLAN_SEC_WPA2

Here's a sample of the Serial Monitor output of buildtest.
Hello, CC3000!

Free RAM: 1059

Initializing...
Started AP/SSID scan



Connecting to Steve_AP...Waiting to connect...Connected!
Request DHCP

IP Addr: 192.168.0.109
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DHCPsrv: 192.168.0.1
DNSserv: 168.95.1.1

NOTE: This sketch may cause problems with other sketches
since the .disconnect() function is never called, so the
AP may refuse connection requests from the CC3000 until a
timeout period passes.  This is normal behaviour since
there isn't an obvious moment to disconnect with a server.

Listening for connections...





4 則留言:

  1. 您好,
    小弟想來研究Arduino, 看了您的cc3000 demo.想說一開始用cc3000 module+uno,等想要的功能完全正常時就將uno換成mini或nano正式上線工作.uno就拿來做下一個實驗,不知這樣的想法是否正確. 謝謝!!
    Tony

    回覆刪除
  2. 瞭解了,謝謝您的解答....
    Tony

    回覆刪除
  3. 此晶片可以拿來做ap的rssi訊號大小偵測嗎? 跟uno配合

    回覆刪除