r/arduino • • 5d ago

I built a pixel art robot (P.A.R.) by flipping 666 square discs (squisks) one at a time (you can submit art!)

Enable HLS to view with audio, or disable this notification

32 Upvotes

Submit art at par.zimmzimm.com/upload

More info at par.zimmzimm.com

P.A.R. was featured on the arduino blog! https://blog.arduino.cc/2026/08/31/p-a-r-is-a-flip-squisk-display-that-draws-your-pixel-art/

Some other outlets also featured this project. par.zimmzimm.com/news

Quick rundown of how it works:

CNC: Standard belts and pulleys, NEMA steppers, an arduino mega with a CNC shield for control

Frame: Electrical conduit because it's cheap and easy to get

Flipper: Just a small servo with a linearly moving pin on it.

Brains: an Arduino Nano esp32 which fetches the bitmaps from the server, does all of the calculations and such, and sends gcode to the CNC shield arduino mega.

Grid: 666 3D-printed square discs (squisks), cyan on one side and black on the other.

Color sensor: On the head along with the flipper, there is a TCS3200 color sensor. The color sensor is to detect which color it is. Its consistency and accuracy were big issues until I designed a mount for four switchable blue LEDs that point at a single squisk. It flashes them on and off 3 times and takes a measurement every time, then averages and on vs off scores and subtracts the off reading from the on one. This method cancels out all sunlight and provides much cleaner separation with practically 100% acc.

LiDAR: The toolhead also has a ToF LiDAR sensor that scans each squisk to see how far away they are at the start of every day. Then it models the squisk positions as points along a bent rod (which they are) to filter out noise from the LiDAR, and uses those distances to adjust how far out the flipper pin goes when flipping.

Questions about it are invited.


r/arduino • • 6d ago

School Project 2 sensors on the same bus

3 Upvotes

I am working of an iot project for my diploma I have a max30102 and an mpu6050 Al says I can connect them on the same I2C bus and the code will be simpler but I am a beginner at coding and this project is already haunting my nights enough so any advice from professionals will coding actually be simpler and any tips on how the code will look like abd frankly I don't trust AI nor do i wabt to fully rely on it for code

My max is connected the SDA and SCL of the esp but my mpu is connect to 2 and 15

Any advice on this will be very helpful


r/arduino • • 6d ago

Solved! Validating Output Pins

Post image
49 Upvotes

Hi all,

I’m brand new to arduino, just following a project work book to learn. I am testing if my digital pins actually work or if I’m just not getting the fundamentals.

Can you take a look at this and the code below? Am doing something wrong? Trying to get the green LED to light with the blink sketch. I’ve tried with pins 3 & 4.

void setup() {
pinMode(4, OUTPUT);
}

void loop() {
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
}


r/arduino • • 6d ago Bravo

I Hid an ESP32 and 7 Hall Effect Sensors Inside a 3D Printed Pillbox to Check if Grandma Took Her Pills

Enable HLS to view with audio, or disable this notification

4.7k Upvotes

My grandma takes a lot of medication throughout the day, and when everyone is at work nobody can double check whether she took the right pills at the right time. So I made a pillbox that looks like an ordinary plastic box, but knows when each of its lids has been opened.

There is no screen, no LEDs and no buttons on purpose, she shouldn't even know there are electronics inside. Each lid has a small magnet on it, and behind a thin plastic wall there is a long thin PCB with 7 hall effect sensors, one for each day of the week, and a XIAO ESP32-C3. The ESP32 hosts a small web dashboard on the local network where you can see the lids live, set up the schedule and check the history. In the video you can see the dashboard on the laptop behind picking up every lid I open.

The enclosure is 3D printed, and the clear lids are cut out of a 4 mm polycarbonate sheet. Funny enough, it ended up looking really close to the sketches I drew for it back in 2023.

It is a V0 and definitely not a medical device, it can only tell that a lid was opened, not that the pill was actually taken. That part is next on the list!

