WEMOS D1 MINI

- Posted in mikrokontroler by

Wemos D1 Mini ini merupakan versi minimalis dari Wemos D1 yang mirip seperti Arduino UNO. Jika kamu membutuhkan compatible development board dengan ukuran kecil dengan built in Wifi, Wemos D1 Untuk memudahkanmu saat memprogram Wemos D1 Mini, lebih baik kamu mengerti letal pin dan fungsi masing-masing pin. Berikut gambarnya :
enter image description here
enter image description here
enter image description here

ESP8266 Arduino: Software restart

- Posted in mikrokontroler by

In this tutorial we will check how to perform a software restart on the ESP8266 using the Arduino IDE core.
To restart the ESP8266, we need to call the restart method on the ESP extern variable, which is an object of class EspClass (header file available here). This ESP object can be accessed in our code without the need for any .h file include.

if(cnt==0){
    Serial.println("Reset..");
    ESP.restart();
}

Note that there’s actually a reset method also available on the ESP object. However, this method call is a hard reset that can leave some ESP8266 registers in their old state, which may lead to problems. On the other hand, the restart method we have used indicates to the ESP8266 SDK to reboot, which is cleaner and is the recommended method.
Referensi: https://techtutorialsx.com/2017/12/29/esp8266-arduino-software-restart/

ESP8266 (ESP-01) Mode SOC

- Posted in mikrokontroler by

Sudah pernah dibahas perihal definisi mode SOC di ESP8266, dan pada kesempatan ini dibahas bagaimana membuat mode SOC-nya. Adapun persiapannya adalah:
1. Modul relay untuk ESP8266
2. ESP8266 (ESP-01)
3. Arduino UNO
Caranya adalah sebagai berikut:
1. Atur mode flash untuk ESP8266. Perhatikan pada gambar wiring dengan USB to TTL.
2. Install ESP8266 Add-on in Arduino IDE. Caranya adalah sbb
2.a. In your Arduino IDE, go to File> Preferences
2.b. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into the “Additional Boards Manager URLs” field as shown in the figure below. Then, click the “OK” button:
enter image description here
Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json


2.c. Open the Boards Manager. Go to Tools > Board > Boards Manager…
enter image description here
2.d. Search for ESP8266 and press install button for the “ESP8266 by ESP8266 Community“:
enter image description here
3. Atur setting boardnya ke ESP8266 4. Lalu silahkan dicoba sketch yang terdapat pada bagian Example di Arduino IDE

Page 1 of 2