electronmage
Posts: 52
Joined: Fri Sep 27, 2013 11:40 am
Location: Columbus, Ohio

Arduino IDE 1.6.12 Install

Sun Nov 20, 2016 2:30 pm

Installing the Arduino 1.6.12 IDE on Raspberry Pi

Who would have thought that this would be so complicated. Or maybe, it was just complicated for me. I thought that I looked everywhere on a step-by-step for installing this, but I finally found it on a forum. Thanks to the beer & chips forum, because I had almost given up on using the rPi for this portion of my project and was going to resort to using windows for the IDE programming of the WeMos D1 clone board.

Anyways, follow these steps (maybe I just held my mouth right and it worked).

1. Go to https://www.arduino.cc and download the Arduino IDE 1.6.12 for the ARM processor.
2. Open a terminal window.
3. Type cd ~/Downloads
4. Type tar -xvf arduino -1.6.12-*.tar.xz
5. Type sudo mv arduino-1.6.12 /opt
6. Type cd /opt/arduino-1.6.12/
7. Type chmod +x install.sh
8. Type ./install.sh

The new Arduino IDE will be in the drop down, along with your old Arduino IDE (probably 1.0.5 – which is installed when you type sudo apt-get arduino in a terminal window from the Raspberry). You will notice the difference immediately in the splash screen startup and the window pane header will read, “Arduino 1.6.12”.

Congratulations!

I had to delete the Nokia examples from the sketchbook as the IDE was having difficulties using the “-”. You can change them to “_” and it will work, or just delete that folder. I wasn't going to use those anyways, so I don't think I will miss them.

Any extra libraries that you have downloaded for the 1.0.5 IDE will have to be relocated using the Library Manager in the 1.6.12 IDE (which is relatively painless).

I was also interested in using the WeMos D1 development board for this project since it has the ESP8622 with WiFi native to it. If you are wanting to do this, navigate to File → Preferences and look near the bottom of the window that pops open for “Additional Boards Manager URL:”.

Type the following in the blank field:

http://arduino.esp8266.com/stable/packa ... index.json

and click OK.

Now, go to Tools → Board “<your last chosen board>” and click on “Boards Manager” at the top of the list.

Type “ESP8266” in the Filter Your Search box at the top of the window.

Esp8266 by ESP8266 Community will show up. Highlight it and click Install in the lower right corner.

Nice work! You've got it installed.
Electronmage

--------------------

I like Pi!

Waleran
Posts: 1
Joined: Fri Dec 30, 2016 12:01 pm

Re: Arduino IDE 1.6.12 Install

Fri Dec 30, 2016 12:06 pm

Thanks for this, it worked for me. I've installed 1.6.11 as this appears to be the last version that supports Ardublock.

MarkDH102
Posts: 194
Joined: Fri Feb 13, 2015 3:18 pm

Re: Arduino IDE 1.6.12 Install

Fri Jan 06, 2017 12:12 pm

Many thanks. I've just installed 1.8.0 using your method and my UNO is working fine.

User avatar
PeterO
Posts: 3641
Joined: Sun Jul 22, 2012 4:14 pm

Re: Arduino IDE 1.6.12 Install

Fri Jan 06, 2017 12:33 pm

MarkDH102 wrote:Many thanks. I've just installed 1.8.0 using your method and my UNO is working fine.
That's good to know.I'm about to start playing with a Mega 2560 with a CANBUS shield. It will be talking to a PI with CANBUS and it would be great to be able to do all of the development on the PI.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
scruss
Posts: 1399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino IDE 1.6.12 Install

Fri Jan 06, 2017 1:49 pm

I think the installation instructions you gave are a little complicated. This works for me, no sudo required:

Code: Select all

mkdir ~/Applications
cd ~/Applications
wget https://downloads.arduino.cc/arduino-1.8.0-linuxarm.tar.xz
tar xvJf arduino-1.8.0-linuxarm.tar.xz
cd arduino-1.8.0/
./install.sh
rm ../arduino-1.8.0-linuxarm.tar.xz
This adds an Arduino icon to the Programming menu.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
Pumpkin_Pi
Posts: 2
Joined: Sun Jan 08, 2017 7:00 pm

Re: Arduino IDE 1.6.12 Install

Sun Jan 08, 2017 8:22 pm

electronmage and scruss, thanks a lot. Without your help I wouldn't be able to program my Arduino Due from my pi 3 (the old arduino IDE didn't support it and had no board manager) :D

ron333
Posts: 6
Joined: Mon Feb 08, 2016 12:56 pm
Location: Boston, MA USA
Contact: Website

Re: Arduino IDE 1.6.12 Install

Thu Jan 26, 2017 3:50 pm

Yes, you can easily install Arduino 1.8.1 on your Raspberry Pi. https://medium.com/@ronm333/installing- ... .ipqn1zhhm

User avatar
scruss
Posts: 1399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 1:00 am

You don't need the `sudo` bit: arduino should be installed and run as a regular user. This works for 1.8.1:

Code: Select all

mkdir ~/Applications
cd ~/Applications
wget https://downloads.arduino.cc/arduino-1.8.1-linuxarm.tar.xz
tar xvJf arduino-1.8.1-linuxarm.tar.xz
cd arduino-1.8.1/
./install.sh
rm ../arduino-1.8.1-linuxarm.tar.xz
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 4:12 am

by just using
arduino-nightly-linuxarm.tar.xz
you get the newest, not have to think or check about revisions
and that would be a easy update script.
( i use Downloads... pls change )
nano /home/pi/Downloads/arduinoinst.sh

Code: Select all

#!/bin/sh
# arduino update
cd /home/pi/Downloads
rm -v arduino-nightly-linuxarm.tar.xz
sudo rm -r arduino-nightly
wget https://downloads.arduino.cc/arduino-nightly-linuxarm.tar.xz
tar xvJf arduino-nightly-linuxarm.tar.xz
cd arduino-nightly
echo 'setup arduino IDE'
./install.sh
# show version ( 1.8.2 == 1.8.1 ++ nightly )
sed -n '1p' revisions.txt
echo 'now pls try in desktop'
chmod +x /home/pi/Downloads/arduinoinst.sh
/home/pi/Downloads/arduinoinst.sh

User avatar
scruss
Posts: 1399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 11:52 am

you don't need the sudo in that script, either.

As long as the Arduino installation has the board manager (so ≥ 1.6 or so), it can update drivers/compilers/libraries for any available board. The need to chase after minor versions has pretty much gone away, unless there's a major bug or security issue.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

bensimmo
Posts: 1914
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 12:48 pm

Thanks, just in need of Arduino on the Pi and the official Raspian version is too old for my use.
Thanks, will be doing this tonight.

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 1:37 pm

scruss wrote:you don't need the sudo in that script, either.
?? i must use sudo to delete all of the untar files, its tested.

and it is up to you when you start the update??
but ok, should first read the
https://www.arduino.cc/en/Main/ReleaseNotes

User avatar
scruss
Posts: 1399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Jan 30, 2017 8:15 pm

KLL wrote:?? i must use sudo to delete all of the untar files, its tested.
What you're probably wanting is

Code: Select all

rm -rf arduino-nightly
If you've extracted file from a tar archive as a regular user, you won't need the privilege escalation of sudo. What you might get, though, are read-only files and folders, which rm -r will choke on. I think that the distribution archives contain git control files, and they're notorious for being read-only. That's why rm -rf works, as it will delete read-only files that belong to you. `sudo rm -r` may delete everything belonging to everyone, so mistakes can remove your entire system
and it is up to you when you start the update??
but ok, should first read the
https://www.arduino.cc/en/Main/ReleaseNotes
Yes, you can do it manually from the Boards or Libraries menu at any time, and choose whether you want to update particular components or not. After a while, the Arduino UI may prompt you that updates are available, but it's not essential. You don't have to check the Release Notes: it will be more up-to-date than that.

The only advantage I can see of using 1.8.1 over 1.8.0 is the multi-coloured serial plotter. I can't find anything about the nightly builds, but I'm unlikely to ever use those.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Tue Jan 31, 2017 2:55 am

scruss wrote:What you're probably wanting is

Code: Select all

rm -rf arduino-nightly
thanks, i tried but still see
http://kll.engineering-news.org/kllfusi ... roblem.jpg
followed by
tar: Exiting with failure status due to previous errors
at next untar.
i checked with
info rm
but not find something, so question is why it works under sudo to completely erase the directory structure?

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Tue Jan 31, 2017 3:24 am

scruss wrote:I can't find anything about the nightly builds, but I'm unlikely to ever use those.
yes, this up to date thing is overrated...
but i see it like this: on a new release you will find always errors, so its better to wait some days and load the release with the repairs... >> nightly
while with OS there are incremental updates this zip file thing for programs lacks this feature.

my update philosophy for arduino is
++ when i buy a new board
++ when i start a new project

but in this case here i select the nightly thing because it allows to make a install or update script
what is independent from the version!!!
but like in your code viewtopic.php?p=1093180#p1093180
i need to type the version numbers 4 times..
just a idea from a lazy man.
Last edited by KLL on Tue Jan 31, 2017 3:36 am, edited 1 time in total.

User avatar
scruss
Posts: 1399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Arduino IDE 1.6.12 Install

Tue Jan 31, 2017 3:34 am

KLL wrote:… so question is why it works under sudo to completely erase the directory structure?
Your filesystem is corrupt: you get the message Structure needs cleaning if the filesystem can't make sense of what's there.

Save what you can, then sudo touch /forcefsck, and reboot. You might have some of your filesystem left over ...
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Mar 06, 2017 9:16 am

today see a problem with install newest arduino IDE
http://forum.arduino.cc/index.php?topic=460423

User avatar
PeterO
Posts: 3641
Joined: Sun Jul 22, 2012 4:14 pm

Re: Arduino IDE 1.6.12 Install

Mon Mar 06, 2017 9:29 am

KLL wrote:today see a problem with install newest arduino IDE
http://forum.arduino.cc/index.php?topic=460423
That's a nightly build, so you expect problems, and by the looks of things it's already fixed. I think it would be sensible to only report problems here that pertain to full/official releases.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Mar 06, 2017 11:43 am

PeterO wrote:by the looks of things it's already fixed
how you know, where you see that? or you mean my work-around? that's not a fix.

User avatar
PeterO
Posts: 3641
Joined: Sun Jul 22, 2012 4:14 pm

Re: Arduino IDE 1.6.12 Install

Mon Mar 06, 2017 12:29 pm

KLL wrote:
PeterO wrote:by the looks of things it's already fixed
how you know, where you see that? or you mean my work-around? that's not a fix.
Maybe you don't understand the concept of a nightly build, but no one produces actual "fixes" for nightly builds of software, so a workaround or going back to the previous day's working version is as close to a fix as you'll get.
If the developers are on the ball the next nightly build won't have the problem.
Reporting problems with nightly builds here is pointless. No one here is going to fix it !
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
KLL
Posts: 1123
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Arduino IDE 1.6.12 Install

Mon Mar 06, 2017 12:48 pm

PeterO wrote:Reporting problems with nightly builds here is pointless. No one here is going to fix it ! PeterO
555

Return to “Beginners”

Who is online

Users browsing this forum: Soilborn and 42 guests