Use CC3000 library with Arduino Micro?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
cloudwalking
 
Posts: 17
Joined: Sat Jul 13, 2013 2:03 am

Re: Use CC3000 library with Arduino Micro?

Post by cloudwalking »

Thanks for this thread.

I too was having trouble getting the CC3000 to work with Sparkfun Pro Micro.

As suggested, in CC3000.cpp I switched

Code: Select all

#elif  defined(__AVR_ATmega32u4__)
with:

Code: Select all

#else
In CC3000, there's a table that decides if the IRQ pin is an interrupt pin. It looks like this table is just incorrect when it comes to the ATmega32u4 Leonardo.

Waterfox
 
Posts: 1
Joined: Thu May 23, 2013 8:39 pm

Re: Use CC3000 library with Arduino Micro?

Post by Waterfox »

Working for me on the Micro.
Changed this line: #elif defined(__AVR_ATmega32U4__)
to: #else
and wired
/*
CC3000 MICRO MEGA
CLK/SCK SCK 52
MISO MISO 50
MOSI MOSI 51
CS 10 10
VBEN 5 5
IRQ 3 3
*/
Thanks for the help

User avatar
cwren
 
Posts: 8
Joined: Mon Dec 30, 2013 7:22 pm

Re: Use CC3000 library with Arduino Micro?

Post by cwren »

The buildtest example runs, but the SendTweet example is too big for the Micro:
Binary sketch size: 31,100 bytes (of a 28,672 byte maximum)

This is too bad, since I'd hoped to use HMAC in my application.

Maybe I can reclaim some space if my transaction is simpler than OAuth for Twitter, but it seems like it's going to be tight.

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: Use CC3000 library with Arduino Micro?

Post by Barry914 »

Just for fun, try IDE 1.5.7. Its compiler produces much more optimized output and just might fit.

User avatar
rewound
 
Posts: 1
Joined: Sun Jan 25, 2015 2:27 pm

Re: Use CC3000 library with Arduino Micro?

Post by rewound »

I was having issues at first myself. Couldn't seem to find too many resources for the micro + CC3000. Got it working with the examples so I decided to post my diagram. Hope this helps someone like myself.
Attachments
MicroCC300_bb.jpg
MicroCC300_bb.jpg (545.33 KiB) Viewed 360 times

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: Use CC3000 library with Arduino Micro?

Post by Barry914 »

cwren wrote:The buildtest example runs, but the SendTweet example is too big for the Micro:
Binary sketch size: 31,100 bytes (of a 28,672 byte maximum)
I'm pretty sure the documentation for the library says the Tweet example doesn't work.

User avatar
cwren
 
Posts: 8
Joined: Mon Dec 30, 2013 7:22 pm

Re: Use CC3000 library with Arduino Micro?

Post by cwren »

Oh I know it doesn't work. The problem is that it doesn't even fit. I only care because I wanted to use HMAC to authenticate connections since the Arduino can't do SSL, and that example uses both the cc3000 library and a cut-down version of the BANNED library, so I wanted to see it compile, install, and fail before I started modifying it - managed to compile but not install.

I was able to get the example into the Micro by clipping out a bunch of strings: making the error strings shorter, and also clipping out the very verbose OAuth message. Since I am rolling my own HMAC protocol it will be a lot less verbose than OAuth. However that's not going to leave me a lot of head room for actual application code.

And in any case I've gotten derailed by the fact that the CC3000 will only succeed at DHCP one a day or so. It seems fail on trying to get DHCP when there is an existing lease, but I'm trying to isolate that problem to be sure.

User avatar
cwren
 
Posts: 8
Joined: Mon Dec 30, 2013 7:22 pm

Re: Use CC3000 library with Arduino Micro?

Post by cwren »

rewound wrote: I decided to post my diagram
Thanks for posting that. That's exactly what I settled on as well, except that I used the ground on the other side of the board, but that shouldn't matter.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”