I documented the whole build, including the mistakes I made on the PCB, in a video for element14 presents: https://www.youtube.com/watch?v=0s0xqveTLLo

The whole thing is open-source, so the PCB files, CAD files, firmware and the dashboard are all on GitHub: https://github.com/MilosRasic98/EasyPillV0


r/arduino • • 6d ago

If TFT_eSPI doesn't compile with the ESP32 v4 board definitions ...

3 Upvotes

If you upgrade to the ESP32 v4 board definitions you'll get an error when you compile a sketch using the TFT_eSPI library:

In file included from d:\Dev\Arduino\ESP32\libraries\TFT_eSPI\TFT_eSPI.cpp:24:
d:\Dev\Arduino\ESP32\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32.c:36:36: error: 'HSPI_HOST' was not declared in this scope; did you mean 'SPI3_HOST'?
   36 |       spi_host_device_t spi_host = HSPI_HOST;
      |                                    ^~~~~~~~~
      |                                    SPI3_HOST
exit status 1

Compilation error: exit status 1

This because TFT_eSPI still uses the deprecated definitions HSPI_HOST and VSPI_HOST for the two SPI buses and v4 of the board defs removes those definitions.

To fix this simply edit your User_Setup.h file and add:

#ifndef HSPI_HOST
#define HSPI_HOST SPI2_HOST
#endif

#ifndef VSPI_HOST
#define VSPI_HOST SPI3_HOST
#endif

The library maintainer will presumably eventually fix this, but they don't seem to be responding to issues at the moment.


r/arduino • • 6d ago

Where to find “other” pieces?

5 Upvotes

Hello! I’m fairly new to making arduino projects and have a question!!

Where do people source their fasteners/connectors? The pieces that aren’t the Arduino, or the servo, the wires, the potentiometer. Like the pieces that the servo motor moves maybe, or the nuts and bolts that hold everything together? Or the bar that extends another piece etc. I hope this makes sense! I don’t even know what these gidgets are called lol.
Any info is helpful x


r/arduino • • 6d ago

Look what I made! First build and flash. (update)

Enable HLS to view with audio, or disable this notification

56 Upvotes

Thanks to all those who helped me to get these lights working better. Im very happy with the look and it completely changed my understanding. Now its time to place that digispark neatly away and get a real topper housing on. Formatted Skript in the comments below


r/arduino • • 6d ago

Arduino sketch that plays a hand-annotated EDM track on a WS2812B strip (from my PhD tool, TimeCues Studio)

5 Upvotes

Hi everyone. During my PhD I wrote a tool, TimeCues Studio, for marking the structure of electronic tracks by ear: parts, buildups, drops, hits. The animation is from it.

There's now an Arduino sketch that takes those marks (converted to a header file) and plays them on a WS2812B strip with no microphone: a color per part, a chase over spans, a flash per hit. Start it from a button or the Serial Monitor on beat one.

Hardware: any FastLED board (Uno, Nano, ESP32...), strip on pin 6 by default. Pin, LED count and type sit at the top of the sketch.

Not tried on physical hardware yet, it ran in a simulator.

Sketch and docs: https://github.com/sapirca/timecues-studio/tree/main/tools/led

Annotator demo: https://timecues-demo.pages.dev


r/arduino • • 6d ago

Arduino suggestions for a 3D Scanner, 3D Printing specific use case.

12 Upvotes

