NRF24L01 on GPIO

Post Reply
Thelion
Posts: 38
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

NRF24L01 on GPIO

Post by Thelion » Sunday 17 September 2017 18:39

Hi!

I connected a NRF24L01 on the GPIO of my RaspBerry Pi 3B, using this page:

https://www.raspberrypi.org/magpi/pi-mi-light/

It all seems to be connected correctly, but whatever I do with my Mi-Light, nothing is detected when in listening mode. When I run a test with another program/script, it shows no errors if communicating with the NRF24L01, when all is connected and shows an error when I disconnect a wire.

I use the 2,4Ghz WiFi iBox to control the lights through the Mi-Light app and that works like it is supposed to.

The NRF24L01 should pick up the signal from the iBox right? Or only from the remote control, which I don't have.

Any thought are very welcome.

With kind regards,

Martijn

SweetPants
Posts: 2099
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: NRF24L01 on GPIO

Post by SweetPants » Sunday 17 September 2017 19:41

What's the relation to domoticz?

I have read that the NRF24 module needs a very stable 3.3v or add a 10uF capacitor accross the powersupply lines of the chip
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

Thelion
Posts: 38
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: NRF24L01 on GPIO

Post by Thelion » Tuesday 19 September 2017 17:26

Hi Sweetpants,

The relation to Domoticz is that I want to use Domoticz with the NRF24 to control my Mi-Light lighting.

A capacitor. Interesting. Never saw anything regarding a capacitor. Will try that. Thanks!

gohan
Posts: 40
Joined: Tuesday 14 February 2017 0:42
Target OS: Windows
Domoticz version:
Contact:

Re: NRF24L01 on GPIO

Post by gohan » Saturday 04 November 2017 2:09

You may need a voltage regulator too if are using max power

pascalbianca
Posts: 37
Joined: Monday 18 December 2017 19:20
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: Susteren
Contact:

Re: NRF24L01 on GPIO

Post by pascalbianca » Saturday 03 February 2018 10:24

Hello everyone ,

I tryed to install the things in the link of Pi Mi-Light but when i tryed to.:

Code: Select all

git clone https://github.com/TMRh20/RF24
cd RF24
make all
I get these messages.:

Code: Select all

Pi@raspberrypi:~/RF24 $ make all
Makefile:17: Makefile.inc: Bestand of map bestaat niet
[Running configure]
[SECTION] Detecting arm compilation environment.
  [OK] arm-linux-gnueabihf-gcc detected.
  [OK] arm-linux-gnueabihf-g++ detected.
[SECTION] Detecting target machine.
./configure: regel 66: waarschuwing: command substitution: ignored null byte in input
[OK] machine detected: SoC=BCM2835, Type=RPi, CPU=armv7l.
[SECTION] Detecting DRIVER
  [OK] DRIVER detected:RPi.
[SECTION] Detecting OS.
  [INFO] OS detected:LINUX.
[SECTION] Preparing configuration.
[SECTION] Saving configuration.
[OK] Finished.
arm-linux-gnueabihf-g++ -fPIC -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Ofast -Wall -pthread  -c RF24.cpp
arm-linux-gnueabihf-g++ -fPIC -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Ofast -Wall -pthread  -c utility/RPi/spi.cpp
arm-linux-gnueabihf-gcc -fPIC -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Ofast -Wall -pthread  -c utility/RPi/bcm2835.c
utility/RPi/bcm2835.c: In function ‘bcm2835_gpio_pad’:
utility/RPi/bcm2835.c:413:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (bcm2835_pads == MAP_FAILED)
   ^~
utility/RPi/bcm2835.c:416:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
     volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;
     ^~~~~~~~
utility/RPi/bcm2835.c: In function ‘bcm2835_gpio_set_pad’:
utility/RPi/bcm2835.c:426:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (bcm2835_pads == MAP_FAILED)
   ^~
utility/RPi/bcm2835.c:429:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
     volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;
     ^~~~~~~~
arm-linux-gnueabihf-g++ -fPIC -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Ofast -Wall -pthread  -c utility/RPi/interrupt.c
[Linking]
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-soname,librf24.so.1 -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Ofast -Wall -pthread  -o librf24.so.1.3.1 RF24.o spi.o bcm2835.o interrupt.o
Whats is the problem?

User avatar
Marci
Posts: 521
Joined: Friday 22 January 2016 19:00
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: NRF24L01 on GPIO

Post by Marci » Saturday 03 February 2018 11:13

No problem there. You have warnings (which are just that and can be ignored) but no errors.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!

User avatar
cyberclwn
Posts: 120
Joined: Thursday 20 August 2015 22:53
Target OS: Raspberry Pi
Domoticz version: beta
Location: The Netherlands
Contact:

Re: NRF24L01 on GPIO

Post by cyberclwn » Sunday 04 February 2018 15:14

Hey,

From the website you linked:
... then press the On button for Zone 1 on the remote a couple of times. ...
Thelion wrote:
Sunday 17 September 2017 18:39
Or only from the remote control, which I don't have.
I think there is the problem...
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests