Pins - DeeEmm/DIY-Flow-Bench GitHub Wiki
I/O configuration can be set on the pins page of the GUI. This allows custom I/O configuration and non-standard ESP32 boards to be used. Pins can be set by manually typing the value into the input box or by using the +/- buttons.
By default all of the pins are set to a value of '-1'. Setting the value to '-1' will disable the function.
The image above shows the default settings for the DIYFB shield
A description of each pin function is given below
Vacuum Control
- VAC Speed Pin: 0-5v output for VFD control
- VAC Bleed Valve Pin: 0-5V output for Bleed valve control
- VAC Bank 1 Pin: Relay output to control Vacuum motor bank 1
- VAC Bank 2 Pin: Relay output to control Vacuum motor bank 2
- VAC Bank 3 Pin: Relay output to control Vacuum motor bank 3
Stepper Motors
- AVO Step Pin: Auto valve opener Step control
- AVO Direction Pin: Auto valve opener Direction control
- Flow Valve Step Pin: Flow Valve Step control
- Flow Valve Direction Pin: Flow Valve Direction control
Power and Sensors
- 3.3V Reference Pin: Potential divider input for 3.3v buck output
- 5V Reference Pin: Potential divider input for 5v buck output
- Speed Sensor Pin: Input for turbine speed
Encoders & BCD
- Swirl Encoder A Pin: Rotary encode phase A
- Swirl Encoder B Pin: Rotary encode phase B
- Orifice BCD Bit 1: Binary coded decimal for selected flow orifice
- Orifice BCD Bit 2: Binary coded decimal for selected flow orifice
- Orifice BCD Bit 3: Binary coded decimal for selected flow orifice
Sensor Inputs
Pin designation for Sensor inputs. Note, if using the ADC and BME devices, there will be no need for discrete pin assignment.
- MAF Pin: Disabled
- Pressure Reference Pin: Disabled
- Pressure Differential Pin: Disabled
- Pitot Pin: Disabled
- Temperature Pin: Disabled
- Reference Barometer Pin: Disabled
- Humidity Pin: Disabled
Communication
- Serial0 TX Pin:
- Serial0 RX Pin:
- Serial2 TX Pin:
- Serial2 RX Pin:
- I2C SDA Pin:
- I2C SCL Pin:
SD Card
- SD CS Pin: Disabled
- SD MOSI Pin: Disabled
- SD MISO Pin: Disabled
- SD SCK Pin: Disabled
It should be noted that the ESP32 has some I/O pins that have reserved functions and setting these reserved pins to some I/O types can result in system errors. If you suspect that you have incorrectly set a pin and your ESP32 is unresponsive or slow. You can check the serial monitor to see whether this has caused a kernel panic or other fault.
To reset the Pin configuration you can issue the following command via the serial API in the serial monitor
& : Reset Pins
To view a full list of API commands you can use the following command
? : View help
If you are unable to recover the pins settings using the reset command you may need to clear the flash. Please note however that this will remove ALL configuration settings.