node-nrf24 icon indicating copy to clipboard operation
node-nrf24 copied to clipboard

ASUS Tinker board CE

Open gedeondt opened this issue 3 years ago • 2 comments

Hello,

I can not manage to get it working fine on a tinker boar.

I spent a lot of hours trying and, by change, I could send some data when I disconnected CE completely.

The problem seems to be related to GPIO.

var rf24= new nrf24.nRF24(22, 20);

or

var rf24= new nrf24.nRF24(15, 20);

The CE pin is wired to the pin GPIO5B7 (tinker), physical pin 15, GPIO22. If I keep it wired:

RF24 HARDWARE FAIL: Radio not responding, verify pin connections, wiring, etc.

If I disconnect the wire it works.

Any idea?

gedeondt avatar Apr 17 '21 18:04 gedeondt

Hola @gedeondt, No tengo esta placa así que no te lo puedo confirmar. Pero me parece que el problema es cómo se asignan en esta placa los numeros de los GPIOS. Según este hilo: https://tinkerboarding.co.uk/forum/archive/index.php/thread-306.html la formula que debes usar es esta:

GPIO marking consists of GPIO[0-8][A-D][0-7] eg. 9x 32 bit GPIO banks are split to 4 ("A-D") 8 bit ("0-7") pins (total 160 pins some are unused/unrouted). Example of translation to number:
GPIO0C1 = 0*32 + ("C") 2*8 + 1 = 17
GPIO5B4 = 5*32 + ("B") 1*8 + 4 - 8 = 164 

En tu caso si usas el GPIO5B7 = 5*32 + 8 + 7- 8 = 174.

El parámetro CE debe ser 174

Saludos,

ludiazv avatar Apr 19 '21 16:04 ludiazv

Muchas gracias @ludiazv

Efectivamente :)

La verdad es que es una buena placa pero falta una documentación más fina de ciertas cosas.

Gracias!

gedeondt avatar Apr 22 '21 14:04 gedeondt