Arduino is the perfect introduction to microcontrollers and electronics. The recent trend of powerful, cheap, ARM-based single board Linux computers is the perfect introduction to computer science, programming, and general Linux wizardry. Until now, though, Arduino and these tiny ARM computers have been in two different worlds. Now, finally, there are nightly builds of Arduino IDE on the Raspberry Pi and other single board Linux computers.
The latest Arduino build for ARM Linux popped up on the arduino.cc downloads page early this week. This is the result of an incredible amount of work from dozens of open source developers across the Arduino project. Now, with just a simple download and typing ‘install’ into a terminal, the Arduino IDE is available on just about every single board Linux computer without having to build the IDE from source. Of course, Arduino has been available on the Raspberry Pi for a very long time with sudo apt-get install arduino
, but this was an older version that cannot work with newer Arduino boards.
Is this distribution of the Arduino IDE the same you would find on OS X and Windows? Yep, everything is the same:
While this is really just arduino.cc improving their automated build process and putting a link up on their downloads page, it does make it exceptionally easy for anyone to set up a high school electronics lab. The Raspberry Pi is almost a disposable computing device, and combining it with Arduino makes for a great portable electronics lab.
I love this! I had to spend sometime last time I needed to deploy to my Teensy as the Gentoo eco system does not have the Arduino IDE which was painful and the then brittle. But now I can have a cheap SD card pre loaded and ready to swap into a Pi and moments notice!
Colour me happy!
Libraries?
using a Pi to compile… I am spoiled.
Ah dang, I thought this would turn a Rasp into an Arduino!
For those times when you need a 1000MHz CLK…
Same here
just had a funny thought; imagine if, on next april first, the rpi foundation announces a new filesystem for linux/ARM called Rasp.
get it? a FILE system.
https://en.wikipedia.org/wiki/Rasp
oh, forget it, then.
Oh well, another potentially decent OS de-filed.
I’ve heard that system-d makes Raspian, uhm, lose its edge…
Rasp Ha ha +1 !!
My thoughts exactly
Would be awesome to have a simple way to do bare metal on the pi zero
That’s why you use the Rasp File system…to get to the bare metal….
Okay, this is a joke we need to work on.
I’m not saying it’s bad. It just needs work,
It already is simple enough. At least for me.
if you can arduino you can gcc.
with the PCDUINO linux-images there was an arduino pre-installed. next to the usual arduino targets (mega, nano, pro mini etc) you could chose pcduino for just compiling to an executable for running in linux (and pcduino libraries?)
Yeah, I was using PcDuino for a while until the 2nd PI came out. Pretty nice board (a little weird, but nice). The Arduino part of it never really worked well, at least not on the PCDuino 3 — Things like servos, for example, did not work at all.
Something like a BeagleBone might actually be a cool hybrid platform, since its PRU is intended to give the main chip exactly the sort of bare-metal performance that is usually delegated to a separate micro. There is an elegance to embedding two bare metal processors with a processor that has an OS, and having the lot seamlessly share I/O pins.
arduino already supports creating applications under linux. the Intel Galileo is an example of that. in addition, there are plenty of examples with the BeagleBone Black, and there is always http://wiringpi.com/ , which is a RPi implementation of wiring used in the arduino environment…
Portable electronics lab?! I would guess a laptop is a bit more suitable for that.
Afaik the pi is just a bare board (ie no casing, monitor, keyboard). With todays kiddies using that to blink a led faster then an afuino can ;)
There’s a company called Pi-Top that makes a laptop shell for the Raspberry Pi. Screen, keyboard, battery, the whole shebang. They look pretty nifty, and I want to get one for development and debugging in the field, but their payment processor does not get along with my bank.
There is a company called Lenovo that make and sells a laptop for 175$, 11 hours of included battery life, 1,366-by-768 screen, 2GB Ram, Atom CPU. 1 year warranty, Windows 10 that you can replace if you prefer Linux
True, but I really like the idea of an easily-modifiable laptop with built-in GPIO.
Bah, x220 lyfe
Wat?
Which model Lenovo and where can I find it?
i built me a pi tablet with the official screen and a 3d printed case. its a little thick and has power issues. i need to reprint some bits, rethink my power system. right now its just a couple lithium cells and a ubec, and i want to move on to a proper recharge system with all the safety bs. either want to go with a 3 cell system and buck converter or stay with 2 and use a boost-buck regulator. right now the thing gets unstable when the batteries are well above their minimum voltage.
the case is built out of 7 sections because of the small build area on my printer, but i have upgraded it and think i can get it down to 3. i also want built in speaker enclosures and some kind of mounting system for peripherals like joysticks and keyboards.
At $299.00, forget about it. I can get a Panasonic Toughbook for a hundred less.
If you can link me that, that’d be awesome! A cheap Toughbook would hit most of the use-cases I’m looking at for the Pi-Top. I always thought Toughbooks were fancy corporate things in the $1K+ range.
Check Ebay for a used one, there’s lots of them out there. They’re not cutting edge, but as long as you aren’t playing Call of Duty, they’ll do the job.
Not quite what you are after, but for the screen and keyboard, eBay for an atrix – very high quality HDMI screen, keyboard and battery in a laptop format, originally intended as a docking station for a Motorola Android handset of same name. Rpi just works with it out of box.
Why ?
Could someone give the benefits to do this.
But different than “it’s a 25$ only computer”. (every desktop computer needs a screen, and a mouse, a keyboard, a power supply and some reliable storage ! -> cost of ownership > 200$)
I have been trying to use the PI3 as a “regular” desktop computer, but nope, it is not, except if you like to add some suffering to your job. Lag,lag and lag.
Browsing the web on the pi, which is part of any code writing task, is a really bad experience.
So if you have never used a real desktop computer, give it a try and tell us, but note, it is advertised as “experimental”.
Gets down to about $40 if you have a decent thrift store. Cheaper if you have a TV.
Cheaper I you have … ( add any part of a desktop computer you already have)
Sure, i already have a desktop computer, and the old Celeron in my attic, is more than 10 times more efficient at the task than my overclocked RPI3.
Incorrect. the Pi3 will utterly demolish your old celeron in processing power and speed.
I’m pretty sure that any celeron that supports a gig of ram will run circles around a pi. Sure the clock speed on the pi looks faster, but the intel chips can do more work per tick and not get blocked on IO as often.
Not that I’m an intel fan or anything. They got where they are by fighting dirty.
More powerful, yes. More efficient, very much no–power consumption being a general problem.
Why? Because it’s one more thing you can do with the Raspberry Pi that is in line with the desire to learn programming and make things. RPi is about learning and controlling your environment to do what you want. It is not about being rock-bottom TOC for any one thing. Remember that you can, indeed use the RPi in the $25 form, just not as a desktop replacement. You can develop your project with keyboard, monitor, etc. and when you get it working in that form, you can strip all that stuff off and have the $25 version. It isn’t perfect at everything – it’s a terrible laptop. A laptop is a terrible RPi.
Also remember that RPi may not be the best in the world at anything and even that isn’t the end of the world.
Agree to: “Because you can”
But, I was asking for the benefits.
I’m not a PI hater, i had all of the from the first one to the last one. I exactly know what to do and not do with them.
Did you ever try to run Processing ? I did, and it’s a mess.
So RPI YES, RPI desktop NO benefits.
I think I am the guy this was made for. As a high school teacher, I use Arduino to learn coding and hardware in my class. However, all of the school computers are so locked down they cannot load executables like the Arduino IDE. Now I can buy a $35 board and run the IDE using the school monitors, mouse, and keyboard. Instead of sharing the few computers that can run the software, I can get a bunch of Pi’s for very little cost.
A Arduino library for Linux would be a better idea. This will allow to get a easy and standard way to get efficient GPIO, timer, ADC, PWM, I2C, SPI, UART. While it’s true that each of them already exists on Linux, there are most of the time no as easy as the Arduino to make simple projects.
yeah, that would be great :)
Intel tried this with Galileo, and again to a lesser degree with Edison. You build with Arduino and your “sketch” gets compiled as a Linux executable that’s linked with library code to implement the Arduino API.
Good Arduino compatibility (on something other than an AVR chip) is easy to imagine and easy to say… not so easy to actually accomplish.
especially with timing stuff. example, an IR decode library. next to zero percent chance any intel simulator or interp (or even direct binary calls) would be able to function as the IR library does with atmel chips. with the arduino 101 board from intel, even simple arduino-standard demo apps fail to run properly; and this is supposed to be a ‘supported’ platform for intel!
Thanks for this information. Hope that Linux will evolve regarding those capabilities.
you mean like pyFirmata? https://pypi.python.org/pypi/pyFirmata
That’s a python interface to the Firmata protocol to control an Arduino.
No. I mean a library that act on the native Linux machine, not a protocol that act on a uC connected to the Linux machine.
How about WiringPi?
I take a quick look at WiringPI project. Yes this seem to be in the right direction but as the name of the project suggest, this is too much specific to the Raspberry PI and not usable into a Adruino IDE. Maybe that project could fork/evolve into a libarduino directly usable on any Linux machine from a Arduino IDE.
We did just that for the Beaglebone Black a few years ago. It comes default in the Debian image for BBB.
http://elinux.org/Userspace_Arduino
Works fine, but there’s loads more to do I guess ;)
Plus there is the Tre which I guess is stuck in limbo.
Yes, this is the right direction. Hope that your work will gain traction.
Arduino on PI, why bother? Use a real environment, but I guess that there are those who can’t. “when in doubt ( or lack of skills) throw more hardware at it”.
Oh, well if that is all you can do, then good on you.
I think it took you longer to reply than it would have taken to read enough of the summary to know they are talking about putting the (newest) Arduino IDE on the Pi. So you can program an external arduino using your rpi. Not program an rpi with an arduino sketch.
Love RPi and Arduino, but the editor part of the IDE, is not so good. Really lets the side down even in latest updates. I use notepad++ to edit the source.
not sure where the arduino guys got this weird style of c coding from. hit control-t in arduino IDE and it removes stars from your block comments! I manually type in:
/*
* hey now
*
* stuff goes here…
*/
and I get:
/*
hey now
stuff goes here…
*/
what the hell? how is this better? and why EDIT my comments like this? sheesh. arduino guys going too far, this time! its like they actively want us to abandon their IDE.
My guess is because Arduino is C++ and they probably expect you to use // for line comments like that. However, I agree it seems a bit rude. The editor also sucks with tabs too. The best solution is the option in Preferences “Use external editor” IMHO. :-)
Nothing new PCduino has been doing this for some time just because it is raspyberry pi the world goes gaga
This was the product I was thinking about. A co-worker of mine had one of these.
Any issues with USB-Serial drivers?
FTDI
Prolific
etc.
I’ve given up with seial comms on Windows 10, I guess I’ll just use the Pi to compile and upload code to my Arduinos
It’s all excellent – in fact, one of the reasons I use Arduino IDE on my Raspberry Pi =)
I just tried it out. works like a charm. I almost went back to windows 7 so I could do micro stuff.
Now back to the projects!
I’ve been using it on RPi for a year actually, I was the one to open the PR on GitHub – I just couldn’t stand Windows’s rules about drivers =) Good luck with your projects!
Why don’t they just put the latest version in the repo? Wouldn’t that make more sense?
Ehh,they’d need maintainers for that, and I guess they don’t have volunteers.
Arduino+Raspberry Pi = A marriage of the dead and dying. Neither Atmel or Broadcom even exist anymore, and both have been going through rounds of layoffs. Here’s a fun read: http://www.eetimes.com/document.asp?doc_id=1329412
Arduino can try to play the “we’re more than Atmel” card, just like the Raspberry Pi foundation can say “we’re not Broadcom”, but they’re fooling nobody.
Oh, the Arduino guys fooled me – I’m using their IDE to program ESP8266, so no Atmel.
But I guess the Espressif will go bust any moment now, too. Right?
Don’t forget yosys/icestorm also runs on raspberry pi so you can even work on FPGA’s with a fully open source flow.
Udoo boards (www.udoo.org) already support Arduino IDE since 2013. Doesn’t seem like a blast to me. Take a look at the new Udoo board, the x86, Arduino compatible, got Arduino 101 on board, shields compatibility, and even 10 times faster than pi3. That is fucking cool! https://www.kickstarter.com/projects/udoo/udoo-x86-the-most-powerful-maker-board-ever/