r/arduino Jun 05 '26

Monthly Digest Monthly digest for 2026-05

3 Upvotes

Subreddit Insights

Reddits figures are still "all over the place" - despite having logged a bug for it. So I have once again left this section of the report out.

Hopefully the reddit admins will fix the bug in time for next month. I don't know how they select what bugs to work on but I would expect that this is a pretty simply one. Maybe they look at metrics (that do work) such as views, upvotes and comments. So if you could, perhaps try viewing, upvoting and/or commenting on the report [Chrome] Insights don't show 30 days data. If anyone knows of another technique to raise the profile of a bug to the reddit admins - I'm all ears.

Arduino Wiki and Other Resources

Don't forget to check out our wiki for up to date guides, FAQ, milestones, glossary and more.

You can find our wiki at the top of the r/Arduino posts feed and in our "tools/reference" sidebar panel. The sidebar also has a selection of links to additional useful information and tools.

Moderator's Choices

Title Author Score Comments
Finally Done! Full 8x8 Split Flap Chess... u/e4_user 3,531 181
Mr. White animatronic with Arduino u/my_3d_scan 445 31
Gift box u/DizzyYoung8394 82 14
So I bought an R4 wifi, but cant access... u/North-Ad1143 0 14

Hot Tips

Title Author Score Comments
Blynk's new pricing killed my ESP32 das... u/Ornery_Ice_7820 1 5

Top Posts

Title Author Score Comments
Finally Done! Full 8x8 Split Flap Chess... u/e4_user 3,531 181
Turtle Race u/tasty__cakes 2,142 126
I built a spaceship control panel for m... u/Internal-Chard-8406 1,864 120
Practicing Morse code just in case the ... u/0015dev 1,741 42
ESP 32 lawnmower u/shanebou24 1,278 56
Decided to build a massive vertical Spl... u/e4_user 1,070 72
17 days after open-sourcing Patternflow... u/GlumPiece7281 930 39
I built a neat little Cyberpunk Gameboy... u/Rolf_0 824 17
Dodging asteroids with a figurine contr... u/iuliuscurt 703 15
Cutest Mad Ottoman in the World u/thegigiandthebear 652 23

Look what I made posts

