Show Posts
Pages: 1 2 3 [4] 5 6 ... 37
46  Using Arduino / Project Guidance / Re: Attiny85 USB on: July 03, 2013, 12:53:17 am
Check out the Digispark (http://digistump.com/products/1).  It's pretty much what you describe. You can either buy a built one, or since it's open source, base your own design on it.

Good luck!
47  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: July 02, 2013, 08:06:36 pm
Hi magagna, I am trying to get the smart config working, and I have noticed one todo:

Code:
} // todo: figure out why I had to add this

This is due to an error on security.h. You must add the following code at the end of file to close the extern "C" {

Code:
#endif //CC3000_UNENCRYPTED_SMART_CONFIG

#ifdef  __cplusplus
}
#endif // __cplusplus

#endif

And then just remove this closing "}" line

Good catch! Thanks!
48  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: July 02, 2013, 08:06:05 pm
HI Magagna, thanks for the great job smiley I am using your CC3000 library for connecting UNO board with TI CC3000 Booster board, every thing is working perfect as expected  smiley-cool
only difference is that the cc3000 version is little old (1.7), i hope it'll not great any problem.
"Version of the CC3000 is: 1.7"
going further i was trying to check the MAC address but the function hangs and doesn't return any value smiley-sad

unsigned char MAC_id[]={0x08,0x00,0x28,0x01,0x70,0x16};
Serial.println("updating MAC");
nvmem_set_mac_address((unsigned char*)MAC_id);
Serial.println("MAC updated");

Serial.println("get MAC Address");   
nvmem_get_mac_address((unsigned char *)MAC_id);
Serial.print("MAC id is:");
for(char i=0;i<6;i++)
Serial.print(MAC_id, DEC);

any idea what's wrong here?


The release notes:

http://processors.wiki.ti.com/index.php/CC3000_Release_Notes

says the functions you're using were added with the firmware you have (you have firmware version 1.7 but that's really release package 1.9), but there's nothing about any updates to those API functions since then. I did find one post that says that after someone did a firmware update they got the call to work:

http://e2e.ti.com/support/low_power_rf/f/851/t/244794.aspx

Which isn't really helpful, but is probably further indication that we really need to get the firmware update code ported....

The documentation says nvmem_set_mac_address() should return 0 if successful. Can you verify you're getting that?

The only other thing I can think to try is maybe add a delay between the set and the get? Maybe the CC3000 needs some time to write to Flash?

49  Using Arduino / Project Guidance / Re: Teensy 3.0 help. on: July 02, 2013, 07:20:43 pm
Thank you very much
But I think (it is my fault...) I didnt express myself in the right way.

