- 29
- 82 837
Krakkus automation
Netherlands
เข้าร่วมเมื่อ 18 พ.ย. 2017
Hi, my name is Krakkus and I make videos about:
- ESP32
- Automation
- Energy automation
- Circuits
- Soldering
- Software
- Connectivity
- ESP32
- Automation
- Energy automation
- Circuits
- Soldering
- Software
- Connectivity
Never Lose Track of Your Devices Again!
Tired of losing track of your ESP32 devices on your network?
In this video, I'll show you how to implement 'phone home' functionality in your ESP32 firmware. By having your devices periodically contact a local server, you'll always know their whereabouts and ensure they're easily discoverable. I'll guide you through the code.
The WiFi network credentials are for my lab's WiFi, no security issue there :)
Arduino sketch
pastebin.com/wxK4nPpV
Python server
pastebin.com/kvybcE9Q
Music by: www.youtube.com/@Proximity
In this video, I'll show you how to implement 'phone home' functionality in your ESP32 firmware. By having your devices periodically contact a local server, you'll always know their whereabouts and ensure they're easily discoverable. I'll guide you through the code.
The WiFi network credentials are for my lab's WiFi, no security issue there :)
Arduino sketch
pastebin.com/wxK4nPpV
Python server
pastebin.com/kvybcE9Q
Music by: www.youtube.com/@Proximity
มุมมอง: 1 767
วีดีโอ
High current / high voltage output pins for driving motors and relays
มุมมอง 90721 วันที่ผ่านมา
This is the second video about me creating an expansion board for the ESP32. ESP32 code/firmware pastebin.com/NPJt5iND Don't change anything, upload and watch the serial output
Power supply and 36V analogRead()
มุมมอง 707หลายเดือนก่อน
I am creating an expansion-board for the ESP32-DEV-1 ESP32 code/firmware pastebin.com/NPJt5iND Don't change anything, upload and watch the serial output Also I have found some DRM free music (so they say). Let's see if that's true and my channel doesn't get deleted :) Music by: www.youtube.com/@Proximity
Switch on the power when price is cheap.
มุมมอง 72หลายเดือนก่อน
This is not the ultimate solution, this is a guide on how to approach a problem like this. My personal setup includes an Ubuntu server, selenium, system-d scripts and a SQL-ish database. Two of those would be like taking up a new hobby. That's why the low impact approach :) Here is the code used in the video, including the sketch for the ESP32 krakkus.ddns.net/downloads/ krakkus.ddns.net/downlo...
Big relay for a smart-car-charger
มุมมอง 4673 หลายเดือนก่อน
My energy prizes are dynamic throughout the day, so I made a WiFi switch so I can control my car charging cycle. ESP32 code pastebin.com/NPJt5iND
How to read negative voltage on Arduino
มุมมอง 1753 หลายเดือนก่อน
The analog to digital port on a microcontroller can usually only handle 0 to 5 volts. What if you want to measure higher? Or negative? A two or three-way resistor-divider-network could be your solution for that.
DC Motor current analysis
มุมมอง 1734 หลายเดือนก่อน
With a shunt resistor we can have a look at the current going through our motor, calculate its speed, and watch for stall signals. First sketch pastebin.com/9TJnrEgJ Second sketch pastebin.com/iyWUjjk7
ESP32 User Interface
มุมมอง 1.3K4 หลายเดือนก่อน
This is a proof-of-concept. I am creating a generic firmware for the ESP32. With that, I can easily setup WiFi, and play around with output pins. Also device discovery is possible, and API calls. pastebin.com/NPJt5iND 0:00 Intro 0:14 Project files 0:29 Uploading sketch 0:46 Serial output 1:06 Configuring 1:31 Pin setup 1:55 Demonstration 2:04 API calls 2:24 Discovery
DIY driver circuit for actuator to open roof hatch
มุมมอง 1.1K5 หลายเดือนก่อน
I want to automate my roof hatch with an actuator and an esp32. I got the most of it working. The motor needs some help and there is more software to be written, so there will be a part 2. There are also some small errors in the video (green frames, not blurring some details) that would take me another day to edit and I really wanted to finish the first of two parts today. ESP32 code/firmware: ...
4 bit DAC - Resistor dividers at work!
มุมมอง 6515 หลายเดือนก่อน
This is no ordinary DAC.This one only has 1 resistor per bit resolution, where a regular DAC has 3 per bit :) Less is more! I guess. I keep trying out new ways of putting my video's together. This time I just jump into the explaining without a why or conclusion. Does that work? Let's find out :) Resistors PD0-PD3: 22000,12000,6800,3300 in ohms Just dump a number 0-15 into port D 0:00 Intro 0:47...
PWM to analog converter
มุมมอง 8065 หลายเดือนก่อน
The simplest way of converting PWM into an analog signal. It uses a resistor-capacitor filter a.k.a. low-pass filter. 0:00 Breadboard circuit 0:43 Arduino code 1:32 PWM signal output 1:53 Measurements 2:14 More breadboard 2:28 Trial and error 3:51 Pefect conversion 4:42 Arduino sketch 4:52 Smooth analog output
Arduino motor driver circuit
มุมมอง 2786 หลายเดือนก่อน
With an Op-Amp and some resistors, we can convert a low-voltage signal from a micro-controller into a higher- voltage. Then, with the help of 2 transistors in a push-pull configuration, we add current capabilities to the circuit. 0:00 Intro 0:13 Schematic 1:15 Breadboard 2:17 Schematic 4:10 Python 5:06 Demonstration
Remote temperature sensor over WiFi with Python and ESP32
มุมมอง 1036 หลายเดือนก่อน
Low coding and no soldering on this little projects. github.com/krakkus/PyDuino 0:00 Intro 0:33 Thermistor-resistor network 1:25 Python 1:54 Data points 3:03 Demonstration
Control Lights with Python & ESP32 (No Soldering!)
มุมมอง 3756 หลายเดือนก่อน
With Python we can connect to ESP32 over Wi-Fi and tell it to change the output of one of its pins. This pin can drive a relay, and the relay switches the lamp. No soldering required for this project! Practically no coding either :) pastebin.com/NPJt5iND New fimware, Not what is in the video, but should get you started. Working on new stuff in new videos. 0:00 Intro 0:24 Connect lamp to relay 3...
Arduino motor driver circuit
มุมมอง 1.3K6 หลายเดือนก่อน
Low-voltage low-current to high-voltage high-current circuit. The circuit is made out of three stages, two inverted voltage level shifters and a push-pull transistor circuit. 0:00 Intro 0:42 Schematic 3:24 Breadboard 5:15 Testing and probing 6:59 Demonstration
Interesting video - but why the music ???
Thank you for commenting :) I have not figured out how to go about background music (or if i should have it at all), So I am experimenting a bit with it. What do you prefer? No music, ambient sounds? Voice only? Let me know :)
SSDP проще.
Thank you very much for your comment. So, broadcast discovery.. Added to feature-list :)
Hello! I know that n-channel mosfet leakage current decrease if you apply negative voltage to the gate. Does it decrease enough to be of use? For example when driving T12 cartriges, where thermocouple is in series with the heater, some transistors have several microvolts to several hundred microvolts of Idss depending on voltage and transistor temperature, and i don't know how it would impact thermocouple measurements
Be careful because at minute 7:48 of the video, everyone can clearly see the SSID and password of your WiFi network.
Thanks for the heads-up :) I now have a separate WiFi for doing videos so that wont be a problem anymore, thanks!
Could you share me the code?
Awesome video. Thank you!!!!
Great video and nice idea, but could you lower bg music next video, since it lose me ficus.
Thank you for your feedback! I need that :)
Nice to see in detail how other people work their ways to make their own devices. Thank you for sharing! I saw you use the solder braid. I'm not too fond of it. Personally I prefer to use the solder sucker, but maybe that's because I don't have such a handy rotating board holder. (Most often I just clamp the board with fingers and the iron as my third hand for soldering doesn't always do what I want it to do...) In the past I've let some magic smoke out of things by reversing positive and negative. Now I always make sure to clearly mark the connector block by making the negative half black and sometimes include a diode, just to be safe. I saw you use a buck converter instead of the 7805. What buck converter is that? The solar charger that I'm currently making uses a Mini-360 board featuring the MP2307DN chip. Very nice little converter, but it's not very efficient at low power usage and gets slightly hot. Another question: what ESP32 app were you using? In most of my ESP projects I included a webserver to control things, but that app seems quite handy for prototyping things.
Thank you for commenting! Marking the terminal block, yes, I should do that. I don't know the specific converters name, but "7805 drop in replacement" will get you those types of devices. That's how I found this one. The ESP app is a personal project of mine, the sketch/code is in the description. I made it for quick testing en some remote control.
@@krakkus - Okay, looking at your code I now see you also use a webserver with pages to control the device. Your neat UI fooled me into thinking you used a native Android app for controlling the ESP... Very nice! In past projects I mostly used WiFiManager for easy configuration of the local WiFi connection. Perhaps I went a bit overboard in an ESP8266 based project to control a large 16x8 Christmas fairy light LED matrix, It also included mDNS, a file editor, FTP server and even a JavaScript interpreter. All just for fun and too messy to share, but still nice when it worked...
Hey boys and girls, you should never allow a MOSFET gate to float! Always have some sort of high resistance pulldown resistance between gate and source.
Does no one sell a DC buck converter that you can use an Arduino to control the output with?
You missed direct drive with diode across the resistor to get faster off switching :)
Hi great video! how would you make this work as an always off method?
I recommend taking a look at ESPHOME and Home Assistant, very good combination for things like this.
Well done putting in efforts to make such a beautiful video however some of your circuit plans won't work according to the scheme you have shown.You can check them.Good luck
dont drink and drive a mosfet as the CHIPs will get you California Highway Patrol
it is a DRAIN to drive a mosfet
i can ride a bike, fly an airplane, sail a boat but can not drive a mosfet
The 555 can also work as MOSFET driver. Search MOSFET driver that time forgot on TH-cam. The big downside that I found with this setup is that the 555 timer outputs high on pin 3 whenever pin 4 is disconnected, and that is not desirable
There are many things that almost any mc project needs: UI, OTA, logging, library management, remote access, you name it. Previously I implemented all this on a per-project basis, and I love your idea to create modular solutions that can be recycled. But there is a „but“: Once I started playing with Home Assistant and ESPHome recently, all of the above (and more) was suddenly automagically solved for all of my projects. It‘s so simple with Home Assistant to add a UI dashboard which then can be used from a smartphone app or viewed in a browser, at home or from the other side of the globe. I found that my many isolated projects and experimental devices suddenly became centrally manageable, updateable via OTA, organized, got awesome logging and graphs, and best: could now be used in combination for many different use cases via simple automation scripts. In short: all the stuff that is so often needed but takes lots of effort to implement (like UI, but not limited to UI) is added automatically. Today, I even implement pure lab tools like i.e. current sensors as ESPHome devices (and get UI, smartphone app, and extensive logging for free). „Programming“ via ESPHome *configurations* is another benefit in this package: an almost revolutionary new way of programming firmware: so simple it often cuts down my previous c++ coding time by factor 10. ESPHome/Home Assistant is much bigger than just „Home Automation“, and among other things includes the solution for creating UIs. Your project seems awesome for people not wanting to run Home Assistant (or not knowing how HA and ESPHome can team up). If you haven’t done so, I’d encourage you to take a look at ESPHome/Home Assistant just so you are aware of what’s in it, and you don’t accidentally reinvent the wheel. And no, I am not affiliated with them in any way 😂 I was just very surprised to see what this package can actually do, and had never expected it to be such a powerful solution for DIY makers and microcontroller enthusiasts like you and me.
Thank you for writing. I have seen names like ESPHome but never really taken a look at them. I think it's about time to do so. You certainly made a good sales pitch :)
Definitely interested. Been trying to create something similar with small database but been having trouble. Thanks for sharing.
Thank you for your interest :) I created a public repository on Github. github.com/krakkus/ESPGUI
If i have a build a "driver circuit" to turn on or off an automotive coil (use 5v pwm signal to turn on) , which method would you rather use?
Hi, I would either go direct drive on the low side if acceptable, or dedicated high side driver IC. In both cases I would want a low component count for a project that doesn't live on my workbench.
@@krakkus Thanks Sir ! The coil is activated with + 5v , it means i need a low side mofset so that i can a positive signal , right?
Number 6 and Number 7 will not work. Both sides of the lamp are connected to ground. There is no possibility of a voltage across the lamp.
Creative video, keep it up , thanks :)
Thank you, will do!
wrong schematics for floating gate driver and opto-coupler , sources connected to ground shorting the mosfet when on.
If two switches press it will short circuit the power supply ! Be careful !
Boom 💥
Letting the MOSFET Gate float will also go BOOM 💥
Excellent video, thank you!
There are high-side driver ICs which can be "always on" (and manual control) just fine. That's just a limitation of that particular chip, not of the category in general. (and actually that chip can be controlled by manual signals too, if you wire it up correctly. It has nothing to do with being a "safety feature") Also, the optocoupler design can do PWM just fine, if you choose optocouplers with appropriate switching characteristics. A better approach would just be to use one of the other driver circuits and isolate the input using a single optocoupler instead, though.
I really like how you made this video. Simple and to the point.
Glad you enjoyed it!
You can make a really high torque actuator from an old scissor car jack and a windscreen wiper motor.
That sound surprisingly simple, I like it.
great presentation format, i dig the countdown on the top right as well, keep it up!
That's nice to hear, thank you!
Interesting project, clear explanation, thanks
Thank you!
Its Ground and not Grounds
Aah, the good old Covox Speech Thing in "low res mode". Used to have one back in the 80's as soundcards were rare and expensive, only 8 bits but still very usable at the time.
great topic, thanks
Thanks..i want to try..
Clear and simple explanation!! Thanks
Schitterend uitgelegd en een heel leuke video!
Dankjewel, fijn om te horen!
Does the circuit can make motor move forward and reverse by signal control from Arduino?
Hi, yes that is its purpose, but for that we need 2 of these pins/circuits. Pin 1 high and pin 2 low for one direction, and pin 1 low and 2 high for driving in the other direction. Like a h-bridge would do.
@@krakkusThank you
The push-pull stage consists of two common collector transistors (NPN and PNP), so is the base resistor strictly necessary since there is load?
Hi what's the difference between this and just using a sole transistor? This circuit uses some power while motor is off although it's very low
Hi, with a single NPN transistor. The output (emiter) voltage will not go above the base voltage, which is 3.3V for most microcontrollers. But it would give you more current. Also, this circuit connects to ground when off. Which a NPN also would not do. PNP would be better for voltage but inverted signal. Two of these circuits will be able to drive a DC motor BOTH ways, like a h-bridge would do. Which is what I eventually would like to do.
@@krakkus But I think the question likely applies to a single transistor in a common emitter configuration. In that case, it can exceed the base voltage.
When the Q4 base is zero volt, why would Q4 turn on if its Emitter is floating. In order for the Q4 to turn on, its Emitter has to be higher by ~0.7v. In your test circuit, the motor is running when the Q1 base is ON and the current flows from Vcc through Q1 Emitter and through the load to ground. That means your load must be passive. So, the second output shown on scope is not true output but 0.75Vp-p since the scope provide the ground for Q1. The Q4 in your setup will never turn ON. Correct me if wrong.
Hi, thank you for your comment. I do not understand it completely. So I did a quick test on the circuit. Using the Q4 transistor. th-cam.com/video/coROebyYefI/w-d-xo.html The motor is now connected to VCC and the other end to the output of the circuit/Q4, whenever the signal is low, the motor is running, which would suggest Q4 is conducting to ground.
@@krakkus Thanks for checking. So, if you pull Q4 out, leaving a void, it should still work the way it did.
You're right, I tested this in PROTO app from google play store and when deleting the Q4 transistor it does not affect the circuit in any way. In fact, Q4 does not receive any current when the load is turned off (motor in this case). And even when the motor is dissconected, because Q4 is a PNP transistor, it will not do anything as there is Q3 which is a NPN transistor.
@@wolfgangvyhmeister1995 We are agreeing. For the next test, I would disconnect the Q4 collector and insert a PS of Vcc=-10v in such a way that negative connects to Q4 collector and positive to common ground. Technically, the motor should turn CW or CCW based on the input.
Looks good. Do you have the specifications of the components, that could be added?
Any generic transistors would do the job, but these are the ones on the circuit. PNP: 2N5401 NPN: 2N2222
does bootstrapping limits switching frequency ?
Yes