Hugatry's HackVlog
Hugatry's HackVlog
  • 170
  • 2 575 445
ESP8266 Light Dimmer For Smart Lights (Home Assistant, ESPHome)
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay www.pcbway.com
I like having a small smart home setup build around Home Assistant. Simple automations, voice controls and other modern features are nice, but I still want regular controls for lights (in addition to smart features).
I made simple light dimmer using ESP8266 which I configured using ESPHome. This works hand-in-hand with Home Assistant's controls: Even if brightness was changed by another device, this knows what current brightness is and manages to adjust it in small steps.
SOURCE CODE, added some rounding, filtering and maybe other things for reliability and stability:
github.com/hugatry/VideoSourceDump/tree/main/ESP8266%20Light%20Dimmer
HARDWARE: There isn't much, I selected D1 mini's D5 and D6 for the A and B pins of rotary encoder, encoder's common pin is connected to ground.
0:00 Light dimmer
0:35 PCBWAY
0:55 Light to be controlled
1:08 ESPHome
1:22 YAML: Rotary Encoder Sensor
1:50 YAML: Filtering / limit update rate
2:25 YAML: Change Brightness
2:55 Almost working?
3:30 YAML: Read brightness from Home Assistant
3:55 Now it works!
If you liked the video, please show it and hit the Like-button!
Check out my other videos:
czcams.com/users/hugatryvideos
Subscribe:
czcams.com/users/hugatry
zhlédnutí: 2 357

Video

