johnny-five icon indicating copy to clipboard operation
johnny-five copied to clipboard

Novice ask next how to upload js to hardware

Open zhou1591 opened this issue 2 years ago • 7 comments

My highly skilled brothers ,I would like to ask how I can upload js to the hardware, that is, I connect a battery to the hardware, and then it can execute the logic of js I upload。

zhou1591 avatar May 16 '23 07:05 zhou1591

Hello @zhou1591 , As far as I know you always need a computer to be able execute nodeJS in order to be able to run johnny-five. It is not code that you can compile and put on Arduino with a battery. If you want something compact you'll need something like a raspberry pi zero in addition to your Arduino to execute johnny-five. This question is a duplicate of this topic https://github.com/rwaldron/johnny-five/issues/1792

lbineau avatar Aug 16 '23 22:08 lbineau

This requires an on-board linux environment. See the Platform Support page for a list of hardware that will support what you want to do.

scottgonzalez avatar Oct 05 '23 14:10 scottgonzalez

Hello @zhou1591 , As far as I know you always need a computer to be able execute nodeJS in order to be able to run johnny-five. It is not code that you can compile and put on Arduino with a battery. If you want something compact you'll need something like a raspberry pi zero in addition to your Arduino to execute johnny-five. This question is a duplicate of this topic #1792

thanks

zhou1591 avatar Oct 08 '23 02:10 zhou1591

This requires an on-board linux environment. See the Platform Support page for a list of hardware that will support what you want to do.

thanks

zhou1591 avatar Oct 08 '23 02:10 zhou1591

Hello @zhou1591 , As far as I know you always need a computer to be able execute nodeJS in order to be able to run johnny-five. It is not code that you can compile and put on Arduino with a battery. If you want something compact you'll need something like a raspberry pi zero in addition to your Arduino to execute johnny-five. This question is a duplicate of this topic #1792

I now have a nodemcu, and I want to compile the Jonny-Five file and upload it to nodemcu, can I use some vscode plugins to implement it?

zhou1591 avatar Oct 10 '23 11:10 zhou1591

This requires an on-board linux environment. See the Platform Support page for a list of hardware that will support what you want to do.

I now have a nodemcu, and I want to compile the Jonny-Five file and upload it to nodemcu, can I use some vscode plugins to implement it?

zhou1591 avatar Oct 10 '23 11:10 zhou1591

There is no such thing as compiling Johnny-Five files. nodemcu is firmware that runs lua, that is not what you need. As I said, you must use a board listed on the platform support page. These boards run Node.js directly; they are the host instead of your computer being the host.

scottgonzalez avatar Oct 10 '23 11:10 scottgonzalez