SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By farsi
#171259
Hi,

I've got a new Arduino Due and a bredboard.
However, I am bit confused about the pin layout, and I wonder how to get going with some basic demos.

I see the Arduino Due on my host laptop connected with USB.

What would be the basic steps to wire up a LED and get it blinking? What Node.js library could I use?

Thanks!
User avatar
By Ross Robotics
#171286
farsi wrote:What would be the basic steps to wire up a LED and get it blinking? What Node.js library could I use?
Besides blinking an LED, what are you trying to do? Why are you trying to use Javascript? Have you installed an operating system?

Other than that, http://goo.gl/B37VSx
Last edited by Ross Robotics on Mon May 19, 2014 5:26 pm, edited 1 time in total.
By lyndon
#171290
Tsk. But you didn't show the one using Javascript.

Seriously, though. Farsi may be confused. The BeagleBone is programmable in a dialect of javascript that has a library for low level I/O commands; perhaps he thinks Arduino does also. It's not out of the realm of possibility that someone has ported js to something like pcDuino or the like.
User avatar
By Ross Robotics
#171300
You can install an OS on a DUE. http://forum.arduino.cc/index.php?topic=138643.0 There are other OS that you can use as well.

But since I don't have a DUE, I don't know if Javascript can be used with the DUE..
By farsi
#171311
Thanks for the help! In the meanwhile, I understood how to read the open-source board pin layout of the Arduino Due here:

http://forum.arduino.cc/index.php?PHPSE ... c=132130.0

But I am still somewhat confused on how to talk to from the host PC to the board. With Sketch I could compile and upload programs just fine. But when it Comes to JavaScript (which I want to use in order to stream data from the Internet into Arduino), I am confused:

There are several Node modules for Arduino: https://www.npmjs.org/search?q=arduino

But I am not sure how to make them work with an Arduino Due. What is the process for compile and upload when code does not go via Sketch?

Thanks!
By farsi
#171312
I also read about connecting shields to Arduino. But I am unsure what shields are, what is important when buying one for Arduino Due, and if/and how I could use a shield to replace LEDs. What would be interesting shields for a beginner to look at?
User avatar
By Ross Robotics
#171328
For once, I wouldn't have bought a DUE if I was a beginner. Second, I would advise to Use Google and do a LOT of reading. After that you go read all the threads on the Arduino DUE forum.

I really don't understand why you are trying to use Javascript. It seems like you are diving in the deep end without knowing what water is.
By farsi
#171339
Hmm.. thanks. Indeed the Arduino Due maybe was not a good idea.
The reason for JavaScript however is that JS is becoming the main language for web related projects, and I'd like to experiment streaming information from the web to devices.