• 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
The Customize Windows > Computer and Internet > Hardware > 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.

Tips For Building Digital Switch With ESP32 Arduino
Advertisement

---

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 220 Times!

Facebook Twitter Google+ Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (15K Followers)
  • Twitter (4.4k Followers)
  • Facebook (5.2k Followers)
  • LinkedIn (3.3k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • 6 Tips for Securing Your Data from Cyber Attacks as a Remote Worker December 11, 2019
  • What is Process Mining? December 10, 2019
  • Explanation of the ESP32 Vulnerability Warnings December 6, 2019
  • OLTP versus OLAP December 4, 2019
  • What is OLTP (Online Transaction Processing)? December 3, 2019

About This Article

Title: Tips For Building Digital Switch With ESP32 Arduino
2019-06-30

Author: Abhishek Ghosh
Subjects: Computer and Internet

Is Part Of:


TheCustomizeWindows,

Sunday, June 30th, 2019,
Vol.1(01),
p.1–64167 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

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

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

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

web analysis

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

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