210 points · by achalkley · 13y ago · 29 comments
I will say that Arduino has really sparked my imagination. I'm digging out garbage electronics (an old clock radio for example), taking them apart, and trying to figure out how to interface their components with Arduino.
"My goal for Johnny-Five is to create a framework for programming Arduino Robots with nothing more then JavaScript. I believe that JavaScript, inherently asynchronous and the platform that Node.js has built around this paradigm, is the perfect environment for writing evented, streaming programs for controlling the highly synchronous world of hardware." -- via http://weblog.bocoup.com/javascript-arduino-programming-with...
I don't know anything about robotics or arduinos (though I've done a bit of electronics hacking/tinkering throughout my life), but this project makes me want to jump right in head first.
Congrats.
What you said prompted me to think of a tweet I saw from smashing magazine:
"It’s good to share what we know. You needn’t be the first, you’ll just help if you’re the first that somebody finds." https://twitter.com/smashingmag/status/278041226622668800
Whilst it's not exactly what you said I think the sentiment is the same...
Check out this Arduino for Beginners (In Comic Form) - probably particularly good for those of you who gifted an Arduino to children, and links to other resources in the last panels.
http://www.jodyculkin.com/wp-content/uploads/2011/09/arduino...
____________________
| o ···········
RESET ---> + · ·
GND -----> + · ·
_|____
| |
| USB |
|______|
|
|
Then, if you want to use the dfu-programmer[2], you need to apply a patch[3] to make it work with the R3.Being myself a complete newbie, I found it time consuming to reach the state in which I knew how and what to do just to upload a new firmware.
[1]: If you want/are interested in playing with Arduino as an USB device.
Can anyone point me to a similar resource for the Raspberry Pi?
http://elinux.org/RPi_Low-level_peripherals
It provides some information on how to interface with the GPIO pins with a multitude of programming languages. Granted it may not be an absolute beginner guide, it still has a lot of useful information. If I can find another guide I'll comment back here.
I'd also want to echo something that the other reply to your comment mentioned, which is that you should seriously consider starting with an Arduino if you want to do some lower-level programming/interfacing with hardware. From my personal experience, there's a little more documentation on that sort of thing with Arduino than the Raspberry Pi. Additionally, the Raspberry Pi's GPIO pins are not fault tolerant, which means you could damage your Pi if you wire up your hardware improperly. If I remember correctly, Arduinos typically have some voltage fault tolerance (at least there are variants which do), and even if you fry the actual microcontroller chip on the board, it can be removed and replaced for a couple of dollars. Once you've got some experience on an Arduino board, then I'd recommend doing some of the low-level stuff on the Raspberry Pi.
I went to a hacker space open house in Orlando (FamiLAB) and a colleague and I were asking whats the difference between a Pi and an Arduino and a guy said what do you want to do and I said make an LED flash...And he said to start with an Arduino and I can see why now, if you want to get in to electronics (and you already have a computer) an Arduino is the way to go.
A Raspberry Pi is a fully functional computer so you have to wait for it to boot in to linux before it can do any other tasks. An Arduino is (almost) instantly on and running you program. Both are great teaching and learning tools but it depends what you want to do with them.
There's nothing to stop you programming the pi bare metal style like an arduino. It's not as well documented but it's perfectly doable and quite fun.
I was experimenting writing libraries in C++ (I prefer a more OO interface to things) so I created an AnologLed and DigitalLed class and showed my daughter in the code how I made a red LED come on and she proceeded to make the orange and blue ones come on too.
This stuff it the literacy of the 21st century.
> She guess doing a minus number would move a sprite in
> the opposite direction!
I'm curious how that is possible. Did she just move a slider towards the negative range? Randomly guess it? Does she have a notion of continuity past zero?I typed in the number and prefixed it with I am putting a funny symbol before, and said they were before zero and that normal numbers had a plus in front but it's hidden normally, then I asked which way do you think this will go and she pointed left.