The ForceTronics KZread Channel offers fun and easy to follow videos on electronic projects and tutorials, covering both hardware and software topics. The goal of each video is to create a foundation or jumping off point for the viewer to build on and innovate.
Access exclusive ForceTronics content: patreon.com/forcetronics
Interested in ForceTronics commercial design and manufacturing services: forcetronics.com
Пікірлер
Great series. I learned a lot from these videos. Already singed up for this channel and thumbs up. I would like to see a little bit more about ULP Coprocessor. Thanks
Thanks for the comment, I will note that for future content!
The video was well explained. However, I have a question. If we have uploaded our code and no longer need the USB connection to the computer, and at some point our device resets (either intentionally or unintentionally), IO2 has a low value, causing the ESP32 to enter boot mode, which we do not want. How can we resolve this issue?
Thanks for the comment and great question. To enter boot mode there are two pins you need to worry about IO2 and IO0. if only one of them is in boot mode then the ESP32 won't enter boot mode. The way I typically approach this is I allow my application to use IO2 as a GPIO pin but ensure the ESP32 can put it in the default state needed for programming. The IO0 pin is the one that you can't count on the ESP32 controlling for you so I leave that pin free for programming only. Hope this helps
Great walkthrough of the process as always Great project, and interesting as always Thanks for sharing your experiences with all of us 🙂
Glad you found it interesting, appreciate the comment
Get out of the ☁️, use local control lile Home Assistant + Esphome.
Great video mate thank you. One thing I failed to grasp is how to work out +RP and RCL+ resistor values needed for N Channel?🤯 I've designed a small circuit with 2x IRFP260N mosfet in parallel, I'll be operating the gate with arbitrary frequency generator to allow complete control of pulse frequency to experiment with electrolysis liberating gasses from water. Are there formulas for both resistor applications? I'm no electronic engineer but keen to learn what I need to know. Cheers mate 👍
Good question. Rp is fairly trivial and may not be needed. It's more of a safety thing because modern MOSFETs require so little current to turn on. Just use a resistor value of 10k and you'll be fine. RCL is a gate current limiting resistor and also may not be needed. It is there to ensure the gate capacitance doesn't cause inrush current that could damage the source. If you are not highly concerned with switching the MOSFET on and off at it's fastest rate then just use a resistor value around 300 to 1k ohms and you should be fine
Thank you so much for the great content.
Glad you enjoy it!
Quality content as usual... Should'nt the AGND and DGND be separated ?
Thanks for the comment. I thought I mentioned it in the video, but the DAC IC only has one common ground. When I dug deeper the data sheet explicitly said both the digital and analog supply can share the same ground. My guess is they have some type of filtering inside the chip but I don't know. Since the DAC is the only part in the circuit that uses the digital supply there is no need for a digital ground. Of course the design itself has a standard ground and an analog ground that has a single point connection.
@@ForceTronics Thanks ... Will be interesting to watch the subsequent parts and the final result...
Thank you Sir😊 LM317 is a linear voltage regulator. It has the advantages of low output noise and easy configuration.
Yes, you are right
Hi, I was looking for a method to drive a high current (1.5A) using a microcontroller and fortunately found this video. I still don't quite understand how transistor circuits work, for example if we lower the DAC output voltage which changes the current, the voltage on the sense resistor and load will go down but Vcc remains constant. I thought that many transistors have a fixed voltage drop between terminals but here it is variable, to act as a variable resistor? I hardly know where to begin to find the components I will need to make this circuit to my specifications.
Hey thanks for the comment. Look at a data sheet for a transistor and it should have some type of IV curve based on the gate control signal. In the case of a mosfet that gate control signal is voltage control. You'll see that they have a nonlinear region in that IV curve and that's the region it's being controlled in to act like a variable resistor. You can always set up a mosfet test circuit yourself too and observe this behavior with a power supply and a voltage to source to control it.
@@ForceTronicsThank you for your reply. If the op-amp feedback makes it so that the + and - terminals have the same voltage, won't that mean there is a negligible voltage on the gate and therefore only a small current?
R11 resistor provides 11mA given there is 0 voltage drop through the LED and the MOSFET. I am either missing something or there is no way you are getting more than 10mA through that LED. It's probably more like 6-8mA.
Thank you for sharing detailed explanation which is useful for DIY project, designing and debugging other electronic circuits.
Glad you found it helpful
Brilliant, been looking all over for help on adding USB programming like the dev boards have.
I'm glad you found it helpful!
I want it!!!
Спасибо
Добро пожаловать
From Barranquilla, Colombia. Congratulations, good and clear explain. Continue with all modules. Excuse me, I purpose an explain of IPM modules applied on inverter air conditioner. Differents models and one demostration to construct a test module bank for PCB in inverter systems. Thanks and excuse me sir.
Truly a masterpiece of a tutorial! Thank you for that! :D
Glad you enjoyed it!
`what exactly is the use of ADC in this ? Will it convert my temperature signal in to digital form ? But we need our signal in Analog form only Please clarify.
I am a little confused by your comment. All modern semiconductor devices or modern electronics use adcs to measure electrical phenomenon or sensors. Whether that's voltage current power light temperature. All the low level electronics or semiconductors are using adc to make those measurements. Then there's some algorithm or formula to convert that digital value or discrete integer into the measurement data that you're interested in. Whether that's voltage or temperature or current etc
For thermocouple temperature measurements a raw ADC value is typically converted to a voltage and that voltage can be either applied to a formula or a lookup table to get the temperature
Great tutorials. would the esp32 firebeetle be better to use for portable iot project using a battery? Could you do one using an external interrupt please
I'm not familiar with the ESP 32 fire beetle so I can't comment. I thought the video does an example with an external interrupt using a low logic signal for both light sleep and deep sleep. Did you mean some type of other external interrupt?
I hope you're doing well. As a developer interested in ESP32-related projects, I'm seeking guidance on how to program the ESP32 WROOM 32D using an ST-Link V2. Could you provide some insights into this matter? I would appreciate it if you could direct me to useful resources, relevant instructions, or any tips that could assist me along this path. Thank you very much,
Hello, I don't have any experience using a ST-Link programmer so I can't provide any guidance. If you're looking for an off the shelf programmer you could go with the ESP-Prog. It is low cost and easy to use
I've created a phone app that connects to a Bluetooth LE ESP32-S3 and power sensor. I'm using it to remotely monitor the voltage of my car battery via BLE connection. The ESP32-S3 and sensor are powered by the 12V car battery via an IC voltage regulator. I'd like to minimize the parasitic drain on the battery whenever I'm not monitoring the voltage (which would likely be for another 24 hours). Since the Bluetooth radio is turned off in both Light Sleep Mode and Deep Sleep Mode, I'm suspecting the only option I have is to set the respective sleep mode on a Timer. That would mean that whenever I scan for the ESP32-S3, I'd have to wait for the timing cycle in which the Bluetooth radio is turned on. Am I understanding this correctly? For this application, is there any way for me to remotely turn on the Bluetooth radio so that I could read the battery voltage for say 15 seconds and then return to sleep mode for the next 24 hours?
From my testing that seems like the only option with Bluetooth. Set a timer for one or two seconds to check for a pair and go back to sleep. As I mentioned in the video documentation is flaky. They reference a wakeup from Bluetooth MAC but provide no guidance on it. Timer wake-up should provide good power save. Check out power management API for more options
A very good explaination. Finally I'm clear with pull up and pull down resistor, thankyou sir.
Happy you found it useful!
No need for ESD diodes?(TVS)
If you have a PCB that has metal connectors that humans will touch TVS diodes are always a good idea. I don't always include them though on my hobby boards because of my 20 years of experience I've not seen much ESD damage
I have a video controller for my computer that,externally,looks like an XBox controller. During the game,(Halo CE for PC), when I press the button to start the elevator,the switch often times bounces and I have to hit the button a couple times until it settles and the elevator moves. Im thinking about using a ceramic 0.1 microF cap in line of the feed to increase the time on duration of the connection.Sound good?
That sounds like it might solve your issue. But I don't know how those buttons are implemented and the circuits they control so I can't say definitively if that will solve your problem
@@ForceTronics Thanks for your reply. If we both think it may (but neither are sure right now,) I think Ill take the shot ..give it a chance.😁👍
@@STEVE_C_1369 Let me know how it goes!
@@ForceTronics Will do.
Thank you. It was precise and helpful.
can i know the ic u used for the circuit?
The model numbers for the charging IC and the regulator IC are shown in the video during the schematic review
Great video. What power supply or instrument did you use to do the digitized current capture that you showed at the end of the video?
It is a modular power supply platform from Keysight Technologies and the mainframe is the N6705B DC power analyzer (I believe they are on the 'C' version now). The mainframe takes up to 4 power supply modules. The module I was using is the N6762A, which is one of their mid range performance modules. It is not cheap, but comes in handy!
The main reason you use a esp 32 or 8266 is for connectivity ...and to my knowledge unfortunately you cant have the radio on and go to sleep , and you cant wakeup from receiving a bluetooth signal or wifi packet .... The esp is nice but its useless if you need to activate the radio and your on battery .... If you have any idea how to sleep and wakeup on receiving a bluetooth or wifi packet plz address it in the second video
You are correct and thanks for the comment. It is not really just an ESP32, but a problem with wireless connections in general. To maintain a wireless connection you need to transmit data wirelessly, which is a power hungry operation. Also you need to pre and post process data so you need some type of CPU involved. I am not a bluetooth standard expert, but you can sleep a bluetooth device and wake every couple of seconds to check for a device that is trying to pair. And if there is no device you can go back to sleep and if there is you stay awake until the bluetooth communication is complete. My application that I am planning is for WiFi to send and read data from the cloud, which doesn't require a constant connection. My device will sleep for some amount of time, wake up, and connect to the WiFi. From there it will send sensor data and then read any settings or state change information from the cloud. Take the appropriate actions and go back to sleep. The amount of time the device sleeps is just based on how real time you want the data or actions it performs to happen. But of course there are applications that do require a constant connection. I will show a WiFi example in part two but it is the wake up connect and go back to sleep approach.
Thanks for posting, love the vid
What a great explanation! Thanks for sharing!
Glad you enjoyed it, thanks for the comment
Could you explain why do you need R14? (Parallel with the zener)
The purpose of r14 is to pull down the USB power bus once power is removed from it. There are some caps there that can store some energy after power is removed. R14 just helps bleed them off quickly. Put it there to be safe, may not be needed
I have tried everything, I'm working on a PS2 and I bridged a couple pins, I have used a lot of flux, tried wicking, tried drag soldering but this bridge just will not go away
That's a bummer, is it just a hard-to-reach spot where you're not getting the heat on it? Not sure if you have access to a heat air gun that can melt solder
@@ForceTronics I do, have tried that as well, there is literally no reason as to why these pins wont unbridge I dont want to use any more wick as to not wear down the enamel on the traces leading to the pins.
The series is brilliant!! Thanks for sharing, I have a doubt about the max sample rate calculations. In the atmega328p, the total conversion time is 13 cycles. In the video, we take the clock cycle to be (3.73 usec/1.5). However, the datasheet mentions the input clock frequency to ADC is between 50 to 200kHz. So for 200kHz, the clock pulse should be 1/f which is 5 usec correct? So why do we consider 3.73 i.e. the multiplicative factor of the rc constant and the resolution as the clock cycle over the clock frequency of the ADC i.e. 200kHz? Thanks, Om
For what reason do you use an arduino here? if all you need are 5 resistors, 1 potentiometer, and one Zener diode, or tl431
Good suggestion if you are trying to recreate an eload from the 1980s. But if you want to create a modern eload that supports features such as remote control or dynamic load profiles then a programmable DAC approach might be worth trying
So not what the body diode is for.
Fantastic video - brilliantly explained and perfect for someone like me with limited experience. Not only did I get my first ever ESP32 working with the TFT screen (I'd not used either before) but it really helped me gain a better base understanding in a number of areas - I learnt loads that will help with other projects too. Thanks!
I am so glad you found it useful!
Would the transistor level shifting design work efficiently to shift a signal line from 3.3v to 5v for an adressable LED strip like the WS2812b? Just making sure.
Yes and in fact I've used them to drive those LEDs. Those LEDs have a high impedance input and then they amplify the signal and send it to the next LED so you're really just driving One LED. The way to know if the level shifter is going to work on anything is to understand what it's input impedance is. If you have a 1 km resistor as your pull-up for the level shifter and the voltage is 5 volts that means you have about 5 milliamps to drive whatever load you're connected to
Hi man, thanks for another great tutorial! Do you also know is there any way to display image send over serial communication raspberry to esp/tft?
Glad you enjoyed the video. Any file is just a collection of digital bits formatted a certain to create a certain type of file, such as a CSV or PNG file, so you can certainly read a file, transfer it over a digital communication link, and reconstruct it in memory on the other side. This is not something I have done so I don't have a recipe for you. But you probably want to look into the file structure of an image and look at existing software libraries that handle files or file systems. For instance Arduino has the "SD" library that allows you to write and read files over SPI communication to an SD card (library reference: www.arduino.cc/reference/en/libraries/sd/)
@@ForceTronics yes i know SD library but i need raspberry to write it and esp32 to read it. This is where i stucked 😐
@@thenextproblem8001 The point of me mentioning the SD library or a similar file handling library was you could study the code from a library that handles files over digital communication and possibly leverage and modify that code to fit your need.
@@ForceTronics so i need to send the data over serial from raspberry to ESP. ESP reads it and save it to SD. Then i will call it in the function right?
Hello, how i can contact you ? Can i have your email please?
Great walk-through. Just to be clear, the display itself must be a LCD display, hence the LED backlight. Looking forward to seeing the follow-up video. Thanks for sharing your experiences with all of us 🙂
Thanks for the comment. The display that I used in the demo was a TFT LCD display that had "LED backlight." In the video I just referred to it as a "TFT Display." Are you saying that if a display has LED backlighting it must be LCD? I was making the assumption (maybe incorrectly) that any display technology could have LED backlighting.
Thanks, this really helped me configure the User_Setup.h file
Great, glad it was helpful
Thankyou for amazing tutorial for colour display , I want to open .h file of Arduino Library can you please explain how yo open and see all function definition codes
Glad you enjoyed the tutorial. There are a lot of ways to open and view a .h or .cpp file. They are in a standard ASCII format so you can open them with any text editor, such as Windows note pad (just right click and select open with and navigate to note pad). You can also use free code editors like Notepad++ (notepad-plus-plus.org/downloads/). You could also move the file into the same folder as an Arduino sketch and open that sketch and the .h file will show up in a separate tab in the sketch. But if you do that remember that Arduino will compile that file as part of your sketch. Hope this helps.
money guns hoes 🤣🤣
You have one of the best electronics series on YT... hope to see more content
Glad you found it useful, should have a new video out in a week or less
Is there an IC that will automatically send binary to the address lines of a Mux/Demux causing it to change without having to press analog switches?
Yes any microcontroller or microprocessor properly programmed can be used to control a mux or demux
P R O M O S M
If your implying I use any type of paid services to boost my views or likes. You are mistaken, I am way too cheap for that. All organic! And if you didn't care for me video content you are in the minority so it is probably a you problem 😋
As far as the mosfets - you have to use the type for digital circuits
These two videos were extremely helpful! Would still love to learn about oversampling.
Awesome vid. Wouldnt have of 255 bunary be 127 even. Since 0 is whwre it really starts it has an offset if one conpared to hiw we tging if numbers. So it should be 256/2 = 128 then minus the 1 offset because 0 is a value in code even though in life we see 0 as absense of value.
Yes you are correct, great catch!
@@ForceTronics I have made that one off error sooooo many times. I am not sure I will ever stop making the error completly LOL.
Ummmm. Something is seriously wrong with this design. If CON1 is high. 5V on the gate, then VCC will now appear on the PH1 net and thus turning off the FET, then turning on. While I don't know what the equilibrium would be, I imagine you will get some oscillation
@ForceTronics Will there be ever part 3? Or was it removed from your channel?? Great video tho