Install Arduino IDE in Raspberry Pi 3 model B
Visit https://www.arduino.cc/en/Main/Software in your browser, and click the Linux ARM link under ‘Download the IDE’.

cd Downloads/
tar -xf arduino-1.8.3-linuxarm.tar.xz


Extract the file to your /opt directory, then open a Terminal and run the install.sh script to install.

sudo mv arduino-1.8.3 /opt
sudo /opt/arduino-1.8.3/install.sh


You will find Arduino IDE under Menu > Programming. Open the app to start programming your Arduino board.

Hope this helps.