#266

  Переглядів 8,936

Ralph S Bacon

Ralph S Bacon

День тому

A Real World project that uses an ESP32 in Deep Sleep
► PCBWay $5 for 10 pieces www.pcbway.com
More information and diagrams here:
github.com/RalphBacon/269-ESP...
Intro
I need to be able to detect when my workshop door has been opened - and STAYS open. And when it SHUTS again.
The ESP32 needs to communicate with my Smart Heater Controller to turn off the heater (if it's on) so I don't waste power trying to heat up the world if the door is open.
When the door closes it can then tell the Smart Heater Controller to go back doing whatever it was doing (heating, cooling) as though nothing had interrupted it.
And, of course, I need some means whereby the device tells me it's working (or has gone wrong).
So a low current ESP32 seems the way forward.
Links
► thingPulse low power Deep Sleep ESP32 WROVER module
thingpulse.com/product/epulse...
► Oregon Embedded Battery Life Calculator
oregonembedded.com/batterycalc...
► CoolTerm Serial Monitor (standalone freeware program)
freeware.the-meiers.org
► ESP32 Sleep Modes explained
lastminuteengineers.com/esp32...
► List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
bit.ly/UKpostsVideoList-RalphB...
► If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey
My channel, GitHub and blog are here:
------------------------------------------------------------------
• / ralphbacon
• ralphbacon.blog
• github.com/RalphBacon
• buymeacoffee.com/ralphbacon
------------------------------------------------------------------
My ABOUT page with email address: / ralphbacon

КОМЕНТАРІ: 106
@colepdx187
@colepdx187 Рік тому
I used your auto-on/off circuit on my mailbox and front gate and they have been working flawlessly for years now. The device on the gate uses its batteries up faster than the mailbox lid device. I used 3 AAA batteries for power and the mailbox device went for over 3 years before I replaced the batteries. Twice I have been alerted to someone tampering with my mail and mailbox and everyday I know exactly when the mail has arrived. Thanks Ralph!
@RalphBacon
@RalphBacon Рік тому
Glad it worked for you, Cole PDX. I've used it (and variants of it) in a lot of my projects. As you say, it "just works".
@wjn777
@wjn777 Рік тому
I've used your power latch circuit for many projects, it works very well. You can even trigger the latch using an accelerometer like the ADXL345, which can trigger an interrupt on movement, the possibilities are endless. Thanks for sharing
@RalphBacon
@RalphBacon Рік тому
Excellent! Just exactly what I had hoped people would do, take the circuit and run whatever project. 👍
@claudiomoles
@claudiomoles Рік тому
I liked the idea to use those MP3 modules. I have used them in a wood box to my wife, when she opens it it plays a randomly selected Bible Psalm or Proverb, I figured out that this modules do not do a good random pick up and when it turns on it always starts whit the same track, so I use an Attiny85, to generate a real random number (with analogRead) to generate a seed. It works perfectly, I even added an OLED display to show what's playing.
@RalphBacon
@RalphBacon Рік тому
Yes, I used this device for my previous cat's outdoor run, so we would know whether it was raining or not. Worked like a dream. But the MP3 device needs to be used with a μController really, for the reason you state plus just not having to use any buttons.
@blic-sx9ix
@blic-sx9ix Рік тому
While watching I was thinking this sure is over engineered and then Ralph says "Over engineering at its best". Just had to laugh.
@RalphBacon
@RalphBacon Рік тому
A bit of fun in our hobby is never wasted!
@MikesAllotment
@MikesAllotment Рік тому
If you're going to power it from an 18650 then you're still going to need a low drop out voltage regulator to provide the 3.3v to the esp32 (a fully charged 18650 at 4.2v will still fry your esp32). I would recommend the MCP1700-33. I use these on all my 18650-powered arduino / esp projects and they only sip micro-amps...
@RalphBacon
@RalphBacon Рік тому
On the ePulse Feather there is a connection for a battery, so I can connect the VCC to it too (instead of) I guess. Needs a bit of checking out.
@MikesAllotment
@MikesAllotment Рік тому
@@RalphBacon Ah yes - I just looked at that ePulse Feather board - nice board. On-board TP4056 and also an onboard XC6220B33 LDO. The only potential problem I see is that they haven't included any over-discharge protection - they assume this is part of the 18650 battery (which isn't always the case). It would have been nice if they had included a DW01 - but apart from that a nice, interesting looking board.👍
@scottstevens7569
@scottstevens7569 Рік тому
Well Done Ralph! Another good project with super description and reasoning along with materials to DIY. Your projects are so often timely to things I am doing it's erie. Delving into sleep modes and power saving currently myself, and found your execution helpful in understanding aspects of deep sleep. One lesson I've learned regarding buzzers and even LEDS in using them as some sort of warning or status marker; is that they all CAN be annoying after repetition or incorrect placement. A real conundrum to find a way of being alerted without being annoyed. :)
@RalphBacon
@RalphBacon Рік тому
I guess it's a fine balance between silent, information messages (whether using an LED, message or email) and a loud, attend-to-this-right-now type of message. I'm hoping to get it right this time but I will create an HTML interface so I can switch off the aural part of the message!
@OtusAsio
@OtusAsio Рік тому
Just the power-on power-off little board got me thinking that it could be put in an automotive project like in a car or truck and that would not drain your battery... nice...Thank you !!! Always interesting.
@RalphBacon
@RalphBacon Рік тому
Glad it's got you thinking, Pierre!
@str8upkickyaindanuts289
@str8upkickyaindanuts289 Рік тому
I highly recommend the Nordic Semiconductor Power Profiler Kit 2 for a cheap alternative for a embedded system targeted source-measure unit (SMU). In these low power applications where the actual current draw can be measured and plotted with exceptional accuracy for the price, the PPK2 is perfect. I was able to find some issues where I was trying to control power with a p-channel MOSFET, I mistakenly put the transistor on the wrong side of a regulator and was unable to fully shut off the FET because the clamping diodes within the ESP32. When my battery was fully charged the difference between 3.3v and 4.2v was enough to forward bias the protection diode till the battery voltage was low enough to prevent the leakage. Using a SMU I was able to fine tune my circuits to get far better deep sleep current by identifying parasitic current draws during deep sleep in peripheral circuits.
@RalphBacon
@RalphBacon Рік тому
Yes, I had this issue with one of my designs. It was effectively a resistor divider network that was "always on". By moving stuff around I could save lots of power.
@str8upkickyaindanuts289
@str8upkickyaindanuts289 Рік тому
@@RalphBacon If you don't have a PPK2 as I mentioned it would be a great video topic. Not only are they cheap ~$100US, but the usefulness in embedded systems is limitless. I know everyone isn't making battery powered projects but they can also help gauge the real-work power requirements of a design, a blinky light isn't going to have the same power requirement as a 24bit I2S internet radio. It's an unbelievable deal honestly, it can be a power supply for custom circuits and fast enough to catch WiFi transients. I'm not affiliated with them it's just that damn good!
@lilbuzz999
@lilbuzz999 Рік тому
Another great video Ralph! I've been thinking about a new project that would've required adding mains wiring in my garage. But you may have just added the spark that I needed to do it with batteries. I'll need to deep sleep on this.
@RalphBacon
@RalphBacon Рік тому
Ho, ho, it's the way you tell 'em, Mark. But I'm glad it might have got you thinking about this!
@tonykempson4331
@tonykempson4331 Рік тому
Hi Ralph, just a few considerations I have when trying to get the most from powering projects with batteries is that your available working voltage of an 18650 cell, for example, is between 2.8V and 4.2 V (fully charged) so this reduces the time duration that'll you'll get on battery. I recommend using a BMS circuit like the cheap and cheerful TP4056 module (specifically the one which has battery protection on- board) just to keep the Li-ion cells happy.
@RalphBacon
@RalphBacon Рік тому
We think alike, Tony. I used the 18650 plus TP4056 in my storage bin lid reminder project (somewhere here in YT). Works well, and as you say, includes a charging circuit.
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM Рік тому
Very nice project sir
@RalphBacon
@RalphBacon Рік тому
Thank you, glad you liked it. All a bit of fun!
@mr.bianchirider8126
@mr.bianchirider8126 Рік тому
Yet another great video. I am interested in the use of that SI4599 board. Also, since you are using ESPNOW you could use the ESPNOW receiver to play the tune, thus saving the battery.
@RalphBacon
@RalphBacon Рік тому
That's a good idea, using the _receiver_ to play the sound. Not only do I get confirmation of the door being opened/closed but also that the message was successfully received. Nice one!
@manu808
@manu808 Рік тому
For sounds you can even use the beeper driven by PWM, actually you can get a decent sound/melody
@RalphBacon
@RalphBacon Рік тому
Yes, been there, done that, bored with the limitations now. But you are correct, you can make a decent enough melody that way.
@euanramsay5609
@euanramsay5609 Рік тому
Thanks Ralph, great video. I like your breadboard, where do you get it from?
@RalphBacon
@RalphBacon Рік тому
Breadboard (two of them, joined together) is from Cool Components: bit.ly/3O6P3fS
@petrepetercristi
@petrepetercristi Рік тому
The most of the power in deep sleep is consumed by the LDO The LDO that board use is AMS 1117, this one has an stand by current at 2mA. So if you want to save power that one is not good. There are others with less power consumption, about 1000 times less, about 2uA. Project your own pcb with a bare esp32 chip, let say ESP32-WROOM-32, one LDO (this could be 7333a, or MCP1700-33, or the best one, the one that dfrobot use it: rt9080-33gj5 ) and capacitors for the LDO you chose, one resistor to ENABLE, and connectors for power, for programming, also for your sensor. I have one circuit with ESP32-WROOM-32, 7333a LDO, one bme280 powered from one li-po 18650 cell. That circuit send data to adafruit io for more than a year without a charge. Sorry for my English's!
@RalphBacon
@RalphBacon Рік тому
Standard boards certainly waste power this way, true. The ePulse Feather specifically avoids powering the LDO if running off battery power though.
@stevea1008
@stevea1008 7 місяців тому
Thank you for this excellent video! Rather than the reed switch, can the ESP32 be brought out of deep sleep by the built in Hall effect sensor? I have been experimenting with this and have been unable to find a way without additional components or using the timer to wake up and check the sensor state. Do you or your subscribers have any insights on using the built in Hall effect sensor to wake the unit from deep sleep? It annoys me that if the built in Hall effect sensor COULD do this, I would need only a small neodymium magnet near my ESP32 to detect the state of the door and could avoid the much larger reed switch.
@RalphBacon
@RalphBacon 7 місяців тому
Yes, I had considered this too but was in a bit of a hurry to complete the proof of concept. I have not used the Hall Effect switch on the ESP32 at all, and certainly don't know whether it can bring the ESP32 out of Deep Sleep. If I experiment with this I will update the video comments.
@wolfberrinhos7068
@wolfberrinhos7068 Рік тому
Thank you, very good video, I've done something like that for a wardrobe door. with a "normal" esp32 dev board, the minimum current i could achieve in deep sleep mode, was in the order of mA, even removing the LED. In my case it was not critical, because the door remained open for short periods of time. I send the notifications using wifi, in the notification includes the battery voltage. the voltage measurement circuit is only connected when I measure the voltage, after each measurement i disconnect it.
@RalphBacon
@RalphBacon Рік тому
No "normal" ESP32 (other other) dev board is designed for Deep Sleep usage. The thingPulse feather device I'm using has been designed so that all the external stuff (LDO, USB chip etc) is NOT powered up by the input voltage, only when it is powered via the USB. Makes sense, really.
@richardlangner
@richardlangner 11 місяців тому
Thanks for the video. A good idea to save current. Is the N channel FET connected the right way?
@RalphBacon
@RalphBacon 11 місяців тому
No, the N-channel FET is upside down (blame the CAD program I was using... what, you mean it's _my fault_ ?) I will be progressing this project soon.
@shazmiah
@shazmiah 11 місяців тому
Hi Ralph been watching your videos for a while now and they're fantastic. I've been an electronics hobbyist/ enthusiasts for some years now and thinking of starting my own channel. Would you mind sharing with us your setup: what cameras, lighting, software and tools you use?
@RalphBacon
@RalphBacon 11 місяців тому
If you don't already have a setup, then my suggestion is to avoid watching umpteen UKposts videos on other channels' equipment. How anyone with a new channel can afford thousands of pounds on equipment that may never return anything, I just don't understand. Even now I don't understand it. Or have such equipment. I started off with a simple digital camera (sorry, can't remember the brand, not relevant these days) that could shoot video at HD on an SD card. It probably cost me (I had it lying around) about £60 back then. My microphone was NOT the ubiquitous Blue Yeti (overpriced if ever I saw one, although it sounds OK) and chose an Anua microphone that (to me) sounds even better (more natural, but you can judge that just by listening to my videos). Prior to that I used some cheap headset microphone that sounded as though I was a captain on a plane (watch any of my early videos, #2 to #20). 🤦Over and out! If you record onto SD card in a self contained camera then that's all you need, but if your camera has a clean (no battery levels etc) HDMI output, then you can use that to input into OBS (Open Broadcast System - which every UKpostsr uses, as it's free and is quite good and gets updated now and then). I don't have any lights to speak of (once again, spending money on something that has marginal payback just doesn't make sense) just the ones in my workshop. If you really need more lighting, use an old Anglepoise-type lamp for now. Once your channel actually starts making money you can decide whether you want to put that money into yet more equipment. I'd love a 4K video camera but have you seen the prices?!? How can I justify that? How is it going to be "better" than what I have? Editing programs are manyfold and I started off using a £25 version that was fine but eventually drove me up the wall because transitions between scenes was too slow. Now I pay a bit more but don't use Adobe Premiere either! Frankly, it was a minefield, but I'd recommend you spend as little as you can on stuff that does the job - for now. We'd all like that £1,500 4K Sony camera, a £200 microphone and a £1,000 lighting rig just for starters but you have to take a step back and think how any of this is going to get you your 10,000+ subscribers and some cash! Of course, once you DO start making money, you can spend big bucks on whatever you want. Good luck! 👍
@shazmiah
@shazmiah 11 місяців тому
@@RalphBacon Thanks for the honest and in-depth advice. Very much appreciate it. Just turned the big 50 but have had the electronics and computing in my blood since mid 1980s so I can completely agree with the points in your reply😊 The kids are all grown up now so I can settle down to what I enjoy. My requirements are inline with what you are doing - albeit it will be part of a bedroom setup. I could never afford at this moment the fancy equipment many of the youngster creators use nowadays. I think I will need one camera for the main shot and another (ideally autofocus and zoomable via a remote (for the closeups) of breadboard and other small circuitry. I have messed around with OBS before so let see how things pan out.
@shaseeb692
@shaseeb692 11 місяців тому
Hey Ralph S Bacon, I really enjoy your content and the way you explain complex topics. I suggest a video idea for you. How about creating a video on programming the ATtiny1617 or ATtiny3217 using an Arduino Uno or Arduino Nano as a UPDI programmer? It would be great to see you dive into the details, show us how to utilize the Arduino for programming and explore all the exciting features these microcontrollers offer. Keep up the fantastic work! I hope you'll reply Best regards,
@RalphBacon
@RalphBacon 11 місяців тому
I'll put it on the list but first I must check out what those two microcontrollers you mention are capable of!
@flashcorp76
@flashcorp76 Рік тому
I reckon that with a little bit work( yep😅) we could use the epulse feather schematics and add the two mosfets, mini mp3 player board and amp…. And make this lil beast with a couple of optional in’s/outs. 😊 OK ✅ I’ll get to it😊!
@RalphBacon
@RalphBacon Рік тому
Ha, ha! When you have it finished don't forget to send me one. Hello? Hello? Now where have you disappeared to 🤷‍♂️
@followthetrawler
@followthetrawler Рік тому
Surely the sound you need is an old shop bell?
@RalphBacon
@RalphBacon Рік тому
That could be one of the sounds I use. Open All Hours, I'm sure. (If you are not UK-based you won't get that).
@donaldhoudek2889
@donaldhoudek2889 Рік тому
Hi Ralph.. thanks for the video! OH, as a suggestion for a future project, how about connecting a HC-SR04 ultra sonic distance sensor to a ESP8266, I believe you did one sometime back with an Arduino, but the real challenge is with the ESP8266. Good Luck! Now that would be a GREAT video
@RalphBacon
@RalphBacon Рік тому
I'm bemused by the fact that it is somehow more of a challenge connecting up a range connector to an ESP8266 rather than an Arduino?
@donaldhoudek2889
@donaldhoudek2889 Рік тому
@@RalphBacon I have attempted to add the HC-SR04 or the JSN-SR04 Ultrasonic (water proof) sensors to the ESP32, ESP8266 with no luck as it keeps telling me that the libraries are not compatible with either of the sensor types. Tried all the libraries that I could find.
@RalphBacon
@RalphBacon 11 місяців тому
Are the sensors not just standard 40KHz transducers? Knock up a quick Arduino sketch and test them out. Then transfer the sketch to the ESP8266 - unless the library you are using is fiddling with registers to get the timing right, in which they won't work. But there must be some libraries out there for ESP8266/ESP32 that just use a standard PWM pin for the transducer signal?
@donaldhoudek2889
@donaldhoudek2889 11 місяців тому
@@RalphBacon Thanks, will give it a try
@miketaylor253
@miketaylor253 Рік тому
Excellent video as always :) Will you be posting the code onto the Github project (pretty) please?
@RalphBacon
@RalphBacon Рік тому
Yes, yes. Once the project is beyond proof-of-concept stage I'll be sharing it all.
@pfeerick
@pfeerick 11 місяців тому
Maybe instead of a standalone MP3 player module, a max98357 I2S audio amp... and have the audio directly on the ESP32? Not as "simple" as a DFRobot MP3 player, but more integrated for sure ;) Very interesting looking project, be interesting to see how it goes! :)
@RalphBacon
@RalphBacon 11 місяців тому
Yes, that would be good, Peter, if only I could actually generate proper sounds using I2S. Not quite so simple (for me, anyway). But the advantage of using an MP3 player (with built in SD card) is that I can play _any sound_ that is on the card, including voices. We shall see how it turns out in due course.
@j.a.f.8029
@j.a.f.8029 Рік тому
A little off topic, but how are the power connections to your breadboard binding posts made? I've been looking for a better way to distribute power and would appreciate a detailed picture or text description. Thx!
@RalphBacon
@RalphBacon 11 місяців тому
The binding posts have two breadboard holes associated with them that you can then link to the main power rails on the breadboard if you wish. See the close up photos here: bit.ly/3Iba5WI
@j.a.f.8029
@j.a.f.8029 11 місяців тому
@@RalphBacon Very nice! It's good to see somebody thought about this rather than stamping out an other cheap copy. Thank you!
@garycrockett4477
@garycrockett4477 Рік тому
Thanks for the video and the explanations. I disagree with the "random sound" idea. Imagine, if you will, your car picked a random sound for everything: turn signals, key left in ignition, etc. It would be so confusing. You would hear a sound, and then have to look around to discover what was going wrong. Pick an "easy-on-the-ears" sound, and run with that. If you discover you don't like that sound, then an OTA update would easily fix that problem - especially if you load up that SD card with a bunch of different sounds you could choose from. Again, thanks for all you do!
@RalphBacon
@RalphBacon Рік тому
The difference between a car and my door, is that the car could be telling you lots of different things, depending on what the "fault" is. With me, it's just the door opening / closing plus the "I'm still running when I should be switched off" scenario. I'd get too bored with the same old sound each time.
@David_11111
@David_11111 Рік тому
yay
@RalphBacon
@RalphBacon Рік тому
Yaaay! I hope you "liked" 👍the video!
@kentswanson2807
@kentswanson2807 Рік тому
I do have a different approach to this. I let a guy that makes ewe-toob videos do the hard work. I really like your channel. I believe I have watched them all at least once.
@RalphBacon
@RalphBacon Рік тому
Not hard work, fun! Well, OK some hard thinking but still something I like doing, in the same way some people like gardening (does not compute). Now you can watch all my videos again, Kent, for being cheeky!
@lezbriddon
@lezbriddon Рік тому
mp3 player + esp listening for the espnow door open signal = shed alarm. add an internal pir/doppler sensor maybe 2 to prevent false triggers, 3d print the horn for the speaker so its louder.....I wouldnt use an alarm sound as the first mp3 but just an 'hello'... 15 second delay the 'i've called the police at this time of night they wont be long'.....
@RalphBacon
@RalphBacon Рік тому
Hmm, interesting. Different sounds depending on what time of day it is. Easily done with an ESP32, of course. Thanks, Lez.
@berkanab4260
@berkanab4260 10 місяців тому
Hey Ralph, can you do a video using an ESP32 and a PT100 without using any kind of extra Hardware (Converter etc.) to measure the temperature? There is a lack of content on UKposts based on this topic.
@RalphBacon
@RalphBacon 10 місяців тому
I did some videos a long time back involving thermocouples but I'm pretty sure no Platinum was involved - although the principle in using a PT100-compliant sensor should be very similar. I would try reading the voltage from an analog port that goes via the PT100 sensor to see whether you can accurately get a reading.
@qzorn4440
@qzorn4440 Рік тому
I like esp32 projects, they can do so much. 🥳 Ralph, do you have an Orange Pi5 Python GPIO PWM example? I can get the OPi.GPIO on/off to work. However, the PWM setup is still a mystery? I am not sure if I have asked this question before? The Raspberry Pi GPIO PWM SBCs just work and they have all the real information. The OPi5 can run OpenCV great, just cannot get the PWM Pan/Tilt to work? Thank you.
@jstro-hobbytech
@jstro-hobbytech Рік тому
The new rock based boards are awesome ehh. I don't know why the rpif is sitting on their hands creating artificial scarcity. In Canada a 4gb pi4b is the better part of 300. It's cheaper to buy a pi400 and print an enclosure and overclock it. The jetson xavier pascal and Volta based boards can be found at great prices now too because they stopped making the maxwell based board that the jetson, shield and Nintendo switch use. Nintendo had to uses fidelity fx to get Zelda to run better...on nvidia hardware lol. I get it's open source but Jensen doesn't like it I bet hahaha. I've never seen Ralph do sbc projects and I've watched his channel for like 7 years. He likes playing pcbway against jlcpcb if you've noticed haha
@jstro-hobbytech
@jstro-hobbytech Рік тому
I was just thinking. You could use one of those pca servo boards I bet or you could bit bang the pwm.
@RalphBacon
@RalphBacon Рік тому
No experience of the Orange Pi5, I'm afraid. I did have a very early model Orange (and Banana too) but then went with a proper RasPi.
@qzorn4440
@qzorn4440 Рік тому
@@RalphBacon Thank you.
@qzorn4440
@qzorn4440 Рік тому
@@jstro-hobbytech I am slowly getting things to work on the OPi5. OpenCV works very fast on the Orange Pi5. OpenCV Haar_Face OPi5 (22-FPS) or RPi4(5-FPS) Just need to figure out the PWM Pan/Tilt? Thank you.
@random1778
@random1778 Рік тому
great circuit & code. Instead of an audio alert for errors, why not get it to post a message to your led status board? - You get more information that way with an existing interface.
@RalphBacon
@RalphBacon Рік тому
That would have been a great idea if I still had my LED status board (you mean the circular LEDs, 3 rings?). More on that in a future video.
@chlordk
@chlordk 7 місяців тому
Why not use AA alkaline batteries instead of a rechargeable battery? BTW, a hobby project can't be over engineered. My smartphone is over engineered a lot.
@RalphBacon
@RalphBacon 7 місяців тому
I'm with you on the "can never be over-engineered" 😉 I could have used 3xAA batteries as they will work just fine for an Arduino when in Deep Sleep. Also OK for an ESP32 if you have a specifically designed low power consumption board (when in Deep Sleep). But a 18650 will last a lot longer for the latter.
@Friendroid
@Friendroid Рік тому
magnet with reed switch keeping a p-mosfet open and the esp32 unpowered until it's time to do something
@RalphBacon
@RalphBacon Рік тому
That's about the gist of it. And also keeping it alive so that it can wake up again when I flip the switch back to the "resting" state.
@yogeshitaliya473
@yogeshitaliya473 Рік тому
❤❤❤❤❤❤❤
@RalphBacon
@RalphBacon Рік тому
Glad to see your Internet connection is good this week, Yogesh!
@yogeshitaliya473
@yogeshitaliya473 Рік тому
@@RalphBacon 😀😀😀😀😀
@shermanpeabody7065
@shermanpeabody7065 Рік тому
Nice video, but I think the N-channel mosfet is upside down in the schematic.
@RalphBacon
@RalphBacon Рік тому
Upside down or back to front? Or is the arrow the wrong way (should be going IN to the device, for an N-channel MOSFET).
@shermanpeabody7065
@shermanpeabody7065 Рік тому
@@RalphBacon I mean upside down. In the drawing you have the source of the N-channel connected to the gate of the P-channel, so the N-channel body diode conducts to ground, which would mean the P-channel is always on. The N-channel drain should be on top, with the source connected to ground, and the body diode blocking any current if the N-channel is off. I assume the actual circuit is not the same as the drawing.
@RalphBacon
@RalphBacon 11 місяців тому
The circuit is, in that case, wrong. The source of the N-channel definitely goes to GND, the Drain goes to the Gate of the P-channel. I think the part I chose in the CAD program was printed like that (ie the wrong way round) and I didn't notice. Doh!
@hariseldon2577
@hariseldon2577 Рік тому
Just a thought. Why use an 18650? I recover the batteries from these vaping thingymajigs. People throw them away so they are FREE!. Add a charging board, cheap as chips, and the bonus. They are 1500mAh batteries! I must find one of those mosfet boards.
@jstro-hobbytech
@jstro-hobbytech Рік тому
We don't have those in Canada. So I buy 18650s at the dollar store. They usually have 2200mah a piece and like you I save the board and harvest the ic if needed for a project. Broken video game controllers and old drone batteries are good too. I fix that stuff for friends though so they give me that stuff. Ralph should solar panel his roof. He strikes me as the type who doesn't swing a hammer though lol
@RalphBacon
@RalphBacon Рік тому
@Joey you would be wrong there, DIY is my next favourite pastime! From installing my own central heating (apart from the actual boiler [furnace] which we are not legally allowed to touch) I do all my own DIY.
@jstro-hobbytech
@jstro-hobbytech Рік тому
@@RalphBacon I know that ya nut hahaha I was kidding to get a rise outta ya my friend. You know I enjoy tormenting you. I'm told I do it to people I like, a trait inherited from my father I'm told haha.
@jstro-hobbytech
@jstro-hobbytech Рік тому
@@RalphBacon my last house I added a few hundred pounds of weight to with just nails. A nasty side effect of over investment. I did learn alot though
@RalphBacon
@RalphBacon 11 місяців тому
I'll consider myself tormented, Joey!
@lis6502
@lis6502 Рік тому
deep sleep and interrupt handling - will see if i was right ;d
@lis6502
@lis6502 Рік тому
whoa so no interrups, amazing!
@RalphBacon
@RalphBacon Рік тому
Well, the ESP32 device is brought out of Deep Sleep by an interrupt (GPIO pin going low) but that's probably not what you mean by "interrupt" here, right?
@lis6502
@lis6502 Рік тому
@@RalphBacon indeed, i was rather thinking about some hardware IRQ/NMI trigger which will awaken device out of deep sleep. That's why i watch wiser ones than myself - every time i'll learn something new by prooving myself wrong ;p
@mikepanchaud1
@mikepanchaud1 Рік тому
Why not have voice messages instead of bongs, e.g. saying "door open" or "close that door, were you born in a barn!" Possibilities are end less.
@RalphBacon
@RalphBacon Рік тому
Great idea. I can include those as part of the repertoire of sounds! Thanks, Mike.
@aloysiushettiarachchi4523
@aloysiushettiarachchi4523 11 місяців тому
So, the net result is the occupant will be exposed to WiFi smog and will develop unnecessary sicknesses. Covid was one such thing, Ralf.
@RalphBacon
@RalphBacon 11 місяців тому
So COVID was the result of Wi-Fi, and not a virus? Who would have thought 🤷‍♂️
#229 ESP32 - Saving Variables Across Deep Sleep
24:26
Ralph S Bacon
Переглядів 10 тис.
#118 ESP8266 Deep Sleep 💥 and Bare Bones ESP (easy)
34:18
Ralph S Bacon
Переглядів 28 тис.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 1,6 млн
#267 The Arduinite 3D experience - forget the printer, choose the CAD!
31:12
#BB12 Pointer vs References - and why you don't need 👉pointers in C++
31:46
#BB4 MOSFETs - From an Arduino Perspective
15:10
Ralph S Bacon
Переглядів 21 тис.
ESP32 C6 Review - RISC-V SoC with Thread & Zigbee Support!
19:12
Learn Embedded Systems
Переглядів 102 тис.
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
I built an SMT Hot Plate Machine | Assembly & Test | Elite Worm
12:59
Elite Worm
Переглядів 179 тис.
ESP32 Deep Sleep: Ultra-Low Power Coprocessor
15:27
atomic14
Переглядів 28 тис.
#260 ESP32 Web Pages PART 2 - adding a sensor value on the page & more!
20:22
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Переглядів 2,5 млн
#149 ESP32 Dual Core Programming + Speed 💨Test vs Arduino UNO (fast!)
31:18
НЕ ПОКУПАЙТЕ НОВЫЙ СМАРТФОН, ПОКА НЕ ВЫШЕЛ ЭТОТ [2024]
13:25
Thebox - о технике и гаджетах
Переглядів 69 тис.
10 regrets of experienced programmers
8:16
Fireship
Переглядів 630 тис.
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 254 тис.
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Переглядів 3,7 млн