Arduino with LightwaveRF Lawrie Library

LightwaveRF Communi… > Forum > LightwaveRF Hackers > Arduino with Lightw…

LightwaveRF Community: Welcome Forums LightwaveRF Hackers Arduino with LightwaveRF Lawrie Library

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  winger15mk 1 week, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25682
     winger15mk says:

    winger15mk
    Participant

    Hi guys, really hoping someone can help with an issue I’m having.

    So I have an arduino project in which I have made use of the commonly known lightwave rf library by Lawrie:

    https://github.com/lawrie/LightwaveRF

    Everything works perfectly in that i have paired to my single gang light switch and can send on and off commands which do the job.

    The problem I have is that ever since I have ‘paired’ the switch to the ‘arduino remote’ if I turn on the switch manually then it turns itself off after a minute or so? If i turn the switch on with the signal then it stays on indefinitely!?

    I know the signal is the issue as if I unpair it and turn the switch on manually it stays on for good as well?

    Really hoping someone can help as its driving me mad!

    Thanks
    Gary

    #25683
     btidey says:

    btidey
    Participant

    That sounds pretty strange. I am wondering whether you have paired multiple devices to the switch which is up to its maximum of 6 and that is somehow causing strange behaviour.

    Might be worth doing a full clear out of the switch to remove all pairings and then repair just the minimum you need to see if that helps. See switch manual fo rhow to do a full clear.

    Although it doesn’t sound like a library problem you may wish to consider using the interrupt driven libraries at

    https://github.com/roberttidey/LightwaveRF

    As the transmission and reception are done in the background on interrupts then it can sometimes make it easier to integrate in with other functions the MCU is doing.

    The libraries can run on a variety of platforms including basic Arduino, Raspberry Pi, Particle, and ESP8266.

    #25753
     winger15mk says:

    winger15mk
    Participant

    I wiped the device and added the single ‘remote’ using the Lawrie code on an ESP8266 but still have the same issue, if I turn the light on with the code then it turns itself off after a few minutes.

    Gonna try perhaps the unlocking option in his code and see whether the switch is just set to lock by default?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.