This tutorial is a combination of several tutorials already developed in Geekering in order to have access to all this content in only one place.
Parts Required
Arduino
In the case of Arduino, you can check the already existing post below.
You just need to change pin 7 to pin 13 to be coherent with the video.
#define LED 7 change to #define LED 13
ESP32
In this case, you will use the same code used in Arduino and follow the next schematic.

Raspberry Pi
To blink an LED with Raspberry Pi you can check the already existing post on Geekering here.