Thonny Micropython and Unknown IR Remote #11650
-
Hello. I have zero experience with Raspberry Pico. I have 38kHz IR Reciver module and this library: When i try to test IR by: and test() for all types. They always show errors: Maybe some one know how to get data from this IR remote? Probably this remote have mistake - seller write 433mhz. But it is radio frequency, not IR. But this remote definetly IR - USB reciever have this "lamp" to signal detection. And if i cover that reciever lamp - it stop working. So it is sure not a radio. And my 38kHz module for Piko flashing light, when i press something on a this remote. Other remote for TV work fine with test() or test(1) - NEC type. but this is one - USB PC - cursed. Any way to fix that problem? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Is that 38kHz not 38MHz? |
Beta Was this translation helpful? Give feedback.
-
Some magic glitch happens with my Raspberry Piko. It live own live :) Test code can work, can not work by own wish. Somehow it start work and i have this data: First 3 is one button, then 2 - second button. and last column - third button. As i can understand this values need to be viewed as 1 and 0. Somekind of: So i have two questions - how to apply this data to main code. And can all this library have some kind of puzzle? I mean i no need some NEC, Phillips or other code. Only this raw reading and recognize. Some small part of that - to save memory. How to do this cut operation for main code? |
Beta Was this translation helpful? Give feedback.
-
This is a super video with explanations... but where to get that pulseio to recreate that he talking? It is not a Micropython for Raspberry Pico? |
Beta Was this translation helpful? Give feedback.
-
Solve. I take example of that person: This code have already array, that it get from IR Module. So i just need to read values, and comparise to reference. |
Beta Was this translation helpful? Give feedback.
Solve. I take example of that person:
https://techtotinker.com/2021/08/044-micropython-technotes-infrared-receiver/
He take only that is needed for save memory - not all library. Then i try to kick out some items, that i am no need and add new checks for millisec values for my protocol. It is a dirty code, because i have no idea how to delete some part of code. When i delete it - code shows errors. Maybe later, when i will more advanced - will remove it.
This code have already array, that it get from IR Module. So i just need to read values, and comparise to reference.