mesand
Posts: 65
Joined: Tue Oct 22, 2019 9:21 pm

Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 1:05 am

Hi all,

I have my arduino nano connected to my raspberry pi USB port. I need to install a library on it. Is it possible to do from the SSH terminal on my computer?

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

Re: Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 2:19 am

Do you have the Arduino IDE installed on your Raspberry Pi? If so, you should be able to call it up on your local computer if you ssh in using ssh -X. This will need an X server running on the local computer.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

mesand
Posts: 65
Joined: Tue Oct 22, 2019 9:21 pm

Re: Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 5:07 am

Ok I added -X when I ssh'd into the pi but nothing happened. When I plug in my pi to a computer I can navigate to the electronics tab when I press the pi icon in the top right and upload sketches on the arduino ide. but i dont know how to get there on the terminal

mesand
Posts: 65
Joined: Tue Oct 22, 2019 9:21 pm

Re: Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 5:11 am

Update: I managed to locate my arduino folder. However, I still have my arduino code and dont know how to upload it to the arduino. Whenever I do "arduino NAME OF SKETCH --upload" i get errors from a random sketch I uploaded n the past, even when I try and upload a blank sketch.

LTolledo
Posts: 3432
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 6:40 am

why not use arduino ide for raspbian (desktop).... its a lot simpler that way.... ;)
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

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

Re: Install Arduino Library from Raspberry Pi

Mon Dec 09, 2019 9:23 pm

mesand wrote:
Mon Dec 09, 2019 5:07 am
Ok I added -X when I ssh'd into the pi but nothing happened.
Looks like you don't have an X server running on the local machine, then. If you did, the Arduino IDE running on your Raspberry Pi would appear on the local machine's screen.

You might want to try installing arduino-cli. It's really slow to install on a Raspberry Pi, but it does run and can work entirely without a GUI.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Return to “General discussion”