Johnny-Five running on the Arduino device

Hello,

I tried out Johnny-Five and it works but I am confused. As I understand it I have to

  • Plug in my Arduino to my PC and install a proper firmware, like Firmata
  • Install Node on my PC and write my NodeJs Script on my PC
  • Run the NodeJs on my PC and keep the Arduino Plugged in while running it

This baffles me a bit. Does this mean I can run my Node / Arduino only together with a PC while I have it plugged in via USB? What is the purpose of this? Is there not a way to have my Arduino work on its own running my NodeJS scripts?

Thanks
Lukas

Is there not a way to have my Arduino work on its own running my NodeJS scripts?

No. The Arduino can not execute NodeJS, or any Java, scripts.

I guess I am missing the point of Johnny Five then.

Thanks though!

CoffeeLukas:
I guess I am missing the point of Johnny Five then.

You don't have a johnny five nail around, obviously.

If you really want to run javascript/nodejs on microcontrollers (not Linux SBCs) consider the following. Both are have nothing to do with Arduino boards or IDE.

https://tessel.io/

Or run J5 on a Raspberry Pi or similar Linux SBC then mount the Pi on the robot. The Pi has GPIO, I2C, and SPI. Tethering and Arduino boards running firmata are optional.