Jump to content
Electronics-Lab.com Community

Leaderboard

Popular Content

Showing content with the highest reputation since 01/25/2021 in Posts

  1. I'm looking forward to the next post)Keep it up!
    1 point
  2. what else is there?
    1 point
  3. Kevoh

    LATCH CIRCUIT

    I need to build a latch circuit with one tactile switch and mosfets. Any idea how to go about it Will help.
    1 point
  4. Introduction Arduino IDE is a convenient tool to write your code and upload to microcontrollers. However, it doesn’t come with debugger function, which means the only way to debug our program is through using debug message through standard output, in this case, Serial Monitor. Debug message is handy and it helps to print out the information the registers holds at a specific time, but once you have done debugging and your program is ready to go, we often have to delete/comment out those debug message code manually, in a big project, this could be problematic as there are just too manny of them. Today, I am going to show you an easy method to turn on / off debug message with only a few lines of code. Method Take a look of the following C code, //#define __DEBUG__ #ifdef __DEBUG__ #define DEBUG(...) printf(__VA_ARGS__) #else #define DEBUG(...) #endif Since all Ameba microcontroller supports printf(), we can re-define printf() to a preprocessor function, in this case, I name it DEBUG(). Whenever you want to print out the debug message, instead of Serial.print() or printf(), you should try using DEBUG() instead, it works just like the previous two, but can be easily enabled or disabled by uncomment //#define __DEBUG__ or just leave the comment syntax there. Let’s look at an example Example code 1 This is a simple code that only print out “Debug msg 1” and “Debug msg 2” alternatively with a 1 second delay in between. Screenshot 2021-01-22 1639441919×1079 173 KB Note that the first line of the code is uncommented, and we are seeing the debug messages actually got printed out using the DEBUG() function. Example code 2 Screenshot 2021-01-22 1641171920×1077 127 KB Note that this is the same code except I keep the first line commented out, and as a result, no debug messages got print out at all. It works! Conclusion All you need to do is to copy the few lines of code from above into the top of your arduino sketch and you may name your custom debug function anything you like and it will work like a charm. Turn on / off is just to keep / remove the // at the first line, very convenient. Hope you like this content, stay healthy and happy coding~
    1 point
  5. This site gives the MPXV7002DPT1 as an alternative to the MPXV7002DP see: https://www.apogeeweb.net/circuitry/mpxv7002dp-transducer-datasheet-features-pinout.html#product-overview This one has a list of exact alternatives also: https://www.newark.com/nxp/mpxv7002dpt1/pressure-sensor-2-to-2kpa-sop/dp/28X3717
    1 point
  6. But even if we disable debug, it will call print method and do not print anything. I mean we should make it something like #ifdef DEBUG Serial.print("\n debug controlled print"); #endif Here when we disable macro, its like code is not written for compiler, code will be removed in macro processing itself.
    1 point
  7. It's a great idea to use the battery for a long period of time. Thank you s much for this thread here.
    1 point
  8. Hi dear community, i have a problem to install p-spice. i downloaded the file frome here "p-spice 9.1 student version" . i extraced 18 files in c:\desktop. following the manuals i have to double click setup.exe with admin rights. thats what i did but window doesn t appear. i looked in taskmanger, the setup.exe is running but like i said the window doesen t appear. i have really no idea what i am doing wrong system is Vista need help thankfully elu
    1 point
  9. HarryA

    MOD-23 counter

    The circuit below is similar to what you want to do. Using a 4 input NAND gate you can connect it to the 4 outputs that represent the valve you want. Your NAND gate output would connect to the clr line.
    1 point
  10. Materials • Ameba D [RTL8722 CSM/DM] x 1 • Adafruit LSM9DS1 accelerometer • LED x 2 Example Procedure Connect the accelerometer and LEDs to the RTL8722 board following the diagram. Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at ambiot/ambd_arduino. Follow the instructions at Arduino - Libraries to install it. Ensure that the patch files found at ambiot/ambd_arduino are also installed. In the Arduino IDE library manager, install the Arduino_LSM9DS1 library. This example has been tested with version 1.1.0 of the LSM9DS1 library. Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “magic_wand”. Upload the code and press the reset button on Ameba once the upload is finished. Holding the accelerometer steady, with the positive x-axis pointing to the right and the positive z-axis pointing upwards, move it following the shapes as shown, moving it in a smooth motion over 1 to 2 seconds, avoiding any sharp movements. If the movement is recognised by the Tensorflow Lite model, you should see the same shape output to the Arduino serial monitor. Different LEDs will light up corresponding to different recognized gestures. Note that the wing shape is easy to achieve, while the slope and ring shapes tend to be harder to get right. Find out more at: https://www.amebaiot.com/en/amebad-micropython-periodical-timer/ Join in the community discussions at: https://www.facebook.com/groups/amebaioten https://forum.amebaiot.com/ Purchase links for the various Realtek development boards can be found at: https://www.amebaiot.com/en/where-to-buy-link/
    1 point
  11. There is a library file ( GOLANG library for SPI ) here that maybe helpful? https://github.com/stamp/CS5484 I have problems finding the page that has the {code} button to download the file; you may have to dork around with the URL a bit.
    1 point
  12. If it is a 120 volt Cuisinart blender then you can get one here: They ship world wide. Else search for "1 uf 250vac capacitor" https://www.ebay.com/itm/281873849657 That is a horrible url !
    1 point
  13. 1 point
  14. my room the temperature varies 31-33º the humidity varies 55-70% this epcos information valid for other electrolytic capacitor manufacturers? in the 1990s were electrolytic capacitors or another type of capacitor used?
    1 point
  15. uziao

    Rheostat power rating

    Hello friends. Very interesting topic you have here. You can model the electrodes underwater as an capacitor in parallel with a resistor (a leaky capacitor). Maybe this is why he used a bifilar coil... Bifilar coils are self resonant coils because of their capacitance. You can see this article here: https://sci-hub.st/https://doi.org/10.1002/cta.2830 The autor proposed a resonant tank circuit without the capacitor, using only the capacitance of the bifilar coil. If the electrodes underwater behave like a true capacitor, he wouldnt need 2 coils... Only one coil would do the job... Maybe the trick lies in the coils only...
    1 point
  16. An H-Bridge (Full-Bridge) driver is quite popular in driving loads such as brushed DC motors and it is widely used in robotics and industry. The main advantages of using an H-Bridge driver are: high efficiency, rotation direction change, and braking the motor. In this article/video, I have introduced a complete H-Bridge DC motor driver using four IR3205 power MOSFETs and two IR2104 MOSFET drivers. Theoretically, the above-mentioned MOSFET can handle currents up to 80A, however, in practice we can expect to get currents up to 40A if the MOSFET temperature is kept as low as possible, using a big heatsink or even a fan. References Article: https://www.pcbway.com/blog/technology/Powerful_H_Bridge_DC_Motor_Driver.html [1]: IRF3205 Datasheet: http://www.irf.com/product-info/datasheets/data/irf3205.pdf [2]: IR2104 Datasheet: https://www.infineon.com/dgdl/Infineon-IR2104-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c7c1c31671 [3]: 1N5819 Datasheet: https://www.diodes.com/assets/Datasheets/ds23001.pdf [4]: IR2104 Schematic Symbol, PCB Footprint, 3D Model: https://componentsearchengine.com/part-view/IR2104PBF/Infineon [5]: IRF3205 Schematic Symbol, PCB Footprint, 3D Model: https://componentsearchengine.com/part-view/IRF3205ZPBF/Infineon [6]: CAD Plugins: https://www.samacsys.com/library-loader-help
    1 point
  17. 1 point
  18. repairman2be

    0-30V 0-3A Latest Data

    Hi all, Finally after some months have gone by, my build of the Power Supply is done. I have used liquibyte schematic Rev. 8 and had made the cirquit board according to the Gerber.zip file he posted here: 0-30V Stabilized Power Supply Page 88 posted October 6, 2014 "http://electronics-lab.com/community/index.php?/topic/29563-0-30v-stabilized-power-supply/&page=88" I left out D10 and R15 as per his description. I have plenty of boards leftover if someone has a need for it. There was only one mistake liquibyte made which have outlined in one of the pictures uploaded here. I was fortunate enough to get a big case with a Toroidal transformer from the scrapyard. Also many parts are recycled from various sources. Regards, William
    1 point
  19. Hero999

    lm7805 question

    All that means is that if the capacitor is too small, it won't be large enough to damp the oscillations but if it's a single, large value capacitor it won't be good either. Higher value capacitors tend to have poor high frequency characteristics and become inductive past the resonant frequency, the higher the value, the lower the resonant frequency. Rather than using a single, high value capacitor, it's better to use a large capacitor and lower value capacitor in parallel with one another. The type of capacitor is also important; for example tantalum is better than electrolytic. I'd recommend a 1uF tantalum in parallel with a 100nF and 10nF ceramic capacitor on both the input and output. If you don't have a 1uf tantalum, go with 22uF electrolytic.
    1 point
  20. Transistors are all different. There are good ones and there are poor ones. The worst (but still passing) 2N3055 transistor has a collector to emitter leakage current of 0.7mA but a good one has much less. The collector-base leakage current is much less (a maximum of only 3.5uA at 25 degrees C) then it is amplified maybe 200 times by the current gain of the transistor so the 1k resistor from base to emitter completely kills the leakage current. R16 in our project is the "R" for the output transistors so they do not have leakage current. If R16 is missing then the output transistors will amplify their collector-base leakage current which will cause them to turn on.
    1 point
  21. The collector-base junction of a transistor has a small leakage current that increases when the temperature increases. The current gain of a transistor amplifies the resulting base current which turns on the transistor. R16 shunts the collector-base leakage current away from the base. Of course not, the collector-base leakage current causes Q4 to turn on. Leakage current and dielectric absorption in C7 causes the output voltage to rise when the load current is zero or is low. The datasheet for a 2N3055 transistor shows that its maximum collector to emitter leakage current is 0.7mA when it has a Vce of 30V, it is at 25 degrees C and it has no base current with its base not connected.
    1 point
×
  • Create New...