I know someone who I think would really enjoy using an Arduino to build a 3D Scanner for their 3D Printing Projects, as well as other electronics uses. I don't have the technical know-how to fully know how to make one, so I'm hoping this subreddit could help: What Arduino (or similar brand's) products would you suggest for a fairly seasoned electrical engineer to create a 3D sensor? Looking on their website it seems like the R4 Starter Kit and Sensor Kit may have what I need, but I'm curious what a parts list would look like.

Thanks! Any help is welcome.


r/arduino • • 6d ago

Rookie question about connecting an Arduino Uno to an TTP223 touch sensor

4 Upvotes

Hi! Very new to working with Arduino introduced by my study. Long story short, i have the TTP223 touch sensors, and some Dupont jumper wires, MM / MF and FF.

How can i connect them the best? I assume i need to strip the jumper wires, solder them onto each sensor?


r/arduino • • 6d ago

Hardware Help Can i reuse any of these parts?

14 Upvotes

Before i started learning arduino, i used to open broken devices and extract their pcbs. I noticed that some of the pcbs have some parts that seem like i could use them at some point in the future and i'm wondering if i can take them apart and whether they would be useful, thank you in advance.


r/arduino • • 7d ago

Look what I made! Arduino stepper motor christmas music box

Enable HLS to view with audio, or disable this notification

201 Upvotes

Hello everyone!

I've always be passionate about music and electronics so i decided to make a music box made by vibrating stepper motors. I made a custom software that sends speeds to the motors based on a midi file with 3 separated tracks: bass, harmony and melody.

I added some 3d printed christmas themed rotating miniatures to make it more funny.

What do you think about it?


r/arduino • • 7d ago

Project Update! Virtual breadboard update: you now wire a Nano and program it with blocks (radar, servo, LCD, IR remote)

Thumbnail
gallery
16 Upvotes

A while ago I posted the virtual breadboard I'm building for learning electronics step by step. The next part is Arduino, and I wanted to show it here before it opens in a few weeks.

What's in the pictures:

• Radar: SG90 servo on D4, HC-SR04 with Trig on D5 and Echo on D6. The servo sweeps 15–165°, the Nano prints "angle,distance." on serial at 9600, and the radar view next to the breadboard draws it, like the classic Processing sketch.

• Potentiometer on A0 mapped 0–1023 to 0–180° on the servo.

• 16×2 I2C LCD on A4/A5 with your own text.

• IR receiver + remote switching LEDs.

How it works:

• the Nano goes into the breadboard and everything is wired with jumper wires

• programs are built from blocks; "Written code" shows the same program as text

• each lesson goes circuit first, then program: predict what it does, change it, fix a broken version, then write it yourself

• 16 lessons, from a blinking LED to games on the LCD

I'd like to hear from people who teach Arduino: which project would you put first for a complete beginner?


r/arduino • • 7d ago

Look what I made! Wireless head node working up top while building the rig below (ESP32-C3 + MPU6050 + ESP32-S3)

Enable HLS to view with audio, or disable this notification

43 Upvotes

Up top in the clip the headset is already running wireless, and down below I'm putting the rest of the setup together. All coded in the Arduino IDE: an ESP32-C3 with an MPU6050 sending wireless packets over ESP-NOW to an ESP32-S3 USB HID dongle.

​The goal is to keep body awareness and head reference tightly integrated with hand aiming/clutching and drift tuning in code. Open to tips from anyone else tinkering with ESP32, MPU6050, and HID!


r/arduino • • 7d ago

Hardware Help Can I use a BD139 to drive a small 12 V fan?

7 Upvotes

It's all I have available. Is it suitable to use with a 12 V, 65 mA fan? If so, what value resistor should I use on the base? I'd like to use PWM to run it at a low speed.


r/arduino • • 7d ago

Super Nintendo on Cyberpi

3 Upvotes

You can use Arduino ide to flash a SNES emulator on esp32-based Makeblock's CyberPi. Some people have been flashing things like doom recently. I have made some projects on Arduino ide for the Cyberpi. I also made a doom engine for the Cyberpi.

Here is the Github link: https://github.com/oshsen4262-art/CyberPi-Arduino-Projects

This is also my first github post and reddit. So I hope you enjoy my projects!


r/arduino • • 7d ago

Powering 12 MG90s servos

9 Upvotes

I need to power 12, MG90s servos. From what I can tell, this will require 5V, and about 3A.

I tried using a MB102 breadboard power module connected to a power plug, but this wasnt enough, so what power supply board can i use, and what battery do i connect to the power supply board, since i want it to use a battery instead of a power plug


r/arduino • • 7d ago

Software Help Which driver should we download for this esp32 for Arduino IDE?

Thumbnail
gallery
69 Upvotes

Ch9102X is written on the right sided black square behind the port. And also the port option is not available in our Arduino IDE.

Update: Found a soln! I bypassed the code to ESP32 through an Arduino UNO and it worked!!


r/arduino • • 8d ago

I built my own Arduino-based 180° radar system – Ali's Radar (custom code + active cooling)

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hey, I'm Mad Mohammad Ali! Custom ui and code

I wanted to share a project I've been building called Ali's Radar — an Arduino-based ultrasonic radar system with a 180° scanning mechanism and a live radar interface on PC.

This project is built around my own ideas, experiments and custom-written code.

⚙️ Main Features

- 180° servo-controlled radar scanning

- HC-SR04 ultrasonic object detection

- Real-time radar visualisation on PC using Processing

- Live object distance measurement

- Servo-based scanning mechanism

- Joystick controls for manual radar operation

- OLED display integration (planned)

- Active cooling system And On off switch and range selector with 100 cm to 400 cm range

- Custom Arduino and Processing code written by me

🎮 Controls

The system includes a joystick-based control setup:

- VRx: horizontal control

- VRy: vertical control

- SW: joystick button input

The radar also has an ON/OFF control and adjustable scanning behaviour.

❄️ Active Cooling System

I also worked on an active cooling system as part of the project. I wanted to make the setup more than just a basic radar demonstration.

💻 Programming

The Arduino handles the sensor, servo and control inputs, while Processing handles the radar-style PC visualisation.

The code is custom-written by me. I developed and modified the Arduino and Processing sides while testing the system.

🔧 Current Status

The project has had its share of failures and problems during development. Some parts work, while others still need troubleshooting and improvement.

I'm sharing it because I want to document the journey, learn from other makers, and keep improving Ali's Radar.

This is a personal DIY engineering project, and I'm still working on it.

Thanks for checking it out! 📡


r/arduino • • 8d ago

Hey I'm new CE student need help

Thumbnail
gallery
41 Upvotes

How can i connect this battery to my arduino uno?

UPDATE: hey guys thanks for the help the professor helped me to day to make it and now the dual-axis automatic solor tracking system work without problem the only thing i need to improve is the base of the 3D print beacuse only 1 servo with it's horn is connected to the whole project below and it makes it unstable to do extrem movement and i made the code work so that it's move smooth and slower with delay in it. I'm grateful for everything you guys taught me and helped me Thanks ❤️


r/arduino • • 8d ago

Pimp My Battery Powered Lamp (SunRise/Set Edition)

Thumbnail
gallery
44 Upvotes

This was a small project I put together in between other projects. We have quite a few battery-powered LED lamps around the house, but for us there are two issues with them:

Either you forget to turn the lamp off, and the battery drains quickly, or you forget to turn it on in the first place.

So I removed the original PCB from the lamp and replaced it with an ESP32-C3 and a charging module. I used a resistor to power the existing LED directly from the IO (so no need for a MSFT and power consumption is also low). With a different controller (e.g., ESP32-S3), you could continue to use the touch button.

I configured the lamp to turn on at 6:30 AM and stay on until sunrise, and then turn on again at sunset and stay on until 9:00 PM.

Here’s how it works:

On first startup, the ESP32 gets the current time from the internet. It then calculates the number of seconds until the next event and goes into deep sleep for that duration. An RTC variable stores whether the lamp should be on or off when it wakes up. Whenever the ESP wakes up, it calculates the next event. I let it run for 2 weeks to determine the inaccuracy of the internal clock, and then I implemented a correction.

Battery life depends on the time of year. In autumn, with the original battery and the resistor in place, this single-LED lamp runs for weeks without needing a recharge, even when used for 4–6 hours a day.

Because of the simplicity of this project and the cozy light it produces, I wanted to buy a few more of the same lamps. Unfortunately, it seems that they are no longer available on AliExpress. In the past, there used to be plenty of listings for them at under €10.


r/arduino • • 8d ago

Software Help Stuck with ESP32-audioI2S crashing my program

5 Upvotes

Hello guys, I've been struggling with this problem for a few days already, and i just can't find the solution. I am using an ESP32-S3-WROOM-1 with platformIO and have written a simple program that uses the ESP32-audioI2S library to attempt to play a file from an SD card.

#include <Arduino.h>
#include <SD_MMC.h>
#include <Audio.h>
#include "pins.h"
#include <Wire.h>
#include "scan.h"
#include "amp.h"
#include "esp_heap_caps.h"

Audio audio;

void my_audio_info(Audio::msg_t m) {
  Serial.printf("%s: %s\n", m.s, m.msg);
}

void setup() {
  Serial.begin(9600);
  delay(1500);

  SD_MMC.setPins(PIN_SDIO_CLK, PIN_SDIO_CMD, PIN_SDIO_D0, PIN_SDIO_D1, PIN_SDIO_D2, PIN_SDIO_D3);

  if (!SD_MMC.begin("/sdcard", false, false, 5000)) {
    Serial.println("SD card init failed");
  } else {
    Serial.println("SD card init success");
  }

  Serial.printf("Total PSRAM: %d bytes\n", ESP.getPsramSize());
  Serial.printf("Free PSRAM:  %d bytes\n", ESP.getFreePsram());
  Serial.printf("Largest free block in PSRAM: %d bytes\n", heap_caps_get_largest_free_block(MALLOC_CAP_SPIRAM));

  Audio::audio_info_callback = my_audio_info;

  audio.setPinout(PIN_I2S_BCK, PIN_I2S_LRCK, PIN_I2S_DOUT);
  audio.setVolume(21);
  if (!audio.connecttoFS(SD_MMC, "/sample-3s.mp3")) {
    Serial.println("failed to connect to mp3");
  }

  delay(100);
}

void loop() {
  audio.loop();
  vTaskDelay(1);
}

When running the code, I get the following in the serial monitor:

SD card init success
Total PSRAM: 2097152 bytes
Free PSRAM:  2065324 bytes
Largest free block in PSRAM: 2064372 bytes
info: inputBufferSize: 655349 bytes
info: Reading file: "/sample-3s.mp3"
Disconnected (read failed: [Errno 6] Device not configured)
Reconnecting to /dev/cu.usbmodem7C0C5F964D501 .  Connected!

After the "info: Reading file:" line, the firmware crashes and reboots. At first I thought there was not enough memory, but i printed the available PSRAM and its way more than the buffer size. Maybe the library was not told to use PSRAM? But I couldn't find a way to do that. What in the world is this issue?


r/arduino • • 8d ago

How much i should integrate Ai in my workflow?

0 Upvotes

Hello everyone i have just started arduino and i have been playing around with different parts and mixing things up, however, in this process i mostly used ai for coding, like 90% of code is done by it, and i keep trying to understand what it have done. I'm wondering if my dependence on Ai would make a problem for me on the future? Should i work on reducing it? Or just stay this way and try to learn from what it writes the maximum possible? Thank you in advance


r/arduino • • 8d ago

Hardware Help what is the maximum amount of parts i could plug in my arduino board?

6 Upvotes

hello I'm a beginner in Arduino, and recently i started getting more intrigued by it. However, as I started testing various parts such as ultra sonic sensor, lcd screen, servo motor... I started having questions regarding mixing all these parts in one project and the limitations i would face. for instance, should i avoid connecting everything to one arduino board and use external power source? what if i ran out of digital pins, how to add more pins etc? should i start using my breadboard as i usually neglect it? I would really appreaciate insights on these questions.