Software Archive
Read-only legacy content
17061 Discussions

Using Interrupts with Node.js on Galileo

Richard_B_1
Beginner
633 Views

Hi All After reading the announcement of the new XDK IoT development environment (IDE?) that uses node.js I have been trying to see what it can do. After a bit of refresher/learning about node.js/javascript (since only used a little with HTML a long time ago) I started to do some experiements. After a bit of a shock/learning curve at creating a program where each function runs in its own thread, so at the same time instead of in sequence as I am used to, I have gotten a motor controller board, sort of working. (PWM isn't working yet) The next thing I would like to try is to see if it is possible to use hardware interrupts to count wheel rotations (yes I know the timing isn't like an Arduino, but would like to see if can work.) So can anyone give me a hint on how to have a program written in node.js check for hardware interrupts? Thanks rgb

0 Kudos
1 Solution
Raghavendr_U_Intel
633 Views

Are you looking for something of this sort? 
https://communities.intel.com/thread/47861

If this approach solves your issue, then you can use setInterval function in Node.js and call your handler. 

View solution in original post

0 Kudos
2 Replies
Richard_B_1
Beginner
633 Views
Since this has been unanswered for a long time and I have seen the same question on another board, also unanswered, I guess that there isn't any way to do it. It seems might be possible under Python, but not node.js Whoever is moderating can delete this entry. thanks rgb
0 Kudos
Raghavendr_U_Intel
634 Views

Are you looking for something of this sort? 
https://communities.intel.com/thread/47861

If this approach solves your issue, then you can use setInterval function in Node.js and call your handler. 

0 Kudos
Reply