3 ms·
Even a kid can program an arduino. Though it's syntax is very C-like, its much simpler to work with.
by QuarkSpark 14y ago
Even a kid can program an arduino. Though it's syntax is very C-like, its much simpler to work with.
- randomdata 14y agoThe syntax is actually straight up C++, though you can also use C code in the Arduino IDE if you give your file a .c extension.
- ecto 14y agoOr if you're bashful when confronted with C syntax, you can use my Node library :) https://github.com/ecto/duino https://github.com/ecto/duino
- bigiain 14y agoUmmm, _really?_ Programming _microcontrollers_ in JavaScript? I think you just broke my brain… (So has somebody run Zed Shaw's Fibbonacci sequence code on it yet?)
- bri3d 14y agoIf you read the docs, he's not programming the microcontroller in JavaScript - just running a native shim on the microcontroller and then communicating via serial. So it's basically a node.js library to use an Arduino as a dumb I/O card for your PC, not to program the Arduino in JS.
- TazeTSchnitzel 14y agoIt's C++ made to look like Processing, for some reason.
- bigiain 14y agoFWIW, it's not "made to look like Processing", it _is_ Processing. They use (or at least built on top of) the Processing IDE.
- randomdata 14y agoThey are different. Processing is built on Java, Arduino is built on C++.
- bigiain 14y agoThat's true for the _languages_, but the Arduino development environment is built on Processing, see second para here: http://arduino.cc/ http://arduino.cc/
- randomdata 14y agoArduino was built for the arts community who were already using Processing, allowing them to take what they already knew, and apply it to hardware. That's why it looks like Processing. Of course, the Arduino board isn't limited to the Arduino programming environment. Hackers tend more towards programming the AVR directly, providing greater performance and environments more familiar to them.
- dkersten 14y agoand all the built in stuff is just plain C++ too and can be found in the lib directory. I really like how easy it is to hack prototypes together with Arduino. I recently moved my own prototypes from PIC24 to a Teensy++ (a tiny little Arduino compatible board) and its made life so easy! Its a lot of fun to play with and the wealth of libraries makes prototyping a breeze. Just today I was tinkering with ultrasonic sensors and with bluetooth modules. For end products, I'd use C and LUFA for atmels rather than Arduino (or a PIC24 if I want 16bit or some of the other fancy PIC24 features, like 40MHz Fcy on PIC24H! since I have no experience with non-8bit Atmel micros)
- deleted 14y ago[deleted]