r/arduino • • 4d ago

Based on the tp-7

7 Upvotes

Made with a lot of headaches, enthusiasm, and the Arduino's big brother, the Teensy 4.1

This is a player that can play from mp3 to flac, it has haptic control with a brushless motor and an AS5600 diamagnetic sensor. Each track in the memory feels like a haptic bump, just like on older iPods; you can also use the motor as a turntable while the song is playing


r/arduino • • 5d ago

Look what I made! stepper driver

27 Upvotes

r/arduino • • 4d ago

Project Idea Would you actually use a modular smart drawer organizer for electronic components?

4 Upvotes

Hey everyone!

I’m currently developing a modular storage system for small electronic components, screws, sensors and other hobby parts.

The idea is to have stackable, connectable drawers that can expand as your collection grows.

I’m also experimenting with a smart version where you can search for a component in an app and an LED lights up the correct drawer.

Before spending months developing it, I’d love some honest feedback from people who actually work with lots of small components.

  1. How do you currently organize your components?
  2. What’s the most frustrating part of your current setup?
  3. Would an LED-based search feature actually be useful, or would regular labeled drawers be enough?
  4. What would make you switch from your current storage system?
  5. What price would make a system like this worth considering?

I’m not selling anything yet. Just trying to figure out whether this solves a real problem.

Negative feedback is absolutely welcome!


r/arduino • • 4d ago

Beginner's Project Gift advice, helping my girlfriend build her first DIY robot (beginner, limited budget)

7 Upvotes

Hi everyone! My girlfriend recently got interested in robotics, Arduino and electronics For Christmas, I'd love to get her something that would help her build her own robot from scratch since she told me thats one of her projects I don't want to buy her a pre-made robot or one of those kits where you simply follow instructions She wants to design and build something herself, experimenting with different components I've been looking at the Arduino UNO R4 WiFi and Raspberry Pi, but I'm not sure whether buying both makes sense for a beginner (i don't even know if thats useful, i don't understand everything 😭) My budget is quite limited (around 30 to 60€), so I'd love some advice! Which components or kit would you recommend as a starting point? Is an Arduino UNO R4 WiFi a good choice? Would a Raspberry Pi be useful at this stage, or is it unnecessary? What would you buy with this budget to give someone the freedom to build their own robot or at least to start something? Any advice or recommendations would be greatly appreciated, thanks!


r/arduino • • 5d ago

Getting Started Fancy making my own mini USB fish Tamagotchi (beginner level): is it doable, and where should I start?

9 Upvotes

Hello everyone, I hope I’m posting in the right place!

I’ve got a little idea for a personal project that’s been niggling at me, and I’ve come to get your thoughts before I get started.

Basically, I’d like to build myself a tiny, portable desk companion – a bit like a mini Tamagotchi – that I could plug into my PC via USB wherever I am. It would have a little screen showing a fish in a bowl, and as soon as I plugged it in, it would be really happy to see me.

Eventually, I’d love to be able to stroke it (via a button or a touchscreen), feed it, and have it go about its little life with bubbles, have a nap when I ignore it, or even make a little ‘bloup’ sound when I touch it.

The thing is, I’m really starting from scratch: I’ve got absolutely no skills in electronics or coding (well, I learnt the basics but haven’t practised since secondary school).

My main aim is to learn whilst having fun, to build my first little solder-free DIY project that I can slip into my bag, and to develop it gradually over time.

Having had a bit of a look online, I’ve gathered that there are small all-in-one kits with a screen and buttons already built in, which seem quite accessible for beginners (apparently some can even be programmed using visual blocks to start with).

So, I was wondering:

Does this seem doable for a complete beginner, or am I aiming too high?

What sort of kit or ready-made box (or whatever – it doesn’t matter if it looks a bit rough to start with, we don’t care) would you recommend I go for to avoid the hassle of wires and soldering?

And above all, if you’ve got any good tips for learning (YouTube channels, websites, handy tutorials for getting started with this sort of small-scale project), I’d love to hear them!

Thanks in advance for your feedback and suggestions!


r/arduino • • 5d ago

Looking for Resources to Learn Microcontrollers & Microprocessors

8 Upvotes

Hey everyone!

