vaccum irobot ir signal

Everything related to protocols and IR codes
Post Reply
bend94
Posts: 5
Joined: Mon Oct 03, 2016 8:55 am

vaccum irobot ir signal

Post by bend94 »

Hi

I catched this signal (vaccum remote) with mode2:

root@raspberrypi:/etc/lirc# mode2 -m -d /dev/lirc0
3467329
3062 992 1027 2994 991 3007
988 3005 2946 1032 998 3024
992 3004 992 21138 3055 1003
1026 2996 1000 2998 997 2995
2977 1002 1027 2995 990 3005
991 21137 3070 989 1017 3004
991 3005 991 3005 2978 1000
1019 3006 989 3004 992 21138
3056 999 1020 3003 993 3002
994 3001 2982 996 1026 2996
997 3000 995 21384 3062 996
1023 2999 996 3002 994 3000
2983 995 1023 2999 997 2999
996

My goal is to be able to reproduce it with irsend (raspberry pi)

i recorded with irrecord

$ irrecord -f -d /dev/lirc0 -f vaccum

the vaccum file is now like this:

begin remote

name vaccum
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100
gap 50192
begin raw_codes
name BTN_9
3057 992 1026 2995 1001 2995
1000 2995 2978 1003 1015 3002
994 3002 993
end raw_codes
end remote

i copied the vaccum file to lircd.conf and restart

$ /etc/init.d/lirc restart

unfortunatly nothing move when i do that:

irsend send_once vaccum BTN_9

Do i have to convert my signal in raw to be able to use it with irsend ?

My IRLed is working because i am able to control my TV with irrecord and irsend.


Can you help me ?

Regards
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: vaccum irobot ir signal

Post by AnalysIR »

try this LIRC file which was automatically generated by AnalysIR, with the signal 'cleaned'

Code: Select all

# This LIRC format config file was automatically generated
# using AnalysIR - Batch Export Utility on Oct, 2016 at 13:45
# Registered to: xxxxxxxx
#
# for more details on AnalysIR visit https://www.AnalysIR.com/
#
# for more details on LIRC visit https://www.lirc.org/

begin remote

   name  AnalysIR
   flags RAW_CODES
   eps            30
   aeps          100

   frequency    38000
# note ensure the carrier frequency above correctly matches your remote, default is set to 38kHz
# you can also try other common frequencies (36000,40000,56000,33000,30000) if you are unsure

       begin raw_codes

           name KEY0
              3000    1000    1000    3000    1000    3000
              1000    3000    3000    1000    1000    3000
              1000    3000    1000   21138    3000    1000
              1000    3000    1000    3000    1000    3000
              3000    1000    1000    3000    1000    3000
              1000   21137    3000    1000    1000    3000
              1000    3000    1000    3000    3000    1000
              1000    3000    1000    3000    1000   21138
              3000    1000    1000    3000    1000    3000
              1000    3000    3000    1000    1000    3000
              1000    3000    1000   21384    3000    1000
              1000    3000    1000    3000    1000    3000
              3000    1000    1000    3000    1000    3000
              1000

       end raw_codes

end remote
If that does not fix it then your IR emmitter circuit may not be powerful enough - please post details of it.
bend94
Posts: 5
Joined: Mon Oct 03, 2016 8:55 am

Re: vaccum irobot ir signal

Post by bend94 »

Hi

thanks i will try your LIRC file and let you know.
Find here the IR emmiter circuit. let me know what do you think about it ?
regards

[CIRCUIT Deleted due to errors]
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: vaccum irobot ir signal

Post by AnalysIR »

There are a few issues with your circuits, as follows:

Receiver
- If I remember correctly the RPi IO pins are 3V3 (not 5V)
- Therfore you should power the IR receiver from 3V3 (not 5V which could damage the RPi)

IR Emitter circuit

- The use of 5V supply rail here is fine & a good idea
- You need a current limiting resistor between the 5V and the first IR LED (avoids possible damage to the LEDs & Transistor & RPi)
- A value between 22R & 10R should do fine.
- Change the 10K resistor on the base to 1K


PS: I will delete the circuit you posted to avoid confusion for others
bend94
Posts: 5
Joined: Mon Oct 03, 2016 8:55 am

Re: vaccum irobot ir signal

Post by bend94 »

Hi

just to be sure :

>A value between 22R & 10R should do fine.
you mean 22 Ohms or 10 Ohms ?
bend94
Posts: 5
Joined: Mon Oct 03, 2016 8:55 am

Re: vaccum irobot ir signal

Post by bend94 »

hi

I push a new circuit for others

regards
You do not have the required permissions to view the files attached to this post.
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: vaccum irobot ir signal

Post by AnalysIR »

Yes that looks good

You can use 10hms or 22ohms or any value in between
bend94
Posts: 5
Joined: Mon Oct 03, 2016 8:55 am

Re: vaccum irobot ir signal

Post by bend94 »

Hi again

just to keep you informed.
The LIRC file provided above (automatically generated by AnalysIR) is working but i have to type 3 times this command:

$ irsend send_once AnalysIR KEY0

MANY THANKS !!!!
Next time i will try to decode my Mitsubishi air cooler

Regards
User avatar
AnalysIR
Site Admin
Posts: 793
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: vaccum irobot ir signal

Post by AnalysIR »

try

Code: Select all

$ irsend --count=3 send_once AnalysIR KEY0

or

$ irsend -#3 send_once AnalysIR KEY0
Note: you may have to add a gap parameter to the .conf file.

Code: Select all

begin remote

   name  AnalysIR
   flags RAW_CODES
   eps            30
   aeps          100
   gap            22000

   frequency    38000
.....etc.
Post Reply