I mean...how do I bring  pins (like those: http://www.pjrc.com/store/header_14x1.html) on the little small square areas (GPIO 24, 25, ..., 32, 33) visible on the second picture (Teensy 3.0) here http://www.pjrc.com/teensy/pinout.html ?

Regards

You can either solder wires to those pads (that's what I did), or you can buy something like this:

https://www.tindie.com/products/loglow/teensy-30-mini-breakout/
https://www.tindie.com/products/loglow/teensy-30-breakout/

or this:

https://www.tindie.com/products/joni/teensy-30-to-dipbreadboard-board-kit/
https://www.tindie.com/products/joni/teensy-30-to-dipbreadboard-board/

Good luck!
50  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 29, 2013, 11:16:50 am
That is great news. I didn't even think to check that but you're right the interrupt mapping for your board is different. Congratulations!

One thing I see is that your board reports version 4.0 of the firmware. My board says it is version 1.19 since I used the TI demo code and it did a firmware update. This page: http://processors.wiki.ti.com/index.php/CC3000_Release_Notes says 1.19 is the most current version.

We will have to figure out how to port the patch programmer to Arduino for this as well....a lot to do but very exciting...
51  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 27, 2013, 10:55:38 pm
Hi guys,

Sorry for the delay, I have been busier with work this week than I anticipated. I doubt I'll have time to get to the library before Sunday, but I'm pretty sure I'll have time to work on it then.

I did see SparkFun is having a 20% off sale (https://www.sparkfun.com/pages/news20?utm_source=promo&utm_medium=social&utm_campaign=newsletter) so I think I may buy a Pro Micro and see if I can figure out why it's not working for alvarolb.

[edit - Pro Micro, not Pro Mini. alvarolb - is this the board you have? https://www.sparkfun.com/products/10999 ?)
52  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 26, 2013, 12:07:47 pm
OK thanks, that means it's very likely a bug in the library and not anything to do with your hardware. I'll start looking tonight.
53  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 26, 2013, 11:43:08 am
Sorry to hear that.

I've only been using the Teensy for the last few days and no problems with it, but it's using bit-banged SPI instead of the hardware so there may very well be differences. I will re wire things to use a Nano tonight and look into it.

What Arduino are you using? If you're using a 5V board how are you level shifting the control signals?
54  Using Arduino / General Electronics / Re: Does a 3.3V P-channel MOSFET exist? on: June 25, 2013, 09:32:03 pm
...The source is wired to 3.3 volts...
...Just set gate voltage equal to source voltage...

I'm sorry if I wasn't clear on that. My gate voltage is 0 or 3.3V (from a 3.3V Arduino GPIO pin). My source is 12V (supplying power to a LED bank).
55  Using Arduino / General Electronics / Re: Does a 3.3V P-channel MOSFET exist? on: June 25, 2013, 09:02:47 pm
Neat! Thanks!
56  Using Arduino / General Electronics / Does a 3.3V P-channel MOSFET exist? on: June 25, 2013, 08:21:15 pm
So far all my research says that 5V is the lowest voltage you can use to fully switch off a P-channel MOSFET (like this one http://www.digikey.com/product-detail/en/DMP2305U-7/DMP2305UDICT-ND/2052810), unless you use a driver etc. Or is there one out there that I'm missing?

Thanks as always.
57  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 23, 2013, 04:54:05 pm
Good idea on the compiler directive. I'll make that change too.

On the buffer, uncomment

Code:
extern unsigned char wlan_tx_buffer[]

in ArduinoCC3000SPI.h.

The actual definition is in ArduinoCC3000SPI.cpp

I will make this change as well.

Thanks!

[edit - code patched at github and formatting fixed here to make the required change more obvious]
58  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 23, 2013, 01:55:59 pm
I'm pleased to report the library is ready and I've just uploaded it to github:

https://github.com/cmagagna/ArduinoCC3000

This version now compiles and runs on a Uno etc. without having to use the CC3000_TINY_DRIVER flag. By default the library will take about 12K of Flash and 350 bytes of RAM.

The included file ArduinoCC3000.ino doesn't do much more than initialize the library and reports its firmware version, but will hopefully be enough to get you started. In the next few days I'll be fleshing this code out to do more demos, e.g. run Smart Config, show WiFi & IP info, etc.

Please feel free to let me know if you have any questions etc. Thanks to everybody here for help on getting the hardware working.
59  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 22, 2013, 05:34:07 pm
Hi all,

The basic library is done and working for the Teensy 3.0. I'm currently removing all my debugging code and writing up some documentation and will hopefully have that done tomorrow or soon next week.

I've created a github account and published my code you can use to test basic connectivity between an Arduino and a CC3000:

https://github.com/cmagagna/ArduinoCC3000Test

More soon.
60  Development / Other Hardware Development / Re: discussion on supporting the TI CC3000 WiFi module on: June 20, 2013, 08:08:21 pm
Quote
There are RF compliance issues, if you don't exactly follow the TI reference design rules and antenna selection.  And the design rules are tough to follow (weird board thickness, etc.)  There is useful discussion under the hackaday link alvarolb posted...

You get a bit disillusioned when all those lovely $12 modules become $40 boards, and your homemade "simple" replacement isn't legal :-(
It'd be more productive to write TPLINK router code to turn it into a slave device, and then you wonder what your arduino is there for at all

I agree...that's why I'm hoping someone else does that part...

I actually wouldn't mind a CC3000 daughterboard at $40 if it had more of a normal footprint (not necessarily a real shield, but something more like the hackaday board).

It seems like the WiFi for Arduino right now is either

* Expensive and weird (the official Arduino WiFi board or the Yún)
* Cheaper but limited API (the RN-XV)
* Cheaper but requires "cloud" services (the Electric Imp and the Spark Core)
* Cheaper but in a form factor not great for small embedded systems (connecting an Arduino to a router per your example)

My hope is the CC3000 will let us get past all of that.
Pages: 1 2 3 [4] 5 6 ... 37