Posts
Bluetooth Classic and Low Energy with Arduino IDE and ESP32
- Get link
- X
- Other Apps
Welcome to Another Article...! Today's article will show how to use both Bluetooth Classic and Bluetooth Low Energy which featured in ESP32. Bluetooth feature in ESP32 allow data to be exchanged between it and an Android smartphone. STEP 1: Required Hardware and Software 1. ESP32 Development Board 2. PC (with Arduino IDE) 3. BMP280 sensor (any sensor will suffice) 4. Jumper wires 5. Breadboard 6. Android Smartphone (with Serial Bluetooth Terminal) STEP 2: Circuit Assembling Since BMP280 using I2C protocol, I will be using 4 pins. The pins are shown in picture below. STEP 3: Source Code The code will be shown below. We include 3 libraries, those are "Wire.h" for I2C, "Adafruit_BMP280.h" for BMP280, and "BluetoothSerial.h" for bluetooth. Then initialize variable needed. For the setup, begin the serial and serial Bluetooth. I will be using "ESP32" for its name. Then initialize the BMP280 sensor. For the loop, it will print in Serial Bluetooth ...
Multiple I2C Devices using ESP32
- Get link
- X
- Other Apps
Hello, Dear Reader! In today's article, I will be showing how to setup multiple devices with I2C communication protocol using ESP32 development board. It requires knowledge about I2C so make sure to find some information about the communication protocol. I2C Communication Protocol I2C (Inter-Integrated Circuit) is one of the serial communication protocol beside SPI and UART. It is a two line communication between modules which using SDA (Serial Data Line) and SCL (Serial Clock Line). It uses 2 pin which are GPIO 21 (SDA) and GPIO 22 (SCL) in ESP32. Even with only 2 pins, it can control 2 or more devices as long as the devices doesn't have same address. STEP 1: Required Hardware and Software 1. ESP32 Development Board, 2. PC (with Arduino IDE), 3. OLED display (I2C version), 4. BMP280 sensor, 5. Jumper wires, 6. Breadboard I will be using BMP280 and OLED display for both I2C devices. They have different address (0x3C for OLED and 0x76 or 0x77 for BMP280) so both devices can be ...
DHT22 Temperature and Humidity Sensor using Arduino IDE
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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...