ptmaker 3Speak Podcast: Recent Episodes

PTMaker

Listen and watch the latest videos from ptmaker. Hosted by 3Speak.tv. The free speech video platform on the HIVE blockchain.

View Details

https://3speak.tv/watch?v=ptmaker/wxjzadra
Hello Hive community! In my last video i promised share my weather station project with ESP32 microcontroller, so here it is! My simple ESP32 Internet Weather Station!

I will show you how to make this project using TTGO T-Display ESP32 microcontroller but this project will also work on any ESP32 board and any TFT display is supported by TFT_eSPI library. But first, let's see what we have here...

This is a simple Internet Weather Station, which can show current time date and, of course, seconds, town name, temperature in that town and humidity in that same town. All data are gathered from internet because i'm not using any sensor or real-time clock module.

You can also see my IP address and the level of brightness of the screen. I can change the brightness level with the right button and with the left button i can invert colors if i want. For example, white background and black text. It also have an little animation that adds motion to this project it looks better with it.

If you don't own this board, i highly recommend you buy it, because this is my favorite ESP32 board, because this built-in TFT display and it costs around $20 so you can buy it. It is not expensive and this is great board.

Now let's talk about the code... You can find code in my Github ESP32-Internet-Weather-Station, feel free to download it.

You will also need to install some libraries here. The libraries that are needed for this project are:

  • TFTeSPI - https://github.com/Bodmer/TFT_eSPI/releases
  • ArduinoJson - https://github.com/bblanchon/ArduinoJson.git
  • NTPClient - https://github.com/taranais/NTPClient

Then you will need to make some changes to code:

  • Line 26: Edit SSID
  • Line 27: Edit Password
  • Line 28: Edit Town
  • Line 29: Edit Country
  • Line 31: Edit API KEY

I'm using OpenWeather Map API and all weather data comes from that API. So first we will visit https://openweathermap.org/ website and create an account. API key is free don't worry! You need to fill registration form and you will get a verification email after a few seconds. Just verify your email address and you will receive other email with your API key. Now you can copy that API key and paste it in the code.

Now you will also need make some adjustments... First find the line #119 and edit it to adjust your timezone.

For example:

  • GMT +1 = 3600
  • GMT +8 = 28800
  • GMT -1 = -3600
  • GMT 0 = 0

Now you are ready to compile and upload code to your ESP32 TTGO board.

If you need help to add ESP32 board to your Arduino IDE please check my previous post The Resistor Calculator with ESP32

I hope you like this project! If you need help feel free to comment!

Thank you for watching and i will see you in the next video!

View Details

https://3speak.tv/watch?v=ptmaker/pklpacle
Hello Hive community and welcome to my new video this weekend!

Today i have something interesting... I want to present you this ESP32 board, which is of course Arduino compatible. It can be programmed with MicroPython and some other languages but in my experience, ESP32 boards work faster when running programs written in c.

I bought this board because it have built in color display and the resolution of display is 135px by 240px and also because most of my projects have some display. It also have a built in two buttons, so i decided to try this simple game. (You can find many games for all displays for Arduino and ESP32 boards on the internet).

I think this is great board and i think lots of people will use it because the integrated display, because the speed and price. You can also buy this board for cheap on internet (around $20).

This board have also a connector to be powered with a lithium battery. A little cable is included in package...

Now let's talk more about this game... When i was kid i played similar game like this one, but i forgot name of that game...

This game is very simple! It is something like Pong, it have levels and in each level the game is faster and harder. If i die or if i miss this ball, Game Over screen is shown here. I can also check my score and level to play game again. I only need to press the right button, which is of course, reset button.

This is my first color game with this kind of microcontroller and i love how it works. I'm planning to try more complicated games soon, and i will also try to add more buttons to this board... I will also show you in the future, my weather station, which is also made using this ESP32 board. This project can show me the time and the weather in particular city. All data is from internet because ESP boards can connect to internet using wi-fi connection.

You can find the code of this game on my Github https://github.com/ptmaker/Bounce-Ball-ESP32.

Just open the file BounceBall.ino with your Arduino IDE, compile and upload it to your board.

If you need to install TFT libraries for display or the ESP32 board in your Arduino IDE, just follow the steps described in my last video The Resistor Calculator with ESP32.

Feel free to use it and play with it. You can modify and you can also comment your improved version of the game if you want.

That's it for now... Thanks for watching and don't forget to follow me because there will be many interesting projects and games this winter in future videos.

Thank you for your time!

View Details

https://3speak.tv/watch?v=ptmaker/krfboude
Hello Hive community, for my first project i choose this useful tool with ESP32 microcontroller... 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 File -> Preferences and on Additional Boards Manager URL's, add the following url and press Ok:

https://dl.espressif.com/dl/package_esp32_index.json

  • 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!