Is there an easier way to use johnny 5 just like this with a raspberry pi 2 or 3 using com ports from a windows machine without going down the vnc or remote rdp ?
Yes, but you depends on your PC. Traditional Arduino IDE injects compiled code directly into memory of arduino and you can comminucate using Bluetooth, Serial Port, using ESP8266 WiFi, you can connect it through GSM module, you can comminicate using Infra Red Remote, Radio Wave, etc... In this way, once you disconnect your USB, your arduino is dead. I tough, you coding arduino using JS and that comes through compiler and you flash your Arduino over USB to work as independent.
I programmed everything as instructed with no errors. However; upon running the code, the servo will only respond to the 1st command only, either CW or CCW. The space bar does nothing, neither does quit. I do see the text change on the screen indicating that a CW ,CCW , Stop, or Quit command has been sent, but the Arduino does not follow the java script commands. I tried a different servo program and it was the same thing. The servo only responded to the first command.
Hey. Sorry for bothering. But I was wondering if you can tell how to run written sketch on Arduino board standalone without having J5 REPL permanently running...
Hi, I'm working on my college project. I need to control stepper motor with Johnny five I tried using arduino uno along with cnc shield but for me stepper.step() method is not executing. When I complie it didn't show any error. Give me some suggestions or your mail Id that will help me
When i try to run the code after npm installing johnny-five and keypress, i get the message that its missing the module "firmata". I have uploaden the firmataplus code to my arduino, and why i try to do npm install firmata in my node enviorment, i get an error. So im stuck now. Anybody knows how to solve this problem?
@@MakeUseOf First of all, thank you for the quick reaction. When i do npm install firmata inside of the folder where my js file is, i get an error. It just dont want to install firmata.
@@MakeUseOf tried to do it globally but still dont work. This is the error im getting (and its long, sorry): npm ERR! code 1 npm ERR! path C:\Users\Jesper Weijnen\AppData\Roaming pm ode_modules\firmata ode_modules\@serialport\bindings npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@18.10.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\Jesper Weijnen\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details npm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\find-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\find-visualstudio.js:364:14) npm ERR! gyp ERR! stack at C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\find-visualstudio.js:385:16 npm ERR! gyp ERR! stack at C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Program Files odejs ode_modules pm ode_modules ode-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:420:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1091:16) npm ERR! gyp ERR! System Windows_NT 10.0.22000 npm ERR! gyp ERR! command "C:\\Program Files\ odejs\ ode.exe" "C:\\Program Files\ odejs\ ode_modules\ pm\ ode_modules\ ode-gyp\\bin\ ode-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\Jesper Weijnen\AppData\Roaming pm ode_modules\firmata ode_modules\@serialport\bindings npm ERR! gyp ERR! node -v v18.10.0 npm ERR! gyp ERR! node-gyp -v v9.1.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Jesper Weijnen\AppData\Local pm-cache\_logs\2022-11-11T10_49_42_633Z-debug-0.log
@@HaiderAli-co9jl Do you see brown or green? We say that he is color blind because he might be missing a color receptor cone when you're supposed to have three (or more if you are tetrachromatic.)
@iwontigers Hey, thanks for pointing this out! One of my teachers is color blind and it's so weird to think about how other people could be perceiving the world so differently from how you do without you even noticing it!
Super informative, descriptive and straight to the point. Thanks!
nice! A note: I know it says so, but servo does not need a pwm pin. Servos require a different pwm signal. Try it on another pin to see for yourself.
great! Thanks a lot!!! i just bought an Arduino UNO and going to write some code in JS.
It works damn well !! Thank you very much !!!!!
Is there an easier way to use johnny 5 just like this with a raspberry pi 2 or 3 using com ports from a windows machine without going down the vnc or remote rdp ?
Excellent video
Thanks, saved me hours
Yes, but you depends on your PC. Traditional Arduino IDE injects compiled code directly into memory of arduino and you can comminucate using Bluetooth, Serial Port, using ESP8266 WiFi, you can connect it through GSM module, you can comminicate using Infra Red Remote, Radio Wave, etc... In this way, once you disconnect your USB, your arduino is dead. I tough, you coding arduino using JS and that comes through compiler and you flash your Arduino over USB to work as independent.
Can you put the steps in the description with Timestamps of where each step starts. I need something condensed to bounce back to.
Invalid shorthand property initializer (what can i do)
Very Good!
Your explanation was the better i fond in Web.
Thanks very much for help.
I programmed everything as instructed with no errors. However; upon running the code, the servo will only respond to the 1st command only, either CW or CCW. The space bar does nothing, neither does quit. I do see the text change on the screen indicating that a CW ,CCW , Stop, or Quit command has been sent, but the Arduino does not follow the java script commands. I tried a different servo program and it was the same thing. The servo only responded to the first command.
To by-pass having to constantly hitting enter in the after running "npm init" Use "npm init -y" (-y tell the command to say yes to it all...)
Thanks SM!!!!!
I would be so OP at this if I had a PC.
Hey. Sorry for bothering. But I was wondering if you can tell how to run written sketch on Arduino board standalone without having J5 REPL permanently running...
javascript or python or c language will be better for bigger projects on arduino
Is there any video to send SMS using audrino,gsm module and nodejs
ramesh naidu you could start with building an express server along side Johnny 5 to connect to the twilio service.
Does it make a difference wether i do "npm i johnny-five" or "npm i johnny-five --save"?
Yes. When you --save it saves the package name in package.json file.
Hi, I'm working on my college project. I need to control stepper motor with Johnny five I tried using arduino uno along with cnc shield but for me stepper.step() method is not executing. When I complie it didn't show any error. Give me some suggestions or your mail Id that will help me
Did you get any errors in your javascript with serialport/firmata?
what's this moving part called, I don't have it, I need to purchase it separately. Kindly tell.
hobby servo motor.
@@MakeUseOf thank you for replying 🙏😃
I have this Error: Cannot find module 'firmata' what sould I do?
I get the same error. I hope someone can help
"npm install firmata" ??
When i try to run the code after npm installing johnny-five and keypress, i get the message that its missing the module "firmata". I have uploaden the firmataplus code to my arduino, and why i try to do npm install firmata in my node enviorment, i get an error. So im stuck now. Anybody knows how to solve this problem?
did you install firmata using npm too?
(separate to the arduino side of things)
@@MakeUseOf First of all, thank you for the quick reaction. When i do npm install firmata inside of the folder where my js file is, i get an error. It just dont want to install firmata.
It's been a while since I played with npm I'm afraid, but that's what you need to install. Try it globally / as root etc.
@@MakeUseOf tried to do it globally but still dont work. This is the error im getting (and its long, sorry):
npm ERR! code 1
npm ERR! path C:\Users\Jesper Weijnen\AppData\Roaming
pm
ode_modules\firmata
ode_modules\@serialport\bindings
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@18.10.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\Jesper Weijnen\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\find-visualstudio.js:364:14)
npm ERR! gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\find-visualstudio.js:385:16
npm ERR! gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Program Files
odejs
ode_modules
pm
ode_modules
ode-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:420:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\
odejs\
ode.exe" "C:\\Program Files\
odejs\
ode_modules\
pm\
ode_modules\
ode-gyp\\bin\
ode-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\Jesper Weijnen\AppData\Roaming
pm
ode_modules\firmata
ode_modules\@serialport\bindings
npm ERR! gyp ERR! node -v v18.10.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Jesper Weijnen\AppData\Local
pm-cache\_logs\2022-11-11T10_49_42_633Z-debug-0.log
Are you by chance color blind? What you call the brown cable is actually green.
What if it is the other way around
@@HaiderAli-co9jl Do you see brown or green? We say that he is color blind because he might be missing a color receptor cone when you're supposed to have three (or more if you are tetrachromatic.)
@iwontigers Hey, thanks for pointing this out! One of my teachers is color blind and it's so weird to think about how other people could be perceiving the world so differently from how you do without you even noticing it!
I am have arduino mega
Next language rust