EveryCircuit
Contact
Reviews
Home
rodvarella10
modified 10 months ago

Flappy Bird Circuit

5
4
386
05:02:10
Analog Circuit Inspired by Flappy Bird Using Comparators and a Capacitor ⚑ πŸ‘‰ This analog circuit is composed of two voltage comparators that share a common analog input. This input is generated by the charging and discharging of a capacitor, which is controlled by a switch operated by the user. Each comparator receives the same capacitor voltage at one input and a distinct sinusoidal signal at the otherβ€”one sine wave for each comparator. πŸ‘‰ The comparators continuously compare the capacitor voltage with their respective sine waves. Whenever the capacitor voltage crosses the voltage of either sine wave, the output of the corresponding comparator goes high. The outputs of both comparators are then connected to a logic OR gate, whose output drives a red LED. πŸ‘‰ The LED turns on whenever the capacitor voltage crosses either of the boundaries defined by the sine waves, indicating a "collision." In this way, the circuit simulates the logic of the Flappy Bird game: the user must press the switch at the right moments to keep the capacitor voltage within the "safe zone" between the two sine waves. If the voltage crosses outside this zone, the LED lights up, simulating a game over.
published 10 months ago
BraydanD
10 months ago
LED doesnt turn on
Sheen140
10 months ago
@BraydanD you can either reduce the LED resistor or lower the LED current setting to get the LED to turn on
rodvarella10
10 months ago
@BraydanD corrected, thanks
minda
4 months ago
It is pathetic, awful and rude just to drop a circuit like this and not to give credit to the orginal aithor. This circuit was introduced by igor. Shame on you!

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy