Inspiration
I vibe-coded most of my EE and CS degree with AI, and it left gaps in what I actually know. The same phone I study on is also full of distractions: I open it to review and 20 minutes later I'm scrolling. Broof is the opposite of that. It is a small box that does one thing and forces me to learn. It is brain-rot-proof, and it's also your study "bro." I built it around my own classes (Electronics I, Data Structures, Digital Design, Signals) and tested it with Japanese vocabulary.
What it does
Broof is a lesson box. You pick a topic with the joystick (or type one, or paste your own notes on the web page), and Gemini writes an 8-question multiple-choice lesson. You answer by pushing the joystick: up = A, right = B, down = C, left = D. The DIP switches still work too.
The box works on its own. The LCD shows the question and the choices, then shows the result and the explanation, and the LED goes green or red. At the end you get a score and a menu: new lesson, review what you missed, or home. Questions you miss come back a few questions later until you get them.
The web page is optional. It has a home screen, a clean quiz view, a score ring and a review list. It also reads questions and explanations aloud (browser voice or ElevenLabs) and waits until the voice is done before moving on. You can pick the level and an explanation style: normal, coach, or mom.
How I built it
- Arduino UNO Q: the Linux side runs Python (the lesson logic, the web page and the Gemini calls) and the microcontroller runs C++ (joystick, DIP switches, LCD, LED). They talk over the Arduino Bridge.
- Gemini API (CloudLLM brick in Arduino App Lab): one call per lesson returns 8 questions as JSON with believable wrong answers and a short "why". Good decks are saved, so the box still works with no Wi-Fi or quota.
- Grove thumb joystick on analog pins A0/A1, with a calibration at boot so it never gives ghost answers if it is unplugged.
- Grove RGB LCD over I2C, driven directly with my own code: custom arrow, check, cross and star symbols, text that slides when it is longer than 16 characters, and options that rotate on the bottom row.
- A small text cleaner that rewrites things like "4.7 kOhms", "O(n)" and "x^2" so the voice says them correctly.
- ElevenLabs for a natural voice, with the browser voice as a fallback.
Challenges
- The joystick was not detected at first because it was checked before it was stable; boot calibration fixed it.
- The voice used to cut off and jump to the next question, so the page now tells the box when it has finished talking.
- A 16x2 screen is tiny, so I built sliding text and a rotating options row to make it useful on its own.
- Gemini's free tier has a daily limit, so lessons start only when you ask, and decks are saved as a fallback.
Accomplishments I'm proud of
It is a real, standalone study device I will use for my own exams, not just a web page with a gadget attached.
What I learned
How the UNO Q's two processors work together, how to talk to an I2C LCD directly, and how to get structured, useful output from Gemini.
What's next
- More courses and content design: a library of courses built from real class notes, with better question types and spaced repetition across days.
- App architecture: let broof.study talk to the box directly (a small relay), so the website and the box are one app.
- Hardware and software in sync: the LCD, LED and web page always show the same state, with live updates in both directions.
- Rewards: streaks, points and unlockable badges shown on the LCD, so studying feels like a game and not a feed.
- Better gadgets: a built-in speaker for the voice, a bigger screen, buttons with RGB lights, and a smaller case.
Try it
Site: https://broof.study Code: https://github.com/AnNguyen07269/Broof
Built With
- arduino-app-lab
- arduino-uno-q
- c++
- elevenlabs
- gemini-api
- html
- javascript
- python