Arduino Yun now supports Node.js... What can we do with it?

1,048 views
Skip to first unread message

Andrew Jawitz

unread,
May 14, 2014, 1:07:58 PM5/14/14
to node...@googlegroups.com
The Arduino Yun  is a great example of all the qualities that made Arduino so popular in the first place.  Instead of buying into the misguided "Raspberry Pi vs Arduino" comparisons, they responded with an approach that plays to the strength of their platform.  The board is basically an Arduino Leonardo combined with a tiny MIPS-based, Linux processor that many hackers may recognize from a popular modification of a travel router flashed with OpenWRT.   
   The typical Arduino microcontroller is only capable of connecting to the web with very limited memory.  The Yun is able to get around this by utilizing the Linux processor for most of the heavy lifting, while also allowing for extensible storage via SD Card.  With the most recent update to the Yun image came an announcement that The Yun Now Supports node.js.

   What possibilities might this open up for combining the Yun with Node-RED?  

  I can elaborate more on this issue later if need be, but one of the biggest limitations of Node-RED, node.js and web-based IOT interfaces in general is its limited ability to take advantage of a microcontrollers I/Os.  By bringing node.js to a simple, low-end device, does the Arduino Yun open up more options than would be possible using Firmata or Serial?

Luis Montes

unread,
May 14, 2014, 1:28:41 PM5/14/14
to node...@googlegroups.com
Very cool stuff.  I saw an early versions of this last year, but it didn't seem usable.  It looks like modules with gyp parts are still problematic, but I'd be happy even if i had to copy things over manually like node serialport.




--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicholas O'Leary

unread,
May 14, 2014, 1:36:52 PM5/14/14
to node...@googlegroups.com

I got node-red running on my yun last year. (https://twitter.com/knolleary/status/403192008165974016)

It was only a proof of concept, but with a TCP node listening on port 6571, you can then send and receive data from the arduino sketches Console command.

You still need a custom sketch running to interface the hardware pins, so it is still quite like the firmata model, just hosted on the yun itself.

Oh, and it was _slow_.

Now node.js is more really available, it'll be interesting to think about what custom nodes could be created.

Nick

Hardik Patel

unread,
Aug 26, 2016, 3:21:30 AM8/26/16
to Node-RED
Hello Nick

                     I am curious to learn the Node-red on Arduin Yun..would you please share the method for installing and using it on Arduino Yun?It would be great help from your side.

Thank you..

Nicholas O'Leary

unread,
Aug 26, 2016, 3:45:17 AM8/26/16
to Node-RED Mailing List
I can't remember the exact method - this was almost three years ago and not something I've done since.

I think I just copied a node-red install onto the USB stick the Yun used - at the time we had no binary components so I didn't have to worry about compiling any code for the platform. How easy that is to do today, I don't know.

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack

---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

Hardik Patel

unread,
Aug 26, 2016, 3:52:36 AM8/26/16
to node...@googlegroups.com
Thank you Nick, we will give a try at our side.if we are successful then let you know.



                                                                                                             
Hardik Patel
CEO,Epsilon Electronics 

"We don’t ship work we aren’t proud of"

     

                                                   
B-503, Amrapali Lake View                                                             www.epsilonelectronics.in  
Opp Alpha One Mall                                                                          in...@epsilonelectronics.in       
Vastrapur Lake
Ahmadabad-380006                        
Gujarat, India

On Fri, Aug 26, 2016 at 1:15 PM, Nicholas O'Leary <nick....@gmail.com> wrote:
I can't remember the exact method - this was almost three years ago and not something I've done since.

I think I just copied a node-red install onto the USB stick the Yun used - at the time we had no binary components so I didn't have to worry about compiling any code for the platform. How easy that is to do today, I don't know.

Nick
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/yS_sOyzM76A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.

Julian Knight

unread,
Aug 26, 2016, 4:38:24 AM8/26/16
to Node-RED
Just to put this into perspective in case people are still reading the original post in this thread (though it is from 2014).

The Yun specs (Linux side):
Processor: 400MHz MIPS single core
RAM: 64MB
Built-in WiFi
Cost: around £60 in the UK

The Raspberry Pi 2 (not even the 3)
Processor: 900MHz ARM Quad Core
RAM: 1GB
No built-in WiFi
Cost: £30 + £6 for a WiFi adapter + £7 for a ATmega32u4 based board with headers = £43
 
I'm not sure how much RAM the OS takes on the Yun but a quick check of running a minimal NR session on Windows is taking 21MB of memory. From another thread, you can see that my live HA instance uses between 100 and 200+ MB and CPU occasionally spikes up to around 60-70% even on the Pi2.

So yes, it is doable but only within very strict limits.
Reply all
Reply to author
Forward
0 new messages