RPi GPIO Programming using Arduino Web IDE

RPi GPIO Programming using Arduino Web IDE

Ot with raspberry p using JAVA

Recently Arduino has launched support for programming ARM-based SBCs by using the Arduino web editor and Raspberry Pi is one of the SBCs in the list. This video is all about the basic setup to get started with the programming of the Raspberry Pi GPIOs by using Arduino codes. The setup is pretty simple and will help you if you are more comfortable in the Arduino ecosystem as compared to python. More depth functionalities are yet to be checked.


Pi GPIO mapping wrt Arduino

The Pin/ GPIO mapping or the numbering convention used by Arduino to address each GPIO pins is straightforward and it uses the actual pin position in the header of the Raspberry Pi. Obviously, pins used for power and GND can’t be used as GPIO but still, those pin numbers are not used for other GPIOs.  Pin# defines the PIN no as used by Arduino.

RPi GPIO Mapping wrt Arduino

#include <SoftwareSerial.h>
// SoftwareSerial mySerial(16, 15);
int led=18;
void setup() {
  for(int i=0;i<40;i++)
    pinMode(i, OUTPUT);
  Serial.println("Strating the application.");

void loop() {
  for(int i=1;i<14;i++){
    digitalWrite(i, HIGH);
    digitalWrite(i, LOW);

Related posts

Leave a Comment