Automating my air compressor with Arduino!

Sdílet
Vložit
  • čas přidán 2. 02. 2021
  • Let me know what you want to see next!
    Schematic:
    i.imgur.com/7ZATpv7.png
    Code:
    drive.google.com/file/d/1fwcn...
  • Věda a technologie

Komentáře • 33

  • @Teddy_Morrison
    @Teddy_Morrison Před 3 lety +2

    Bro I fricken love that intro 😂😂

  • @funone8716
    @funone8716 Před rokem +1

    Sure would be nice to have a display with 1/2" or even 3/4" high digits so it's visible in an industrial setting

  • @perona.christianf.6293

    Yow great job bro! What will be the code if I want to use EMG Sensor and HHO Reactor instead of air compressor? Thanks!

  • @user-vz3yb2wi5p
    @user-vz3yb2wi5p Před rokem

    can you give the full list of components sir?

  • @JanoschNr1
    @JanoschNr1 Před 9 měsíci

    Weird that your aircrompresser didn't come with it in stock, mine sure did, if it's empty it refills itself

  • @yusufemironan3442
    @yusufemironan3442 Před 3 lety

    Very well mate. I want to make a pneumatic cylinder that's force can be controlled with electronics. i think that i can make it with air pressure controllers. Do u think that's possible or not?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 3 lety

      I feel like that is definitely possible. Though if you care about the cylinder's position, you would need some sort of sensor to measure how extended it is.

    • @yusufemironan3442
      @yusufemironan3442 Před 3 lety

      @@BenjaminMarshallScienceMan thanks for your answer. I don't think that i'll need position control. I'm thinking about using valves to adjust air pressure. Using data from pressure sensor.

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 3 lety

      That sounds like a fine plan. They make solenoid valves that would be perfect for that.

    • @yusufemironan3442
      @yusufemironan3442 Před 3 lety

      @@BenjaminMarshallScienceMan Yea i know those. I'll try. Thanks again. Nice content btw. Have a nice day.

  • @aliasyraf7721
    @aliasyraf7721 Před 2 lety

    Hi sir can i know how to change coding for the 150psi sensor ? Because my sensor not working on this coding

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety +1

      If I'm not mistaken, you should just have to make the following changes.
      Line 26: #define MaxPressure 150
      Line 66: Pressure = map(analogRead(ReadPressure), 101, 921, 0, 150);
      Line 67: Setting = 5 * (map(analogRead(ReadSetting), 0, 1023, 30, 0));
      This is assuming you used the same type of sensor as me, just with a higher max pressure.
      If this doesn't work for you, just hop in my discord linked on my channel and we can talk about it.

    • @aliasyraf7721
      @aliasyraf7721 Před 2 lety

      @@BenjaminMarshallScienceMan tq sir ! 👍🏻

  • @MrDhilishkumar
    @MrDhilishkumar Před 2 lety +1

    Good. But show the detail video . And explain the Arduino code...

  • @technicalsidhu8402
    @technicalsidhu8402 Před 3 lety

    Sir please give me, Pressure sensor model?

  • @cilsoricardosimoes7026

    MUITO OBRIGADO POR COMPARTILHAR GANHOU MAIS UM INSCRITO

  • @aliasyraf7721
    @aliasyraf7721 Před 2 lety

    Sir can i know what the function of bypass mode because i a little bit not understand for the bypass mode ?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety +2

      It just allows you to manually control the compressor.

    • @aliasyraf7721
      @aliasyraf7721 Před 2 lety

      @@BenjaminMarshallScienceMan sir can i know what relay did u use ac or dc ?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety +2

      I used a 12VDC 30A relay. So 12V is used to flip the relay, and connect 240VAC to the compressor.

    • @mohammadjohan9346
      @mohammadjohan9346 Před 2 lety

      @@BenjaminMarshallScienceMan so sir how about code #define WDT_active A7 for what function ?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety +2

      I kept having issues with the electrical noise of the relay freezing the arduino, so it has a hardware watchdog timer to reset itself if that happens.
      'WDT_Active' is a pin used to determine if the watchdog timer is enabled:
      if(analogRead(WDT_Active) == 1023){
      wdt_enable(WDTO_1S);
      }
      So if the pin defined as 'WDT_Active' (in this case pin A7) is pulled HIGH, then the arduino will enable the watchdog timer.
      This is a way of ensuring that the Arduino doesn't get stuck in an endless cycle of resetting.

  • @thomasgartig6945
    @thomasgartig6945 Před 2 lety

    what is WDT_Active A7 for?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety +1

      I kept having issues with the noise of the relay firing causing my arduino to freeze, so I'm using the watch dog timer integrated into the arduino's hardware to reset the arduino if too much time has elapsed. In this case the watchdog timer needs to be reset atleast every second or it will trigger an arduino reset, you can see that 'void loop()' starts with "wdt_reset();". But I also wanted the ability to turn off the watch dog timer in case the arduino got stuck in an infinite reset loop.
      "#define WDT_Active A7" is just me telling the compiler to switch 'WDT_Active' with pin 'A7' anywhere it finds it in the code. This is so I don't have to remember which pin it is.
      In the 'void setup()' function, the arduino checks if pin 'A7' is pulled high, and if it is then it enables the watch dog timer. The end result is that all I need to do to disable the timer is disconnect pin 'A7' from 5V.
      I hope this was helpful.

    • @thomasgartig6945
      @thomasgartig6945 Před 2 lety

      @@BenjaminMarshallScienceMan thank you for answer for your great project
      i would like to customize your code with a rotary encoder and a stored setpoint. if you like, then we stay in contact?

    • @BenjaminMarshallScienceMan
      @BenjaminMarshallScienceMan  Před 2 lety

      Sure! If you need any help with anything, let me know.