Pages: 1 [2] 3   Go Down
Author Topic: Another Room Automation project  (Read 3914 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I dont know if i followed exactly what you said. (english is not my main language)
So i can use my duemilanove with ethernet shield on top and also use nrf24l01 chip with no conflict between those two ?
didnt understand exactly what you mean by manually switching different pins from pin 10 :/
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9697
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
@ zoomkat i thought of that, but wouldnt that make the process of data slower ?

It might make it slower, but may not be the slowest part of your network or noticable from a human perception point of view.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, may be i'll just connect my master node (custom pcb with nrf24l01 chip) to computer with ftdi cable and then it'll receive commands from serial via php page or something like that...it's not the best for sure, the best option would be connecting ethernet sield and nrf24 chip together, but i didnt understood how to do that.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use SPI pins 11..13 for more than 1 device, but you just have to use a
different chip-select pin for each different device, pin 10 for one and some other
pin for the others. So you have to make sure the nrf2401 shield uses a something
different from the ethernet board for chip-select.

Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And that is done by software only ?

i found this:
Quote
One little catch is with Ethernet shields based on the Wiznet W5100 chipset, which includes the official Ethernet shield and many third-party shields. The W5100 has a design flaw that causes it to maintain control of the SPI bus even when another device has been selected, making it very tricky to combine the official Ethernet shield with other shields that use SPI. The Freetronics Ethernet Shield uses the W5100 chipset but includes a fix in hardware so it doesn't have that problem and will happily share the bus with other SPI devices.
source: http://www.freetronics.com/pages/stacking-arduino-shields#.USE9h6Xvh8E

So maybe there's a problem with ethernet shield, even if i can use another pin for CS (on the nrf24l01 chip), the ethernet shield wont let me use it :s
« Last Edit: February 17, 2013, 04:46:41 pm by Carlcox89 » Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You're just gonna have to work that out between whatever shields you have. Check out
the schematics, etc. Many shields seem to have marginal designs. You may have to cut
some traces, and patch software, to get shields to play nice together, or toss some shields
in the closet, and buy something else. XBee shields are notorious for this kind of problem
too.

EDIT: the other option is, you can try using the software SPI commands to connect to the
       NRF2401 module, and use a different set of pins than 10..13,

http://arduino.cc/en/Reference/ShiftIn
http://arduino.cc/en/Reference/ShiftOut
« Last Edit: February 17, 2013, 06:29:47 pm by oric_dan » Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9697
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So maybe there's a problem with ethernet shield, even if i can use another pin for CS (on the nrf24l01 chip), the ethernet shield wont let me use it :s

The w5100 shield is what it is. As far as I know most shields are made with the idea of them being the only shield on the arduino. You start stacking shields and you are pretty much on your own to figure out the interfacing.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 48
Posts: 2302
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, there are some interesting examples out there.


Some useful information here

file:///E:/Arduino/arduino-1.0.1/libraries/NRF24/doc/index.html
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, there are some interesting examples out there.


Some useful information here

file:///E:/Arduino/arduino-1.0.1/libraries/NRF24/doc/index.html

My problem isnt with the nrf24 chip.
I just need some opinion of what is the best approach for the master node to be connected to internet
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, no one has an opinion on what could be the best approach ?
  • arduino w/ Ethernet shield + nrf24 chip
  • Nrf24 chip on custom pcb being connected to pc (serial) and a php that would handle the requests...etc
  • Nf24 chip on custom pcb connected (serial) to arduino with ethernet shield
     

?
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I thought I had made a couple of straightforward suggestions.

Besides those, from my perspective, I'd probably look for an ethernet shield that's not
so rigid in demanding domination over the buss.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ oric_dan , i just read the EDIT you made in that post before smiley
i actually found a guy in the nrf24 maniacbug library post that has an arduino mega with ethernet shield and nrf24 working together.
I think i'll follow that
Logged

California
Online Online
Faraday Member
**
Karma: 92
Posts: 3442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've pretty much been working on the same setup with the exception of using RFM12Bs instead of the nrf24s (Form factor issue and availability at the moment). I haven't had any issues with the Ethernet Shield and the RFM12B after adjusting the library to use pin 9 as the SS, but I haven't tried doing that for the NRF24s yet.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 143
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ Arrch  thanks for the info smiley
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2916
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@ oric_dan , i just read the EDIT you made in that post before smiley
i actually found a guy in the nrf24 maniacbug library post that has an arduino mega with ethernet shield and nrf24 working together.
I think i'll follow that
Can you give a link to this?
Logged

Pages: 1 [2] 3   Go Up
Jump to: