Search found 6 matches

by mrggg
Thu May 20, 2021 4:00 pm
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

Peter, Regardless of all else, I really appreciate that you wrote this software. As a recently retired analog/RF electrical engineer, I'm sure I could eventually write code to do this myself, but you have made my life much easier making this available. I agree with what you say - I don't see why I s...
by mrggg
Wed May 19, 2021 11:01 pm
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

OK, I got it to work, but I do need a delay. I don't understand why it won't work if I just issue the command once, I seem to have to have it in a loop with a certain delay. The IR LED is a few inches away from the TV, pointed right at where ( I think ) the IR receiver is. I am using a transistor wi...
by mrggg
Wed May 19, 2021 6:05 pm
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

With more careful measurements I can indeed see that a burst is being sent with my code, but apparently the data is wrong. Sorry, but I am still having trouble understanding how the addr and data are being passed to the transmit method :) . In test.py, I noticed that the closed button function "cfun...
by mrggg
Wed May 19, 2021 4:24 pm
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

I tried the voltmeter while running the hacked test.py, so while I have PIO 18 tied to ground I get my TV turning off and on. I see an average of about 0.25V on PIO 17, whereas I get 0.0V with my looping transmit code. Apparently the repeating codes in the button loop have a ~ 8% overall duty factor.
by mrggg
Wed May 19, 2021 3:26 pm
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

Thanks much for the fast reply. I don't have a 'scope, but I used my volt meter to look at the GPIO and I see no change when executing this loop : from ir_tx.sony import SONY_12 from machine import Pin sony = SONY_12( Pin(17, Pin.OUT, value = 0) ) while True sony.transmit(0x1, 0x15) I would expect t...
by mrggg
Wed May 19, 2021 12:02 am
Forum: Drivers for External Components
Topic: Receive and transmit IR remote codes
Replies: 32
Views: 34857

Re: Receive and transmit IR remote codes

Hi Peter, I downloaded your code a few days ago. I have successfully used your code with a Pico to receive from a Sony remote using ir_rx.test , and to transmit using ir_tx.test to my Sony TV. I found that any of the Sony modes will work. However, I can only get the tx to work with the ir_tx.test co...