Go Down

Topic: [solved] Aruino UNO's SPI Clock  (Read 144 times) previous topic - next topic

GabrielYamamoto

Oct 15, 2018, 03:35 am Last Edit: Oct 15, 2018, 08:57 pm by GabrielYamamoto Reason: solved
I have a Arduino UNO and I'm using the SPI serial to communicate two nrf24l01 modules.
The problem is that when I have the pin 13 connected to the SCK pin on the nrf24l01 don't appears any clock signal at the osciloscope, but if I disconnect the nrf24l01's SCK pin, I can measure it, and then, if I connect it again, it keeps showing the clock signal.

So, the clock signal only appears in osciloscope if I stop the current from pin 13 of Arduino to the SCK pin at nrf24l01 and then connect it again

The code I'm using:

Code: [Select]
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

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

const byte rxAddr[6] = "00001";

void setup()
{
  SPI.begin();
  radio.begin();
  radio.setRetries(15, 15);
  radio.stopListening();
  radio.openWritingPipe(rxAddr);
}

void loop()
{
  const char text[] = "Hello World";
  radio.write(&text, sizeof(text));
  delay(1000);
}

pylon

Post a link to the used breakout board (I doubt you're using the chip directly)!

And post a wiring diagram of your setup (including power supply)!

GabrielYamamoto

#2
Oct 15, 2018, 05:21 pm Last Edit: Oct 15, 2018, 05:41 pm by GabrielYamamoto
Thank you very much for replying!

Actually, I'm not using a breakout board, I'm using a simple conector with welded wires: https://www.eletropecas.com/_uploads/ProdutoDestaque/ProdutoDestaque_8152_orig.jpg

And my circuit looks like this: https://uploaddeimagens.com.br/imagens/circuit_nrf24l01-png


I apologize my bad English.

All replies are helpful!

pylon

Quote
Actually, I'm not using a breakout board, I'm using a simple conector with welded wires: https://www.eletropecas.com/_uploads/ProdutoDestaque/ProdutoDestaque_8152_orig.jpg
The chip is quadratic and has 20 pins so you almost certainly are using some kind of breakout board as the linked connector doesn't match the chip in any way. Post a link to the board you're using!

What are you reading on the scope if you don't see the clock signal? GND? 5V?

GabrielYamamoto

I already solved this question. Thank you very much for your replies and I'm sorry about everything.

I discovered that I can solve this by powering down and then powering up again the nrf24l01 module. Thanks for everything.

What are you reading on the scope if you don't see the clock signal? GND? 5V?
I was seeing GND, 0V.

Closing the topic... Thak you very much, again.

Go Up