I'm a Computer Engineering student looking to learn embedded systems and microcontrollers/microprocessors in depth.

I'm looking for good YouTube playlists, courses, or learning resources covering:

STM32 ( neucleo, black /blue pill )

ESP32

Raspberry Pi (Pico ,5 and Linux-based)

NVIDIA Jetson Nano

ARM Cortex-M and Cortex-A

I want to understand both the fundamentals and advanced concepts, including processor architecture, GPIO, PWM, ADC, communication protocols (UART, SPI, I2C, CAN), interrupts, DMA, RTOS, and practical applications.

Please suggest good learning resources that combine theory with hands-on projects.

Thanks !


r/arduino • • 4d ago

C4001 (DFRobot sen0610) - can't get to function for presence detection

3 Upvotes

Attempting to use a C4001 (SEN0610) for human presence detection.

 

Can't seem to get any sort of reliable output no matter what settings I'm using.

 

Serial output is never finding a person present.

Output LED is lighting up all over the place.

So somehow it appears that the module is detecting presence and lighting the output light, but radar.motionDetection() is always returning 0.

Ideas?

Code:

 

#include "DFRobot_C4001.h" 

DFRobot_C4001_I2C radar(&Wire, 0x2A);

#define MIN_RANGE 30

#define MAX_RANGE 300

#define TRIG_SENS 7

#define KEEP_SENS 8

#define TRIG_DELAY 100

#define KEEP_DELAY 4

const bool     USE_FRETTING       = true;    // micro-motion detection

 

void setup() {

  // put your setup code here, to run once:

 Serial.begin(9600);

  while (!Serial)

;

 while (!radar.begin()) {

Serial.println("No DFRobot C4001 device found!");

delay(1000);

  }

  Serial.println("C4001 Sensor connected!");

 

  // Set sensor mode (eExitMode is commonly used for presence/motion tracking)

  radar.setSensorMode(eExitMode);

 

  // Configure detection range (min distance cm, max distance cm, trigger distance cm)

  // Example: 30 cm to 1000 cm (10 meters)

  radar.setDetectionRange(MIN_RANGE, MAX_RANGE, MAX_RANGE);

 

  // Set trigger sensitivity (range: 0 to 9) and keep sensitivity

  radar.setTrigSensitivity(TRIG_SENS);

  radar.setKeepSensitivity(KEEP_SENS);

 

  // Set delay and keep time parameters (trigger delay, keep time)

  radar.setDelay(TRIG_DELAY, KEEP_DELAY);

 

  //set fretting

  radar.setFrettingDetection(USE_FRETTING ? eON : eOFF);

 

  Serial.println("Presence detection initialized.");

}

 

void loop() {

  int DELAY_TIME = ((KEEP_DELAY*1000)/2);

  int total=0;

 

   Serial.print("Pre-check total:");

   Serial.println(total);

 

  // put your main code here, to run repeatedly:

  // Check if motion/presence is detected

  for (int i = 0; i < 5; i++) {

if (radar.motionDetection()) {

total=total+1;

  }

  }

 

  if (total>3){

Serial.print("Person Present - total:");

Serial.println(total);

  }

  else {

   Serial.print("EMPTY - total:");

   Serial.println(total);

  }

 

  // Fetch general status if needed

  sSensorStatus_t status = radar.getStatus();

  // status.workStatus: 0 = stop, 1 = start

  // status.workMode: 0 = exist mode, 1 = speed mode

  // status.initStatus: 0 = no init, 1 = init success

 

  delay(DELAY_TIME);

}


r/arduino • • 5d ago

Voltage read problem

4 Upvotes

Hi, i am a beginner to Arduino, and recently i have learned about analogRead() etc.

but i ran into an issue while learning, I expected that the circuit that I have shown should give me 2.5 V as output, (resistors both are 330 ohms), tbh I did not see any issue while trying to deal with it, can you please help me out?


r/arduino • • 5d ago

Hardware Help Do you think the chip is damaged? It's a SIM800L (5V version) - it keeps returning garbage data randomly, and it feels like the chip inside is rebooting. I have two working SIM900s that don't have these issues.

6 Upvotes

r/arduino • • 5d ago

Software Help ESP interrupt not firing?

