Page 1 of 1

Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 1:05 am
by mesand
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?

Re: Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 2:19 am
by scruss
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.

Re: Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 5:07 am
by mesand
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

Re: Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 5:11 am
by mesand
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.

Re: Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 6:40 am
by LTolledo
why not use arduino ide for raspbian (desktop).... its a lot simpler that way.... ;)

Re: Install Arduino Library from Raspberry Pi

Posted: Mon Dec 09, 2019 9:23 pm
by scruss
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.