P10 with nRF24l01

I have to connect display which is p 10 display and nRF24l01 transreciver in one Arduino, ihave tried to connect icsp pins(mosi,miso,sck),but I wasn't work wht should I do to connect them in a single Arduino UNO.

elavarasan7092:
I have to connect display which is p 10 display and nRF24l01 transreciver in one Arduino, ihave tried to connect icsp pins(mosi,miso,sck),but I wasn't work wht should I do to connect them in a single Arduino UNO.

You have not told us what a p 10 display is (post a link to its datasheet) and you have not posted your wiring diagram or the program that you tried. And you have not described the results when you tried it - "wasn't work" does not convey any useful information about the problem.

Don't you think it might be hard for us to help?

...R
Simple nRF24L01+ Tutorial

Use a different CS pin for one of the two. You might have to adapt the software too. As you did neither provide the code your using nor the links to the hardware in use we cannot help you further.

I have used mosi,miso,sck pins for led display,but nRF24l01 also require those pins..I tried to connect with icsp pins ,but the display got interrupted.how can I use both modules in same Arduino or should use different arduinos as serial connection

elavarasan7092:
I have used mosi,miso,sck pins for led display,but nRF24l01 also require those pins.

Those pins are intended to be shared by several SPI devices.

Did you read Reply #2 ?

...R

I'm new to Arduino,can u explain how to implement that method,how to give software changes while using two cs pins.

elavarasan7092:
I'm new to Arduino,can u explain how to implement that method,how to give software changes while using two cs pins.

Before you want to communicate with an SPI device you must set its CS pin. If you have two devices with their CS pins connected to different Arduino I/O pins then just set the appropriate I/O pin for whichever device you want to talk to.

If that does not help then please post the program you are trying to implement.

And, I note that you have still not posted a link to the datasheet for this mysterious p10 display.

...R

thankyou for helping me robin
im folling this site.overall display performance ok ,but my display shoud show what it recieve from nrf24l01..it was im trying to implement.

http://www.electroons.com/blog/ledp10-arduino-library-for-p10-led-display-panels/

I think the P10 library is using Arduino pin 9 for CS so use a different pin for the nRF24 (the nRF24 calls it CSN)

If that does not make sense then please post your complete program.

Unfortunately there is no guarantee that the person who designed the P10 hardware and software thought about it having to work with another SPI device.

…R

I'm trying to make a wireless controll between 2 or more Uno's .

If I press push button nRF24l01 should transmit 1 or 2 or 3.
2nd Arduino should high the particular pins which I defined...
Alike 1st button pressed - 1st led should blink.
I almost done that. But need a program.
As usual nrf connections
Gnd-gnd
Vcc-3.3v
CE-d7
CD-D8
SCK-D13
MOSI-D11
MISO-D12

3 buttons -D1,D2,D3
3 LEDs-D1,D2,D3.
anyone can help me....

If first pin on my led display will add 1 ,
And if it is 2 display will show static numbers dynamically…
I don’t want to go with i2c or spi, I’m going to connect Arduino to Arduino pins using 1k resistor…
Would, i want to make it simple.

My code for display.

3rd Arduino program;

/*

  • This example is to display a counter value.
  • showmsg_single_static function takes two arguments
  • first argument can be an interger value or a pointer to character string or a string in double quotes.
  • second argument is to select font, for which rwo values i.e. 0 and 1 are supported.
  • try these function calls also in palce of already called function-
  • myled.showmsg_single_static(“font1”,1);
  • For connection diagram visit https://goo.gl/I157Xv
    */

#include <TimerOne.h>
#include"SPI.h"
#include <ledP10.h>

const int buttonPin1 = 2;
const int buttonPin2 = 5;

int num1=0;
LedP10 myled;
int buttonState1 =0;
int lastButtonState1=0;
int buttonPushCounter1=0;

int buttonState2 =0;
int lastButtonState2=0;
int buttonPushCounter2=0;

void setup()
{
myled.init(3,4,8,9 ,1);
pinMode(buttonPin1,INPUT);
pinMode(buttonPin2,INPUT);
}

