IoT 1 - Starting My Journey

3 min read

IoT 1 - Starting My Journey

I will tell you the starting point of my IoT journey

Sup, everypony!

My name is Nisrina Zakiyah (Belle) and I will tell you the starting point of my IoT journey. I’m from Information System & Technology, ITB.

My (favorite) lecturer gives us this assignment for this Embedded System course, AND I’M SO EXCITEDDD!!! You may ask "why?" (or maybe do not care). Well that’s because I have an interest in this field—which is the "technical things" like the embedded systems. On the other hand, I also really enjoy writing since forever. I’m so grateful that my lecturer gives me an opportunity to develop my writing skills.

"Ugh, enough yap,"

Alright then, let’s begin! ;3


Last week, I prepared the things needed (namely those in the picture above). Thanks to the lecturers because they have made it easier for us by making a list of links to the items that must be purchased.

Article screenshot: iot 1 2

But, for this week, our microcontroller—ESP32, a micro USB cable, and a breadboard (optional) are more than enough. That’s because our only objective is to make the LED lights in the ESP32 blinks.

To make that happen, first, we must prepare the software in our PC/laptop.

Based on the lecturers agreement, the IDE that we’re going to use is Arduino IDE. This is the installation processes (in the MacOS Apple Silicon):


1. Install Arduino IDE

  1. Go to this website:

    https://www.arduino.cc/en/software/

    Choose the right operating system for you.

Article screenshot: iot 1 3


2. Add ESP32 Board Manager URL

Open the app, then click:

Arduino IDE → Settings → Additional Boards Manager URLs

Article screenshot: iot 1 4

Fill it with this GitHub link:

https://espressif.github.io/arduino-esp32/package_esp32_index.json

Article screenshot: iot 1 5


3. Install the ESP32 Board Package

Click:

Tools → Board → Boards Manager

Article screenshot: iot 1 6

Search "esp32", then install the package created by Espressif Systems.

Article screenshot: iot 1 7


4. Select Your Board

Click:

Tools → Board → esp32

Article screenshot: iot 1 8

Choose DOIT ESP32 DEVKIT V1.


5. Install the USB Driver

Install the USB to UART driver.

https://www.silabs.com/software-and-tools/usb-to-uart-bridge-vcp-drivers?tab=downloads


6. Connect the ESP32

Connect your ESP32 board to your PC/laptop using a micro USB cable. If you're using a MacBook, you'll also need a USB-C to USB adapter/HDMI hub.

Article screenshot: iot 1 9

Micro USB cable

Article screenshot: iot 1 10

USB-C to USB HDMI cable


7. Select the Serial Port

After connecting the board, you'll see an additional port under:

Tools → Port

Choose that port (mine says /dev/cu.usbserial-0001).

Article screenshot: iot 1 11

Additionally, your ESP32 LED will glow red like this.

Article screenshot: iot 1 12

ESP32 glows in red


8. Open the Blink Example

To achieve our goal (making the LED blink), click:

File → Examples → 01.Basics → Blink

Then, Arduino IDE will open the example source code.

Article screenshot: iot 1 14


9. Upload the Sketch

Click Upload to compile and upload the sketch.

Article screenshot: iot 1 15

Article screenshot: iot 1 16

TADA!!! It is successfully uploaded ;333

Here is the result (the blue LED light is blinking):

Article screenshot: iot 1 17