• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Tips For Building Digital Switch With ESP32 Arduino

By Abhishek Ghosh June 30, 2019 12:11 pm Updated on June 30, 2019

Tips For Building Digital Switch With ESP32 Arduino

Advertisement

There are some design considerations to increase safety while building an ESP32 Arduino based physical switch controlled by IoT project. In our earlier guide (Controlling AC Powered Appliances With ESP32 and IBM Watson IoT), we have shown the basic of how to use a pushbutton and IoT control together. The case will be using both the pushbutton and IoT control independent. Our that guide is a shortcut to avoid learning difficulties new users commonly face to control switchover Wi-Fi, Bluetooth. That easy method nicely works for building real-life touch controlled wall switch panel with additional IoT control provided the electrical and electronics part is perfectly set.

The way we have shown set up in that guide will make the relay unreliable when tried to control with the pushbutton. This is where we need the logic level shifter to convert 3.3v logic to 5v logic. Using a logic level shifter will end the puzzling situation we mentioned in that guide – it will convert 3.3V logic to that of 5V. We can use a 2N2222 NPN transistor to shift levels. The ground will be common for 5v and 3.3V. From the relay, we can connect different devices. Whenever you will have the proper circuit, on the Arduino IDE’s serial console you will get the match of present real action. You can make a thing on by tapping on mobile application and off by clicking the pushbutton. You can use ready to use logic level shifters with our shown 4 channel relay. This one consideration.

The second part is powering the ESP32. If you power the ESP32 by converting AC mains to 3.3V and 5V DC that becomes compact and cost becomes negligible to use status indicator LEDs. That is a star configuration of power supply. If you use battery then you need to replace the batteries on a regular basis plus thoughts to decrease the number of LEDs to decrease consumption comes in to question. We will suggest keeping the ESP32 powering part and relay in such a way that it does not crowd the thing, avoids short-circuit etc. If you power the ESP32 by converting AC mains to 3.3V and 5V DC then that power conversion part should be properly designed and insulated. If you use the breadboard components then consider to power the system from a 9V battery (step down it to 3.3v and 5V regulated supply). Star configuration of power supply (i.e. using same AC mains supply for ESP32 and appliances) is not exactly easy to make fool-proof than it appears. The transformer in-between makes a huge difference with the battery powered control.

Advertisement

---

Tips For Building Digital Switch With ESP32 Arduino

The third part is obvious – most these days want to use touch switches. ESP32 support touch switch, indeed Espressif has official touch dev kit (ESP32-Sense Kit). Crystal glass touch switch panels are nothing more than that basic. Many peoples researched on the topic of creating yet beautiful cheap glass touch panels :

#
Cheap as Chips Touch Switch
https://www.openhardware.io/view/412/Battery-powered-glass-touch-switch #

Comments reveal one terrific China technology – pushbuttons behind a glass panel. I have not tested using pushbuttons behind a glass panel. Most of the great looking tempered glass panel with touch switch is from China, costs too high (and are unreliable), usually packaged our idea before us i.e. they are already Wi-Fi controlled, IoT controlled system. China sends less variety of stuff to India. I could not found just the switches with a panel.

Tagged With arduino eps32 switch case , esp32 as switch

This Article Has Been Shared 244 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Tips For Building Digital Switch With ESP32 Arduino

  • ESP32 Arduino : Create a Webpage to Control a Relay Module

    Here is How to Create a Webpage to Control a Relay Module Using ESP32 Arduino. This is a basic example which provides the base of advanced projects.

  • ESP32 Arduino with DHT11 Sensor : Connection & Code

    Here is Connection & Working Code for ESP32 Arduino with DHT11 Sensor. We will use Adafruit’s libraries for DHT11 and DH22 Temperature Humidity Modules.

  • ESP32 Arduino Built-in Hall Sensor Code & Theory

    ESP32 has a Hall Effect Sensor near pin 22. Here is ESP32 Arduino Built-in Hall Sensor Code & Theory. Here is something about Hall Effect Sensor as well.

  • ESP32 Arduino OLED Display Example (I2C)

    Interfacing OLED without I2C is difficult with ESP32, as it requires 6 connections. I2C based OLED display need only two IO lines.

  • ESP32 Arduino : Fetching Current Weather Data (No JSON Parsing)

    In this guide we have shown how to fetch current weather data from ESP32 Arduino. This code example is basic and no JSON parsing is shown.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Tips For Building Digital Switch With ESP32 Arduino," in The Customize Windows, June 30, 2019, March 28, 2023, https://thecustomizewindows.com/2019/06/tips-for-building-digital-switch-with-esp32-arduino/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT