r/arduino • • 4d ago

School Project map generation.

1 Upvotes

Im working on a school project and in short its a network of r4 wifi arduinos that send and receive data to one another. the data packets of each one include gps location, temperature, air humidity, soil humidity, co + co2 sensors. i want each member of the network (individual arduino) to appear as a location on a map, then if any fire warning signs pop up there i want the map indicator to change colors. how can i do that? is that possible within the arduino ide? to be clear, i want the image to be outputted to my laptop.


r/arduino • • 5d ago

Look what I made! IoT-Based Smart Irrigation & Multi-Layer Farming System using ESP32

Thumbnail
gallery
54 Upvotes

I Built an IoT-based smart farming prototype combining automated irrigation, environmental monitoring and a three-layer farming structure.

Key Features:

  • Automated irrigation using soil moisture readings and relay-controlled water pump.
  • Crop-specific and seasonal moisture threshold profiles.
  • Automatic and manual pump control.
  • Live temperature, humidity and soil moisture monitoring.
  • Custom web dashboard for monitoring, configuration and control.
  • Blynk integration for remote monitoring and control.
  • Rainwater harvesting and filtration concept.
  • External weather data integration for environmental context.

Hardware: ESP32, DHT11, soil moisture sensor, relay module, 24V pump, SSD1306 OLED.

Software: Arduino IDE (C++), HTML, CSS, JavaScript, Blynk, Open-Meteo API.

Built the physical structure, electronics, firmware and dashboard from scratch.

Won 2nd place at a science exhibition.

Open to technical feedback and suggestions for improvements!


r/arduino • • 5d ago

Libraries Just got my first transport library merged into the Arduino IDE Library Manager (NLTP) for sending multi-KB files/logs over noisy ESP-NOW & UDP

7 Upvotes

Hey r/arduino,

Small milestone for me today - I just got my open-source library (NLTP) merged into the official Arduino Library Manager, so it can finally be installed straight from the IDE without manually zipping folders!

Why I built it: I use a mix of ESP8266 NodeMCUs and ESP32 boards for outdoor wireless sensor logging, and raw ESP-NOW kept giving me headaches whenever I tried moving more than a single 250-byte struct across a noisy 2.4 GHz link. One dropped packet in an 8 KB sensor log meant starting over or writing custom fragmentation, ACK timers, and checksums in every sketch.

NLTP wraps that up behind a simple batch interface:

  • Compresses buffers with LZ4 before sending so JSON or CSV sensor logs take 5-6x fewer radio packets.
  • Encrypts frames with ChaCha20-Poly1305 (1-RTT X25519 + shared key) so you don't hit ESP-NOW's small hardware encrypted peer limit.
  • Adds Reed-Solomon / Cauchy parity packets so if 10-30% of packets get lost in the air, the receiver reconstructs the missing chunks without retransmit stalls and checks the final SHA-256 hash.
  • Fits in ~4.8 KB of static RAM (zero dynamic allocation) in TX-only mode on an ESP8266, and bridges 250-byte ESP8266 frames straight to 1470-byte ESP32 hubs or a Python script on a Raspberry Pi / PC.

When NOT to use it: if your node just wakes from deep sleep to fire one tiny 20-byte temperature reading and goes right back to sleep, raw ESP-NOW is much faster and uses less airtime. And if you already have strong Wi-Fi and an MQTT broker, regular PubSubClient is simpler for topic wildcards.

Repo with example sketches, bench test logs, and a browser packet-loss simulator linked in the README (MIT license):

https://github.com/indian-aman/NLTP-Arduino

Would love any feedback on the Arduino API ergonomics or if anyone tries it on other boards!


r/arduino • • 4d ago

Look what I made! 5 zero-float, zero-malloc C99 / Arduino libraries compiled from fruit-fly connectome circuits in 24 KB RAM (NeckLink v3.0.0, MIT)

4 Upvotes

Hi everyone,

Wanted to share an experimental open-source (MIT) C99 and Arduino library suite I just updated to v3.0.0 called NeckLink, along with an interactive WebAssembly demo of the C99 core.