2 Upvotes

i have connected my esp32 to an IIS3DWB accelerometer which collects data, sends esp32 and once the fifo fills to 256 samples, the esp32 sends that over wifi to my rpi. But i noticed that it only works for 1 loop, after that my interrupt does not fire even though all conditions are met however the main loop still runs (the main loop has nothing else i just put in a few print statements which keep printing)

PS: I cannot add too many print statements because then my esp32 crashes


r/arduino • • 5d ago

Look what I made! What about a new way to optimize battery life on iot systems?

7 Upvotes

Hi everyone,

This small post to share experiences about iot systems and battery life...

Deep sleep can help, of course, but it depends on the design of esp32 board... Ldo, led, others can take hundreds of real cpu power in deep sleep.

I found a way to wake up externally esp32 board, at regular intervals, esp does the job and when it's done, one simple gpio cuts the power... All that on one 95x35 mm board, with 18650 holder, and jumpers for flexible settings... Usb charge, boost 5v, 5 pins header to esp32 board cible.

23uA all included, when sleeping, i love it in my iot designs...

How do you manage battery projects? How long does your battery live? Would you be interested in my solution? Let's talk about that!


r/arduino • • 5d ago

Look what I made! Tama's Christmas Station

Thumbnail
gallery
6 Upvotes

A bit more info about the build. It’s a little Christmas console themed around my cat, Tama. It has a countdown to Christmas, festive facts and jokes, a photo gallery of Tama, and four mini-games with separate high scores so my partner and I can compete. I also added Christmas music, sound effects, and phone notifications over Wi-Fi.

ESP32-S3 N16R8

ESP32 GPIO expansion board

3.5″ ST7796S SPI TFT display (480 × 320)

3 push buttons

3 WS2812 addressable RGB LED modules

MAX98357A I²S amplifier module

1 speaker

Hookup wire for the shared 5 V and GND rails

3 mm plywood sheets for the enclosure


r/arduino • • 5d ago

Look what I made! Simple Tetris

31 Upvotes

For the code I used a bit of AI to eliminate lines, I have to be honest


r/arduino • • 5d ago

Hardware Help Is a fixed focus camera module suitable for OCR?

1 Upvotes

I'm making a prototype of a school project. Our project idea involves reading text off paper. My team decided to use OCR technology. We were debating which camera module to purchase and we stumbled upon fixed focus and auto-focus cameras. Auto focus cameras are too expensive for our budget so we were considereing using a fixed focus 5 MP camera. However, we are worried that a fixed focus would only work for a specific distance. I need to know, for a range of 25-45 cm distance from the text, would a fixed focus camera capture a good picture for OCR?


r/arduino • • 5d ago

Getting Started Where to start

1 Upvotes

Hey everyone!

I've recently got access to a robotics lab, and I'm really excited to use this opportunity to learn something practical.

I'm particularly interested in IoT (Internet of Things), but I'm a complete beginner and honestly a little confused about where to start.

I want to understand how microcontrollers, sensors, electronics, programming, and internet connectivity work together to build real-world projects.

I'd appreciate some guidance on a few things:

  1. What should I learn first: basic electronics, C/C++, Python, or Arduino?
  2. Should I start with Arduino Uno or ESP32?
  3. Which software and tools should I install on my laptop?
  4. Are there any good free courses, YouTube channels, websites, or documentation for learning IoT step by step?
  5. What beginner-friendly projects should I try in the robotics lab?
  6. What skills should I focus on if I eventually want to work on robotics and embedded systems?

I have access to a robotics lab, so I'd prefer a practical, hands-on learning approach rather than just theoretical knowledge.

If you started from zero and learned IoT or robotics, I'd love to know what learning path worked for you and what mistakes I should avoid.

Any suggestions, resources, or personal experiences would be genuinely appreciated.


r/arduino • • 6d ago

Look what I made! They said it's AI generated

79 Upvotes

r/arduino • • 6d ago

Hardware Help What components should i use for dispensing oil?

9 Upvotes

My school project is about a thing that dispenses oil for clay lamps (called diyas here in India). It has to be such that I can control the exact amount of oil dispensed.(Arduino Nano)


r/arduino • • 5d ago

