Search found 7 matches

by marcvivet
Tue Sep 13, 2022 2:23 pm
Forum: IR Protocols & Codes
Topic: Convert LIR to RAW format
Replies: 7
Views: 12899

Re: Convert LIR to RAW format

Thanks!!
by marcvivet
Mon Sep 12, 2022 8:12 pm
Forum: IR Protocols & Codes
Topic: Convert LIR to RAW format
Replies: 7
Views: 12899

Re: Convert LIR to RAW format

The python script would be fantastic!
by marcvivet
Mon Sep 12, 2022 4:51 pm
Forum: IR Protocols & Codes
Topic: Convert LIR to RAW format
Replies: 7
Views: 12899

Convert LIR to RAW format

How can I convert from LIR format to Raw format?

I have this problem since the application only allows you to export the LIR values into a library ... (to avoid copy and paste for each command) so I can automatize the process for make the code more generic.
by marcvivet
Sat Sep 03, 2022 6:08 pm
Forum: Community
Topic: Minimal Code (python) using Rasberry Pico
Replies: 6
Views: 12011

Re: Minimal Code (python) using Rasberry Pico

I finally managed to make it work in a raspberry pi pico using micro Python: Here is the code: from machine import Pin, PWM import utime import time iro = Pin(17, Pin.OUT, Pin.PULL_DOWN) iro.off() def send_code(pin, code): pwm = PWM(pin) pwm.freq(38000) for element in code: if element > 0: pwm.duty_...
by marcvivet
Fri Sep 02, 2022 10:03 pm
Forum: Community
Topic: Minimal Code (python) using Rasberry Pico
Replies: 6
Views: 12011

Re: Minimal Code (python) using Rasberry Pico

I saw some but I do not understand how to translate the AnalysIR output to pwm duty values ...

I have to set the frequency to 38khzs but then to convert the hexadecimal values to duty values for each pair is not clear ...
by marcvivet
Fri Sep 02, 2022 7:05 pm
Forum: Community
Topic: Minimal Code (python) using Rasberry Pico
Replies: 6
Views: 12011

Re: Minimal Code (python) using Rasberry Pico

Thanks for the quick response, do you have a similar code but in C? So I can have a reference ...
by marcvivet
Fri Sep 02, 2022 4:29 pm
Forum: Community
Topic: Minimal Code (python) using Rasberry Pico
Replies: 6
Views: 12011

Minimal Code (python) using Rasberry Pico

Hi, I started a new project using the Raspberry pi Pico and I wanted to create a simple remote IR controller for my air conditioner. Using the USB analysIR I have extracted the Start "code" of my air conditioner and I wrote this code: from machine import Pin import utime import time # Extr...