maniacbug / RF24Network

Network Layer for nRF24L01(+) Radios
http://maniacbug.github.com/RF24Network
273 stars 129 forks source link

Wifi and rf24? #14

Closed Skeyelab closed 10 years ago

Skeyelab commented 10 years ago

Can one arduino use a wifi shield and a rf24 at the same time? If like to make my node 0 have wifi.

ramonlh commented 10 years ago

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

Skeyelab commented 10 years ago

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

ramonlh commented 10 years ago

Eric,

The wifi shield and then Ethernet shield use pins 11,12 and 13 (50,51 and 52 on the Mega). Also pin 10 for Select.

NRF24L01 uses 8 for Select and 9 for CE (ex.)

Ramón

El 15/01/2014 14:30, Skeyelab escribió:

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32361070.

Skeyelab commented 10 years ago

OK, I must be missing something here. according to your blog post, the NRF24L01 is also using pins 9,10,11,12,13

can both the wifi shield and NRF share 11,12 & 13?

http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/

Eric Dahl Head Engineer Skeyelab Music eric@skeyelab.com

www.skeyelab.com

"I don't even know how to set up an email signature." Jeremy Goodman

On Wed, Jan 15, 2014 at 10:15 AM, Ramón notifications@github.com wrote:

Eric,

The wifi shield and then Ethernet shield use pins 11,12 and 13 (50,51 and 52 on the Mega). Also pin 10 for Select.

NRF24L01 uses 8 for Select and 9 for CE (ex.)

Ramón

El 15/01/2014 14:30, Skeyelab escribió:

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32361070>.

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24Network/issues/14#issuecomment-32376282 .

ramonlh commented 10 years ago

Yes,

Pin 10 selects Ethernet/Wifi shield. Pin 8 selects NRF24L01 module, pin 9 enables module. (8-9 in my sketch, you can modify it) 11,12 and 13 are commons.

Ramón

El 15/01/2014 18:52, Skeyelab escribió:

OK, I must be missing something here. according to your blog post, the NRF24L01 is also using pins 9,10,11,12,13

can both the wifi shield and NRF share 11,12 & 13?

http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/

Eric Dahl Head Engineer Skeyelab Music eric@skeyelab.com

www.skeyelab.com

"I don't even know how to set up an email signature." Jeremy Goodman

On Wed, Jan 15, 2014 at 10:15 AM, Ramón notifications@github.com wrote:

Eric,

The wifi shield and then Ethernet shield use pins 11,12 and 13 (50,51 and 52 on the Mega). Also pin 10 for Select.

NRF24L01 uses 8 for Select and 9 for CE (ex.)

Ramón

El 15/01/2014 14:30, Skeyelab escribió:

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub <

https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32361070>.

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24Network/issues/14#issuecomment-32376282 .

— Reply to this email directly or view it on GitHub https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32390299.

Skeyelab commented 10 years ago

Awesome! Thanks!

ramonlh commented 10 years ago

See this image: http://commons.wikimedia.org/wiki/File:SPI_three_slaves.svg

El 15/01/2014 18:52, Skeyelab escribió:

OK, I must be missing something here. according to your blog post, the NRF24L01 is also using pins 9,10,11,12,13

can both the wifi shield and NRF share 11,12 & 13?

http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/

Eric Dahl Head Engineer Skeyelab Music eric@skeyelab.com

www.skeyelab.com

"I don't even know how to set up an email signature." Jeremy Goodman

On Wed, Jan 15, 2014 at 10:15 AM, Ramón notifications@github.com wrote:

Eric,

The wifi shield and then Ethernet shield use pins 11,12 and 13 (50,51 and 52 on the Mega). Also pin 10 for Select.

NRF24L01 uses 8 for Select and 9 for CE (ex.)

Ramón

El 15/01/2014 14:30, Skeyelab escribió:

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub <

https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32361070>.

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24Network/issues/14#issuecomment-32376282 .

— Reply to this email directly or view it on GitHub https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32390299.

ramonlh commented 10 years ago

Eric, this is my prototype with Ethernet shield + NRF24L01. It's running at http://elconucom.dyndns.org:82.

Saludos Ramón

El 15/01/2014 18:52, Skeyelab escribió:

OK, I must be missing something here. according to your blog post, the NRF24L01 is also using pins 9,10,11,12,13

can both the wifi shield and NRF share 11,12 & 13?

http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/

Eric Dahl Head Engineer Skeyelab Music eric@skeyelab.com

www.skeyelab.com

"I don't even know how to set up an email signature." Jeremy Goodman

On Wed, Jan 15, 2014 at 10:15 AM, Ramón notifications@github.com wrote:

Eric,

The wifi shield and then Ethernet shield use pins 11,12 and 13 (50,51 and 52 on the Mega). Also pin 10 for Select.

NRF24L01 uses 8 for Select and 9 for CE (ex.)

Ramón

El 15/01/2014 14:30, Skeyelab escribió:

Thanks. It seemed that the rf24 and wifi shield use the same pins to communicate.

Eric Dahl

On Jan 15, 2014, at 4:14 AM, Ramón notifications@github.com wrote:

Why not? You must be careful with the frequencies and channels. I' using use the node 0 and Arduino Mega2560+Ethernet Shield+TPLink MR3020 in the same box.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub <

https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32361070>.

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24Network/issues/14#issuecomment-32376282 .

— Reply to this email directly or view it on GitHub https://github.com/maniacbug/RF24Network/issues/14#issuecomment-32390299.