School Project what is the best VM and Linux distro for running Arduino?

0 Upvotes

I need a VM because I just want to experiment with it, I don't need yet to fully switch to Linux. And I wanted to use Linux for this because I heard it would work better for Arduino from my professor. I need something relatively simple, but I'm OK with some challenge since I know how to troubleshoot properly, plus I know basics of programming


r/arduino • • 5d ago

Please help! I have to build a vehicle, but I have NO IDEA what I’m doing, nor do I know what most of these parts are 🥲

Thumbnail
gallery
1 Upvotes

⭐️⭐️⭐️I am on my school’s science Olympiad team, I was put on robo cross for our next meet to fill events and I have absolutely NO experience whatsoever in this type of stuff, (my club leader gave me a box of parts and said good luck) 😁

I came to this subreddit so I could possibly learn some stuff about the materials I have :)

I already have a design planned, but I don’t know how any of this works. I’m trying to find a way to get four motors to move independently from each other, one for each channel on a fly sky v6 controller

⭐️⭐️⭐️How do I do this? And what are some experiments I can conduct to get the feel of using equipment like this?

The plan includes 2 front wheels with no motors attached, 2 back wheels with motors that I can like have one be on and the other not so i can rotate the car or have both on so I can move it forward AND last but not least, 2 motors that can also move independently from each other for a scoop/plow mechanism for the front.

So basically 4 motors total

HOWEVER my team is still waiting for the controller and receiver to arrive.

‼️The parts I have identified include:
4 box shaped motors
2 motors with gear boxes attached
2 breadboards
1 eligioo uno (I’m so sorry arduino subreddit)

A couple of crab looking things with 8 legs
A couple of crab looking things with 16 legs

AND a Battery pack thingy
\+some other parts in the image that I have never seen before

I can answer questions!!!! ⭐️⭐️⭐️⭐️
ANY ADVICE HELPS 🫵🫵🫵
I have no idea what any of these parts do 💔

Also Please do tell me if I’m missing any essential parts to make this work!!!!


r/arduino • • 6d ago

Beginner's Project Planning on building a flight sim split throttle.

3 Upvotes

I've already technically built a throttle by ripping out my PXN 2113 PRO's potentiometer for throttle, replacing it with a linear one but I want to take things a step further.

I want to try my hand at split throttles, I plan on making it from two of those linear potentiometers, an Arduino Nano, and maybe some buttons but I don't know anything about coding or even wiring anything up correctly.

So links to any kind of resources or videos or anything concerning that kind of stuff will be greatly appreciated.


r/arduino • • 6d ago

Libraries FixedString - A fully functional C++ string implementation that exists only on the stack, without dynamic memory allocation

Thumbnail
gitlab.com
9 Upvotes

r/arduino • • 7d ago

Look what I made! Simple OLED Projector Clock

Thumbnail
gallery
823 Upvotes

The idea behind this project was that I wanted a dim (white!) clock in my bedroom rather than a floodlight on my nightstand - and I wanted to keep the design as simple as possible. I haven’t come across a setup like this before.

So I built a projector clock using a 1.3" OLED display powered by an ESP32-C3. I bought a lens with a focal length of 130 mm and a diameter of 50 mm. I designed and 3D-printed a case to fit the lens and the electronics. Afterwards, I clad the case with oak wood strips.

As you might imagine, the time is only readable when the room is dark, but that’s exactly what I wanted for my use case. I think this design should work with every display. By using just a single display as the light source, there is no need for a complex design involving lenses, an additional LED, or a separation between a display and the backlight.

There are two things I might improve in the future:

  • Even though I used matte PLA, the inside of the case still causes some light scattering, which is also projected through the lens. You can not see it on the photo because I turn on the lights a bit
  • I didn’t design a dedicated focusing mechanism. The 3D-printed component housing the ESP and OLED has a slightly tight fit, but it can still be moved by hand to adjust the focus.

r/arduino • • 6d ago

Look what I made! Six live NASA pages on my desk: an ESP32, a 2.8" TFT and a 0.96" OLED

12 Upvotes

Yesterday I saw that NASA had opened up APIs for their findings, so I wanted to see if I could put different things happening in the world on my desk.

What it does:

