Most recent activity
-
-
D17 is not listed because I ran the code in the RAM only setting 3 pins with setWatch. If I added the code to my clock app, D17 is also listed. Still no clue for the D24 appears again at the end of the list. It's nothing to do with the hardware, so you can try with your own watch, I guess.
I don't really care about more interrupt pins anymore because I can use my solution (#28) with diodes. I already tried this solution and it works fine as expected. -
After I tried to set pins with setWatch for the 3 pins, I ran your command again. Here is the result.
>global["\xFF"].watches =[ undefined, { pin: D32, recur: true, edge: -1, cb: function () { ... }, state: false }, { pin: D24, recur: true, edge: -1, cb: function () { ... }, state: false }, { pin: D22, recur: true, edge: -1, cb: function () { ... }, state: true }, { pin: D24, recur: true, edge: -1, cb: function () { ... }, state: false } ]
-
-
-
Here is my solution with diodes. See attached animated gif.
Three digital input (input_pullup, no additional 100k resistors in the image are needed) pins with 3 diodes will be used. As mentioned before, only 2 pins can be watched by setWatch with interrupts, so I will set two pins (D32 and D24) for setWatch and the third pin, D42, can be combined in the code to watch. In other words, no matter which button is pressed, always one or both of D32 and D24 will be triggered. This way, with only 2 interrupts, 4 pins can be monitored. Actually, there is one more combination, D24 and D42, is available for another switch if needed.
I saved one pin, D43, for an analog output for the buzzer. -
-
@Gordon, I was looking for easier and simple solution by using existing pins. I know, I'm lazy. :)
Your suggested method with resistors looks very interesting. I will definitely try it. I was thinking to use a combination with diodes, but I will see which one works better.
Thank you Gordon for sharing your brilliant ideas as always.
I will try a few approaches and report back. -
From the HRM connector header, I could only identify HRM_SDA (D24) and HRM_SCL (D32). I guess the other pins (HRM_INT and HRM_POWER) are gated. It’s hard to trace without removing components which likely damage parts.
Gordon already answered that the schematic is not available and no answers from anyone for my question about the HRM header pinout, so my guess is Bagle.js’ software is open, but not the hardware.
I really want just one more pin. Can anyone just let me know whether any of those pins, HRM_INT and HRM_POWER or both, are exposed and accessible on the PCB and where they are if accessible?Thanks.
jeonlab.wordpress.com