"Storage Mode -Protection": Disable Until Charger is Connected
zhlédnutí 1,1KPřed 2 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay www.pcbway.com My new cordless hot glue gun has same problem as many other modern gadgets: It has non-removable battery and too easily operated soft power switch. This problem gave me an idea to figure out how I could prevent my own circuits from accidentally turning on, if somethi...
Testing PCBWAY's 3D Printing Service
zhlédnutí 618Před 2 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay : www.pcbway.com This is my test of PCBWAY's 3D printing service, using actually usable functional model, instead of some test model like 3DBenchy. I ordering two prints using same model. One in more common PETG printed using FDM printer and one with more special PA12 Nylon printed...
Make Old Landline Phone RING
zhlédnutí 671Před 3 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay : www.pcbway.com Arduino based Phone Ringer circuit that makes old phone ring, until someone picks up. DO NOT CONNECT THIS TO PHONE LINE / LANDLINE. THIS IS MADE FOR PHONE THAT IS NOT CONNECTED TO ANYTHING ELSE! Old phones like this one aren't really useful anymore, when it comes t...
DIY Inductance Meter (How to measure inductors)
zhlédnutí 419Před 3 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay : www.pcbway.com Simple homemade inductance meter, made using PSoC 4 microcontroller (Theory also applies to other microcontrollers) This is simple circuit for measuring inductance of unknown inductor. LC tank circuit (capacitor and inductor in parallel) is charged and then release...
Reducing Inrush Current in DC Motors With PWM
zhlédnutí 1,3KPřed 4 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay : www.pcbway.com PWM motor speed controller, with pulse-by-pulse current limiting reduces inrush current. Small DC motor typically has stall current of about 5x the rated current. Motor with 3A rating can therefore trip power supply's protection circuit that has 10A max current, if...
Double Sealing Vacuum Sealer Makes Perfects Seals (NO MORE LEAKS!)
zhlédnutí 1,5KPřed 4 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video, @PCBWay : www.pcbway.com Vacuum sealer with custom timer makes more reliable seals. Few days ago I got second hand vacuum sealer. After some tests, it mostly works but every now and then the sealed bag has a leak. It's often caused by a wrinkle or contamination (moisture from food) in the ...
IoT Doorbell Connects To Smart TV |@PCBWay
zhlédnutí 642Před 5 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com This ESP8266 based doorbell sends text notifications to smart TV, using ESPHome and Home Assistant. We wanted to have a non-intrusive notification system in our movie room. A quiet notification that gently tells us what is happening, without loud alarms or blinking lights. I...
Measuring Distance With HC-SR04 (and 7-Segment LED Display)
zhlédnutí 363Před 5 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com Homemade distance meter / range finder (?) using ultrasonic sensor, 4 digit 7 segment LED display and PSoC 4 microcontroller. In this video I demonstrate power of PSoC 4 microcontrollers, by creating diy distance meter using HC-SR04 ultrasonic distance sensor and 4 digit sev...
Connect iTag Bluetooth Tag To Home Assistant with ESP32 |@PCBWay
zhlédnutí 2,2KPřed 7 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com Use ESP32 as bridge/middle man, to control Home Assistant with iTag/bluetooth tracker. I bought possibly the cheapest bluetooth key finders / trackers from Temu, hoping I could use them in my smart home system. For now I just wanted to use them as remotes, meaning click and ...
DIY USB KEYBOARD - CH551G With Arduino IDE |@PCBWay
zhlédnutí 688Před 7 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com Making DIY keyboard with CH551G programmed using Arduino IDE (CH55xduino) For years, ATMega32u4 based boards, especially the Pro Micro has been my choice for USB projects that require more than just USB-to-Serial conversion, like simple keyboard projects. It has been simple ...
RC522 based RFID Reader For Home Assistant, using ESPHome | Sponsored By PCBWAY.COM
zhlédnutí 5KPřed 8 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com Controlling Home Assistant's IOT devices with cheap RC522 RFID Reader I found cheap RFID module (RFID-RC522) in PCBWAY's module store while I was making my recent PCB order. I have some ideas how I would like to use one of them, all of them would benefit it being connected t...
DIY Motion Sensor Circuit with Radar Sensor And 555 |Sponsored by PCBWAY.COM
zhlédnutí 796Před 8 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com Motion sensor light using microwave radar sensor module RCWL-0516 and 555 timer. I was asked to create motion sensor circuit that could be used to control not just spooky decorations during Halloween party, but also some LED strips or other lights afterwards. Request was to ...
Designing Accurate Case For Electronics | Sponsored By PCBWAY
zhlédnutí 1,6KPřed 9 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com How to design 3D-printable case for electronics This is instructional video for those who are familiar with KiCad and Fusion 360, but haven't used KiCad's 3D model exporting feature before. KiCad can export 3D model of designed PCB with components as "STEP" file. This STEP f...
Rotary Encoder Basics (How do they work?) [PCBWAY Sponsored Video]
zhlédnutí 536Před 9 měsíci
Get ten 100x100mm one or two layer high quality PCBs for just $5 plus shipping from sponsor of this video: www.pcbway.com How to use rotary encoders with microcontrollers? In this video I visually demonstrate how rotary encoders work. Instead of giving schematic and code to copy and paste into your own project, I want you to LEARN how rotary encoders work. In the end, they are very simple compo...
How To Use Foot Pedal With Arduino |PCB FROM PCBWAY COM
zhlédnutí 712Před 10 měsíci
How To Use Foot Pedal With Arduino |PCB FROM PCBWAY COM
AVR ISP Programmer Based On CH551G |PCB From PCBWAY.COM
zhlédnutí 702Před 10 měsíci
AVR ISP Programmer Based On CH551G |PCB From PCBWAY.COM
CH551G Prototyping Board | PCB FROM PCBWAY.COM
zhlédnutí 398Před 11 měsíci
CH551G Prototyping Board | PCB FROM PCBWAY.COM
Improve USB Microphone Sound With Amplifier | PCB FROM PCBWAY.COM
zhlédnutí 405Před 11 měsíci
Improve USB Microphone Sound With Amplifier | PCB FROM PCBWAY.COM
KiCad Tutorial: How To Create Footprint And Symbol Libraries| Sponsored By PCBWAY.COM
zhlédnutí 1,8KPřed 11 měsíci
KiCad Tutorial: How To Create Footprint And Symbol Libraries| Sponsored By PCBWAY.COM
Import PCB Outline From Fusion360 to KiCad |SPONSORED BY PCBWAY COM
zhlédnutí 1,1KPřed 11 měsíci
Import PCB Outline From Fusion360 to KiCad |SPONSORED BY PCBWAY COM
Simplest USB to Serial Converter To Replace PL2303 | PCB FROM PCBWAY.COM
zhlédnutí 720Před rokem
Simplest USB to Serial Converter To Replace PL2303 | PCB FROM PCBWAY.COM
Measuring Rounded Corners (DIY Radius Gauge) | PCB From PCBWAYCOM
zhlédnutí 1KPřed rokem
Measuring Rounded Corners (DIY Radius Gauge) | PCB From PCBWAYCOM
VL6180 Time of Flight Sensor |Module From PCBWAY.COM STORE
zhlédnutí 1,2KPřed rokem
VL6180 Time of Flight Sensor |Module From PCBWAY.COM STORE
How To Share PCB Design On PCBWAY.COM (And earn commissions)
zhlédnutí 533Před rokem
How To Share PCB Design On PCBWAY.COM (And earn commissions)
USB-C TP4056 Module That Works! | PCB From PCBWAY.COM
zhlédnutí 1,3KPřed rokem
USB-C TP4056 Module That Works! | PCB From PCBWAY.COM
Can AI Chat Bot Write Arduino Sketches? | PCB From PCBWAY.COM
zhlédnutí 268Před rokem
Can AI Chat Bot Write Arduino Sketches? | PCB From PCBWAY.COM
Reverse Engineer PCB With KiCAD 7 |PCB FROM PCBWAY.COM
zhlédnutí 23KPřed rokem
Reverse Engineer PCB With KiCAD 7 |PCB FROM PCBWAY.COM
My C8051F350 (24bit ADC) Development Board |PCB From PCBWAY.COM
zhlédnutí 788Před rokem
My C8051F350 (24bit ADC) Development Board |PCB From PCBWAY.COM
433MHz To WiFi Bridge (Make RF Outlet Smarter) | PCB FROM PCBWAY.com
zhlédnutí 1,5KPřed rokem
433MHz To WiFi Bridge (Make RF Outlet Smarter) | PCB FROM PCBWAY.com

