Show Posts
Pages: 1 2 3 [4] 5 6 ... 10
46  Using Arduino / Programming Questions / NRF24 array of char doubt on: March 22, 2013, 05:15:44 pm
hi,
i have the following payload
Code:
struct payload_t
{
  int from_node;
  char message[20];
};

i'm trying to do a function so i can just change the message that i want to send, but i'm having some problems with char* vs char smiley-neutral

Code:
void loop(void)
{
  network.update();

   if (!sent) {
  char message_to_send[20];
  boolean status = sendMessage(light_node, this_node, message_to_send);
  if (status) {
    Serial.print(" [ok]");
    sent = true;
  } else
    Serial.print(" [failed}");
   }

}

bool sendMessage(uint16_t to_node, uint16_t from_node, char *message){
  Serial.print("Sending to #");
  Serial.print(to_node);
  payload_t payload = { from_node, message};

  RF24NetworkHeader header(/*to node*/ to_node);
  bool ok = network.write(header,&payload,sizeof(payload));
  return ok;
}

the problem is baseNode:89: error: invalid conversion from 'char*' to 'char'..
how can i do this ?
I just want to send a different message that i create and then give to sendMessage 3rd argument
47  Using Arduino / General Electronics / Re: first pcb try on: March 01, 2013, 08:37:04 pm
I've one doubt,
according to the schematics
,
will the 5 pin header (in the left) behaviour like this ?
 

because those 5 pins are to connect the CP2102 usb to serial with dtr line, so i can upload sketches without needing to press reset.
Will my schematics behaviour like the second one ?
48  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 20, 2013, 03:37:44 pm
http://arduino.cc/forum/index.php/topic,62222.msg1099825.html#msg1099825 smiley
49  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 20, 2013, 01:43:48 pm
@ Arrch  thanks for the info smiley
50  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 19, 2013, 10:59:41 pm
@ 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
51  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 19, 2013, 09:29:36 pm
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
     

?
52  Using Arduino / General Electronics / Re: first pcb try on: February 19, 2013, 09:19:38 pm
@  CrossRoads  thanks for the tip, i'm gonna do that smiley
One question, when printing with laser printer, should i print the normal bottom or the mirror one ? I'm confused  smiley-confuse
53  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 17, 2013, 08:43:12 pm
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
54  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 17, 2013, 03:28:30 pm
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
55  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 17, 2013, 03:14:26 pm
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.
56  Using Arduino / General Electronics / Re: first pcb try on: February 17, 2013, 03:05:12 pm
i really cant understand this :x
i've tried to export etch_copper_bottom so you can see the bottom only, but i dont think  that's what you mean
57  Using Arduino / General Electronics / Re: first pcb try on: February 17, 2013, 02:34:16 pm
I did ground fill instead. see image above
it's that?
58  Using Arduino / Project Guidance / Re: Another Room Automation project on: February 17, 2013, 02:33:03 pm
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 :/
59  Using Arduino / General Electronics / Re: first pcb try on: February 17, 2013, 02:26:33 pm
One last time before i give up smiley-grin
60  Using Arduino / General Electronics / Re: first pcb try on: February 17, 2013, 02:11:52 pm
Yes the board is single-sided... i really cant do that ground pour with fritzing.
i'm trying moving the wires to the other side of board and doing copper fill to see if this is what you mean.
Pages: 1 2 3 [4] 5 6 ... 10