Big Automation with small module | ESP8266 pin extending | Proof of Concepts
HTML-код
- Опубликовано: 14 окт 2024
- In this video I have shown a technique to control 32 relays using generic ESP8266 board.
Using the technique shown in this video, you can connect n number of Relays with ESP8266 01 module.
You can support me and also get benefitted on Patreon :- / techiesms
Subscribe now to watch some amazing videos coming up soon.
bit.ly/techiesm...
_________________________________________________________________
👨🏻💻 Important Links 👨🏻💻
Code :- github.com/tec...
4 Relays using ESP01 - • Internet & Manual Cont...
Programming ESP01 module with Arduino :- • On the Go ESP programm...
Acrobotics’ video - • Arduino to ESP8266 Dat...
Blynk App for Android :- play.google.co...
Blynk App for iOS:- apps.apple.com...
Goto Blynk forum for more help : community.blynk.cc
_________________________________________________________________
Now you can get free PCB with every order of techiesms T-shirt or techiesms pocket notebook.
You can buy the merchandise from here,
techiesms.com/...
_________________________________________________________________
You may Like these videos
Alexa & Manual Control Home Automation - • Alexa & Manual Switche...
AC Dimmer using Blynk - • AC Dimmer using Blynk ...
Enter Blynk Credentials Over the Air in ESP32 or NodeMCU board - • Enter Blynk Credential...
_________________________________________________________________
Buy the components from your projects
ESP32 board - amzn.to/3jiwCD6
NodeMCU - amzn.to/2wbzNrZ
5V Relay - amzn.to/2OXAewN
BC547 Transistor - amzn.to/2SK3Fna
9V2A Adapter - amzn.to/3bDZjGx
7805 IC - amzn.to/2SunOic
PIR Motion sensor - amzn.to/2wclovE
DHT11 Temperature & Humidity Sensor - amzn.to/2UP8y0R
Proximity sensor - amzn.to/326YP7P
MQ135 Gas Sensor - amzn.to/2SKFBR4
LDR Light Sensor - amzn.to/2SsYskp
2pin Terminal Connectors - amzn.to/37uezT2
1n4007 diode - amzn.to/2SL4n3x
330 ohm resistors - amzn.to/2OQqUuz
Visit my Amazon Storefront for purchasing any components you need for this project or any other project :-
bit.ly/techiesm...
_________________________________________________________________
Subscribe Now :- bit.ly/techiesm...
Facebook :- / techiesms
Twitter :- / imtechiesms
Instagram :- / techiesms
Website :- www.techiesms.com
WhatsApp number :- +91 82000 79034
You can support me and also get benefitted on Patreon :- / techiesms
_________________________________________________________________
techiesms
explore | learn | share
#blynk #ESP01 #32Relays
Connect shift register to esp 01 and u can control 8 relay with one shift register and u can extend four shift register for 32 relay
Hi renga
@@salmanfarose20 hi da 😃
@@rengarider unexpected 😁
But u can not control two output at the same time
@@vankavinaykumar why not ? Maybe You are confusing shift registres with multiplexors
Hey, what a great project, but besides that, your attitude, energy and knowledge you share with us is awesome, usually in tutorials like this, the presenters only say copy and paste "my code" and change somethings, but they barely explain that detailed and clear just as you did, it was really good you explained what was happening on all iterations during the code!! Please follow like this.
Well done ! nice idea !
Would it not however, be easier to use a CD74HC4067 with your ESP board ?
There is no need for the Arduino Mega then.
It's a decoder right ?
btw we can learn this method also, right? while using the MEGA we can achieve overall control over the circuit
@Adrian Snyman that's a better idea
@@daSurrealist yeah but you can only have one channel active at any point in time. I'd probably use a shift register
CD74hc4067 type Multiplexer will be easy instead of using any mega
Love the project.😍👍
Just a suggestion, you can use a multiplexer IC as well to control n relays using 1 gpio only.
Still the same we can not control two or more output at the same time
You can use microchip MCP23017.
This is the correct way to do it...
yep, this is one of shift registers out there, 16-bit though, so you'd need to chain 2 of those to get control of 32 relays.
It's an immensely helpful video. I request content in hindi as it's convenient and easier to understand. I had to ask my daughter to translate it for me so I'd appreciate it.
Huh? Just use a shift register!
there you can not turn on more than one pin(at a time only one relay )
@@AmazingMJ07 Yes you can. There's PISO (Parallel In, Serial Out) and SIPO (Serial In, Parallel Out) shift registers. You can even chain them together. Shift in all 32 bits and latch and you're good to go. Go watch ruclips.net/video/Ys2fu4NINrA/видео.html for example (or search RUclips for 74HC595)
Even better just connect the tx and rx or arduino and esp and use virtual pins of blynk with the esp...
Great idea! You can also use chip MCP23017 and connect as many relays as you like via I2C.
Why don’t you use 74hc595n shift out register to control 32 or more relays just with 3 gpio of esp-01 device. You wont require a separate mcu, just esp-01 will work.
Hii , i was thinking of the same , I just stuck on the cloud thing, i made a webpage and controlled gpios through that. I just want to make it more updatable, like blynk buttons get updated their states on each device we are connected to.
The question is: can we use the same concept for multiple uno boards at the same time? And how can we expand the Json string to avoid the usage lag between buttons? Nice work though. 👍
You won't get the proper PIN_STATUS value of the button state. Since the compiler of the Arduino IDE is linear, you will always get the status of the last read button, i.e. in your case last pin 53/V31. The button status flag has to be a different variable for each button.
This code was working completely fine
Instead of Arduino mega you can also use i2c modules
so creative in making the video
i2C would be much more efficient way right ? Can you make a tutorial on this ?
Definitely
This. A couple of I²C gpio expanders would be cheaper, easier and definitely more efficient. Many GPIO expanders can handle 5v input instead of 3.3v too. Lots of tutorials online, just Google for "Arduino GPIO expander".
However, if you're going for the MCP27xxx series, don't make the same mistake as I made and get the ones that do not require a specific voltage (voltage divider circuit) to set the I²C address, as they will require 2 extra resistors to set the I²C address if you're going to use more than one.
Bro i have used esp32 and 16 channel relay module but dont know why the virtual pins are not working they are not triggering the relays , please can you help me out ?
is there a way to telnet the Node MCU and change the GPIO pins state? i yes pls let know how to do it so.
You are awesome! 💯I fed up with basic Arduino intros in RUclips. but now I can really find some useful projects in your channel. Keep it up.
You will enjoy a lot of videos on my channel as they are unique
Just have a look over it
@@techiesms I did. Can I use this method for home IOT ? is there any cons ?
Woah! Awesome. Superb big.
Hi , great job....
I did similar thing with my tv unit project controlling music vu with 101 different animation, PS4 cooling fan and tv screen reactive ambient light. All with esp1 and mega.
The Question I have is, why json format. I did it with just adding header and footer to serial message. T
Another thing , wanted to know is how to ensure serial data completeness. There are cases when u recive truncated chars on serial.
Can you make automatic staircase lights project with ws2812b using esp32 and ultrasonic sensors.... It's really hard to find one.
What's the point of using ESP8266 if you adding arduino mega to you project anyways? Can you just use Arduino mega without ESP8266 then? What would be cooler if you can control 32(or any number) relays with JUST ESP8266 without adding other arduino boards. You can easily do it with shift registers... Great video in general though.
Awesome project sachin bro
Mujhe pahchana sachin bro
Bro .aop Hindustani.mey bangali ho.apka shat khoch batt he.mera IMO 01632580411
@@atikatik4006 m kuchh samjha nahi
Bro can we control all these 32 devices with Alexa and Alexa app......i think as we are using two different boards, alexa will create problem specially in forming groups with selective devices....any thoughts on this
Shouldn't the 8266's tx & rx be level shifted before connecting it to megas rx & tx ?!
Can you make 4 digital input notification or indicator from 4 individual relay status notification.
Example motor stop, motor running, solar system normal, solar tripped from remotely via blynk app
My hardware
Please look C&A Tips channel
awesome video! i just have one question tough... on the line of code
"""DeserializationError error = deserializeJson(doc, message);"""
"""deserializeJson(doc, message);""" will return false if the message is deserialized? If so then error will be false.
If the deserialize returns something else, how to prevent that """if(error)""" statement from running when the message is correcly deserialized?
what is arduinoJson library Version ?
How to set up the push buttons on this product
Please help me. I need to expand ESP01's output ports to 8 or 16 or 24 using CI PCF8574. And even automate with Alexa. It's possible? Thank you so much for your videos!
How can we change wifi internet connection from generic esp8266-01 module without hardcoding?
Excellent stuff! I use mcp23017 16-bit io expander with esp8266. You can daisy chain them for n number of pins.
Great Work Brother Keep it up Bhai
👍🏻👍🏻👍🏻
Is there a serious use-case for 32 relays on a single PCB in the home environment?
Switching all the lamps in your Christmas tree separately?
Yes, I'm putting some fountains into a pond I have, 15 fountains and pump on/off uses one block of relays16 relays. However I'm also planning to light each fountain with a 3 colour relay requiring a further 3 blocks of 16 relays to control it all. I haven't worked out just how to control all 4 banks of 16 relays so I can turn on several fountains and selected colours together at the same time, e.g. to give interest to the display. I'm having fun!
Nice projekt cool intro.
Is there a possibility to realize this with i2c?
How to connect each relay with manual switch?
Why are you not ordering your *more sturdy and compact* PCBs from JLCPCB nowadays?
Gr8 video .....
Make a combo board ( works w/o internet) which include manual switches .. relays to turn on off li8s and for ac fan
Also u can use capacitive touch switch instead of manual switch 😉
do we really needs json for local communication??, i.e between esp8266 and arduino...
Wow 32,,,, Relays. Bro, you nailed it.
Bro plaese guide me to learn Arduino programming from basic.
Yes bro
I also interested to learn .plz help me
Yes please
Sir please reply me, Sir I face the some problem in the relay of the my home automation project , when I connect blynk app to relay module by esp8266 wifi then all relay is automatically On, so how to relay is neutral default when blynk app is connecting.
Help me sir please
Nice project can u use feadback with manual switch
It’s tough with this
Can one use Raspberry pi in the absence of microcontroller board???
Bro can't we create a app using mit app inventor ......I meant to avoid that delay...
don't expect anything different from blynk 😂
it's just about he focuses mostly on blynk which is really easiest to use, you can't expect any real innovation from this, most of the thing he does is get source code from others and show that here.
@@thatiotguy8837 You're saying things which are already known, no need of this long elaboration. it's just about you can't take any project made with blynk to industrial level. You're explaining a story which is known already.
@@thatiotguy8837 no one can take it either, anyone who got enough interest can tweak and learn using blynk, but for real world this tutorial is not worthy at all.
@@thatiotguy8837 even if it's about blynk, it's better to use some i2c for the expansion.
I dont want to use Arduino, so just with Nodemcu esp 8266 how many relays can be controlled?
No i2c
Sir I'm Electrical Engineering student.
We are making project on home automation system .
Can u help us sir
Just use csv (comma separate values) format and send the string from esp01 to any microcontroller it will be able to update more than one value at a time and decreases the code complicity (use continuous update status of relays) btw nice project/poc
Excellent 👍
Any Way I2C Will Better For Handling Data Between Microcontroller
I am facing a problem in automation, basically in my home automation all devices connected to it go off after 10 -14hrs of working, and then after 3 - 4 hrs again it gets on.
can somebody help with this!
Actully arduino is controlling relays and serial communication. your title says controlling 32 relays via ESP01
Where did you learn Arduino programming and electronics
Can Mega R3 ATmega2560 and WiFi ESP8266 with memory 32Mb be used instead of Arduino mega board?
Also, it would be great if you could post a video about this in hindi.
This is really awesome
Can anyone please tell me why solid state relays is not being in esp32 projects? Even though Solid state relays consume less power
please make a PCB with built in Ac 3 phase voltage and current (SCT 013) sensor
good explanation thank you
Nice project 🤟
But it's better to use shift register instead of mega
be very careful with this 16 relay expansion module, I don't believe the supplier has changed the design. There is a fault in the board, as long as you use max 5Vdc you are good, but if you supply the board with a higher voltage it doesn't get regulated down to the 5 vdc supply rating of the relays, not to be confused with the output or switching rating. So if you supply 12 V lets say, 12V will be applied to the relay and you will cook the relay eventually if not possibly cause a fire.
How did you learn Adriano code
Very good . I like it
You are very good acctor sir,😘
Whatttt??
For the first time I got this kind of comment
Need this project with feedback please please
We can use multiplex
Borad install error problem and i have older versions due to low pc requirements
Please make a video on how to control home appliances with modes like I say ok Google turn on dark mode so lots of appliances turn off and some will turn on according to the mode please make a video
Use 74hc595 or I2C io expander
You are awesome
Hey can you make this project from MIT app
Rather then blynk?
don't expect anything different from blynk 😂
@@SlakeGround I will make someday and upload on my channel then
wht is diffrnt btween
vertual And digital pin?
You can consider virtual pin as a variable in which we can store the data and use it for any purpose
While digital pin is dedicated to the one single pin only and can’t be use for any other purpose
Love your Project bro ....❤
Nice bro hat's up to you i am your big fan.is it posible to learn some coding with you plz let me know i will be glad.
3:20 As you can see, he used a for loop here.
No need of that much code just make esp-01 to cwmode=1 then in blynk as Arduino mega ->wifi select examples.blynk.cc Arduino mega esp8266 wifi sheild and just in & mins you can control 54 relays at once
Superb
Super video 👍👍👍
Excellent bro please make video how to do arduino programming
bahot hard bro
Sir please make this project with new blynk id platform
Great video
Sir please guide me from where I can learn Arduino programming from basics ? 🙏🏻🙏🏻
Buy a simple Arduino Uno (because it's easy to wire up simple stuff)
Download the IDE (software)
And start using any of the many example sketches.
For the very first ones (blinking an LED, doing some simple math and print the result on serial...), you don't even need any other hardware
For learning more there are plenty of channels and tutorials. Good luck.
@@oscargr_ Can you please name those channels..🙏🏻
A complete arduino where you could just use a GPIO expander ???
Pl modify the code to control the relays with Google home. It is in high demand.
Hi sir I want to make a project where I want to use 5temperature senser,humidity senser,fan dimer control and ,32buttuns..kindly help me to coding
How to pwm mobule fixing
nodemcu + i2c so much fun.
After hearing ...32 relays😂😂😂😂
i want this project share the price
This build could be made cheaper and easier if you would simply shift registers
WOWwwwweewwwwww. Weeeeeeeeeeee. Superb video. ..... You are really a genius.......👍👍👍😁😁👍
Nice video
Brother Need the file of 32 relay
After hearing 32 relay my reaction:-😮🤔
Blinker and what was the reaction after watching this video
Awesome!!👍👏👏
Dear can help me for my project
16 रिले मॉड्यूल ब्लूटूथ Arduino on off bnaayo bhaiya
India me rahte ho na
This is amazing
super
Cool
How many ads do you need.
What? .. I think bunch of logic Decoders with ESP board can do the trick.. with low cost..
cool!!!!!!