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?
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.
@@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.
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.
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.
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.
@@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?
Bro I fricken love that intro 😂😂
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
Yow great job bro! What will be the code if I want to use EMG Sensor and HHO Reactor instead of air compressor? Thanks!
can you give the full list of components sir?
Weird that your aircrompresser didn't come with it in stock, mine sure did, if it's empty it refills itself
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?
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.
@@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.
That sounds like a fine plan. They make solenoid valves that would be perfect for that.
@@BenjaminMarshallScienceMan Yea i know those. I'll try. Thanks again. Nice content btw. Have a nice day.
Hi sir can i know how to change coding for the 150psi sensor ? Because my sensor not working on this coding
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.
@@BenjaminMarshallScienceMan tq sir ! 👍🏻
Good. But show the detail video . And explain the Arduino code...
Sir please give me, Pressure sensor model?
LEPAZA60120
MUITO OBRIGADO POR COMPARTILHAR GANHOU MAIS UM INSCRITO
Sir can i know what the function of bypass mode because i a little bit not understand for the bypass mode ?
It just allows you to manually control the compressor.
@@BenjaminMarshallScienceMan sir can i know what relay did u use ac or dc ?
I used a 12VDC 30A relay. So 12V is used to flip the relay, and connect 240VAC to the compressor.
@@BenjaminMarshallScienceMan so sir how about code #define WDT_active A7 for what function ?
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.
what is WDT_Active A7 for?
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.
@@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?
Sure! If you need any help with anything, let me know.