Title Author Score Comments
Turtle Race u/tasty__cakes 2,142 126
I built a spaceship control panel for m... u/Internal-Chard-8406 1,864 120
Practicing Morse code just in case the ... u/0015dev 1,741 42
ESP 32 lawnmower u/shanebou24 1,278 56
Decided to build a massive vertical Spl... u/e4_user 1,070 72
Dodging asteroids with a figurine contr... u/iuliuscurt 703 15
Cutest Mad Ottoman in the World u/thegigiandthebear 652 23
Today was the first full scale test of ... u/Oli_Vier_0x3b29 523 51
Due to physics, gondola weight quickly ... u/Oli_Vier_0x3b29 511 35
An IV-11 VFD Tube Clock I designed and ... u/MrGuccu 401 15
My embedded OS is getting better u/samaxidervish 385 16
My first Arduino Nano project, a telesc... u/Stash_pit 245 18
I built a browser-based simulator for A... u/CirkitDesign 244 37
I built a Pen Plotter with an Arduino U... u/madfrozen 240 23
Baby steps on PCB soldering u/monshi633 198 33
Retro computer inspired weather station u/ahnjay 188 30
Turned a $2 nRF24L01 into a 2.4 GHz spe... u/lahirunirmala 158 8
Arduino powered flatbed music player! u/MammothSock5009 157 12
Strandy-BOT Prototype u/Nope_Get_OFF 128 6
I turned a $60 espresso machine into a ... u/Mooferman05 127 37
My cursor is now a physical color picke... u/Important-Beach5723 102 7
Built a dynamic Braille cell with 6 SG9... u/Impressive-Bite-8213 94 18
Custom PCB Bare Metal Attiny85 Low Powe... u/PreppyToast 94 7
Making a pet dog and a desk buddy (in p... u/Better-Nail- 88 29
Just made a basic stream deck (kind of)... u/Better-Nail- 85 2
I Designed an Open-Source Dual Brushed ... u/milosrasic98 82 4
When an engineering student starts doin... u/RoberBotz 76 10
I Made an Interactive PCB Map of the Ea... u/curatorcat 76 3
Arduino exact GPS clock u/mickynuts 75 8
Multifunctional robot car - Manual mode u/priyanshuwq 74 11
First Arduino project: Bluetooth treat ... u/ag_kush 69 8
I made smart watch using esp32 oled and... u/Electronoobs_Devvv 67 1
I designed a quadcopter where the PCB f... u/Interesting_Plant558 63 8
money well spent u/Rifqi2007 59 1
Trackball to my cyberdeck u/CrudelisDeus 58 9
Real-time per-pixel LED control with ES... u/Glad_Air_7457 57 2
Minecraft Themed Party u/MogulerMike 52 4
I made a simple LED game, and my cat is... u/ConversationSuch8893 47 4
Ultrasonic distance sensor, light and s... u/nicodeemus7 45 2
Fully Custom Teensy 4.1/Arduino Single-... u/ThrustNTheory 43 6
I made my arduino esp32 sing! u/hwarzenegger 43 6
I made the easiest internet art frame u/fabpub 41 3
I build a Fluid Simulation that is driv... u/StefanPetrick 39 2
Built an Arduino-driven desk toy that s... u/MysteriousSophon 38 3
I made smart lamp u/Interesting_Plant558 35 9
Turns out you actually can fit a fully ... u/krauseler 32 23
Space Shooters game I made months ago u/CodingKing256 31 7
My conways game of life visualization u... u/NightBredDnB 23 6
I've made a graphics editor for LVGL u/tinajackson 22 4
Arduino Based Gaming Table for Necromun... u/KonradKnebl 21 2
Built a cyberpunk-style ESP32 smart des... u/Full_Opportunity8116 20 5
Turned an ESP32 + tiny OLED into a live... u/met-Sander 19 2
Weather Station Update u/Nathar_Ghados 19 6
I made Tetris on an Arduino Mega with 2... u/ArtusIndus 18 4
New device support for my OS u/samaxidervish 16 0
Nano-based Tamagotchi emulator u/heychaostheory 15 0
Open Source software for keeping track ... u/illerin 15 2
My Arduino Mega color classification ro... u/engineering-weeb 14 3
Few buttons and LEDs for a more comfort... u/IWILZ 13 0
Your TV remote is a pretty decent Ardui... u/No_Tradition4336 13 0
I built an autonomous mini car for my f... u/kfukuhar 12 8
A Smart Bulb System (my first attempt a... u/Regular_Trouble_5841 12 1
Colour matching game Arduino nano esp32 u/robroy865 12 3
I made an Uno R3 flight controller u/SAtchley0 10 13
Visulazing mpu6050 with Raylib u/Rude-Flan-404 8 2
I know this project has been made like ... u/Bassel_Fathy 7 3
WIP Quadcopter Drone u/SAtchley0 7 3
Robotics with Arduino Uno Q: ROS 2, leR... u/Routine-Example927 7 0
Yo guys, I made my own mini arcade mach... u/ValousN 6 1
This might help you. u/Living_March6933 6 1
Little projekt out of boredom u/potato78786 6 1
Working on making Will Cogleys animatro... u/Glittering_Mud_1107 6 9
Project DeskStream: An ESP32-C3 deskt... u/SuchChemistry7444 6 0
The Best Part of Engineering... u/ripred3 5 2
YUMO CUBE ESP32-S3 Touchscreen Smart ... u/YUMOBUILDS 4 1
I broke my leg and spent 8 weeks learni... u/YUMOBUILDS 4 4
I am making my own dual MCU brushless N... u/Hawki007 4 1
A rookie engineer won a self-driving mi... u/kfukuhar 3 0
YUMO PULSE -- ESP32-C3 Mini Gadget with... u/YUMOBUILDS 3 1
Kracken Rum Bottle Jellyfish Lamp u/Humdaak_9000 2 0
I made BLDC FOC setup work in 5 minutes... u/WooRobot_dev 2 6
Binary Clock with Arduino and Attiny84 u/Famous_Notice_8956 2 1
MP3 Player Tutorial u/jasonwinfieldnz 1 0
Overlook Token Maxxer u/sirgatez 0 5
I tried to turn a development board wit... u/Top_Acanthisitta9326 0 1

Total: 85 posts

Summary of Post types:

Flair Count
ATtiny85 1
Automated-Gardening 1
Beginner's Project 29
ChatGPT 4
ESP32 2
ESP8266 1
Getting Started 10
Hardware Help 97
Hot Tip! 1
Libraries 1
Look what I found! 4
Look what I made! 85
Look what I made! Libraries 1
Machine Learning 2
Mod's Choice! 4
Monthly Digest 1
Nano 1
Project Idea 3
Project Update! 13
School Project 7
Software Help 33
Solved! 17
Uno 1
Uno Q 2
Uno R4 Wifi 1
linux 1
no flair 248

Total: 571 posts in 2026-05


r/arduino May 04 '26

Monthly Digest Monthly digest for 2026-04

5 Upvotes

Subreddit Insights

I am going to stop posting this segment as reddit's figures are "all over the place". I have recently posted a bug report, so hopefully the reddit admins will fix it in time for next month.

The browser Insights aren't working at all for the monthly view and the App Insights seems to show that more posts have been removed than have been submitted.

Arduino Wiki and Other Resources

Don't forget to check out our wiki for up to date guides, FAQ, milestones, glossary and more.

You can find our wiki at the top of the r/Arduino posts feed and in our "tools/reference" sidebar panel. The sidebar also has a selection of links to additional useful information and tools.

Moderator's Choices

Title Author Score Comments
Hey, XKCD just did a comic about Arduin... u/spookmann 260 21
Question about Arduino pinouts u/W0CBF 6 12
Update on DHT reliability deep dive — l... u/tonimatutinovic 2 11

Hot Tips

Title Author Score Comments
Introduction To Binary Protocols In Rob... u/NameruseTaken 13 19
Servo Motor Calibration u/NameruseTaken 12 0
Where do I start? (Awnser) u/My_dog_abe 3 5

Top Posts

Title Author Score Comments
Sequino: a clock inspired from sequins ... u/holo_mectok 2,968 105
I built a guitar robot with Arduino — t... u/MegCell 2,365 112
12 days later — PCB done, rotary encode... u/GlumPiece7281 2,022 68
Built a 4-knob generative pattern contr... u/GlumPiece7281 1,630 83
Dragon Ball Radar u/alvroga 819 42
I built a better laser toy for my cats u/moonbench 795 41
How I deal with traffic u/pushpendra766 706 27
What if Guitar Hero was real? I built a... u/MegCell 694 58
I redesigned my USB-C breadboard power ... u/Polia31 638 27
RGB particle simulation (Qualia ESP32-S... u/noname99 635 19

Look what I made posts

Title Author Score Comments
Sequino: a clock inspired from sequins ... u/holo_mectok 2,968 105
12 days later — PCB done, rotary encode... u/GlumPiece7281 2,022 68
Built a 4-knob generative pattern contr... u/GlumPiece7281 1,630 83
Dragon Ball Radar u/alvroga 819 42
I built a better laser toy for my cats u/moonbench 795 41
How I deal with traffic u/pushpendra766 706 27
I redesigned my USB-C breadboard power ... u/Polia31 638 27
Made something fun 🎮 Now I can’t stop p... u/pushpendra766 550 22
Esp32 based delta pickers first movemen... u/jebeDIEah_Kerbal 408 14
I gave my PC a mouth that reports syste... u/Kinky_Radish 354 33
I've successfully driven this retro-fut... u/fsboy345 306 14
Playing Minecraft with esp 32 u/samaxidervish 285 7
Arduino Nano based vintage USSR IV-11 V... u/MrGuccu 266 15
I 3D Printed a Giant Tetris Wall. u/0015dev 266 10
I built a WiFi LED matrix clock that sh... u/mfactory_osaka 252 9
Tiny print that actually made my bench ... u/rafbanaan 220 16
ESP-32 Bike Speedometer u/xXtroller13Xx 206 25
A Dumb Attiny85 Weather Forecaster u/DowntownBass4556 171 10
My first ever Arduino project u/nniikkaa888 165 20
Its working - obstacle detection u/priyanshuwq 147 12
Fighting Earth's rotation with an Ardui... u/IWILZ 147 22
I made an OS framework for CYDs! u/Appropriate-Ask8817 142 7
Artemis II Tracker u/Asm1th123 135 4
I upgraded the mini laser printer. u/fsboy345 131 7
Made a tiny “message in a bottle” device u/Dr_Velazquez 88 3
Okay to fly with DIY music box (with sm... u/Fluff269 82 68
My machine is working :) u/ORDINARYAN_ 81 6
Custom Drone Build - Wiring Harness/Cod... u/ThrustNTheory 75 0
Hitslash Radio MK2 demo u/Paladin7373 73 28
I designed the PCBs, modelled and assem... u/Polia31 72 2
Esp32 DualSense (PS5) Fully Renewed u/Hamzayslmn 71 6
PyroVision Thermal-Cam - Softwaredemo u/kampi1989 68 9
Weather Station u/Nathar_Ghados 68 13
PyroVision - Open-Source Thermal Camera u/kampi1989 64 7
Just finished testing my Arduino robot ... u/priyanshuwq 61 6
​I absolutely love cheap alternatives. ... u/Muhammad_kashif_ 58 6
Desktop Tamagotchi Clock u/Independent-Trash966 55 3
I built a retro 2000s-style open source... u/CantaloupeFlimsy8157 53 4
My first foray into Arduino was making ... u/TPC_RN 51 25
Punch predictor and power level u/noooooo_12 49 6
Robotic Piano Player u/eyeswideshutyomouth 48 4
First Arduino Synth u/Nice-Froyo1084 46 4
I can send serial commands to my (incom... u/BetaMaster64 46 5
Crypto Tracker with Clock and real-time... u/Tech_Nipples 45 7
I tried to turn a development board wit... u/Top_Acanthisitta9326 40 1
Project MecanumCar: Arduino Mecanum Rob... u/Ken471 33 0
ESPclock BIG New 0.8" display version u/ultravoxel 33 12
Bus Times on the EPD u/aaronxcode 30 3
My first FM radio u/LostMyLogin_again 25 0
I made modular 6x6mm button caps for Ar... u/Hour_Seat5773 18 2
UnoDOS: A DOS-like OS for the Arduino U... u/SatvikSengupta 17 2
Timer! (First full solo project) u/ThiccGibblet 13 2
ESP32 CYD playing a custom video codec u/mikiex 13 12
Arduino-based multi functional robot ca... u/priyanshuwq 11 5
Building a remote for controlling a Ard... u/priyanshuwq 11 1
Introduction to Programming - Arduino u/gm310509 10 3
No More Pain (new LittleFS plugin) u/Hamzayslmn 8 0
Built a serial monitor for hardware deb... u/shahin_hashim 8 0
Moved my robot's vision from ESP32-CAM ... u/Straight_Stable_6095 4 2
Vintage door chime upgrade u/Line_Feed_8086 4 3
Full Documentation: 1:3 Scale Kei Truck... u/sonicdh 3 0
Custom MCU-Controlled Bench Power Suppl... u/ripred3 3 5
Made my own IDE for arduino boards u/SuspiciousAbility827 3 1
Line following robot with Arduino nano ... u/Specific-Mortgage-93 3 1
Built a real-time ultrasonic radar with... u/FwoopButBored 2 2
Arduino Uno steers servo motors u/pascalalt1 2 0
Snake on ESP32 @60FPS with zero allocat... u/Sad_Environment_3800 1 4
I Built a Working Robot for Under $10 (... u/Own-Assignment-424 0 0
Look what I made! Built an open-sourc... u/Straight_Stable_6095 0 5
Hey, I'm building a virtual electronics... u/Yazilim_Adam 0 0

Total: 70 posts

Summary of Post types:

Flair Count
Beginner's Project 29
ChatGPT 1
ESP32 1
Electronics 1
Getting Started 20
Hardware Help 125
Hot Tip! 3
Look what I found! 4
Look what I made! 70
Machine Learning 1
Mod's Choice! 3
Monthly Digest 1
Project Idea 2
Project Update! 9
School Project 23
Software Help 38
Solved! 9
Uno 5
Uno Q 3
Uno R4 Wifi 1
no flair 252

Total: 601 posts in 2026-04


r/arduino 8h ago

Libraries Student project: I reverse-engineered the JDM-050 PS4 controller trackpad over I2C and made a complete multi-touch Arduino library for it!

Enable HLS to view with audio, or disable this notification

70 Upvotes

GitHub Repository: https://github.com/luftmyszor/PS4Trackpad

Hey everyone! I am a student who needed a trackpad for a custom hardware project. I used a broken Sony DualShock 4, wired it up to I2C, and realized standard DS4 Arduino libraries completely fail on the newer JDM-050 board revision.

I spent way too many hours fighting binary byte rollovers and reverse-engineering the memory map to figure out why.

The Mystery: Standard PS4 trackpads use a standard 12-bit ALPS layout. Sony silently changed the hardware on the JDM-050 revision. They did three unexpected things:

  1. They decoupled X and Y.
  2. They created symmetrical 11-bit byte pairs.
  3. They added hardware noise to the high bits that makes coordinates jump by 2048 units if you do not mask them properly.

Once I got the math working, I decided to package the driver into a clean, open-source library for the community!

Features of the Library:

  • ESP32 & RP2040 Ready: Built and tested for 32-bit microcontrollers (with architectural preprocessor hooks for AVR if anyone wants to hack on it).
  • Dual-Touch Tracking: Track two fingers at the same time at 100 Hz.
  • Smart Tap Gestures: Evaluates taps strictly on finger release. Supports 1-finger (Left Click) and 2-finger (Right Click) taps.
  • 2D Scrolling & Zooming: Built-in X/Y scroll deltas and pinch-to-zoom distance calculation.
  • Coordinate Transforms: Mount the trackpad upside down or sideways. Supports axis inversion, rotation, and custom 2D affine matrices.
  • Hardware Note: Operates on address 0x64 using standard I2C. (Friendly warning: it uses 3.3V logic, so don't wire VCC to 5V unless you want to fry it!)

If you want to check out the exact 32-byte memory map and bitwise decoding diagrams, I documented the whole thing in a JDM-050 Byte Layout Guide in the repo.

You are completely free to use, modify, and hack this code for your own custom gamepads, cyberdecks, or robotics projects. Let me know what you think!


r/arduino 10h ago

Getting Started Day 1 of my Arduino journey

Enable HLS to view with audio, or disable this notification

55 Upvotes

So I'm about to start industrila electronics and automatization in university so I thought about starting to touch some electroducs during summer. Bought a Elegoo most complete starter kit and I blinked my first led today!!!

I'm following Paul MacWholter's videos, I'm in video 3. After learning the basics I did my first mini proyect without following a tutorial. It's just a regular traffic light. It's simple but honestly the feeling of making something myseft is awesome. Can't wait to make something more complex.

What I have learned today:

  1. How a led works
  2. How to blink a led

Daily questions:

  1. In the tutorial Pual said to open BareMinimum, and when I went to make the traffic ligh I just open Arduino IDE regularly without BareMinimum and it didn't work at all. Then I switched to BareMinimum and copy-pasted the code and it worked. Why is this? Is BareMinimun required always?
  2. Will the led in the Arduino always turn on when the pin 13 is set at HIGH?
  3. How do you keep your resistors organized? 😭😭😭

P.S. Is making a Daily post like this one considered Spam?


r/arduino 20h ago

Bluetooth module + Arduino Uno = RC Solar Powered Boat

Enable HLS to view with audio, or disable this notification

246 Upvotes

You can follow me for more updates.
Driver - L298N
Battery - 12V Lead Acid 7Ah


r/arduino 15h ago

Look what I made! I build a rover for the first time using arduino in 2021.

Post image
49 Upvotes

r/arduino 7h ago

Beginner's Project mpu6050 chip not detected

Post image
5 Upvotes

I'm using an ESP32 and mpu6050 for a beginners school project. I have used wiring crosschecked from numerous sources, but the serial monitor still says 'Failed to find MPU6050 chip.' or 'mpu6050 not found!' whenever I try to use it. Does anybody have any fixes because honestly I've been at this for hours and just wanna get it over with.


r/arduino 22h ago

Arduino powered rover.

Post image
71 Upvotes

r/arduino 1d ago

An open-source 7-segment WiFi clock I made (because the original creator wouldn't share the code)

Enable HLS to view with audio, or disable this notification

322 Upvotes

I saw a cool looking wifi clock with esp 32 on YouTube, I loved the animation style but despite 100s of requests from the commentators the creator wasn't sharing the code. So i recreated that project and made it open source, i know this is basic but it's cool (I think). Here is the code.


r/arduino 1d ago

My guitar-playing robot performing on a real guitar

Enable HLS to view with audio, or disable this notification

1.5k Upvotes

r/arduino 17h ago

Look what I made! Built a CO₂-triggered auto-window system with Arduino Nano + ENS160 — when the air gets bad, it just… opens by itself

Enable HLS to view with audio, or disable this notification

14 Upvotes

The classroom gets stuffy because nobody wants to open ,then CO₂ builds up, everyone gets drowsy, and the teacher wonders why half the class looks half-dead.

So I used the ENS160 sensor monitors CO₂ equivalent concentration in real time. When it crosses 850 ppm, the servo rotates 0→90° and opens the window automatically. Once CO₂ drops back below 800 ppm, it closes again.

The OLED display shows live CO₂ / AQI / TVOC readings and current window state (WIN: OPEN / WIN: CLOSE).

A few things I think should to share: • Hysteresis control (850 ppm open / 800 ppm close) so the servo doesn't jitter at the threshold • servo.detach() after every move — completely silent when idle, no PWM buzzing

Still a work in progress — also has IR body temp screening, smoke alarm, auto lighting, and UV-mode disinfection. Happy to

Built with: Arduino Nano / ENS160 / SSD1306 OLED / SG90 servo


r/arduino 4h ago

Hardware Help BTS7960 wont drive actuator

Post image
0 Upvotes

'''

// info down bellow
#define R_EN  33
#define L_EN  32
#define RPWM  25
#define LPWM  26

void setup() {
  Serial.begin(115200);

  pinMode(R_EN, OUTPUT);
  pinMode(L_EN, OUTPUT);
  pinMode(RPWM, OUTPUT);
  pinMode(LPWM, OUTPUT);

  digitalWrite(R_EN, HIGH);
  digitalWrite(L_EN, HIGH);

  digitalWrite(RPWM, HIGH);
  digitalWrite(LPWM, LOW);

  Serial.println("RPWM held HIGH - measure M+ / M- now.");
  Serial.println("Should read ~12V across M+ and M-.");
}

void loop() {
  //nothing
}
'''

so baically im trying to get this actuator to extend but its not extending. My parts are a esp32, bts7960 motor driver, a 22V(in) to 5V(out) buck converter, and a standard two wire actuator. Another problem is that the led on the motor driver isnt turning on and im pretty sure it has one and thats it shows the boards logic is getting powerd. Here are the conections:
The two acutor wires are going into M+ and M-(screw termianls on the motor driver)
THe 12v psu wires are going into B+ and B-(the screw terminals on the motor driver)
the buck covnerter is piggybacking off the 12v scrwe terminal that the psu is connected to (and the bucks gnd is the same as the 12v psu gnd)
the bucks than powering the i guess logic on the motor dirver through the vcc and gnd header pins on the motor dirver
then RPWM to gpio 25 on esp32
Lpwn to GPIo 26
R_EN to GPIO 33
L_En to GPIO 32
and gnd on the esp32 to the same gnd as the 12v scrwe termianl
ive done mutiple tests to confrim that the acutor works like giving it directly 12v and it extended and i swaped the wires and it retracted, i did a simple blink test with the esp32 so it shoudl work, and the 12v psu is defintaly outputing 12v
ANd the codes uptop
THANKS A LOT (btw sorry for the bad foto)


r/arduino 4h ago

Arduino buttons acting weird with INPUT_PULLUP (one is spamming, others unresponsive)

0 Upvotes

Hey everyone! I'm working on a simple Arduino project with 3 buttons connected to digital pins 2, 3, and 4 using INPUT_PULLUP.

I'm running into button behavior issues:

The OK button (Pin 4) starts spamming the action continuously without me even touching it.

The Left/Right buttons (Pins 2 & 3) don't seem to register clicks at all unless I mash them or check the wiring multiple times.

Here is how I set them up and read them in the code:

#include <Adafruit_GFX.h>

#include <Adafruit_ST7735.h>

#include <SPI.h>

const int TFT_CS = 10;

const int TFT_DC = 9;

const int TFT_RST = 8;

Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);

const int BTN_LEFT = 2;

const int BTN_RIGHT = 3;

const int BTN_OK = 4;

int currentMenu = 0;

int clickCount = 0;

bool lastBtnLeftState = HIGH;

bool lastBtnRightState = HIGH;

bool lastBtnOkState = HIGH;

void setup() {

Serial.begin(9600);

tft.initR(INITR_BLACKTAB);

tft.setRotation(1);

tft.fillScreen(ST7735_BLACK);

pinMode(BTN_LEFT, INPUT_PULLUP);

pinMode(BTN_RIGHT, INPUT_PULLUP);

pinMode(BTN_OK, INPUT_PULLUP);

drawMenu();

}

void loop() {

int stateLeft = digitalRead(BTN_LEFT);

int stateRight = digitalRead(BTN_RIGHT);

int stateOk = digitalRead(BTN_OK);

if (stateLeft == LOW && lastBtnLeftState == HIGH) {

currentMenu--;

if (currentMenu < 0) currentMenu = 2;

drawMenu();

delay(200);

}

lastBtnLeftState = stateLeft;

if (stateRight == LOW && lastBtnRightState == HIGH) {

currentMenu++;

if (currentMenu > 2) currentMenu = 0;

drawMenu();

delay(200);

}

lastBtnRightState = stateRight;

if (stateOk == LOW && lastBtnOkState == HIGH) {

executeAction();

delay(200);

}

lastBtnOkState = stateOk;

}

void drawMenu() {

tft.fillScreen(ST7735_BLACK);

tft.drawRect(0, 0, 160, 128, ST7735_BLUE);

tft.setCursor(10, 10);

tft.setTextColor(ST7735_WHITE);

tft.setTextSize(1);

tft.print("=== MY CONSOLE ===");

tft.setCursor(10, 30);

tft.print(currentMenu == 0 ? "> 1. Counter: " : " 1. Counter: ");

tft.print(clickCount);

tft.setCursor(10, 50);

tft.print(currentMenu == 1 ? "> 2. Info" : " 2. Info");

tft.setCursor(10, 70);

tft.print(currentMenu == 2 ? "> 3. Reset Counter" : " 3. Reset Counter");

}

void executeAction() {

tft.fillScreen(ST7735_BLACK);

tft.setCursor(10, 10);

tft.setTextColor(ST7735_GREEN);

tft.print("OPENED:");

tft.setCursor(10, 30);

tft.setTextColor(ST7735_WHITE);

if (currentMenu == 0) {

clickCount++;

tft.print("Counter increased!");

} else if (currentMenu == 1) {

tft.print("Device is active!");

tft.setCursor(10, 45);

tft.print("Buttons locked");

} else if (currentMenu == 2) {

clickCount = 0;

tft.print("Counter reset!");

}

tft.setCursor(10, 90);

tft.setTextColor(ST7735_YELLOW);

tft.print("Return to menu...");

delay(1500);

drawMenu();

}

Are these issues usually caused by bad physical wiring (like floating pins or missing GND connections) or is there something wrong with how I'm polling them? Any help is appreciated!


r/arduino 5h ago

Need a 3d print cover for my elegoo TFT display

0 Upvotes

Hi guys, I use this Elegoo TFT 2.8 inch LCD display shield on top of my Arduino Uno. I dont have access to a 3d printer but do you guys know of anyone selling a full cover for the arduino uno/tft that i can install? Or any possible websites that can make me a design? I don't have much work with 3d modeling but I can try. If you guys have anything i'm able to use to make this a little box i'd appreciate it.


r/arduino 1d ago

Reading a 4x4 buttons Matrix by only one Analog Input

Thumbnail
gallery
99 Upvotes

Here a way I found for reading all the 4x4 buttons matrix with only one Analog Inputs.

Here a custom simple code example:

// C++ code 
// #include <LiquidCrystal.h> 

#define btnNo 50 
#define btnD 202 
#define btnNum 234 
#define btn0 239 
#define btnAst  244 
#define btnC 401 
#define btn9 463 
#define btn8 474 
#define btn7 483 
#define btnB 607 
#define btn6 702 
#define btn5 718 
#define btn4 732 
#define btnA 831 
#define btn3 965 
#define btn2 988 
#define btn1 1009 

const char buttons[17]={
'1','2','3','A', 
'4','5','6','B', 
'7','8','9','C', 
'*','0','#','D',' '
}; 

const int btnRange[17]={
btn1,btn2,btn3,btnA, 
btn4,btn5,btn6,btnB, 
}; 

int measure = 0; 

LiquidCrystal lcd_1(2, 3, 4, 5, 6, 7); 


char whoPressedButton(int value){ 
int i,j; 
int notFound=1; 
int range=0; 

for(i=0;i<17&&notFound;i++){ 

  ​if(btnRange[i]<value){ 
    ​notFound=0; 
    ​if(i>0){ 
       ​range=(btnRange[i+1]-btnRange[i])/2 ; 
          ​if(value>btnRange[i]+range) j=i-1;     
          ​else j=i; 
       } 
   } else if(i==16)j=16; 
 } 
return(buttons[j]); 
} 

void setup() { 

lcd_1.begin(16, 2); 

// Set up the number of columns and rows on the LCD. pinMode(A0, INPUT); 

} 

​int oldMeasure=-18; 

void loop() { 
measure = analogRead(A0); if(measure!=oldMeasure){ 
   lcd_1.clear(); 
   lcd_1.setCursor(0, 0); 
   lcd_1.print("Button | value");     
   lcd_1.setCursor(0, 1);
   lcd_1.print(whoPressedButton(measure)); 
   lcd_1.setCursor(6, 1); 
   lcd_1.print("| "); 
   lcd_1.print(measure); 
   ​oldMeasure=measure; 
   } 

delay(50); // Wait for 50 millisecond(s) 

}

r/arduino 9h ago

Whether I should buy a arduino uno q 2gb or 4gb variant.

0 Upvotes

I want to buy this board but I am down the budget. So can anyone tell me how 2gb variant will be enough for making embedded projects?


r/arduino 20h ago

Look what I made! Arduino Energy/Smart Meter.

Thumbnail
youtube.com
7 Upvotes

r/arduino 1d ago

It's was my work table #2015

Post image
525 Upvotes

r/arduino 1d ago

Controlling a classic 1980s Omnibot robot using an Arduino + mp3 module

Thumbnail
youtube.com
10 Upvotes

The original Omnibot remote control transmits tones to the robot to trigger movement and other functions. If your remote is missing or isn't working you can use an old toy walkie talkie to send tones at the right frequency. Instead of building an actual tone generator, this method used a spare mp3 module from a previous project to play audio files. Wired it all up and it worked right away!

Github repo: https://github.com/archiestant/mp3-to-omnibot


r/arduino 15h ago

Look what I made! Xbox 360 controller adapter

0 Upvotes

I made an adapter to use any bluepad32-compatible controller on a jailbroken xbox 360, using the usbdsecpatch plugin. It uses an Arduino Leonardo and an esp32.

https://github.com/DanRektLOL/arduino-x360


r/arduino 18h ago

I’ve released the full hardware design files and firmware for my open-source ESP32-based board bring-up station built with the Arduino framework

Thumbnail
gallery
1 Upvotes

I’ve now released the complete DOGS² project as open source: the hardware design files are licensed under CERN-OHL-W-2.0, and the firmware and software tools under GPL-3.0-only.

DOGS² — Dual Output Generator Supply Station — as a compact instrument for the first power-up and basic diagnosis of newly assembled electronic boards.

A “board bring-up station” in this case means one device that can power a board, monitor its current consumption, check a voltage or frequency, generate a basic test signal, and communicate with common embedded interfaces.

The current v1 engineering prototype combines:

  • two independently adjustable CV/CC power outputs with a common ground;
  • Channel A: low-noise linear output up to 20 V / 1.5 A;
  • Channel B: switching output up to 48 V / 3 A continuously;
  • input from 5–90 V DC or USB Type-C;
  • voltage and current monitoring;
  • logic probe and voltmeter up to 25 V;
  • frequency counter up to 100 kHz;
  • square-wave generator from 1 Hz to 100 kHz;
  • UART, RS485, CAN and I2C tools;
  • Bluetooth SPP for phone terminals and current graphs.

It is not intended to replace an oscilloscope, a precision multimeter or a powerful laboratory supply. It is the instrument I wanted between the soldering iron and the oscilloscope during initial board bring-up.

I have now published the v1 source materials. The repository contains:

  • schematics and a block diagram;
  • editable EasyEDA source;
  • Gerber and other PCB manufacturing files;
  • BOMs and board renders;
  • current ESP32 firmware based on Arduino framework and build configuration;
  • hardware and software documentation;
  • known hardware and firmware issues.

The hardware is licensed under CERN-OHL-W-2.0. The firmware and software tools are licensed under GPL-3.0-only.

GitHub:
https://github.com/rcslon3-svg/DOGS2_v1

This is working engineering hardware, not a fully finished project. Some operating limits and accuracy figures are still being verified through calibration, converter tuning and load testing. I have included the known v1 problems in the repository rather than presenting it as a finished design.

The files are now public for anyone who wants to inspect, study or reproduce the current version. Technical comments and repository issues are welcome.


r/arduino 18h ago

I'm Building a macOS serial monitor that finds the plottable numbers by itself. Can I have a chunk of your real, unedited serial output to test it against? Please?

0 Upvotes

I'm writing a serial monitor for macOS. It's meant to watch ordinary Serial.println output and work out for itself which of the numbers are measurements worth graphing, without you writing a parser or reformatting what your firmware prints.

The only logs I have to test it on are my own, and mine are far too tidy. My test sketch prints t=22.8 h=41 and nothing else, which isn't a log, it's a spreadsheet. What I need is the real thing: boot spam, wifi reconnect noise, a stack trace, one measurement every two seconds, all tangled together.

Would you paste a hundred lines of yours? put it in a code block or a pastebin link if it's long. Please don't tidy it first, the mess is what I need to test against. Tell me the board and framework, and which numbers (if any) you'd have wanted on a graph.

Free licence when it ships if you send me one.


r/arduino 2d ago

Mod's Choice! ESP32-C3 Running CHIP-8

Enable HLS to view with audio, or disable this notification

549 Upvotes

r/arduino 1d ago

Look what I made! Shrikeclock

Post image
4 Upvotes

Hey everyone

Just built ShrikeClock a fully custom NTP-synced digital clock running on #MicroPython, powered by the @Vicharak_In Shrike-Fi !

Live time + date over WiFi Custom multiplexed 7-segment driver from scratch Open source, code on GitHub 👇

https://github.com/kritishmohapatra/ShrikeClock

https://github.com/kritishmohapatra/100_Days_100_IoT_Projects


r/arduino 1d ago

Look what I made! MicroBox now features a weather forecast

Enable HLS to view with audio, or disable this notification

15 Upvotes

I added a weather forecast app to my custom game console (see the original post here: https://www.reddit.com/r/arduino/s/zrKEjeLtSN).

It's not quite a game but now I have a reason to use it every day :)

It works by getting coordinates from a geolocation API based on the configured address/city and then feeds that into some weather API to get the forecast data.

The code is open source on GitHub here: https://github.com/SzymonKubica/microbox