#19 Hacking Sonoff Basic to control four different devices | Sonoff 4Ch Channel with Sonoff Basic

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2020
  • Dear Friends & followers, today we will learn " How to control 4 different devices with a single Sonoff Basic WIFI Switch" using Tasmota firmware at a very little extra cost and efforts.
    Hope you will learn & enjoy watching this video. Please consider subscribing to this channel as we will together learn & share a lot of amazing stuff and ideas that are on the way. So stay connected. Thanks a lot !!!
    **************************************************************
    Download Tasmota.bin: ota.tasmota.com/tasmota/release/
    Download Tasmotizer: github.com/tasmota/tasmotizer
    GPIO Pins on Older Sonoff Basic with ESP8266 Chip:
    GPIO-0: Onboard Button
    GPIO-1: TX PIN
    GPIO-3: RX PIN
    GPIO12: Onboard Relay
    GPIO13: Onboard LED
    GPIO14: Free to use
    GPIO Pins on Newer Sonoff Basic with ESP8285 Chip:
    GPIO-0: Onboard Button
    GPIO-1: TX PIN
    GPIO-2: Free to Use
    GPIO-3: RX PIN
    GPIO12: Onboard Relay
    GPIO13: Onboard LED
    Home Assistant Switch Yaml:
    - platform: mqtt
    name: "Lamp 2"
    command_topic: "cmnd/testlamps/power2"
    state_topic: "stat/testlamps/POWER2"
    payload_on: "ON"
    payload_off: "OFF"
    qos: 1
    optimistic: false
    retain: false
    ****************************************************************
    Subscribe this Channel: / @the_vccground
    ******************************
    Music: Bensound.com
    Intro Music : Hope by Tobu. • Tobu - Hope (Original ...
    #vccground #sonoff #sonoffbasic #sonoff4ch #sonoffhack
    *********************************************
    About us: Located in Delhi, India., We provide all kind of Customized Electronic and Smart Home Solutions within India and abroad. Do contact us for any Modification, Customization, Designing and Repairs of all Electronic and Smart Home Devices. Drop an email to "vccground3.3@gmail.com" with your requirements and contact details. Our team will coordinate with you soon thereafter.
    *********************************************
    hamari sabhi videos ko Hindi me dekhne ke liye vccground_hindi ko neeche diye link se subscribe karen
    / @vccground-hindi
    saadi saariyan video nu Punjabi ch vekhan layi vccground_punjabi nu hetth ditte link naal subscribe karo ji
    / @vccground_punjabi3663
    To watch all my videos in English, do subscribe vccground by clicking the following link:
    / @the_vccground
    For any query, do comment below or mail me at vccground3.3@gmail.com
    Thank You for appreciating my videos.
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Great series of videos for a very handy and flexible device. Thanks

  • @amirhayat2799
    @amirhayat2799 2 ปีที่แล้ว

    Great job man, so smart . Liked subscribed...

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      Thanks bro. Stay connected for more soon. ❤️👍

  • @-______-______-
    @-______-______- ปีที่แล้ว

    Hi, I wonder if you can help with some further information?
    In your example you show how to add additional relays to 5V and GND, and the GPIO pin of choice. But how do you give the added relays the same mains AC power as the built in output/relay of the Sonoff basic?
    For example, if I want to add one additional relay to the sonoff, so I can address 2 separate standalone desk lamps (one with the usual standard built in relay/output of the Sonoff, and another with the additional connected relay to a different GPIO), where they both receive the necessary power to switch on and off.
    How is this achieved? You show that the LEDs on the relay modules switch on and off as expected, and the relays click, but how do you get the newly added relays to output the same load as the built in Sonoff relay?
    Thanks

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

      Its very easy. For the second desk lamp, Connect one of its wire directly to the cold wire of your AC socket. Connect the other wire of the lamp to "COM" terminal on the second relay. Now take an additional piece of wire and connect its one end to "NO" terminal of the relay and the other end to the hot wire of your AC mains socket. Thats it. Do read and understand it twice to avoid making the wrong connections. AC Power can be dangerous if you don't have enough knowledge about it. Do join "vccground" telegram channel if you need a connection diagram for the same.

    • @-______-______-
      @-______-______- ปีที่แล้ว

      Ok thank you. I will try and understand this further. And will join the group.

  •  2 ปีที่แล้ว

    thanks man I have the same serial adapter as you and I was wondering if I could use it with my sonoff, I will be giving this a try thanks!

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      Sure. Just go ahead. It really works 😀❤️👍

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

    Top video. Tx mate.

    • @the_vccground
      @the_vccground  3 ปีที่แล้ว

      Thanks for the appreciation ❤️👍

  • @alswift7004
    @alswift7004 2 ปีที่แล้ว

    This is one of the best videos on this subject.
    Can I do this to a sonoff POWR2 ?

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      Thanks for the appreciation. Yes, the same can be done with all Sonoff switches including POW R2.

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

    Notes for my personal project:
    5:40 8266 GPIO
    9:02 2ch Relay
    9:34 Wiring

  • @n.r.2258
    @n.r.2258 3 ปีที่แล้ว

    Can I put 1 or 2 additional temp.sensors on it and get I the reading of these 3 separate temperatures ?

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

      No, one sensor per switch. Tasmota limitations 🙄

  • @thetinytrader1564
    @thetinytrader1564 3 ปีที่แล้ว

    Wonderful idea 👍🙂

  • @jamescullins2709
    @jamescullins2709 2 ปีที่แล้ว

    Great job!

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      Thanks for the appreciation. Stay connected for more such projects ❤️👍

  • @kanalamr
    @kanalamr 7 หลายเดือนก่อน

    Excellent project

    • @the_vccground
      @the_vccground  7 หลายเดือนก่อน

      Thanks Sir. ♥️👍

  • @mdnasarudin
    @mdnasarudin 2 ปีที่แล้ว

    Good teaching

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

    Is there any simple way to install a DHT11 sensor to SONOFF by just a firmware update ot set it in motion ?

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      Buy Sonoff TH. It's the most simple way...

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

    it is great job man, thanks a lot, Can I flash my own firmware (bin file) to Sonoff devices and control them with my own application.

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

      Yes, definitely. Thanks for the appreciation ❤️👍

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

    Hi Man, I wonder if when you configure GPIO14 as switch this could be visible in Tasmota? i mean, I would like to use this input to connect a wired door sensor

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

      Yes, Let it be visible, but it will work perfectly fine as a door sensor when connected to a Reed switch.

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

      @@the_vccground thank for your answer...when i put in GPIO14 switch i only can control a relay...but in Tasmota I can't see that switch. I don't know if I have to configure something else

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

      Uhmmm... When i say Tasmota i am talking about Home Assistant integration...I have no tested using commands...I will do...thanks

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

      @@ellocovoip To add your switch to Tasmota integration in home assistant, go to Tasmota device console and type 'setoption19 0' or (so19 0). This will add your device to Tasmota Integration.

  • @atabatabaee
    @atabatabaee 3 ปีที่แล้ว

    nice job , can sonoff step down convertor support driving 4 relays?

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

      Yes, I have tested with upto 9 relays and it worked well.👍

  • @hehahu-wx2gn
    @hehahu-wx2gn 4 หลายเดือนก่อน

    if we configure any pin to pwm. is there extra option to choose frequency and duty cycle of pwm?

    • @the_vccground
      @the_vccground  4 หลายเดือนก่อน +1

      In Tasmota, for PWM, you can select light, fader or dimmer and it will show you a slider to control the light brightness or dimming control.

    • @hehahu-wx2gn
      @hehahu-wx2gn 4 หลายเดือนก่อน

      @@the_vccground so its only for light work? pwm can be used to drive mosfet or servo amd stepper. so tasmota cant be used for that?

    • @the_vccground
      @the_vccground  4 หลายเดือนก่อน

      @@hehahu-wx2gn Tasmota can be used for servos and stepper motors. For more details, check out this link tasmota.github.io/docs/Blinds-and-Shutters/

    • @hehahu-wx2gn
      @hehahu-wx2gn 4 หลายเดือนก่อน

      @@the_vccground i really appriciate your fast reply. and thanks for giving your time and effort. i give it a try today and installed tasmota firmware on bk7231n module to practice with its interface. my conclusion .
      1. only ready setting for pins like led or pwm or relay etc. i cant go inside any option to modify like to make delay time or even to control the pwm output frequency. its all group of ready made choices u cant modify any choice.
      2. when u use several pwm pins then the firmware automatically convert the buttons of 3 output pwms into one slider for rgb bulb control. like it say if u want to use multiple pwm u can use it for rgb light only. so funny.
      3. any further change u want to make it says submit to github. so i think next step will be paid not free. while the light bulb that contains the module is cheaper than the module price or same. and their cloud and app free.
      anyway my final question. is there any free cloud app can control tasmota and change buttons and control output pwms frequency and allow me to use for my own purpose? coz the firmware allow module to output 2 values of frequencies for pwms 1 for servos and 1 for light dimming and rgb. thanks

  • @lcarter194
    @lcarter194 2 ปีที่แล้ว

    Thanks for the details .. How can I make a SPST switch for a button?

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      In tasmota configuration >>configure module, select "Switch" in place of a "button". That's it.

  • @akeelfazal1968
    @akeelfazal1968 2 ปีที่แล้ว

    Hi friend.please need your help.i have a dual sonoff .need to do interlock mood timer can do it?

    • @the_vccground
      @the_vccground  2 ปีที่แล้ว

      I have not understood what exactly you want to ask...?

  • @agudgi
    @agudgi 2 ปีที่แล้ว

    LOL So annoyed with myself... I knew all this, but have been brainwashed by the new minis, the duals etc. Thanks for the reminder!

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

      Haha. Now let the creator inside you take control of all this again... ❤️👍

  • @MrBobWareham
    @MrBobWareham 3 ปีที่แล้ว

    Just joined your channel love the videos and I am looking forward to more but don't like the music well done very helpful

    • @the_vccground
      @the_vccground  3 ปีที่แล้ว

      Thanks for the appreciation ❤️👍

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

    Ordered 6 new Sonoff Basics from Amazon, while nothing on the order or the box specifies "Power" on the board itself it says Sonoff RF R2 Power. Mfg date: 2022-03-09. I've identified the CPU as ESP8285 and found all the I/O I'll need for 4 outputs but there is no chip ID'd as U3 for the 5VDC but there is a chip on the bottom just to the upper right of the ESP8285 which looks identical and is labeled U2. I could easily measure the 3 pins if my old, old, old, hands did not shake so much. Anyone have this version and knows if that is the right chip and which pin if 5VDC? The Tasmota software works perfect and shows 4 relay outputs.

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

      If possible, you may share a picture of the board on "vccground" telegram channel to let me have a look and help you out.

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

      @@the_vccground Thank you my friend. I'll first have to get on Telegram [never used it] and get this to you. Your channel is priceless. Thanks

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

      @@mikewurlitzer5217 You may also email the pictures on vccground3.3@gmail.com

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

      @@the_vccground Thanks again. I just sent it to gmail.

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

      @@mikewurlitzer5217 Replied your email. Did you check ?

  • @squalazzo
    @squalazzo 3 ปีที่แล้ว

    why download firmware if tasmotizer can do even that?

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

      Just to simplify the process even for a novice....

    • @squalazzo
      @squalazzo 3 ปีที่แล้ว

      @@the_vccground adding a step? :)

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

    How this work with ewelink app ?

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

      No, it won't work with ewelink app anymore after this modification. You can use Tasmota app instead..

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

    I wish there was a way to control fan also with these device.

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

      Fan can be turned on or off but to control its speed we need to build a regulator circuit first.

  • @heribertoescalona1745
    @heribertoescalona1745 3 ปีที่แล้ว

    This hack works with ewelink app?

  • @rithikjohny691
    @rithikjohny691 2 ปีที่แล้ว

    After flashing is it required to configure with a wifi router with internet??
    My purpose : to control only via my phone's hotspot without any internet.possible??

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

      As of now, Router is required with or without internet. Need to work out a way to use it even without router. Wil figure out andl update soon. ❤️👍

    • @rithikjohny691
      @rithikjohny691 2 ปีที่แล้ว

      @@the_vccground thanks a lOt