This video show how to download, install and run Arduino IDE Linux ARM version (1 JUNE 2017 release), on Raspberry Pi 3 with Raspbian Jessie with PIXEL (2017-04-10 release). The Raspberry Pi connect to a 4" 800x480 HDMI IPS LCD Display, so it display in low resolution.
(All steps run on Raspberry Pi, remotely via VNC Viewer)
- Visit Arduino Software page. Scroll download to HOURLY BUILDS section, click to download Linux ARM version. It's release 1 JUNE 2017 currently.
- Extract the downloaded file.
- Change to the extracted directory.
- Run the install shell script.
$ sudo ./install.sh
- A short-cut will be added in MENU -> Programming -> Arduino IDE
Test with a simple program to read/write between Raspberry Pi and Arduino via Serial/USB.
testUsb.ino
int byteIn;
void setup() {
Serial.begin(9600);
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.print("Program started\n");
}
// the loop function runs over and over again forever
void loop() {
if(Serial.available() > 0){
byteIn = Serial.read();
if(byteIn == '0'){
digitalWrite(LED_BUILTIN, LOW);
Serial.print("LED OFF\n");
}else if(byteIn == '1'){
digitalWrite(LED_BUILTIN, HIGH);
Serial.print("LED ON\n");
}else{
Serial.print("unknown!\n");
}
}
}
Next:
- Add Arduino core for ESP8266 to Arduino IDE (run on Raspberry Pi/Raspbian Jessie with PIXEL)
No comments:
Post a Comment