Komentáře

  • @ujang0711
    @ujang0711 Před 2 dny

    Hi, Can this be used to replace a Normally Open relay switch and use DC supply voltage as the trigger input?

  • @AleksanderOttesen
    @AleksanderOttesen Před 9 dny

    Great video - thanks!! Do you know if there are any "input list" for the UUID's rather than putting them in the code? For adding more keys/gards with less effort?

  • @pepzi_
    @pepzi_ Před 11 dny

    This is awesome! I was trying to find a way to connect a Wii nunchuk, which uses i2c. I might try this on an old laptop :)

  • @solimanhamod9541
    @solimanhamod9541 Před 19 dny

    Not working on hp

  • @Chinhnguyen0497
    @Chinhnguyen0497 Před měsícem

    is there a manual for this?

  • @Ben-ld5lt
    @Ben-ld5lt Před měsícem

    Nice video! Thanks for sharing.

  • @greenyboytagoejero7119
    @greenyboytagoejero7119 Před měsícem

    can i have your cellphone details

  • @Edmorbus
    @Edmorbus Před měsícem

    Thanks for sharing can you help me to make circuit schematics and code I want to read voltage with an isolated ground Mine setup is 4x 12v battery with 4x solar controllers with 1x Esp32 and 2x ADS1115

  • @Edmorbus
    @Edmorbus Před měsícem

    Excelente video Can you make dowloadeble files schematics

  • @argentinomacrifuevidaltamb3772

    Excelente video

  • @kvamsidharvamsi5800
    @kvamsidharvamsi5800 Před měsícem

    did any of you know how to upload program to cy8cmbr3116 , what parts is required, i am beginner ,can you help me...

  • @lohikarhu734
    @lohikarhu734 Před měsícem

    Always hyvää juttu to see a suomalainen on "the web" I was melkein suomalainen, after 7+ years living Salossa ... nyt saksassa, se ei ole niin ystävällinen kuin Suomi... Moikka! from a 🇨🇦🐻 in 🇩🇪

  • @0ctoEyes
    @0ctoEyes Před měsícem

    I'd be really interested in getting one of these for a project I'm working on. Is the PCB available?

  • @NicksStuff
    @NicksStuff Před měsícem

    Great!

  • @LED4all
    @LED4all Před měsícem

    Hi, are you able to help me with designing a similar PCB? How can I contact you?

  • @itonman5837
    @itonman5837 Před 2 měsíci

    Such batteries must be thrown into the river so that the fish have something to eat.

  • @lkahfi
    @lkahfi Před 2 měsíci

    I prefer using toggle switch with cover so it can't accidentally press

  • @fouzaialaa7962
    @fouzaialaa7962 Před 2 měsíci

    sacrificing a latching relay and an entire micro controller for a functionality that trivial is pretty wasteful , especially when there is already a tp4056 circuits that have the exact type of protection you want built in.

  • @Hackvlog
    @Hackvlog Před 2 měsíci

    Latching relay is fairly new component in my parts bin and I was exited to use them in new circuits. Using microcontroller to switch off it's own power using latching relay may sound silly, but it's actually a decent way to implement this safety feature. Many laptops have features similar to this "storage mode": A small switch somewhere near the battery, pressing it disconnects the battery until the charger is connected... Made especially for disconnecting the power before taking the laptop apart.

  • @bydluck
    @bydluck Před 2 měsíci

    can you make versoin for noobs please? I have pretty cheap microphone which sounds not bad, but it's silent. I always must to boost gain in every program which causes a lot of noise on recordings. Please help, it's maono au-a04

  • @sunnydaybadua2868
    @sunnydaybadua2868 Před 2 měsíci

    Super cool project! Just a quick clarification, how to you set the maximum current rating? For example, I need a bms that can do 30a continuous, I need to lower the r3 value, correct?

    • @Hackvlog
      @Hackvlog Před 2 měsíci

      Thanks! Max current is set by selecting different mosfets. The combined ON-state resistance of the two mosfets is used as a shunt resistor, the IC monitors the voltage drop over those mosfets. For example HY2120-CB has discharge overcurrent detection voltage of 200mV. Using R = U/I formula, we can calculate required resistance of two mosfets in series when specific I is selected: R = 200mV / 30A = 6.6666mOhm. That is combined ON-state resistance of two mosfets, so mosfet with 3.3333mOhm ON-state resistance should be selected to achieve required 30A maximum discharge current. That's quite low value and such mosfet would probably be unnecessarily expensive. I haven't made this kind of BMS circut with any higher current rating than 10A shown in this video. I suggest researching if multiple mosfets can be used in parallel with these protection ICs, or if there is a better IC for higher currents.

  • @andybellklas1678
    @andybellklas1678 Před 2 měsíci

    I like the Finnish accent, sounds nuts.

  • @Hackvlog
    @Hackvlog Před 2 měsíci

    I didn't even think about it when I was ordering these, but I should have selected some other colors to make filming these little bit easier. I did my best to rotate the parts and use different angles, to showcase the details as well as I could.

  • @ehsanshakil80
    @ehsanshakil80 Před 2 měsíci

    Hi com port on Arduino ide is not active although I installed st link v2 driver. Can you please suggest how to get the com port active ?

  • @thesidd19
    @thesidd19 Před 2 měsíci

    Thanks

  • @h.a6859
    @h.a6859 Před 3 měsíci

    Amazing piece of technology

  • @KrotowX
    @KrotowX Před 3 měsíci

    Very reasonable way how to reverse engineer unknown circuits. Although by following your tutorial directly we will have problems if PCB that somebody want to reverse enginner, must remain intact. Currently I have 6x1S LiPo/LiHV battery charger for repair thar I can't destroy in such way because can't damage the PCB. But I'll try to draw circuit from board photo anyway.

  • @Chinhnguyen0497
    @Chinhnguyen0497 Před 3 měsíci

    Can you make a detail and noob friendly tutorial? I see a lot of people mentioning EEPROM mods, but I can't really find any instructions other beside the UT210E.

  • @sanketss84
    @sanketss84 Před 3 měsíci

    helpful. thanks. I also add m3 sized mounting holes on the pcb so that I can mount the pcb on top raised holes from the case.

  • @t1d100
    @t1d100 Před 3 měsíci

    A fun and well done project. Bravo. Occasionally, you will also find a phone system controller box, at the thrift stores, as well. I forget the proper name for the device, but its functions were things like adding a "hold" line, directing a call to a particular extension, tying in the on-hold music system, etc. I wonder, if one of these boxes might be helpful?

    • @Hackvlog
      @Hackvlog Před 3 měsíci

      Thanks! That sounds interesting device. Imagine having an intercom system at home (like Thomas Burns made in one of his videos) and being able to play on-hold music to the other person!

  • @argentinomacrifuevidaltamb3772

    Disculpa pero esta mal tu circuito, el transformador debería ser de 600 Ω 1x1 = 600X600 Ω para acondicional la impedancia. Cualquier impedancia o capacitancia diferente el proveedor te retiene la linea.

    • @Hackvlog
      @Hackvlog Před 3 měsíci

      Thank you for the feedback. I would agree with that, if we were connecting something to an actual landline / phone line that goes out to the exchange. But I don't know if ringer circuits should be used in that situation. Anyway, this circuit is used with phone that IS NOT connected to anything, other than this circuit... An isolated system. I should have mentioned that more clearly in the video.

  • @Hackvlog
    @Hackvlog Před 3 měsíci

    Schematic is seen at 4:45. Based on simulation and my limited real world testing, this should work fine. If anyone thinks otherwise, please leave a comment! I was able to find project descriptions where people have made the phone ring OR read the hook, but not a single one that does both without modifying the phone's internals.

  • @srikarbharadwaj8396
    @srikarbharadwaj8396 Před 3 měsíci

    Can you make videos on other methods used to measure inductance?

    • @Hackvlog
      @Hackvlog Před 3 měsíci

      Thanks for the idea! I'll look into different methods at some point and see if I can make a similar demonstration video out of them.

  • @t1d100
    @t1d100 Před 3 měsíci

    👍👍👍👍👍!!!!!

  • @tharii314
    @tharii314 Před 3 měsíci

    What happened to the bass after the fix?

    • @Hackvlog
      @Hackvlog Před 3 měsíci

      Short answer: 220uF capacitor didn't limit bass with any of my headphones. Longer explanation: Adding the capacitor in series forms a high pass filter with the headphones. Depending on capacitor value and headphone impedance, this may or may not affect the lower end of the audio. Headphone impedance and capacitor value can be used to calculate high pass filter corner frequency using following calculator. Alternatively one can check what capacitor value is needed for desired corner frequency with specific headphone impedance (type two values, empty one will be calculated): www.muzique.com/schem/filter.htm

  • @rajhellokolkata
    @rajhellokolkata Před 3 měsíci

    It always show ipadmin does not exist

    • @Hackvlog
      @Hackvlog Před 3 měsíci

      Hi! Classic mix-up of lowercase L and uppercase i. First letter is lowercase L. The "lpadmin" group is created when CUPS is installed, which I confirmed to still be true by testing it on my PC running Ubuntu. I hope this solves your problem. Cheers!

  • @byGDur
    @byGDur Před 3 měsíci

    2:37 is 100% correct imo. this is such a big miss by the producers

  • @jailbreak7750
    @jailbreak7750 Před 4 měsíci

    add backlight and battery charger

  • @coskunvelioglu
    @coskunvelioglu Před 4 měsíci

    WHAT IS THE REASON I COULD NOT MEASURE THE OSCILLATOR IN Hz STAGE WITH UT139C MODEL MULTIMETER? UT61C MODEL CAN READ 32.768 FREQUENCY VALUES. IS IT POSSIBLE TO MEASURE Tuning-fork crystal used in a modern quartz watch WITH UT139C?

    • @Hackvlog
      @Hackvlog Před 4 měsíci

      Crystal circuits are quite sensitive and for some reason (which I'm not able to detect from the user manuals) UT139C loads the circuit differently and prevents crystal from running. That is my guess.

  • @coskunvelioglu
    @coskunvelioglu Před 4 měsíci

    WHAT IS THE REASON I COULD NOT MEASURE THE OSCILLATOR IN Hz STAGE WITH UT139C MODEL MULTIMETER? UT61C MODEL CAN READ 32.768 FREQUENCY VALUES. IS IT POSSIBLE TO MEASURE Tuning-fork crystal used in a modern quartz watch WITH UT139C?

    • @Hackvlog
      @Hackvlog Před 4 měsíci

      Crystal circuits are quite sensitive and for some reason (which I'm not able to detect from the user manuals) UT139C loads the circuit differently and prevents crystal from running. That is my guess.

    • @coskunvelioglu
      @coskunvelioglu Před 4 měsíci

      thank you@@Hackvlog

  • @user-rs4fd2qj4y
    @user-rs4fd2qj4y Před 4 měsíci

    Замечательный, информационный контент, спасибо за полезный ролик!

  • @dougphillips5686
    @dougphillips5686 Před 4 měsíci

    Just make double seal default and don't use single seal.

    • @Hackvlog
      @Hackvlog Před 4 měsíci

      After testing this for a while now, I think you are right. I will soon assemble a PCB with some layout changes and fixes, at the same time I'll make double sealing default in vacuum+seal -function. Seal only -function will probably be kept the same, because I often use it to seal thinner bags which melt too much with double sealing. Thanks for the feedback!

  • @engineerzaid
    @engineerzaid Před 4 měsíci

    how to get free application to design pcb

  • @satalaj
    @satalaj Před 4 měsíci

    Will do automation with this

  • @mumbaiverve2307
    @mumbaiverve2307 Před 4 měsíci

    very nice video. as an alternative can we use an AND gate with the PSOC PWM and the comparator output ?

    • @Hackvlog
      @Hackvlog Před 4 měsíci

      That is a start, but not a perfect solution. To prevent high frequency switching, output going to the mosfet/transistor should go HIGH when PWM pulse starts and go LOW on either a)end of PWM pulse or b)if current limit is reached. No matter which reason made the signal go LOW, it should return to HIGH only when next PWM period starts. I'm sure there are solutions for doing this with regular PWM (without the stop-signal used in this video) and some logic gates or flip-flops, but I haven't thought about it any further. Thanks for watching and commenting!

    • @mumbaiverve2307
      @mumbaiverve2307 Před 4 měsíci

      @@HackvlogGood point. I did not think of that.

  • @Ianistrip
    @Ianistrip Před 4 měsíci

    There is a problem in OW18B: after the automatic turn-off.The load current its 20-25 mA(too much power loss for auto off proccess),& after 2-3 days the battery is empty.(this fault is a design failure by the manufacturer, and he should give an update-instruction to correct/rehabilitate-solve the problem).

  • @bob_mosavo
    @bob_mosavo Před 4 měsíci

    Thanks 👍

  • @bob_mosavo
    @bob_mosavo Před 4 měsíci

    Thanks 👍

  • @bob_mosavo
    @bob_mosavo Před 4 měsíci

    Thanks 👍

  • @AdityaMehendale
    @AdityaMehendale Před 4 měsíci

    Nice application of a PSOC! I'd recommend a freewheeling diode across the 4:43 connector J1 (Motor o/p) to protect Q1. Perhaps also a pull-down on the gate of Q1, if the boot-up behaviour of the PSOC is ill-defined.

    • @Hackvlog
      @Hackvlog Před 4 měsíci

      Forgetting the diode was quite an oversight. Motors or relays without freewheeling diodes really are like kryptonite to mosfets/transistors. Also good point on importance of the pull-down resistor! Thanks for these tips!