void loop()
{
buttonState1 = digitalRead(buttonPin1);
buttonState2 = digitalRead(buttonPin2);

// compare the buttonState to its previous state
if (buttonState1 != lastButtonState1) {
// if the state has changed, increment the counter
if (buttonState1 == HIGH) {
num1=num1+1;
myled.showmsg_single_static(num1,0);
delay(200);
}
}
if (buttonState2 != lastButtonState2) {
// if the state has changed, increment the counter
if (buttonState2 == HIGH) {
num1=num1+2;
myled.showmsg_single_static(num1,0);
delay(200);
}
}

else {
myled.showmsg_single_static( num1,0);
delay(200);
}

lastButtonState1 = buttonState1;
lastButtonState2 = buttonState2;

}

Can u help me

elavarasan7092:
I'm trying to make a wireless controll between 2 or more Uno's .

Did you get the examples in my Tutorial to work?

If not, then start there.

...R

Yeah,I got many examples in Google.


//Transmitter;

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(7, 8); // CE, CSN

const byte addresses[6] ={“00001”,“00002”};
int pushButton1=1;
int pushButton2=2;
boolean buttonState = 0;

void setup() {
radio.begin();
radio.openWritingPipe(addresses[1]);
//00001
radio.openReadingPipe(1,addresses[0]);//00002
radio.setPALevel(RF24_PA_MAX);
Serial.begin(9600);
radio.stopListening();
pinMode(pushButton1,INPUT);
pinMode(pushButton2,INPUT);
}

void loop() {
buttonState = digitalRead(pushButton1);
buttonState = digitalRead(pushButton2);

if (digitalRead(pushButton1) == HIGH) {
const char text = “on1”;
radio.write(&text, sizeof(text));
delay(1000);
}if(digitalRead(pushButton2) == HIGH) {
const char text = “on2”;
radio.write(&text, sizeof(text));
delay(1000);
}else{
const char text = “on3”;
radio.write(&text, sizeof(text));
delay(1000);
}
}

/*

  • Arduino Wireless Communication Tutorial
  • Example 1 - Receiver Code
  • by Dejan Nedelkovski, www.HowToMechatronics.com
  • Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
    */
    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    RF24 radio(7, 8); // CE, CSN
    const byte addresses[6] = {“00001”,“00002”};
    int Pin1=1;
    int Pin2=2;
    int Pin3=2;

String test1;
String test2;
String test3;
String test4;

void setup() {
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(addresses[0]);//00002
radio.openReadingPipe(1,addresses[1]);//00001
radio.setPALevel(RF24_PA_MAX);
pinMode(Pin1,OUTPUT);

pinMode(Pin2,OUTPUT);
pinMode(Pin3,OUTPUT);

}
void loop() {
radio.startListening();

if (radio.available()) {
char text[32] = “”;
char compare1[32]=“on1”;
char compare2[32]=“on2”;
char compare3[32]=“on3”;

radio.read(&text, sizeof(text));
test1=String(text);
test2=String(compare1);
test3=String(compare2);
test4=String(compare3);

if(test1==test2)
{
digitalWrite(Pin1, HIGH);
delay(1000);
}
if(test1==test3)
{
digitalWrite(Pin2, HIGH);
delay(1000);
}
if(test1==test4)
{
digitalWrite(Pin3, HIGH);
delay(1000);
}
}
else ()
{
digitalWrite(Pin1, LOW);
digitalWrite(Pin2, LOW);
digitalWrite(Pin3, LOW);
}

}

I prepared code by some examples,
It has not showing any error.
Will that work.

Or any instructions .

elavarasan7092:
Yeah,I got many examples in Google.

I don't know if that is intended to be a response to my Reply #12.

I wasn't asking about "many examples in Google".

...R

Hi,

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks… Tom… :slight_smile:

Good afternoon! I want to know from you have connected you P10 and SD Card Module?
I have a problem too. I can not connect P10 and NRF24.

dandan24:
Good afternoon! I want to know from you have connected you P10 and SD Card Module?
I have a problem too. I can not connect P10 and NRF24.

It seems to me the OP never got this finished.

Have you been able to get your nRF24s working without the P10 module? If not then that is the first thing to do. Have a look at this Simple nRF24L01+ Tutorial.

If you can make the nRF24 and the P10 device work in separate programs then please post the combined program you have tried and tell us in detail what it actually does and what you want it to do that is different. It will make it much easier to focus on the parts you need help with rather than wasting time on things that you can do. Also, and very important, post a photo of a drawing showing how you have everything connected. See this Simple Image Posting Guide

...R

PS ... When posting code please use the code button </>
codeButton.png

so your code 
looks like this

and is easy to copy to a text editor See How to use the Forum