Eamon Magd
Published © GPL3+

How to Build a ‘Split the G’ Device

Built a device to perfectly 'Split the G' in Guinness using sensors & Arduino! 🍺🔧 Heading to Ireland to test it.

BeginnerFull instructions provided1 hour509
How to Build a ‘Split the G’ Device

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Grove - Vibration Motor
Seeed Studio Grove - Vibration Motor
×1
Non-Contact Liquid Level
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Tape, Electrical
Tape, Electrical
Scissor, Electrician
Scissor, Electrician

Story

Read more

Code

Split the G

C/C++
int sensorPin = A1; // Non-contact liquid level sensor on A1
int buzzerPin = A2; // Buzzer on A2

void setup() {
    pinMode(sensorPin, INPUT);
    pinMode(buzzerPin, OUTPUT);
    digitalWrite(buzzerPin, LOW); // Ensure buzzer is off at start
}

void loop() {
    int sensorValue = analogRead(sensorPin);
    if (sensorValue < 500) { // Adjust threshold if needed
        digitalWrite(buzzerPin, HIGH); // Buzz when the liquid reaches the 'G'
        delay(1000); // Buzz for 1 second
        digitalWrite(buzzerPin, LOW);
    }
    delay(100); // Small delay to prevent rapid buzzing
}

Credits

Eamon Magd
4 projects • 2 followers
Hi, I’m Eamon! An inventor, Computer Scientist and gamer, with an endless list of ideas. I have a yellow cockatiel.
Contact

Comments

Please log in or sign up to comment.