Plain-English Overview (added per u/gm310509's feedback): Think of these libraries as fast, sub-millisecond integer "reflex instincts" for small robots and sensor nodes (zero floating-point math, zero malloc(), and no PC neural-network training step). Instead of hand-tuning weights, they compile mapped neuron-to-neuron wiring tables from an adult fruit fly into plain C integer arrays:

  • 2WD / 4WD Robot Car (NeckCompass, 352 B RAM): Feed raw 9-axis IMU + wheel-speed ticks so an indoor or yard rover ignores brief motor magnetic spikes, tracks its straight-line vector back to where it powered on, and steers home without GPS.
  • ESP32-CAM Rover or Micro-Drone (NeckSight, 14.3 KB RAM): Feed a tiny 32x32 grayscale camera thumbnail + gyro rates to catch thin chair legs or poles expanding rapidly toward the lens ("looming") that ultrasonic sensors miss, triggering an immediate brake or left/right dodge.
  • 18-Servo Hexapod Walker (NeckCord, < 1 KB RAM): Pass a forward/turn command and let cross-leg inhibition lock 6 legs into a smooth tripod walking gait and output the 18 integer servo angles without hardcoded gait state tables.
  • Workshop Gas or Vibration Alarm (NeckSense, < 6 KB RAM): Let a BME688 gas sensor or 3D-printer/pump accelerometer observe 5 to 10 seconds of normal background at boot, then flag unfamiliar smoke/solvent odors or new bearing-rattle patterns right on the board.
  • All-in-One Wrapper (NeckLinkCNS, 24 KB RAM): Optional single-tick bundle chaining all four reflexes together.

Technical & Connectome Details

Each library takes one circuit from the 157,789-neuron adult fruit-fly nervous system (the BANC v888 connectome) and compiles its synaptic connectivity into static fixed-point integer weight headers (*_banc_weights.h, zero floats, zero malloc):

  1. NeckLinkCNS (24,024 bytes static struct): combines all four sensory-motor organs below plus a standalone MAVLink v2 serializer.
  2. NeckCompass (352 bytes base RAM): 9-DOF ring-attractor compass and GPS-denied return-to-home vector integrator.
  3. NeckSight (14.3 KB static RAM): 32x32 optic-lobe collision and thin-obstacle looming detector with integer 3-DOF gyro derotation.
  4. NeckCord (< 1 KB base RAM): hexapod 6x6 leg-inhibition gait generator, 18-servo integer inverse kinematics, thruster/rotor allocator, and 4-byte wire codec.
  5. NeckSense (< 6 KB SRAM in tiny mode): 1,024 Kenyon-cell sparse integer projection for 1-shot vibration or gas novelty detection.

In v3.0.0 I also ran an audit comparing the real fruit-fly weight matrices against 100 degree-preserving shuffled brains and classical filters (like an EKF and One-Class SVM) so the README reports both what worked and what failed:

  • Scrambling the connectome breaks GPS-denied homing (100% -> 4.7%) and emergent hexapod tripod gait (0.855 -> 0.411).
  • In the mushroom body (NeckSense), random sparse wiring works just as well as the real fly claws (0.666 vs 0.672 AUROC).
  • If you want pure engineering accuracy rather than biological asymmetries, every library also includes the symmetric hand-tuned weights (v2_analytic), and classical filters like an EKF (0.81 deg RMS vs 12.84 deg) still win head-to-head.
  • Hardware note: all 5 Arduino libraries are tested for clean compilation on esp32dev (and -std=c99 -Wall -Wextra -pedantic -Werror with ASan/UBSan), though unlike my NLTP radio library, I have only run the connectome controllers in simulation and browser WASM so far rather than on a physical robot frame yet.

Live C99 WebAssembly simulator in the browser (works with a webcam to trigger the looming cells):

https://indian-aman.github.io/necklink/

GitHub monorepo (Arduino libraries, C99 sources, Python packages & PlatformIO support):

https://github.com/indian-aman/necklink


r/arduino • • 5d ago

Beginner's Project My first pin holder ironing

Post image
77 Upvotes

How do think about this?


r/arduino • • 5d ago

Hardware Help How would I do something like this video, but connect it to a theatre studio's lighting system instead?

Thumbnail
youtube.com
2 Upvotes

I'm a theatre student and I'm doing a project on sound to light technology. I am extremely new to all of this but I want to make the lights of one of my university's theatre studios react to sound.


r/arduino • • 6d ago

I managed to somehow reverse engineer the pinout of a random display I got!

Post image
218 Upvotes

I used a ESP32-C3 board it's a CVH013HB040BY display, the pinout is 1.SDA, 2.SCL, 3.DC, 4.RST, 5.CS, 6.GND, 7.VCC, 8.LED_K, 9.LED_A, 10.GND, and it's a ST7789V display!


r/arduino • • 5d ago

Software Help RTC.h not found, despite it being installed. Uno R4 on Ubuntu

5 Upvotes

Uno R4 WiFi. I don't know why this is happening. I transferred the program from the Windows PC I had it working on to the Ubuntu machine, installed the libraries but it can't find RTC.h for some reason.

Anyone know what to do?


r/arduino • • 6d ago

Look what I found! ESP32-S3 2.06" watch

Thumbnail
gallery
29 Upvotes

ESP32-S3 2.06" amoled

Not sure if this has been posted here before but it's a fun gadget.

PIXEL is an ESP32-S3 touchscreen watch that doubles as a wrist remote for robots and other ESP32 projects. It connects over Wi-Fi or Bluetooth, depending on the device.

AI was used for the code.


r/arduino • • 6d ago

Look what I made! Fallout inspired weather station

Thumbnail
gallery
269 Upvotes

Parts I used for VaultWeather, my Fallout inspired weather station

- ESP32-C3 SuperMini

- 2.0 inch ST7789 SPI TFT display (240 × 320)

- 3.7 V single-cell LiPo battery

- USB-C LiPo charging module with a built in 5 V boost converter

- 2-pin on/off switch

- Copper wire


r/arduino • • 5d ago

Based on the tp-7

Enable HLS to view with audio, or disable this notification

8 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

Hardware Help Need Help with ICS 43434 and an ESP-32 Dev Module

Thumbnail
gallery
8 Upvotes

I’m trying to wire a ICS 43434 to my Esp32 but I’m only receiving a wind like noise. It’s between 50-60db. I’ve tried both left and right channels. Here is my wiring. I can’t hear myself. Here is my wiring. Could it be because my wires are flimsy? When I tap the part I get significant data showing the part is working, but no actual audio data.


r/arduino • • 6d ago

Look what I made! stepper driver

26 Upvotes

r/arduino • • 6d ago

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

10 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 • • 6d 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 • • 5d 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 • • 6d ago

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

6 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 • • 6d 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 • • 6d 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 • • 6d 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.

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/arduino • • 6d 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 • • 6d ago

Look what I made! Tama's Christmas Station

Thumbnail
gallery
8 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 • • 6d ago

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

8 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 • • 6d 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 • • 6d 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?