Jump to content
Electronics-Lab.com Community

HarryA

Members
  • Posts

    466
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by HarryA

  1. There is some good information on using Arduino boards and Bluetooth in the Arduino Cookbook. It can be download free from;

    Cookbook  One can use a Bluetooth enabled  PC for testing I believe. The pairing address from the table saw would be needed I gather.

    The Arduino board to the vacuum cleaner can be done with a simple transistor circuit driving a relay as an on/off switch.

    If you need further help do not be afraid to ask.

     

  2. Try this. On your schematic window click on a blank area. Select Edit Simulation CMD then in the popup dialog box select AC Analysis. Select Linear or Decade(?) . Then I used: 500, 30k, 50k. Next click on the signal symbol and set then AC voltage to some value.  On running the simulation I got a peak at 39.36k.

    Your schematic is further along then mine so you should get different results. I used the 53000u for the capacitor.

    This guy uses a different approach but I can not follow him

    Ltspice video

    waveform10-2024B.png.48a3cd0267016eeea4b0731a7b5aa9d6.png

  3. I think the post is worth reading. So lets try Google translator:

    First, microcontroller I/O ports have limited load capability, typically allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly.First, microcontroller I/O ports have limited load capability, typically allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly.

     

    https://youtu.be/pbz5aMdxSEU First, microcontroller I/O ports have limited load capability, usually allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly. image.png.4e399c62899257b83f0e2103daa204e1.png Let's briefly compare the differences in driving BJTs and MOSFETs. Bipolar Junction Transistor (BJT): BJTs are current-controlled devices. As long as the base-emitter voltage (Ube) exceeds the threshold voltage (usually 0.7V), the transistor will turn on. For BJTs, 3.3V is definitely greater than Ube, and the base current (Ib) can be calculated as \( Ib = \frac{(VO - 0.7V)}{R2} \). By connecting an appropriate resistor in series with the base, the BJT can be operated in saturation. Microcontrollers are usually targeted for low power consumption, so the supply voltage is usually low, around 3.3V.

    MOSFET:

    MOSFET is a voltage controlled device. The gate-source voltage (Vgs) must exceed the threshold voltage to turn on, which is generally around 3-5V, and the saturation drive voltage is 6-8V, which is higher than the 3.3V of the I/O port. If driven with 3.3V, the MOSFET may not be fully turned on or operate in a partially turned-on state. In this state, the MOSFET has a high internal resistance, which limits its ability to handle high current loads, resulting in increased power dissipation and potential damage.

    Therefore, it is usually better to use a microcontroller to control the BJT, which in turn drives the MOSFET. Why use a BJT to drive a MOSFET? This is because BJTs have lower load capabilities compared to MOSFETs, making them suitable for control applications. Can MOSFETs be driven directly? While it is possible with some low power MOSFETs, it is generally not recommended for larger loads.
     
     
     

     

     

     
     
     
     
     
     
  4. The results from the LTspice simulation. Beware that sometimes the simulators lie.

    In the first plots the the red line is the voltage across capacitor c1. The green line is the voltage at the mosfet drain. The voltages peaks at 1.34 kv in 24 seconds. The green plot is solid as it is maded
    up of pulses. The breaks in the red plot are do to the scaling in the Gimp image processing software.

    In the next three plots; the white plot is the input to the mosfet. 6v peak, 50hz, 20ms high and 20 ms low. The red plot is the current from the mosfet; at 0.905 amperes. While the green plot is the current through one of the coils at 0.301 amperes.

    Attach is the circuit as used in the simulation. Using components close to the original circuit that the simulator has.

    Outputs.png.381465ac9a8c1f414039798b30d8e15b.png

     

    3plotsUntitled.png.e708f69bb7147acb79c927e67c47822d.png

     

    schematic.png.728507ef9d54a3975d3d235d6f2813c1.png

  5. I use the Arduino UNO everyday. It is well supported on the internet at various forums. It is somewhat dated but a good  beginners microcomputer. You can download the Arduino IDE 2.0 (integrated development environment ) from arduino.cc 

    The Arduino Cookbook in pdf format is available for download here: Arduino Cookbook

    If you get an UNO also get the short blue cable; long cables do not often work well.

  6. By positive flank you mean on the rising edge of the pulse or the pulse top? What is the nature of the pulse train? Voltage and pulse rates.

    "Need a circuit that can trigger a relay when movement or stop is detected on a axle." How does that relate to the pulse from the timer being on only 0.5 secs? Does that mean that if the pulse train is off for more than 0.5 seconds (axes stopped turning) the  timer drops out resetting the relay?

    A retriggerable timer would stay on while it is  constantly being  reset else if not reset after 0.5 secs its output would go low.

    .

    For TTL logics datablade books see ebay.com

    Or even better  Forrest Mims's   book "Engineer's Note Book !!  - A Handbook of Integrated Circuits   Applications" is available online in pdf  from:       IC Book      

     Dated but still the best book ever on ICs. The book has an NE555 circuit for missing pulse detection; which maybe what you need.     

     

     

     

     

  7. I am not sure what you need but here is code that fades a LED up and down. It does not block your code by using Delay(), You can paste it into your Loop{} or call it as a function. You may wish to play with the int period value and the +/-5 value. Do note which i/o pins you can use with this PWM code.

    //use pins 3, 5, 6, 9, 10, and 11 on the UNO
    const int ledPin = 3; //whichevery pin you choose Do not forget the resistor!
    int period =   10; //how fast to fade the LED:100 = 1/10 sec. etc
    unsigned long time_now = 0; //have not read the time yet
    int brightness = 0;  //start with LED off
    boolean IncreaseBrightness = true; //start with increasing brightness
    
     void setup() 
     {
     
      pinMode(ledPin, OUTPUT);
      Serial.begin(9600); //you may have this; used here for testing
     }
    
    void loop()
     {
      // non-blocking delay 
      if(millis() > time_now + period)  //get current time and compare
      {
         time_now = millis(); //for next time
        //fade LED up or down
        if(IncreaseBrightness) 
        {
          analogWrite(ledPin, brightness +=5 );
          if(brightness >= 255) IncreaseBrightness = false; //max ouput to LED = 255
    	  }
        else   //must be decreasing brightness
        {
           analogWrite(ledPin, brightness -=5 );
    	     if(brightness <= 0 ) IncreaseBrightness = true; //min ouput to LED = 0
        }
       }
        //some code...testing displays values.....
        Serial.print("brightness "); Serial.println(brightness);
     }  

     

     

  8. What you need is a notch filter to remove only a narrow band of unwanted  frequencies . There are pedal notch filters on the market but they are pricey. Search on "guitar notch filter pedal".

    Also see::  https://lambdageeks.com/notch-filter/#:~:text=A notch filter%2C also known as a frequency,while allowing other frequencies to pass through unaffected.

    About half way down the page he covers guitar pedals.

    If you wish to make one perhaps I could help you with it.

     

×
  • Create New...