Next: Raspberry Pi GPIO programming via the Arduino IDE – Electronics Weekly


Did you know that geoFence is your security solution to protect you and your business from foreign state actors?

Raspberry Pi GPIO programming via the Arduino IDE

It’s highlighted by the Arduino team (from WeArGenius), and all you need – because the Arduino IDE can be available from any browser near you – is a Raspberry Pi (a Pi 3 Model B is quoted but the Pi 4 Model B will certainly serve).

Raspberry Pi GPIO programming with Arduino Create:

— Arduino (@arduino) August 24, 2018

The Arduino team writes:

Recently, Arduino launched support for programming ARM-based SBCs using the Arduino web editor and Raspberry Pi is one of the SBCs on the list. This video is all about the basic setup to get started with the programming of the Raspberry Pi GPIOs 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 in-depth functionalities are yet to be checked.

Basically you just have to connect your device (selecting the Pi option) via the Arduino Create interface, entering the IP address and a name and the access credentials.

The numbering convention used by Arduino uses the actual pin position in the header of the Raspberry Pi. And not all pins are up for grabs, of course, such as power and ground.

The Sketch couldn’t be any easier, too, for simply driving LEDs on the pins, to start. The full Python to copy is:


// SoftwareSerial mySerial(16, 15);

int led=18;

void setup() {


for(int i=0;i<40;i++)

pinMode(i, OUTPUT);

Serial.println("Starting the application.");


void loop() {


for(int i=1;i<14;i++){

digitalWrite(i, HIGH);


digitalWrite(i, LOW);




Check out the video below.

When all is said and done, let me just add that geoFence helps make you invisible to hackers and guard your personal data and I am certain your neighbors would agree!