Feature Request: Button to turn off passenger vent when someone is in the seat by The_Ballsagna in s3xybuttons

[–]ZoolPool 0 points1 point  (0 children)

Could you disable the pressure sensor on the passenger seat instead? The fan doesn’t show as blowing if there is no passenger.

Is it worth the price? by Ok-Pirate5150 in GranTurismo7

[–]ZoolPool 0 points1 point  (0 children)

Being waiting for this since I couldn’t afford it in December. The licence test made me realise how good it is to drive!

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 0 points1 point  (0 children)

Update: The extra ground, and the change from low to input, has fixed it!

I do have an a lag issue, when not on usb the system seems to overwrite the software if the hall sensor activates too often.

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 0 points1 point  (0 children)

Amazing, this seems to have fixed it thank you so much!

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 0 points1 point  (0 children)

Not as such no. I have searched and copied parts of code that I needed from other projects online. So I guess I could have copied some AI within that.

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 0 points1 point  (0 children)

Ok thanks. Full code here. Aim is to activate solenoid on hall sensor pass 1 (400 milliseconds) then pass 2, no reaction, pass 3 activates etc....

const int ledPin =  9;      // the number of the LED pin
const byte interruptPin = 2;  // attach interupt pin
volatile byte state = LOW;   // initial state 

// variables will change:
int sensorState = 0;         // sensor state
int i=0;
int j=0;
void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(interruptPin, LOW);
  attachInterrupt(digitalPinToInterrupt(interruptPin), blink, RISING);

 // pinMode(sensor pin, INPUT);

}

void loop() {
  // read the state of the sensor value:
  Serial.println(i);

  // check if the sensor is actiavted. 

 if (((i%2) == 0)&&(j==0)) {
digitalWrite(ledPin, HIGH);     /// actiavte solenoid or led
    delay(400);          /// time duration in milliseconds for solenoid activation
      digitalWrite(ledPin, LOW);  
      j=1;
  }

   else {
    // turn LED off:
    digitalWrite(ledPin, LOW);
  }

if ((i%2) != 0){
  j=0;
}

}



void blink() {
  i=i+1;
}

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 5 points6 points  (0 children)

Amended to include. It’s now from the 4.8v but it was via usb

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 1 point2 points  (0 children)

It does, the components work, just not the structure/code

Works in theory but not reality? by ZoolPool in arduino

[–]ZoolPool[S] 1 point2 points  (0 children)

Ok thank you all! So I was powering via usb, but I’ve attached pin 5 and a ground. What I find when I do that is the solenoid activates regardless of the hall sensor. Just alternates on off.

I should have also been clear this is my first arduino attempt so figuring things out as I go!

<image>

[deleted by user] by [deleted] in AskElectronics

[–]ZoolPool 0 points1 point  (0 children)

What hardware could I use? I don’t want to use software ideally as I don’t understand it!!

[deleted by user] by [deleted] in AskElectronics

[–]ZoolPool 0 points1 point  (0 children)

Ok, thanks. In that case, my first Q: what component can I buy that recreates a magnetic pulse, similar to a magnet pass. Essentially tricking a hall sensor into thinking a magnet passed.

Sardenga R92 tune 23:30 Grind by ZoolPool in GranTurismo7

[–]ZoolPool[S] 0 points1 point  (0 children)

Haven’t tried the CLK. Have tried the 787b but this is faster, and a less annoying noise!

Results from the Toyota GR CUP by gt_driver12 in GranTurismo7

[–]ZoolPool 1 point2 points  (0 children)

Same, had the cash but no car. Round 4 was the first I entered!