Pages: 1 2 [3] 4 5 ... 8   Go Down
Author Topic: Control Livolo switches / Livolo switch library  (Read 40840 times)
0 Members and 2 Guests are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi spch
Thanks for the link. I have purchased the pair already.
Next, once I receive the switch and rf module, I try to decode them. If not successful, will shout for help.
Thanks for the library as well. I haven't tested yet, but should be fine. Well feedback to you after tested.

Regards
Logged

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

First thanks for sharing your code smiley

I can´t control the switch smiley-sad

I use:
1. Arduino Uno
1. RF433 transmitter
1. Switch VL-C301DR-81

Steps:
1. Connect rf433 data on pin 8 VCC on 5v and GND on gnd
2. Load the code
3. Touch the button of switch 5 seconds (Di sound)
4. Send 1 to monitor.

The code:
Code:
#include <livolo.h>
Livolo livolo(8);
int incomingByte = 0;

void setup() {
    Serial.begin(9600);
    Serial.println("init");
}

void loop() {
   if (Serial.available() > 0) {
        incomingByte = Serial.read();
        switch(incomingByte) {
          case 49:
            livolo.sendButton(6400, 120);
            Serial.println("Switching on 1");
          break;
        }
   }
}
Logged

eltin

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

eltin,

Sorry for previous message. I missed some pieces of code you wrote. I've just tested your code on Mega and it is working flawlessly.

I guess problem is in switch "pairing". Try clearing previous code from switch first. For example:

1) Hold switch button until it beeps twice
2) Release switch button
3) Hold switch button until it beeps once
4) Enter "1" in Arduino port monitor input field and press Enter (switch shoud beep and accept new button)
5) Enter "1" in Arduino port monitor input field and press Enter (switch should turn on)

In case switch still not responding, make sure you have right antenna (163 mm of wire soldered to transmitter) and that transmitter is quite close to switch (at least for testing).
Logged

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

spch,

I did all the step but not work on Arduino Uno.
I check in all Arduino PINs with the transmitter near the switch!

If I can make it work, then they notice!

Thx

Pd. Sorry for my bad English
Logged

eltin

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

spch,

It works with arduino uno smiley

I use PIN 3 and I send this livolo.sendButton(19303, 72);

Thanks man!!!
Logged

eltin

Offline Offline
Newbie
*
Karma: 1
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for your code, its working like a charm

my remote id are13979 for room 1
13972 for room 2
139731 for room 3

do you have a sketch to read the id and the command directly from the remote ( without going thru audacity)
i m sure it would help a bunch  of people

thanks for your work
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear friends,
 
  I know that this is strictly an Arduino forum, but I am working on the same project a long time now to control my Livolo switches, but with a Raspberry pi instead. As far as now I have not managed to achieve it. Hopefully someone inside the forum can translate the already working code for Arduino and make it work on Raspberry pi. There are already some useful codes for Raspberry pi that control the GPIO and send pulses to them (RCSwitch-pi and wiringPi) but I can note make them work with Livolo. Thank you very much for your reading!
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

seagorf7,

You are right, reading remote IDs with Audacity is an akward routine. And I did try to build a code to read remote IDs, but have not succeeded yet. What's more, I'm not really sure I can do it.

But I'll get back to it as soon as I have enough time.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i m no good at programing but , you can get help on irc
server : chat.freenode.net
room : #arduino

a bunch of savvy coders there
Logged

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

It´s possible to get current status or send ON command only.

thx
Logged

eltin

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

seagorf7,

Thanks, I'll take a note on that. But still I don't understand how come talking on IRC gives me time to work on the code smiley-wink

eltin,

Is it a statement or question? In case you know how to get Livolo switch status, please share this info.
Logged

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry is a question smiley-sad
Logged

eltin

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

eltin,

I'm not really sure it is possible to get switch status or send ON only command. There is a small chance of that, beause of "scenes" feature of advanced remote control.

As far as I remember (I've lost manual), there is a way to record several "scenes" with remote. Each scene means that one button can turn on several switches simultaneously. The thing is that required switches must be turned on prior to programing a scene. So I guess remote somehow "knows" which switches are on.

Again, I'm not sure it is working that way. I'll get back to this a bit later, sorry.
Logged

Montevideo
Offline Offline
Newbie
*
Karma: 1
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

spch,

I have this switch http://blog.iteadstudio.com/itead-intelligent-switch-433mhz-communication-protocol/ in this it´s posible but I can´t with livolo smiley-sad

I keep trying, if I succeed I share!!
Logged

eltin

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

Sorry to mislead. There is no two-way communication between remote and switch. Scenes are being recorded on remote only, no interaction with switches required.
Logged

Pages: 1 2 [3] 4 5 ... 8   Go Up
Jump to: