liderbug
Posts: 189
Joined: Sat Oct 08, 2011 4:47 pm

apt-get install/update arduino

Thu Sep 28, 2017 1:35 am

I know Arduino SW is not the responsibility of RasPi but the install code seems to be way behind current. Can someone please look into it.

Tks

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: apt-get install/update arduino

Thu Sep 28, 2017 3:27 am

liderbug wrote:
Thu Sep 28, 2017 1:35 am
I know Arduino SW is not the responsibility of RasPi but the install code seems to be way behind current. Can someone please look into it.

Tks

Raspbian is based on Debian which has a very strict upgrade path (2 years testing). This means what is available in the Raspbian / Debian repositories may be several versions older than what might be available elsewhere.
If you are running Stretch then the version may be newer than what was in Jessie.
If you need newer version than what Stretch has, then you will need to download source (if exists) and compile yourself.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: apt-get install/update arduino

Thu Sep 28, 2017 3:42 am

The Arduino package in Debian has been completely neglected by the maintainer and has not changed since wheezy. Unless you have some good reason, I would not use it but rather install from the tarball they distribute on their page or use the web editor

User avatar
Milliways
Posts: 534
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: apt-get install/update arduino

Thu Sep 28, 2017 4:03 am

The version in the repository is old, and no longer works with later boards or some newer code.

I installed using the Arduino link (which is rather vague) https://www.arduino.cc/en/Guide/Linux using the process in https://arduino.stackexchange.com/a/44813/3879

There is a similar instruction in MagPi61

liderbug
Posts: 189
Joined: Sat Oct 08, 2011 4:47 pm

Re: apt-get install/update arduino

Thu Sep 28, 2017 2:56 pm

Thanks, I understand your replies. I'm new to Arduino and I'm making a hot tub temp monitor using a ESP8266 & a TMP36 via my RasPi and the proto is working.

"... 2 years... " ??? The HW is upgrading every few months (a yr at the most) - So, RasPi.v4++ comes out and there's no SW that works or board options won't because the SW is ..... :shock:

Anyhow, thanks again, slog on.

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: apt-get install/update arduino

Thu Sep 28, 2017 6:58 pm

liderbug wrote:
Thu Sep 28, 2017 2:56 pm
"... 2 years... " ??? The HW is upgrading every few months (a yr at the most) - So, RasPi.v4++ comes out and there's no SW that works or board options won't because the SW is ..... :shock:
The Raspbian OS is updated as needed to support newer Raspberry Pi hardware, but software in the repositories that isn't directly related the the Pi hardware is entirely in the hands of the Debian developers. There are unstable branches of Debian used for testing newer software that you could track, but as the name suggests, you are more likely to run into problems. There are also more cutting edge versions of Linux, but none are as Pi optimized as Raspbian.

So your best options, in my opinion, are to either install the newer Arduino software manually, or use a different computer (Windows/Mac) to program your Arduino hardware.

EDIT: The web based IDE looks interesting as well, but I haven't tried it yet myself.
Last edited by HawaiianPi on Thu Sep 28, 2017 7:25 pm, edited 1 time in total.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: apt-get install/update arduino

Thu Sep 28, 2017 7:08 pm

https://blog.arduino.cc/2016/05/17/disc ... arm-linux/
is what I use. Because DebIan's software policy is too conservative for my needs.

https://www.arduino.cc/download_handler ... arm.tar.xz
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: apt-get install/update arduino

Tue Oct 17, 2017 6:51 pm

This thread is old, but someone else might come along with this same problem. So, for posterity: someone suggested using Debian's unstable repository. While that might work in other situations, in this case the arduino package in Debian's unstable branch is version 1.05. Do not use that antiquated version. Debian also has a sort of staging repo where really new stuff is put, but is not even guaranteed to work, called "experimental" even there arduino is v.1.5. The guy maintaining the package basically has done nothing since 2014.

wh7qq
Posts: 1448
Joined: Thu Oct 09, 2014 2:50 am

Re: apt-get install/update arduino

Sat Mar 10, 2018 10:42 pm

Perhaps laboring the obvious, perhaps not. Raspian-latest based on Debian Stretch has updated the Arduino IDE arm package to version 2.1.0.5+dfsg2-4.1. This is the version that

Code: Select all

sudo apt install arduino
installs. So if you want a recent IDE, you will have to upgrade to Stretch first.

Sorry if this is redundant as I am still groping around with my first Arduino UNO that just arrived last week and I am trying to find the "right place" to put libraries that I want to download. I ran across this in the process.

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

Re: apt-get install/update arduino

Sat Mar 10, 2018 11:50 pm

Arduino 1.0.5 is a painfully ancient version of the IDE. I'd hate to have to use that. No boards manager, no library manager, no serial plotter …

Anyway, I updated this for the current version:

Code: Select all

mkdir -p ~/Applications
cd ~/Applications
wget https://downloads.arduino.cc/arduino-1.8.5-linuxarm.tar.xz
tar xvJf arduino-1.8.5-linuxarm.tar.xz
cd arduino-1.8.5/
./install.sh
rm ../arduino-1.8.5-linuxarm.tar.xz
I really should automate that. You can currently get the most recent (non-nightly, non-beta) IDE version for Raspberry Pi with:

Code: Select all

$ curl -s https://www.arduino.cc/en/Main/Software | grep -o 'arduino-.\..\..-linuxarm'
This returns arduino-1.8.5-linuxarm today.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

ramson
Posts: 2
Joined: Sun Jan 07, 2018 11:36 am
Contact: Website

Re: apt-get install/update arduino

Sun Mar 11, 2018 7:04 am

Thanks scruss, i am also looking for the same. :D
:ugeek: ramson

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

Re: apt-get install/update arduino

Thu Mar 15, 2018 7:33 am

wh7qq wrote:
Sat Mar 10, 2018 10:42 pm
Perhaps laboring the obvious, perhaps not. Raspian-latest based on Debian Stretch has updated the Arduino IDE arm package to version 2.1.0.5+dfsg2-4.1. This is the version that

Code: Select all

sudo apt install arduino
installs. So if you want a recent IDE, you will have to upgrade to Stretch first.

Sorry if this is redundant as I am still groping around with my first Arduino UNO that just arrived last week and I am trying to find the "right place" to put libraries that I want to download. I ran across this in the process.
I have not tried to install with apt-get yet, but "2.1.0.5" is confusing me. What version of the Arduino code does that relate to as "1.8.5" seems to be the latest version on the Arduino web site ?

PeterO

Update:

Code: Select all

 apt-cache show arduino
Package: arduino
Version: 2:1.0.5+dfsg2-4.1
Installed-Size: 1618
Maintainer: Scott Howard <showard@debian.org>
Architecture: all
So it's not "2.1.0.5" but "2:1.0.5" .... Typo caused confusion. The package is still very old !

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

wh7qq
Posts: 1448
Joined: Thu Oct 09, 2014 2:50 am

Re: apt-get install/update arduino

Sat Mar 17, 2018 1:15 am

Interesting...the banner atop the IDE window reads "2.1...". but if you enter Help>About Arduino you get "2:1...". Not that it makes much diff to my Uno.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: apt-get install/update arduino

Sat Mar 17, 2018 8:25 am

It's the same junk version 2:1.0.5 on X86_64 Ubuntu.

Things work so much better with the 1.8.5 install from http://arduino.cc
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

wh7qq
Posts: 1448
Joined: Thu Oct 09, 2014 2:50 am

Re: apt-get install/update arduino

Mon Mar 19, 2018 1:26 am

Very well, indeed. As usual, @Dougie right on target.

Return to “General discussion”