02 Montery Dakar build / final stages

Oh ya gotcha
Well inside I am pretty level these days right
I am waiting on fuel fittings to make this thing dangerous. Then I am going to test my ford and china injectors. I pray they are the issue but I don't think they are
 
ok cool. i got the tester working good
i was planning on using mineral spirits for the test media. i got all silly and thought about saving the world by using the eco friendly substitute for this. that was dum and made basically toothpaste out of the injectors. so now back to "fuck this world" status the injectors work as they should.

dont use the fake shit
1720639876690.png
 
me and chatbots code for the tester

Code:
const int idle    = A0;     // 900 rpm = 133Ms loop / fuel load 3Ms + 1Ms dead time runsmooth sequential
const int torque  = A1;     // 3500 rpm = 34Ms loop / fuel load 8Ms + 1Ms dead time runsmooth sequential
const int reving  = A2;     // 6000 rpm = 20Ms loop / fuel load 12Ms + 1Ms dead time runsmooth sequential
const int test    = A3;     // run a 19Ms loop for 10 seconds at 85% duty on, all outputs simultaneously

const int pwmPin1 = 3;
const int pwmPin2 = 5;
const int pwmPin3 = 6;
const int pwmPin4 = 9;
const int pwmPin5 = 10;
const int pwmPin6 = 11;

const int off = 0;
const int on  = 255;

void setup() {
  pinMode(idle, INPUT_PULLUP);
  pinMode(torque, INPUT_PULLUP);
  pinMode(reving, INPUT_PULLUP);
  pinMode(test, INPUT_PULLUP);
 
  pinMode(pwmPin1, OUTPUT);
  pinMode(pwmPin2, OUTPUT);
  pinMode(pwmPin3, OUTPUT);
  pinMode(pwmPin4, OUTPUT);
  pinMode(pwmPin5, OUTPUT);
  pinMode(pwmPin6, OUTPUT);
}

void loop() {
  if (digitalRead(idle) == LOW && digitalRead(torque) == LOW) {
    // A0 and A1 both held low
    runHighDutyCycle();
  } else if (digitalRead(idle) == LOW) {            // idle  133
    runSmooth(129, 4);
  } else if (digitalRead(torque) == LOW) {   // torque  34
    runSmooth(25, 9);
  } else if (digitalRead(reving) == LOW) {   // reving  20
    runSmooth(8, 12);
  } else if (digitalRead(test) == LOW) {     // test
    runTest();
  }
}

void runSmooth(int cycleDelay, int squirtDelay) {
  int pins[6] = {pwmPin1, pwmPin2, pwmPin3, pwmPin4, pwmPin5, pwmPin6};
  int numberOfPins = 6;
  int delayBetweenPins = cycleDelay / numberOfPins; // calculate delay between each pin activation

  for (int i = 0; i < numberOfPins; i++) {
    analogWrite(pins, on);
    delay(squirtDelay);  // squirt delay
    analogWrite(pins, off);
    delay(delayBetweenPins);  // delay between each pin activation
  }
}

void runHighDutyCycle() {
  int pins[6] = {pwmPin1, pwmPin2, pwmPin3, pwmPin4, pwmPin5, pwmPin6};
  int numberOfPins = 6;
  int onTime = 17; // 85% of 20ms (17ms on, 3ms off)
  int offTime = 3;

  while (digitalRead(idle) == LOW && digitalRead(torque) == LOW) {
    for (int i = 0; i < numberOfPins; i++) {
      analogWrite(pins, on);
    }
    delay(onTime);
    for (int i = 0; i < numberOfPins; i++) {
      analogWrite(pins, off);
    }
    delay(offTime);
  }
}

void runTest() {
  int pins[6] = {pwmPin1, pwmPin2, pwmPin3, pwmPin4, pwmPin5, pwmPin6};
  int numberOfPins = 6;
  int onTime = 16; // 85% of 19ms (16ms on, 3ms off)
  int offTime = 3;
  unsigned long startTime = millis();

  while (millis() - startTime < 10000) {   // run for 10 seconds
    for (int i = 0; i < numberOfPins; i++) {
      analogWrite(pins, on);
    }
    delay(onTime);
    for (int i = 0; i < numberOfPins; i++) {
      analogWrite(pins, off);
    }
    delay(offTime);
  }
}
 
Last edited:
first test run
i ran the test and got 38 milli litres. how many pounds per hour of volume is that?

chatbots data cruching

To convert milliliters (mL) to pounds per hour (lb/hr), we need to follow these steps:

Code:
To convert milliliters (mL) to pounds per hour (lb/hr), we need to follow these steps:

1. Convert milliliters to liters.
2. Convert liters to gallons.
3. Convert gallons to pounds, assuming the density of the liquid is known. For this example, we'll assume the liquid is gasoline, with an approximate density of 0.74 kg/L.
4. Convert kilograms to pounds.

### Step-by-Step Calculation

1. **Convert milliliters to liters**:
   \[
   38 \, \text{mL} = 0.038 \, \text{L}
   \]

2. **Convert liters to gallons** (1 liter = 0.264172 gallons):
   \[
   0.038 \, \text{L} \times 0.264172 \, \frac{\text{gallons}}{\text{L}} = 0.0100366 \, \text{gallons}
   \]

3. **Convert gallons to pounds**:
   - Assume the density of gasoline is approximately 0.74 kg/L.
   - Convert liters to kilograms (since 1 L of gasoline = 0.74 kg):
     \[
     0.038 \, \text{L} \times 0.74 \, \frac{\text{kg}}{\text{L}} = 0.02812 \, \text{kg}
     \]
   - Convert kilograms to pounds (1 kg = 2.20462 lbs):
     \[
     0.02812 \, \text{kg} \times 2.20462 \, \frac{\text{lbs}}{\text{kg}} = 0.06196 \, \text{lbs}
     \]

4. **Convert to pounds per hour**:
   - If the 38 mL was the volume over a 10-second test, we need to convert this to an hourly rate.
   - First, determine the volume per second:
     \[
     \frac{38 \, \text{mL}}{10 \, \text{seconds}} = 3.8 \, \text{mL/second}
     \]
   - Convert mL/second to L/second:
     \[
     3.8 \, \text{mL/second} = 0.0038 \, \text{L/second}
     \]
   - Convert L/second to L/hour:
     \[
     0.0038 \, \text{L/second} \times 3600 \, \frac{\text{seconds}}{\text{hour}} = 13.68 \, \text{L/hour}
     \]
   - Convert L/hour to kg/hour (using density of 0.74 kg/L):
     \[
     13.68 \, \text{L/hour} \times 0.74 \, \frac{\text{kg}}{\text{L}} = 10.1232 \, \text{kg/hour}
     \]
   - Convert kg/hour to lbs/hour:
     \[
     10.1232 \, \text{kg/hour} \times 2.20462 \, \frac{\text{lbs}}{\text{kg}} = 22.32 \, \text{lbs/hour}
     \]

So, 38 milliliters over 10 seconds converts to approximately 22.32 pounds per hour.

So, 38 milliliters over 10 seconds converts to approximately 22.32 pounds per hour.
 
Last edited:
Back
Top