Posts

Showing posts from February, 2020

Printing Sensor Measurements via Bluetooth on ESP32 using Arduino IDE

Image
Hello, again! Welcome to another tutorial with me, the ESP32 and the Arduino IDE! :) If you have been reading my previous articles in this blog you might already know that I am about to try out new stuff using the same basic equipments. So, today I will be sharing with you how to use the Bluetooth feature that is built in the ESP32 and also provided on the Arduino IDE. I will divide this post into two sections: Testing Bluetooth connection to Bluetooth Device and Integrating the DHT11 weather sensor together with an I2C LCD to a Bluetooth Device. Okay, without further talking let us begin! Section 1 Testing Bluetooth Connection to Bluetooth Device In this section I will basically teach you how to use the Bluetooth feature, so if you're feeling confident about your skills in using this feature you can skip this section and scroll down to Section 2. Step 1: Hardware Requirement All we need is: 1 Laptop/PC 1 ESP32 Development Board 1 MicroUSB cable 1 Android Device

Printing Weather Sensor Measurements in I2C LCD on ESP32 using Arduino IDE

Image
Hello, again! So last time, I wrote about trying the I2C LCD on an ESP32 Development Kit using the Arduino IDE to print text outputs on it. Also, I have posted an article showing you how to use the DHT11 weather sensor features. Today I plan to show you how to combine those two projects into one, simply by printing out the weather measurements on the I2C LCD. The weather measurements for this project will be measured using two different sensors, first the DHT11 then the BME280. Segment 1 - DHT11 Step 1: Hardware Requirement Everything you will need is: 1 Laptop/PC 1 ESP32 Development Board 1 MicroUSB cable 1 DHT11 Weather sensor 1 Resistor (330kOhm) Male-Female Jumper Wires Male-Male Jumper Wires Female-Female Jumper Wires Step 2: Software Requirement Basically, every software requirement needed is just the same as in the "Blinking program" I wrote before. If you haven't checked it out, you can  click here  and look for Step 2: Software Requirement. F

Trying out I2C LCD with ESP32 using Arduino IDE

Image
Hello, again! Welcome to another tutorial on programming ESP32 using Arduino IDE. Last time, I wrote about trying out the DHT11 weather sensor feature and today I will be showing you how to use the I2C LCD (Liquid Crystal Display), again on the ESP32. Step 1: Hardware Requirement These are hardware  1 Laptop/PC 1 MicroUSB cable 1 ESP32 Development Board 4 Female-Female Jumper Wires 1 MicroUSB cable Step 2: Software Requirement Basically, every software requirement needed is just the same as in the "Blinking program" I wrote before. If you haven't checked it out, you can  click here  and look for Step 2: Software Requirement then come back and continue down below: Step 3: Circuit Credits to : www.randomnerdtutorials.com Step 4: Code Okay, moving on to the code. It will be divided into two steps consisting of finding the LCD address and then actually sending out outputs to the LCD using the address found before.  Here is a I2C Scanner sketch cod

Trying out the DHT11 Wheater Sensor using the ESP32 and Arduino IDE

Image
Hello, again! So last time, I wrote about trying out the Touch Sensor feature on an ESP32 Development Kit using the Arduino IDE. Today I am trying out the weather sensor feature that is provided by the DHT11. The DHT11 and also DHT22 sensors are used to measure temperature and relative humidity.  Now let's get started! Step 1: Hardware Requirement Credits:  https://randomnerdtutorials.com/ Everything you will need is: 1 Laptop/PC 1 ESP32 Development Board 3 Male-Female Jumper Wire 1 Male-Male Jumper Wire 1 Resistor 1 Bread Board 1 MicroUSB cable DHT11 or DHT22 sensor Step 2: Software Requirement Basically, every software requirement needed is just the same as in the "Blinking program" I wrote before. If you haven't checked it out, you can  click here  and look for Step 2: Software Requirement then come back and continue down below: Step 3: Installing Libraries To read from the DHT sensor, we’ll use the  DHT library from Adafruit . T

Programming "Hall Effect Sensor" on an ESP32 board using the Ardiono IDE

Image
Hello there! This time, I'm going to show you how to use the Hall Effect Sensor in the ESP32 Development Kit to sense magnetic field variations. It is a very simple program that mainly only uses the hallRead() function. STEP 1: Required Hardware All you will need is: 1 Laptop/PC 1 ESP32 Development Board Magnets STEP 2: Required Software 1. Install Arduino IDE, you can easily get it under this link:  https://www.arduino.cc/en/main/software 2. Install the correct Board you are using in the Arduino Software in the Tools Menu Bar by copying this url into the Additional Boards Manager URLs bar in Preferences first:  https://dl.espressif.com/dl/package_esp32_index.json ,  if you are using a Arduino Board this is unnecessary. 3. Find Boards Manager under Tools > Boards and choose the Board you are using. In my case, using the ESP32 I go to Boards Manager and  install the esp32 module Afterward, I will be able to choose the board