Posts

Showing posts from February, 2022

DHT22 Temperature and Humidity Sensor using Arduino IDE

Image
 Welcome to The Article...! This article will show how to use DHT22 temperature and humidity sensor using Arduino IDE. Before assembling the circuit, I will give quick explanation about DHT22 sensor. DHT22 Temperature and Humidity Sensor DHT22 can measure temperature from -40 to 80  ยบ c  and humidity from 0 to 100%. It has 4 pinouts and each pinout connect to different pin on ESP32. From left, pin 1 is going to be where we connect the VCC so it will connect to 3.3V pin on ESP32. Pin 2 will connect to any digital GPIO and connected to 10k Ohm pull-up resistor. Pin 3 will not connect to any pin and pin 4 will connect to ground (GND) pin on ESP32. STEP 1: Required Hardware and Software ESP32 Development board  DHT22 Humidity Sensor 10k Ohm resistor Breadboard Jumper wires STEP 2: Assembling the circuit Connect the ESP32 and the sensor based on the picture below. I will be using GPIO 4. Source: randomnerdtutorials.com STEP 3: The Source Code Installing the Libraries For ...

"Built-in Touch, Hall-Effect, and Temperature Sensor" on ESP32 using Arduino

Image
 Bonjour...! Today's article will show how to use 3 built-in sensors in ESP32. Those 3 sensors are touch sensor, hall effect sensor, and temperature sensor. In case you don't know, the temperature sensor in ESP32 only detect the internal temperature of itself and not its external. Without further ado, let's get straight into it! Required Hardware and Software ESP32 Development Board PC with Arduino IDE Micro USB Cable Mini LED Lamp For output indicator Resistor 330 Ohm resistance Male-to-male Jumper Cable Magnet For testing hall-effect sensor Breadboard  (Optional) Touch Sensor STEP 1: Assembling the Circuit Since not all pin in ESP32 can read touch input, make sure to use pin that accept touch input. For guideline, here is ESP32 DEVKIT V1 with 30 pins. Source: randomnerdtutorials.com The circuit is not complex, I just connect GPIO4 to a jumper cable as a touch input. Since there are no output indicator, I will be using serial monitor. STEP 2: The Source Code For the source...

"Inputs and Outputs" Program on ESP32

Image
 Hello there! In today's article there will be a simple project for "input and output" on ESP32. By using the same principle, the latter will show more advanced project. So be sure to check until the end of the article. Simple I/O Project STEP 1: Required Hardwares and Softwares The hardwares will be used for the simple and advanced project. 1. ESP32 Development Board 2. PC with Arduino IDE Makes sure to install Arduino to build the source code 3. Micro USB Cable 4. Mini LED Lamp For the output indicator 5. Button I will be using button as the input 6. Resistor In this project, i will be using resistors with 10k Ohm and 330 Ohm resistance 7. Male-to-male Jumper Cable 8. Breadboard STEP 2: Building the Circuit The basic for simple circuit is shown below. The explanation for each component are: The LED From an output pin in ESP32, connect it with the positive pole of the LED. The negative pole connected to a 330 Ohm resistor then connect the other side of resistor to the GN...

Programming "Blinking External LED" on ESP32 using Arduino IDE

Image
 Welcome again! This article will show step-by-step how to program external LED to blink using ESP32 and Arduino IDE. If you have not install the software, you can go to this link for installment and making the basic code:  Programming "Blinking Internal LED" on ESP32 using Arduino IDE STEP 1: Required Hardwares 1. ESP32 I will be using ESP32 Devkit V1 2. PC 3. Micro USB Cable 4. Breadboard Breadboard is necessary to make sure ESP32's pins are not breaking during the installation. 5. Mini LED lamp Since we will make blinking external LED, we will need LED lamp. 6. Resistor I will be using resistor with 330 Ohm resistance. 7. Male-to-male Jumper cable To connect all of the hardware in breadboard. STEP 2: Arranging the Board I arrange the board based on the picture below. The yellow cable is connecting ESP32's number 23 pin and the positive terminal of LED. The negative terminal of LED will connect to the resistor and the other terminal of resistor will connect to the g...

Programming "Blinking Internal LED" on ESP32 using Arduino IDE

Image
 Hello everyone! This article contains step-by-step how to program on ESP32 using Arduino IDE. The example below will show the simplest program for ESP32, which is making it's internal LED blink with interval timing. STEP 1: Required Hardwares 1. ESP32 I am going to use ESP32 Devkit V1 with 30 pins . 2. PC To develop the code and power source. 3. Micro USB Cable ESP32 uses micro USB cable to connect to it's power source and/or source code 4. Breadboard (optional) I use breadboard to ensure ESP32's pin safety STEP 2: Required Softwares 1. Installing Arduino IDE, you can download it from:  https://www.arduino.cc/en/software 2. Installing the correct board you are using by going to File > Preferences. Insert this URL into "Additional Boards Manager URLs":  https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 3. Go to Tools > Board > Boards Manager and then search and install esp32 module. Thereafter, choose which board ...