Having difficulty with Schematics and code to control an air pump and solenoid using ESP32 board.
This is for a door control system to activate a door threshold seal (like a cycle innertube) .
In its normal state (DOOR CLOSED) The IR sensor located in the door rebate (SENSOR 1)detects the door is closed . Once (SENSOR 1) is activated (door closed) The pump starts .The pressure and maintainance of the pressure inside the seal is controlled solely by a differential pressure switch. This controls the pressure in the seal (say 5PSI) . Once set pressure achieved Pressure switch will turn off pump. If pressure falls to say 3PSI pump will reactivate (no imput required by ESP32) .
IF : say a hand reaches for the door handle either (IR SENSOR 2) or (IR SENSOR 3) will detect.
In this state a signal must be sent to the NC solenoid valve which will open and remain open until the door is closed again and (SENSOR 1) detects.
When door is open a green LED will illuminate for 30 seconds
When closed a red Led will illuminate for 30 seconds
The Voltage of the components required are 3.5 V DC.
Does anyone have any suggestions for schematics and code for ESP32
All complex systems as you describe, ALWAYS begin with testing and understanding the operation of EACH component part by itself. Have you done this? You must write a separate program to test each component.
Only when done can you design the logic for your complex system and only then can you design the schematic and wiring and power for the system.
Do you have datasheets for all of the components you are using? Please post then here.
There are many ESP32 boards, which one are you using?
Why 3.5V? I suggest using a standard voltage like 3.3V or 5V.
I think a great starting place for you is the Arduino Cookbook. Skim it cover to cover and stop and read any section that is applicable to your project. For example you will find sections that show an IR sensors, build that and be sure you understand how it works before proceeding. Try do it it with different pins. Also watching a few tutorials on line will help. We are not a free design service but when you show some effort such as your schematic and code we are willing to help.
All the components have been used together in a simple circuit. this works fine together. Now I am looking at a more upto date and expandable method.
Indeed , I am using 3.3 (my mistake) . The components I am using and testing with a ESP Vroom board are readily available on Aliexpress. A micro perestaltic pump , MH IR flying fish sensors and a 6 pin board mounted pressure swith (although not obviously board mounted. I dont have the actual data sheets but no doubt I could get them
What are the pump's voltage and current requirements? The solenoid valve's? When the IR sensor is activated, does the output signal go HIGH or LOW?
Output LOW on activation , The pump and solenoid can be activated off the board no seperate relay req.
Might be a good idea otherwise we have no idea how to connect or control them or what the inputs and outputs might be.
What are the pump's voltage and current requirements? The solenoid valve's?
Post the web pages where you bought these.
Hi JCA 34F The pumps were perestaltic pumps of 3.4 V DC with managable current requirements so I was able to get someone to write code (beyond me) to control the circuitry fine . so all is working well. I would like to thank all contributers for their valuable input to my problem
Glad you solved your problem.
Have a nice day
its ok Jim I have another problem now on another project. Any good on how to playback Audio files at say 5 different speeds (pitch and tempo alterations acceptable) ? Just a thought
You should start a new topic.
People following this post may not be experts in that area
I have edited the title of this topic, to put a space between 2 and IR.
2IR looked strange.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.