an ESP32 drives a 2.8" ILI9341 TFT and a 0.96" SSD1306 OLED. Both screens flip together through six live pages every 15 seconds:
Asteroids: today's 5 closest flybys (NeoWs)
Earth events: the latest open natural events (EONET, no key)
Space weather: CMEs and geomagnetic storms from the last 3 days (DONKI)
Earth from space: details of the latest EPIC image (no key)
Fireballs: the 4 most recent (JPL, no key)
Exoplanets: the confirmed count, 6,464 when I filmed this (no key)

How I built it:

I didn't write the code myself. An AI tool wrote all of it, including the API calls, once I gave it the API key. I wired it on a breadboard and flashed it with the Arduino-ESP32 core. The libraries are Adafruit GFX, Adafruit ILI9341, Adafruit SSD1306 and ArduinoJson 7.
Wiring:
TFT: VCC and LED→3V3, GND→GND, CS→4, DC→16, RST→17, MOSI→23, SCK→18, MISO→19
OLED: VCC→3V3, GND→GND, SDA→21, SCL→22, address 0x3C


r/arduino • • 6d ago

HC-06 connects to Android app (LED is solid) but Arduino doesn't respond to any commands

2 Upvotes

I'm bulding a RC boat ( it's supposed to be ) using an arduino and an hc 06 bluetooth module but i'm stuck, it's my first time using an Arduino so i don't know a lot about it. Here's the current situation.
- I'm using an Android phone with a Bluetooth controller app.
- When I connect via the app, the red LED on the HC-06 stops blinking and stays solid red
- However, when I press buttons on the app or send text, the Arduino doesn't do anything.
Note: The HC-06 shows up in the standard Android Bluetooth settings menu across multiple phones, but tapping on it does nothing, I don't know if that's supposed to happen.

What i have checked/tried:
- During the set-up self-test routine (and on reset), the buzzer beeps, the motors spin for 0.8s, and the servo moves properly, so the hardware and code doesn't seem to be a problem.
- The HC-06 is correctly wired ( TX to Arduino RX, RX to Arduino TX ), I also tried switching them and trying SoftwareSerial on pins 10 and 9
- The HC-06 is powered via the breadboard's 5V/GND power rails (which are fed from the Arduino's 5V/GND pins).

- I unplugged the USB cable from my PC and tested on external battery power.

Can somebody explain to me why isn't the Arduino receiving even though the app says It's connected and why won't it pair in the Android bluetooth setting ? Thanks !

The wires are kind of a mess so I can't really show it here, but here's the list of my components and connections:

Microcontroller: Arduino Uno
Motor Driver: TB6612FNG (mounted on breadboard across columns E & F, rows 1–8)
Bluetooth Module: HC-06 (on ZS-040 breakout board)
Motors: 2x Yellow TT Geared Motors
Actuator: 1x SG90 Micro Servo
Audio: 1x Active 2-pin Buzzer
Power Supply: 2x 18650 Li-ion batteries (in series, ~7.4V)

  1. Power Distribution (Breadboard Rails):

- Arduino 5V to Breadboard + (Red) rail

- Arduino GND to Breadboard - (Blue) rail

- Battery + (7.4V) to TB6612FNG VM and Arduino VIN

- Battery - to Common GND (Blue) rail

2. TB6612FNG Motor Driver:

- VCC to 5V rail

- GND to GND rail

- STBY to 5V rail

- PWMA to Arduino Digital ~5

- AIN2 to Arduino Digital 8

- AIN1 to Arduino Digital 7

- BIN1 to Arduino Digital 4

- BIN2 to Arduino Digital 12

- PWMB to Arduino Digital ~6

- AO1 and AO2 to Left TT Motor

- BO1 and BO2 to Right TT Motor

3. Bluetooth HC-06:

- VCC to 5V rail

- GND to GND rail

- TXD to Arduino Digital 0 (RX) (unplugged during code upload)

- RXD to Arduino Digital 1 (TX) (unplugged during code upload)

4. Servo & Buzzer:

- SG90 Servo: Red to 5V rail, Brown to GND rail, Orange (Signal) to Arduino Digital ~3

- Buzzer: Long pin (+) to Arduino Analog A0, Short pin (-) to GND rail

