Could be the Puck.js IR emiter too weak? #1887
Replies: 8 comments
-
Posted at 2021-11-21 by Alberto I did try to imitate the TV remote and it doesnt work. Perhaps I should build an arduino IR receptor to debug what is Puk.js sending? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-11-26 by @gfwilliams Is your firmware up to date on the Puck? I know some earlier Puck.js v2 firmwares had some issues where I think they had the drive polarity wrong |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-12-06 by Alberto Hi Gordon, I have 2.10, when conected says: Found PUCKJS, 2v10 Should I upgrade it? Could it be my PUCKJS? Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-12-15 by Alberto Hi Gordon, Do you think my Puck.js could be somehow wrong? I have a plan to make a morning alarm that wakes you up with light, and PUCK.JS is perfect! Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-12-15 by @gfwilliams Ok, if you're on 2v10 that's probably not the issue then. I guess having some kind of Arduino debug would be good. If you had an oscilloscope/digital signal analyser (or a way to bodge one up using an Arduino/similar) that'd be super helpful. Looking at the array you're sending, the However right at the end you've got |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-12-30 by Alberto Hi all! Happy new year to all of you! My new years resolution is to make the most of the Bangle watch 2, so I can't let my current projects down. I've been debugging with arduino, and I turned my lamp on from the arduino with the code I got from your tutorial. So I tried this same code in Puck JS an it didn't work . Then I calculated the difference between the code on your page and the signal from puckJS and this was the result: Original on code from puck's page (71 elements) code received in my arduino after puck sends the original code (68 elements). const diff= []; for (let i = 0; i < 68; i++) { Difference of the 2 arrays, puck seems to send always just 68 elements Do you see anything odd? My puck JS is sending signals, I can read them in arduino but they aren't good enough to turn my lamp on, and I'm able to turn my lamp on from my arduino. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-01-06 by @gfwilliams Thanks - that's interesting, they do seem some way off. I know I'd made some changes in 2v09 that should have made timing more accurate, but it definitely looks like the timings are off. I've filed an issue for it at espruino/Espruino#2125 and when I get a chance I will try and investigate. Having said that, it looks a lot like alternate parts of the signal are different - when the IR should be ON the signal is ~150ms SHORTER than it's supposed to be, and when it's OFF it's ~150ms LONGER (although there do seem to be some big glitches there for some reason). So I don't know whether those differences come because the Puck's transmission is wrong, or because the IR receiver is taking a long time to receive the signal. It might be that just modifying the original signal will fix it?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-01-06 by Alberto Well spoted! I'll try this weekend. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-11-20 by Alberto
Hi,
I'd like to control my IR cheap bulb with Puck.js, the bulb works fine, it can be controlled with the remote.
The problem is the Puck.js, I can see some IR light when I trigger the code. I tryed different codes some recorded by myself some from internet (quite similar), I tried different buttons, red, blue, on, off... I tried to put the puck quite close.
Is perhaps Puck.jsjust weak? I'm doing something wrong?
Thanks
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions