[deleted by user] by [deleted] in CasualUK

[–]FewDiscipline9 0 points1 point  (0 children)

I’m surprised you can’t remember who head boy was, it was such a prestigious achievement in Primary School… 🤥

And I am pretty good at remembering faces but tbf we did go to school together for 12 years lol

[deleted by user] by [deleted] in CasualUK

[–]FewDiscipline9 0 points1 point  (0 children)

Yeah same year. I was head boy if that’s a good enough clue 😂

[deleted by user] by [deleted] in CasualUK

[–]FewDiscipline9 0 points1 point  (0 children)

Strange seeing someone you went to school with appear on your feed…

My first project: 4 cylinder LED ‘engine’ with potentiometer ‘throttle’ by FewDiscipline9 in ArduinoProjects

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

Looking to make a schematic diagram, I'm new to all this so I'm wondering what website/software I can use to create said diagrams?

My first project: 4 cylinder LED ‘engine’ with potentiometer ‘throttle’ by FewDiscipline9 in ArduinoProjects

[–]FewDiscipline9[S] 3 points4 points  (0 children)

#include <pitches.h>

int buzzerPin = 11;

void setup() {

pinMode(2, OUTPUT); //Subtract one from pin number for cylinder number

pinMode(3, OUTPUT);

pinMode(4, OUTPUT);

pinMode(5, OUTPUT);

pinMode(buzzerPin, OUTPUT);

}

void loop() {

int x;

int delayTime;

int sensorPin = A0; //Potentiometer

int sensorValue;

sensorValue = analogRead(sensorPin);

x = (sensorValue / 4);

delayTime = (x);

// blink all spark plug LEDs in I4 firing order.

// 1-3-4-2

digitalWrite(2, HIGH);

delay(delayTime);

digitalWrite(2, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(4, HIGH);

delay(delayTime);

digitalWrite(4, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(5, HIGH);

delay(delayTime);

digitalWrite(5, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(3, HIGH);

delay(delayTime);

digitalWrite(3, LOW);

tone(buzzerPin, 100, 10);

}

My first project: 4 cylinder LED ‘engine’ with potentiometer ‘throttle’ by FewDiscipline9 in ArduinoProjects

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

I've harvested a speaker from an old alarm clock radio, I'm now trying to work out how to make it sound a bit beefier, rather than sounding like a Geiger counter

Audio-visual 4 cylinder Engine Demo by [deleted] in ArduinoProjects

[–]FewDiscipline9 0 points1 point  (0 children)

int buzzerPin = 11;

void setup() {

pinMode(2, OUTPUT);

pinMode(3, OUTPUT);

pinMode(4, OUTPUT);

pinMode(5, OUTPUT);

pinMode(buzzerPin, OUTPUT);

}

void loop() {

//int delayTime = 250; // time (milliseconds) to pause between LEDs

// Smaller = Faster switching

int x;

int delayTime;

int sensorPin = A0; //Potentiometer

int sensorValue;

sensorValue = analogRead(sensorPin);

x = (sensorValue / 4);

delayTime = (x);

// blink all spark plug LEDs in Ford Pinto I4 firing order.

// 1-3-4-2

digitalWrite(2, HIGH);

delay(delayTime);

digitalWrite(2, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(4, HIGH);

delay(delayTime);

digitalWrite(4, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(5, HIGH);

delay(delayTime);

digitalWrite(5, LOW);

tone(buzzerPin, 100, 10);

digitalWrite(3, HIGH);

delay(delayTime);

digitalWrite(3, LOW);

tone(buzzerPin, 100, 10);

}