The Resistor Calculator with ESP32

in Geek Zone4 months ago

▶️ Watch on 3Speak


Hello Hive community, for my first project i choose this useful tool with ESP32 microcontroller... The Resistor Calculator!

The Resistor Calculator

This is a simple but very useful tool that allows you to calculate the value of the resistors, only by selecting the colors of the resistor in the screen.
You just need to download the code, setup your ESP32 board, install the necessary libraries, compile and upload the code and you are ready to go!

So let's get started...

#Download the Resistor Calculator code!

First we need to download the code! For that go to https://github.com/ptmaker/Resistor-Calculator and download the code to your computer.

Then extract the file, open the folder Resistor Calculator and then open the file Resistor.ino with Arduino IDE (or any other compatible software of your choice).

#Adding ESP32 boards to Arduino IDE

Now we need to add the ESP32 board to Boards Manager of the Arduino IDE.

  • Go to Tools -> Board Manager
  • Then search for ESP32.
  • Install the lastest version from Espressif Systems.

#Setup ESP32 board

Now you need to setup some parameters to be able to upload the code to the ESP32 microcontroller.

In the Tools menu select the following parameters:

  • Board: ESP32 Dev Module
  • Upload Speed: 921600
  • CPU Frequency: 240Mhz (WiFi/BT)
  • Flash Frequency: 80Mhz
  • Flash Mode: QIO
  • Flash Size: 4MB (32Mb)
  • Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5 SPIFFS)
  • Core Debug Level: None
  • PSRAM: Disabled
  • Port: [the COM port your board is connected]

#Install dependency library files for Display: TFT_eSPI
Select ONE of the following methods:

Method 1

Installing via Library manager:

  • Go to Tools -> Library manager.
  • Search for TFT_eSPI.
  • Install the Bodmer version.

Method 2

  • Go to Bodmer Github and select the .zip Source code with the newest release and download it.
  • Then extract the folder to your libraries folder inside the Arduino folder (/home/user/arduino/libraries/).

Method 3

  • Go to Xinyuan-LilyGO and follow the steps described in README.md file.

#Compile and upload the code

Now that we have our ESP32 board and Display installed, just press Compile And Upload and its done!

Now you will see your ESP32 microcontroller running the Resistor Calculator!

I hope you like this project and if you have any issue feel free to comment and i will do my best to help you :)

Thank you for your time!


▶️ 3Speak

Sort:  


The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.