DEV Community

Discussion on: Let's program the Arduino with Javascript🤯

Collapse
 
pgradot profile image
Pierre Gradot • Edited

Just to be clear: you don't program the Arduino with JS; you run a JS program on your computer that controls the Arduino. If the computer is not connected to the Arduino, the Arduino doesn't "work".

Am I right?

Collapse
 
patik123 profile image
Patrick

Yes it's true. The purpose of the article was to show web developers how to manage Arduino with JavaScript, and thanks for comment.

Collapse
 
pgradot profile image
Pierre Gradot • Edited

My question was not some kind of value judgement, but really to clarify my understanding.

You don't always need the Arduino to be standalone.

Sometimes, it's OK to have the Arduino connected to your computer to run the program. For instance, when you use it to communicate with an electronic test equipment.

Thread Thread
 
patik123 profile image
Patrick

Sessions agree that no, if we want to use an Arduino standalone without a computer it's C ++, so. However, if we want to test a circuit or learn how to assemble electronic components together, it is easier to use JavaScript.

Collapse
 
fredericrous profile image
Frederic R.

There's a board that runs javascript. Have you tried espruino?