IOT PCB - ESP32 & Relay - Control Anything From Anywhere

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • High quality PCB prototypes: www.pcbway.com
    PCB and project: bit.ly/3VLXCOG
    ⚠️WARNING: I've made a mistake with copper clearance. Don't worry, the PCB you will download is already fix but in the video is not. Check the website page to see all about it and how I've fixed it.
    🔥A simple PCB for IoT control that I've named NOOBIX. Get or send data from an online database and control the SSR relay for 220V AC. Control anything from anywhere in the world with a mobile website.
    🔀LINKS
    -------------------------------------
    Tutorial Website: electronoobs.com/eng_arduino_...
    Get my PCB and support me: electronoobs.io/shop/index.ph...
    ESP32 board: s.click.aliexpress.com/e/_DlL...
    My tools: electronoobs.com/eng_afiliate...
    False/True T-Shirt: teespring.com/it-s-funny-beca...
    🤝SUPPORT
    -------------------------------------
    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    ELECTRONOOBS.io: electronoobs.io
    Donate on PayPal: www.paypal.com/donate?hosted_...
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.io/forum/index.php
    Facebook page: / electronoobs
    Canal en Español: / electronoobs en español
    00:00 Intro
    01:34 The PCB
    03:32 Components
    03:54 Assemble
    05:10 Database Code
    06:25 Arduino Code
    07:36 Test
    09:24 Thank You
    Like share and subscribe to motivate me. Thank you
    #ESP32
    #Arduino
    #IOT
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 127

  • @ELECTRONOOBS
    @ELECTRONOOBS  ปีที่แล้ว +5

    ⚠WARNING: I've made a mistake with copper clearance. Don't worry, the PCB GERBER you will download is already fix but in the video is not. Check the website page (first part in red color) to see all about it and how I've fixed it. Tutorial here: electronoobs.com/eng_arduino_tut177.php

    • @TheDradge
      @TheDradge ปีที่แล้ว

      Wonderful! Thanks Andrei!

  • @patrikresutik9715
    @patrikresutik9715 ปีที่แล้ว +56

    I am strongly suggesting removing the gerber files and fix them immediately. Because the clearance between 230V AC and GND of the board is very small, potentially lethal for the people who only make this PCB. This PCB can kill someone.

    • @RoterFruchtZwerg
      @RoterFruchtZwerg ปีที่แล้ว +7

      there is also no insulation between the module and the pcb. If you press on the module, it might pierce the soldermask of the pcb 😬

    • @zyghom
      @zyghom ปีที่แล้ว +2

      ha ha ha, I did not see your comment - I just typed mine when I saw the pcb ;-) This project is VERY dangerous

    • @PhG1961
      @PhG1961 ปีที่แล้ว +2

      @@RoterFruchtZwerg I noticed that too, however I would mount this with an insulator in between. I never mount 2 pcb's on to another, seems logical to me...

    • @Rob_III
      @Rob_III ปีที่แล้ว +5

      Also, those screw terminals are only rated for 150V/6A...

    • @PhG1961
      @PhG1961 ปีที่แล้ว +2

      @@Rob_III Indeed, a little underrated. Sufficient for the North American market but not good enough for most of the rest of the world. Hopefully a rev. 2.0 is on the way soon !

  • @aardwolf21
    @aardwolf21 ปีที่แล้ว +16

    Echoing others concerns, I'd actually take this down and use it as a learning opportunity, destroying all of those PCBs if possible (please), "creepage" "clearance" and "safety" are the terms you are looking for. You also need to consider distances between component legs on the PSU that may be at hazardous voltages and your PCB.

  • @arminth
    @arminth ปีที่แล้ว +21

    High voltage of the output is very close to the low voltage ESP-stuff. No isolation gap. This could be dangerous.

    • @collinkreutzer8414
      @collinkreutzer8414 ปีที่แล้ว +6

      Indeed. Please do not use this. There is only 0.254mm between AC and the GND Polygon! One of the AC lines is also very close to 5V. So even with the polygon removed this PCB is potentially lethal!

    • @vincenrailfanssolo
      @vincenrailfanssolo ปีที่แล้ว

      This design need to separate between AC lines and DC lines, never combine the high voltage zone with the low voltage zone.

    • @shreechandansamal5206
      @shreechandansamal5206 ปีที่แล้ว

      Yes!!! You are correct 💯

    • @AugurIliKur
      @AugurIliKur ปีที่แล้ว +1

      Came here just to say this. Newbie AC design issue. No isolation, no XY caps, etc. I wouldn't put more than 48V through that circuit.

    • @vincenrailfanssolo
      @vincenrailfanssolo ปีที่แล้ว

      It would be very interesting if this design is connected to high inductive load like contactor etc.. 💀

  • @ELECTRONOOBS
    @ELECTRONOOBS  ปีที่แล้ว +2

    ESP32: s.click.aliexpress.com/e/_DlLsTRl
    My Tools: bit.ly/3uv8bc3
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

    • @TheDradge
      @TheDradge ปีที่แล้ว +1

      Andrei, you may want to take this off sale due to the poor PCB design. On the AC input you need track spacing in line with UL60950. That electrical standard dictates clearances between PCB track for voltages up to 300VAC. You're probably going to want to aim for a minimum of about 2mm between AC tracks and leave 5mm between the low voltage circuitry and the AC. Your ground plane goes perilously close to the AC input terminals. I don't know what clearances you have now but there's not enough. Also you may want a fuse at the very minimum on the AC input. I glanced at your video yesterday on my phone and didn't pay attention to the PCB until Marcus W commented above after I had given you the thumbs up. Check out this diagram: i.stack.imgur.com/C1e1b.png

  • @matusondrus8987
    @matusondrus8987 ปีที่แล้ว +1

    Great work as always. But i want to suggest you two things with your design to make it safer. First add milled air gap between 230V line and logic lines (12V, 5V, 3.3V). 1 mm could be enough. Second suggestion ist to add a fuse between output of relay and the load. It could be an SMD fuse soldered on PCB. If relay handle 5 amps try 6 or 7 amp fuse. This could prevent explosion in case of short at the output. Thank you for your work!

  • @ulfholt6434
    @ulfholt6434 ปีที่แล้ว +1

    Nice project. What power supply are you using?

  • @AugurIliKur
    @AugurIliKur ปีที่แล้ว +11

    Please head the warnings to not use this circuit as designed. It will kill people long term. AC is not like DC. The AC current conducts along the surface of wires. That makes it very, very, very easy for a slightly humid room to bridge those tiny gaps you have. You have no EMF protection. So a circuit with inductive loads will throw thousands of volts into your board crawling all over the surface of the PCB looking for things that are ground attached like humans.

  • @TheDradge
    @TheDradge ปีที่แล้ว

    Good job as always. I recently made a similar project to control traffic lights. I used 3 SSR's and a Hi-Link 5V supply instead of those "exposed" step down boards like the one in your video. It was no more difficult making 3 channels than 1. I also put test buttons on each channel on the board so you can turn on the SSR without using the microcontroller.

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +2

      No. Not a good job. A very bad job in fact. This design is so dangerous, it's not even worth to ridicule it. This is straight up dangerous and potentially lethal.

    • @TheDradge
      @TheDradge ปีที่แล้ว

      ​@@marcus_w0 I looked at the video on my phone and scooted it over to the finished article. Andrei hasn't used a varistor, common mode choke or even a basic fuse on the AC input - not something I would do. His PCB tracks do leave a lot to be desired and yeah, it doesn't need ridicule. He needs to be educated on that aspect.

  • @mibrahim4245
    @mibrahim4245 ปีที่แล้ว

    Beautiful as usual ...
    can you make one with SMPS design instead of the transformer ?
    can you make one with websocket control instead of On/Off ?

  • @ranganatennakoon
    @ranganatennakoon ปีที่แล้ว

    The best ! Great explanation always ! one of the best froum ! thanks

  • @Seu_Lunga
    @Seu_Lunga ปีที่แล้ว +2

    I know all the countless advantages you might point about a ssr but with a simple relay you can do 3 ways with the room lamp, and in case of failure of device you can still control via the switch on the wall.

  • @7GIGEO7
    @7GIGEO7 ปีที่แล้ว

    Hey that's a useful project and with straightforward and easy to follow steps.
    I haven't used PCBWAY before and i was curious if i'm going to pay extra custom fees and vat for the order (i'm based in Europe also) or is there an option for PCBWAY to calculate and include those on my price?
    Do you frequently use PCBWAY cause it would be nice to see a tutorial explaining the order options and costs.

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +3

      PLEASE! DON'T EVEN THINK ABOUT USING THIS DESIGN! If you need something like this, just buy a Sonoff - that basically exactly this with an esp8266. It's not super well build too, but at least it doesn't try to kill you. A Sonoff basic is under $10.

  • @Drxxx
    @Drxxx ปีที่แล้ว

    😍😍😍 your channel is amazing!

  • @nubletten
    @nubletten ปีที่แล้ว +1

    This is awesome. Is there any reason you do not use the raspberry chip instead?

  • @AbdurRahman-vt7vx
    @AbdurRahman-vt7vx ปีที่แล้ว

    Hello electronoobs hope you are well.
    From where Did you get those little power supplies? I didn't find any link to those

  • @thenextproblem8001
    @thenextproblem8001 ปีที่แล้ว

    Hi Andrei, do you think SSR won't be an issue since when it breaks its NC? Or any other failure would end up to always ON circuit? Just asking...
    Another thing is that, how we implement it to a wall switch lamp? To control by normal mechanic switch and web-based? I'm looking for a solution to iot my new born baby's lamp. :)

  • @dinismaia
    @dinismaia ปีที่แล้ว +1

    Spectacular project as always 👏👏👏 5 ⭐ keep it up 😁🙏

  • @jenbob2006
    @jenbob2006 ปีที่แล้ว

    you can try home assistant to control the boards. i am using home assistant to control my esp32 and more smarthome stuff.

  • @Banana_Chris
    @Banana_Chris ปีที่แล้ว

    Would you make some playlist about the Helium network, I would love it to watch

  • @bimmers50e30
    @bimmers50e30 ปีที่แล้ว

    sweet project!

  • @Oschl11
    @Oschl11 ปีที่แล้ว +5

    clearance between 230V AC and GND is horrible

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว

      And possibly lethal.

  • @hesham1216
    @hesham1216 3 หลายเดือนก่อน

    As usual amazing project!
    Can this be integrated with home assistant instead of own designed website? It would be awesome to integrate this with HA, the potential is limitless...
    I think esp home can be flashed on the esp ship and it will be found by HA.
    Instead of Arduino code, the esp home has built in codes and relays can be used within.
    Can you please try and let us know? It will be a nice video though, you would kill a lot of commercial products out there 😁

  • @PhG1961
    @PhG1961 ปีที่แล้ว

    This is really awesome !

  • @theshemullet
    @theshemullet ปีที่แล้ว

    Thanks! Do you think this could be done with an immersion heater in hot water storage tank. I have a hot water tank that has a sink and bath switch. I'd love to be able to switch on the element for each when I want remotely, and hopefully put it through home assistant.

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว +1

      I guess it could. Always when the heater is insulated and waterproof. Also, the noobix board must be out of the water, is not waterproof. Also, have in mind the relay i've used only withstands 2A. Is your heater higher than that?

    • @theshemullet
      @theshemullet ปีที่แล้ว

      I don't want it to be in the water. I just want a relay that can be controlled through home assistant/esphome etc. At the moment it's a physical switch, a have to press it.@@ELECTRONOOBS

  • @saurabhgawli2167
    @saurabhgawli2167 ปีที่แล้ว +2

    amazing man..............

  • @ork497
    @ork497 ปีที่แล้ว

    when are you ganna post another video about the diy 3d resin printer

  • @JohnJaggerJack
    @JohnJaggerJack ปีที่แล้ว

    Our boy Electro being a teacher and entrepreneur at same time. If you ever start a company/business let me know. ;)

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว

      And a serial killer, if someone attempts to build this deathtrap of a project. Der basically no clearance between the high voltage and low voltage part, there's a possibility to have the high side of powersupply come into physical contact with the low voltage side of the base board, there's no ESD safety and so on and so forth. Even the (crooked mounted) connector isn't suitable for 220+ Volt application - once again because of the clearance.

  • @IzergilBaba
    @IzergilBaba ปีที่แล้ว

    What exact reason to using such powerful and big in size power supply? I mean is 5v 300mA will be not enough?

  • @adtechnology294
    @adtechnology294 ปีที่แล้ว

    Please make part 2 on your last transmitter remote for drone

  • @leehewitt9559
    @leehewitt9559 ปีที่แล้ว

    Excellent BUT if only it had an analogue channel to send sensor data it would be awesome

  • @carloscontreras7999
    @carloscontreras7999 ปีที่แล้ว

    Hello, I have a problem with a circuit that you uploaded to your channel, it would be great if you could answer me.

  • @Marco_Ris
    @Marco_Ris ปีที่แล้ว

    Nice work. I found your channel today and subscribed immediately. I also downloaded the website files. My programmer heart is bleeding when i saw the code xD. There are also some errors in the css and php files. And wooow you connect every 200ms to your website??? Are you interestet in improvements?
    I think you will be hearing more from me (asking pcb and electronics stuff 😉)

    • @ELECTRONOOBS
      @ELECTRONOOBS  ปีที่แล้ว

      Thanks for your comment! Obviously the example codes could be imporved! Is just for learning :) have a nice day,
      Andrei :)

  • @ianfrancis3605
    @ianfrancis3605 2 หลายเดือนก่อน

    Hi I would like almost exactly the same thing as this to switch a 12V DC line (turn off camera). Could I just swap out the SSR? If so do you have a recommendation?

  • @ewncilo
    @ewncilo ปีที่แล้ว

    Can this project also use Bluetooth instead of wifi as well?, I mean does this project also support Bluetooth as well?

  • @the-matrix-has-you
    @the-matrix-has-you ปีที่แล้ว +2

    However for this Project ESP32 is a bit overkill ESP12F would function just as same if you just need a binary switch. But good Project I used same Hi-link 5V Power supply for my own switch as well but my switch is. A Wemos d1 mini shield

    • @Peter_A1466
      @Peter_A1466 ปีที่แล้ว +1

      Yes, that's what I was thinking

  • @desmondhow343
    @desmondhow343 ปีที่แล้ว +1

    Nice project but why not use one module with multiple relay so that its more cost friendly

  • @isilverboy
    @isilverboy ปีที่แล้ว

    I love this project. In the past I did something similar but I never used it because I was afraid to burn my home. 😅 In your opinion, does these projects and their components are safe enough to be used 24/7? Does anyone has good/bad experiences ?

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +1

      If you're gonna use this PCB, you almost certainly will unalive yourself. PLEASE! DON'T EVEN THINK ABOUT USING THIS DESIGN! If you need something like this, just buy a Sonoff - that basically exactly this with an esp8266. It's well enough build and at least it doesn't try to kill you. A Sonoff basic is under $10.

    • @isilverboy
      @isilverboy ปีที่แล้ว

      @@marcus_w0 many thanks for your reply, but my question was more general: In your opinion, how much safe are DIY devices? I refer also to the ones battery powererd or to the ones connected to a 5V alimentation

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +1

      @@isilverboy Any device you build yourself could be plenty safe enough to use 24/7 - if you design it right and use the right components. These two factors are crucial and both of them were let down in this device. Also: it's not the question, if it fails - but what happens when it fails. And this one is a spectacular one. a treasure trove of possible lethal outcomes in case of a failure. I really love devices that I have to disconnect with a broom stick while the house is on fire.

  • @azero79
    @azero79 ปีที่แล้ว

    this is exactly what i was looking for, thanks!

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +1

      PLEASE! DON'T EVEN THINK ABOUT USING THIS DESIGN! If you need something like this, just buy a Sonoff - that basically exactly this with an esp8266. It's not super well build too, but at least it doesn't try to kill you. A Sonoff basic is around $10.

  • @itzblast7512
    @itzblast7512 ปีที่แล้ว

    Plz make brushed drone version 5 as you promised by addi h hc05 bluetooth module

  • @MrNebRebew
    @MrNebRebew ปีที่แล้ว

    Good stuff

  • @sultanasaifi4065
    @sultanasaifi4065 ปีที่แล้ว

    can you share the project file of this work I really need it in my academics

  • @MMotokey
    @MMotokey 11 หลายเดือนก่อน

    Has anyone tried to add more outputs? could you explain me how to do it?

  • @VolkanTaninmis
    @VolkanTaninmis ปีที่แล้ว +1

    Man, Mains AC is not joke.

  • @ewncilo
    @ewncilo ปีที่แล้ว

    Yo creo que este projecto hasta haora es algumentablemente el mas práctico para una situación reales. Solo que necesita mas mejoras, moficiaciones y actualizaciónes. Tambien creo que se necesita producir variaciones de este para reducir su complejidad para haci ser mas facil de entender manoproducirlo tambien enfocar mas su uso.

  • @jameshancock
    @jameshancock ปีที่แล้ว

    Will this work with 120v for Americans?

  • @gauravraj9328
    @gauravraj9328 ปีที่แล้ว +1

    idk what's going on
    just now i was searching for some esp boards to buy

  • @addiction-69
    @addiction-69 ปีที่แล้ว +3

    Hey bro, I want 8 to 12 channel is it possible to make inside it?

    • @NiHaoMike64
      @NiHaoMike64 ปีที่แล้ว +1

      Voltlog already made one like that.

    • @addiction-69
      @addiction-69 ปีที่แล้ว

      @@NiHaoMike64 who? and where is that video?

    • @NiHaoMike64
      @NiHaoMike64 ปีที่แล้ว

      @@addiction-69 th-cam.com/video/RROiuHNq1uE/w-d-xo.html

  • @Sal3600
    @Sal3600 ปีที่แล้ว +1

    Can't do this in Australia unfortunately.

  • @zyghom
    @zyghom ปีที่แล้ว +4

    9:32 - today we learned how NOT TO DO - brother, such a mistake? are you a novice here? ;-)
    brother, the clearance between mains and low voltage on your PCB is horrible - you should never do that! (and teach others!)

  • @anasthase100
    @anasthase100 ปีที่แล้ว

    merci

  • @BIZLOOK
    @BIZLOOK 10 หลายเดือนก่อน

    Make car by esp32 board like this I mean u with it in this project with diagram please

  • @Seu_Lunga
    @Seu_Lunga ปีที่แล้ว +1

    Bro, could you do an esp8266 version? I have 10+ lying around wasted here

    • @Peter_A1466
      @Peter_A1466 ปีที่แล้ว

      I was just thinking an ESP32 is overkill.

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +2

      PLEASE! DON'T EVEN THINK ABOUT USING THIS DESIGN! If you need something like this, just buy a Sonoff - that basically exactly this with an esp8266. It's not super well build too, but at least it doesn't try to kill you. A Sonoff basic is under $10.

    • @Seu_Lunga
      @Seu_Lunga ปีที่แล้ว

      @@marcus_w0 I need kicad files so I can put extra things on pins, sonoff does not give me this option

    • @marcus_w0
      @marcus_w0 ปีที่แล้ว +1

      @@Seu_Lunga This thing will likely kill you. This is no joke! The PCB is so stupidly bad designed, this is almost a criminal matter. There's enough ESP32 and ES8266 connected devices out there, that provide a safe use of 230v. The sonoff basic isn't the only device.

  • @user-eu6rr7ny9x
    @user-eu6rr7ny9x ปีที่แล้ว

    where to download na php files?

  • @lasersbee
    @lasersbee ปีที่แล้ว

    2:11.. From what I can see silk screened to the Power Supply PCB it work from 70VAC to 277VAC... not only 220VAC. Or are you locked in to use 220VAC only. Can it your ESP32 PCB also work on 120VAC ?

  • @rverm1000
    @rverm1000 ปีที่แล้ว

    Funny I was just looking at that same item on ebay last. Im going to do that same program but in html.

  • @Oschl11
    @Oschl11 ปีที่แล้ว

    in Europe we have 230V AC

  • @kazzTrismus
    @kazzTrismus ปีที่แล้ว

    love your vids but this would never pass CSA/ULC (canada).....house insurance void
    also dont forget lots of IOT devices are becoming security holes in networks a they age out of support and firmware updates stop or are abandoned

    • @NiHaoMike64
      @NiHaoMike64 ปีที่แล้ว

      Security wise, this is better than most IoT devices as open source means it will get community support.

  • @luisenriquegallego3242
    @luisenriquegallego3242 ปีที่แล้ว

    buenas saca el vídeo en español esta muy interesante y Dios lo bendiga

  • @dhritimanroy2839
    @dhritimanroy2839 ปีที่แล้ว +1

    it pains to see a powerful chip as ESP32 being used to control on and off just one device, that chip packs hell lot of power. only if Espressif could design a far cheaper version with one fee output and far less capability. great project as always!!

    • @Peter_A1466
      @Peter_A1466 ปีที่แล้ว +3

      Well... Espressif first made the ESP8266, which they still sell. It's also far more powerful than needed but a lot cheaper.

    • @comedyclub333
      @comedyclub333 ปีที่แล้ว

      @@Peter_A1466 Also, in contrast to the ESP32 there are very small variants of ESP8266 boards like the ESP01 (ESP8266-01 to be more precise) which only exposes a few GPIOs, has very low power consumption (max 12mA at 3.3V or about 40mW) and has a ridiculous tiny footprint (basically a 2x4 pin header). I think this is way more suitable for this use case.

    • @Peter_A1466
      @Peter_A1466 ปีที่แล้ว +1

      @@comedyclub333 yeah, I use ESP-01s modules all the time. And with a small soldering tip you can break out more pins if needed (most often the analog in pin).

    • @collinbetten5631
      @collinbetten5631 ปีที่แล้ว

      Esp-01......

  • @ajaybnl
    @ajaybnl ปีที่แล้ว +1

    You could make this cheap with esp8266.

  • @VincentDemers
    @VincentDemers ปีที่แล้ว +1

    Thumbs up if you spotted the SQL injection vuln.

  • @piiumlkj6497
    @piiumlkj6497 ปีที่แล้ว

    hey !

  • @robojassi9187
    @robojassi9187 ปีที่แล้ว

    Good

  • @OGMann
    @OGMann ปีที่แล้ว

    Control anything from anywhere, eh? So, you're saying my stepson's room will actually get and stay clean?

  • @ShahZahid
    @ShahZahid ปีที่แล้ว

    honestly y even bother with your own psu, the pcb is not upto standards not good clearance, no isolation slots etc, just use a HLINK psu

  • @HarshZankhariya
    @HarshZankhariya ปีที่แล้ว

    Fast view.

  • @eealice9328
    @eealice9328 ปีที่แล้ว

    We like your video very much, would you like to accept the cooperation? We do not see your email on the web, hope to receive your reply.

  • @robrita
    @robrita ปีที่แล้ว

    first!!

  • @idzi756
    @idzi756 ปีที่แล้ว

    fortunately the movie can be sped up. your stops between what you say are significantly too long and booooooooring !

  • @marcus_w0
    @marcus_w0 ปีที่แล้ว

    Once again: This is dangerous and bad. Don't believe what he's talking - he has clearly no clue. If you want t see a proper 230v design, look for SDG Electronics videos or any other electrical engineer. # 109 AC LED dimmer for example - this shows quite good, why his design is so bad and dangerous.