You can use the above schematic, it works very well with Andreas board
I also wrote a simple code for an additional NANO or UNO that will handle the switching:
void setup()
{
pinMode(12, INPUT_PULLUP); // autoster button
pinMode(11, OUTPUT); // 3/2 valve relay control
pinMode(10, OUTPUT); // AS activation input on the Andreas board
pinMode(9, INPUT_PULLUP); // Pressure sensor input
}
void loop()
{
if (digitalRead(12) == LOW) { //ON the AS and 3/2 valves with the push of a button
delay(10); // Wait for 10 millisecond(s)
digitalWrite(11, LOW);
digitalWrite(10, LOW);
}
if (digitalRead(9) == LOW) { // OFF the AS and 3/2 valves with the sensor presure aktywation
delay(10); // Wait for 10 millisecond(s)
digitalWrite(0, HIGH);
digitalWrite(0, HIGH);
}
}
But I think it’s best if I send you a complete box of Teensy.