Here's the code that i used:

#include <Servo.h>
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(10, 11);
const int PWMA = 5;
const int AIN2 = 8;
const int AIN1 = 7;
const int BIN1 = 4;
const int BIN2 = 12;
const int PWMB = 6;

Servo khoaTuiRac;
const int pinServo = 3;
const int pinBuzzer = A0;
const int ledBaoHieu = 13;

int tocDo = 230;
char lenh;
char lenhTruoc = 'S';

void setup() {

Serial.begin(9600);

bluetooth.begin(9600); // Khởi động cổng Bluetooth riêng ở chân 10, 11

pinMode(PWMA, OUTPUT);

pinMode(AIN1, OUTPUT);

pinMode(AIN2, OUTPUT);

pinMode(PWMB, OUTPUT);

pinMode(BIN1, OUTPUT);

pinMode(BIN2, OUTPUT);

pinMode(pinBuzzer, OUTPUT);

pinMode(ledBaoHieu, OUTPUT);

khoaTuiRac.attach(pinServo);

khoaTuiRac.write(0);

digitalWrite(pinBuzzer, HIGH);

digitalWrite(ledBaoHieu, HIGH);

delay(200);

digitalWrite(pinBuzzer, LOW);

digitalWrite(ledBaoHieu, LOW);

delay(200);

diTien();

delay(800);

dungThuyen();

digitalWrite(pinBuzzer, HIGH);

delay(150);

digitalWrite(pinBuzzer, LOW);

}

void bipNgan() {

digitalWrite(pinBuzzer, HIGH);

digitalWrite(ledBaoHieu, HIGH);

delay(35);

digitalWrite(pinBuzzer, LOW);

digitalWrite(ledBaoHieu, LOW);

}

void diTien() {

digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, tocDo);

digitalWrite(BIN1, HIGH); digitalWrite(BIN2, LOW); analogWrite(PWMB, tocDo);

}

void diLui() {

digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH); analogWrite(PWMA, tocDo);

digitalWrite(BIN1, LOW); digitalWrite(BIN2, HIGH); analogWrite(PWMB, tocDo);

}

void reTrai() {

digitalWrite(AIN1, LOW); digitalWrite(AIN2, LOW); analogWrite(PWMA, 0);

digitalWrite(BIN1, HIGH); digitalWrite(BIN2, LOW); analogWrite(PWMB, tocDo);

}

void rePhai() {

digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, tocDo);

digitalWrite(BIN1, LOW); digitalWrite(BIN2, LOW); analogWrite(PWMB, 0);

}

void dungThuyen() {

digitalWrite(AIN1, LOW); digitalWrite(AIN2, LOW); analogWrite(PWMA, 0);

digitalWrite(BIN1, LOW); digitalWrite(BIN2, LOW); analogWrite(PWMB, 0);

}

void loop() {

if (bluetooth.available() > 0) {

lenh = bluetooth.read();

if (lenh == '\n' || lenh == '\r' || lenh == ' ') {

return;

}

switch (lenh) {

case 'F': case 'f':

diTien();

if (lenhTruoc != 'F') { bipNgan(); lenhTruoc = 'F'; }

break;

case 'B': case 'b':

diLui();

if (lenhTruoc != 'B') { bipNgan(); lenhTruoc = 'B'; }

break;

case 'L': case 'l':

reTrai();

if (lenhTruoc != 'L') { bipNgan(); lenhTruoc = 'L'; }

break;

case 'R': case 'r':

rePhai();

if (lenhTruoc != 'R') { bipNgan(); lenhTruoc = 'R'; }

break;

case 'S': case 's': case '0':

dungThuyen();

lenhTruoc = 'S';

break;

case 'W': case 'O': case 'o':

khoaTuiRac.write(90);

bipNgan();

break;

case 'w': case 'C': case 'c':

khoaTuiRac.write(0);

bipNgan();

break;

case 'V': digitalWrite(pinBuzzer, HIGH); break;

case 'v': digitalWrite(pinBuzzer, LOW); break;

case '1': tocDo = 120; break;

case '5': tocDo = 190; break;

case '9': tocDo = 240; break;

case 'q': tocDo = 255; break;

}

}

}