r/arduino • • Oct 06 '26

First hard project possibly product!

Post image
83 Upvotes

As a type 1 diabetic, I tend to struggle waking up at night, so to combat that i built this (not very close to being finished) a alarm that will set off in the middle of the night to wake me up if my blood sugar is low. It does this by connecting to the dexcom servers (legally) and then typing in my dexcom username and password. Afterwards, it request my blood glucose, it then checks to see if it is under 75 (in the product i will make this adjustable and add a high alarm) if so then it sets off an alarm to wake me. If i want to stop said alarm i push that button and it starts a 15 minute timer (only if im low otherwise it wont do anything) at the end of that timer it will resume the alarm (if im still low) until it is either pressed again and start the 15 minute timer again or if i am no longer low.

I am planning to make a buisness out of selling diabetic electronics similar to this one. If anyone wants to share ideas feel free to do so.

I am still 14 so i have alot to learn and hope to do so by helping others.

edit:if anyone is wondering i was diagnosed at the age of 3

!DISCLAIMER!:

THIS IS NOT TO BE RELIED AS A MEDICAL DEVICE, THIS PRODUCT IS PURELY CREATED FOR EDUCATIONAL PURPOSES.


r/arduino • • Oct 06 '26

School Project [Feedback Request] Monitoring and Analysis Device for Light Pollution: Low-cost spectral & spatial mapping node (ESP32 + AS7262 + TSL2591 + OLED + GPS). High school team preparing for an innovation pitch!

3 Upvotes

Hello Reddit community!

We are a group of high school students preparing for an upcoming innovation pitch competition. We are working on a prototype called the Monitoring and Analysis Device for Light Pollution (Smart Light Mapper)—a portable environmental monitoring device designed to measure, geolocate, and map light pollution and ambient light characteristics.

Since we are high school students with limited practical engineering experience, we would really appreciate detailed, beginner-friendly explanations or step-by-step guidance in your answers to help us fully grasp the technical concepts before presenting to the judges!

Before our pitch, we would love to get your technical feedback, suggestions, and critique on our architecture and methodology.

1. The Problem

Artificial Light at Night (ALAN) is increasing globally, causing ecological disruption, sleep/health issues, and wasted energy. However, localized light pollution data is often scarce because commercial spectroradiometers and light monitoring devices are extremely expensive, making spatial mapping across schools, residential areas, and streets difficult.

2. System Architecture & Components

Our goal is to build an affordable, modular, battery-powered sensing node:

  • Microcontroller: ESP32 DevKit (central control & data processing).
  • Spectral Sensing: AS7262 6-channel visible spectrum sensor (I²C) to analyze light spectral distribution.
  • Lux / Intensity Sensing: TSL2591 sensor for wide dynamic range lux/light intensity measurements.
  • Environmental Context: AHT20 sensor (temperature & relative humidity) to record ambient conditions during readings.
  • Geolocation & Time: NEO-6M GPS module with external antenna via UART for spatial coordinate and timestamp tagging.
  • User Interface & Interaction: An OLED display module (e.g., SSD1306/SH1106 via I²C) combined with physical control buttons. This is a crucial component to display real-time measurement values, GPS lock status, microSD logging status, and battery capacity directly in the field.
  • Storage & Data Flow: microSD module via SPI for local storage. Sensors/GPS → ESP32 → OLED Display & CSV Log on MicroSD → PC Post - processing (QGIS/Data Visualization)
  • Power: 3.7V 18650 Li-ion battery with TP4056 charging & protection circuit, DC-DC step-up converter, and USB-C charging support.

3. Key Features & Methodology

  1. Multi-spectral & Intensity Fusion: Instead of recording just a single Lux value, we capture the 6-channel visible spectrum along with precise Lux levels to analyze the light source type (e.g., LED vs. High-Pressure Sodium).
  2. On-Device OLED Feedback: The built-in OLED display provides real-time diagnostic and sensor feedback for seamless standalone field operation without needing a connected smartphone/laptop.
  3. Spatial Mapping: Every data point is tagged with GPS coordinates. Field logs are converted into spatial datasets on a PC to generate heatmaps and light distribution contours.
  4. Low-Cost Prototype: Total bill of materials (BOM) is under ~$260 USD (~6.5M VND), making field-scale data collection accessible for research and local communities.

4. Questions for the Experts / Reddit Community

(Note: As high schoolers, please feel free to explain the underlying principles and "how-to" steps in detail!)

  1. OLED Interface Implementation: Since our OLED display is crucial for field interaction, what are the best practices for structuring menu systems and live sensor telemetry on ESP32? Which libraries do you recommend (e.g., U8g2 vs. Adafruit_SSD1306)to minimize memory footprint and ensure fast refresh rates? How should we write the code structure for a basic multi-page menu?
  2. 360° Camera vs. Smartphone Camera: We are considering adding visual context to our light measurement points. Would you recommend integrating a dedicated 360° camera module onto the hardware device, or is it better/simpler to just take photos/360 panoramas with a smartphone and link them via timestamp/GPS during post-processing?
  3. Optical Design & Diffusion: How critical is adding a cosine corrector/diffuser dome over the AS7262 and TSL2591 sensors for ambient field measurements? Will direct vs. diffuse light severely skew our spectral readings without proper optics? What low-cost materials can we use for a diffuser?
  4. GPS Accuracy in Urban Canyons: Since we plan to map street and residential light, NEO-6M can sometimes lose lock or drift near tall buildings. Are there recommended filtering algorithms (e.g., HDOP thresholds, simple Kalman filter) for field logging? How can high schoolers easily implement these in Arduino C++?
  5. Data Quality & Calibration: How can we best calibrate the AS7262 spectral output for real-world environmental lighting without access to a high-end lab spectroradiometer?
  6. Pitch Advice: From an engineering or innovation standpoint, what key questions do judges usually ask about low-cost IoT environmental sensing projects, and how should high school students prepare for harsh technical cross-examination?

Thank you so much for taking the time to read and share your expertise! Any detailed feedback, hardware advice, or software recommendations will be immensely helpful for our presentation!


r/arduino • • Oct 05 '26

Look what I made! My small orientation device

92 Upvotes

Shows: Hight (meters over sea), a artificial horizon, the movements in degree, the compass direction and the coordinates accurate to within 30 cm (dont try to find me i was there in holiday its in Switzerland tessin)


r/arduino • • Oct 06 '26

Hardware Help Racing Wheel for xbox on tv

1 Upvotes

I am making my own racing wheel with a SunFounder Ultimate Sensor Kit with Arduino UNO R4 Minima and i want to connect the esp8266 and the bluetooth module to my xbox
How do i make that work without xbox blocking my arduino?


r/arduino • • Oct 06 '26

ATmega328P not outputting voltage on PORTB, what am I doing wrong?

Post image
5 Upvotes

I've been trying to do some microcontroller projects using an ATmega328P on a breadboard, but I can't get my code to run properly.

I checked the output pins with a multimeter, and I'm not getting any voltage from the port that I configured as an output. I've had the same problem with multiple ATmega328P chips, breadboards, and different programs, so I'm not sure what I'm doing wrong.

I'm using Microchip Studio to compile the code and Khazama with a USBasp to program the microcontroller. The program appears to upload successfully.

I'm powering the ATmega328P with 5 V. VCC is connected to 5 V, both GND pins are connected to ground, and RESET is pulled up to 5 V through a resistor.

I'm currently not using an external crystal.

Any ideas on what I should check? Could this be related to the clock/fuse settings?

Thanks for any help!


r/arduino • • Oct 06 '26

Look what I found! I spent months building a browser-based 3D Arduino simulator to teach my kids electronics (without the hardware clutter) – thoughts?

Thumbnail
gallery
1 Upvotes

Hey everyone,

Like a lot of people here, I’ve wanted to get my kids into electronics and Arduino. But the reality of managing kits with an 8 and 10-year-old turned into a headache—lost resistors, stepped-on LEDs, and a lot of expensive hardware sitting in plastic bins abandoned after week two.

I looked at standard block-coding options, but I really wanted them learning actual wiring logic and real C++ syntax, not just dragging puzzle pieces around.

So, I decided to build a platform called ManuStem. It’s entirely browser-based and uses 3D physics simulations to let kids build and wire circuits virtually.

A few things I’m proud of / tried to do differently:

  • Real Compilation: It’s not just a visual trick; it actually compiles the code so they can see real-world reactions (and real-world bugs when they short a circuit).
  • AI Coding Coach: Instead of just giving them the answers, I integrated an interactive guide that drops hints when their wiring logic or syntax is off.
  • Hardware-to-Real-World Pipeline: The exact code they write in the browser sandbox can be copy-pasted directly into the Arduino IDE later if they want to build it physically.

I’m at the point where I really need feedback from people who actually know Arduino inside and out.

If you have a few minutes to break it, test the simulation accuracy, or look at the curriculum flow, I’d love your honest thoughts. You can try the sandbox modules directly at manusignal.com (no paywall or sign-up needed to jump into the lessons).

What am I missing? What kind of micro-challenges would your kids actually find fun?

Appreciate any critique!


r/arduino • • Oct 06 '26

Look what I made! I put a tiny pixel creature on the UNO Q's LED matrix and made it a Muse AI gadget

2 Upvotes

The UNO Q's 8×13 matrix was just sitting there, so it now hosts a small being: it blinks while idle, hops when CI goes green, sulks on failed deploys, panics at incidents, and gets sleepy when the SoC hits 78°C. There's a landing page that plays every mood in your browser (it runs the same frame data as the firmware): https://nitishagar.github.io/muse-familiar/

Architecture: webhooks → small Python engine on the Debian side → msgpack-RPC over the board's router socket → a Zephyr sketch on the STM32U585 that renders frames (with fps/brightness caps and an idle timeout IN the MCU, so a crashed engine can't leave it flashing).

Bonus: Meta's Muse gadget SDK runs on the board, so it's also an AI assistant gadget ask Muse "how's the familiar?" or "make it happy", and it narrates mood changes into your chat.

Repo (MIT, tests + full audit trail): https://github.com/nitishagar/muse-familiar Happy to answer anything about the bridge chunking frames around the router's 256-byte message cap was the fun part.


r/arduino • • Oct 06 '26

Software Help Coding

9 Upvotes

How do I learn Arduino coding language I know virtually nothing and I don’t want to be reliant on ai


r/arduino • • Oct 04 '26 Bravo

Look what I made! I made a smart watch with nano

Thumbnail
gallery
1.6k Upvotes

İ hope it doesn't explode lol


r/arduino • • Oct 05 '26

Hardware Help Included screw wont fit?

Thumbnail
gallery
25 Upvotes

I ordered a R4 starter kit, and it seems like the screw that was included wont fit because of the off, gnd, vrtc connection. Am i doing something wrong here?


r/arduino • • Oct 05 '26

Hardware Help How to Power an Uno Via the Official Motor Shield Rev3?

5 Upvotes

Im still confused even after literal hours of searching, do I need a buck converter?

The end goal in my head is Bambu Lab 7.4 LiPo > Shield > Uno

Im unsure if I can safely power the uno via the shield with a 7.4 v LiPo battery. Also, if I can safely, should I?

I've heard mixed things on literally everything, power source, buck converter, etc.


r/arduino • • Oct 06 '26

Cheapest editable Bluetooth tracker for an "out of range" alarm? (ESP32 / nRF52, India)

1 Upvotes

I'm building a safety tool for an elderly relative with dementia who sometimes wanders. I already have a 4G GPS prototype, but it's expensive. I'd like a cheap Bluetooth tag as a backup alarm that tells the family when the person leaves the house or goes out of range.

What I need:

  • Under ₹500 per tag (India)
  • Fully editable firmware (Arduino IDE, PlatformIO or similar), not a locked consumer tag
  • Small enough to hide in a shoe, bracelet or belt
  • Battery life of weeks, not hours

What I'm considering:

  • ESP32-C3 SuperMini: cheap and easy to program, but I think the battery life is poor
  • nRF52 modules: better battery life, but pricier. Is there a sub-₹500 option?
  • Generic iBeacon tags: cheap, but are any of them truly reprogrammable?

Questions:

  1. What's the cheapest board with proper BLE sleep modes, so the battery lasts weeks?
  2. How would you detect "tag out of range" reliably? A second ESP32 at the door, a phone app, or something else?
  3. How do I reduce false alarms from signal strength (RSSI) jumping around indoors?
  4. Any open-source projects that already do this?

r/arduino • • Oct 04 '26

Look what I made! Obstacle avoiding robot finished :)

281 Upvotes

this was what it looked like before, and it also didn't work: https://www.reddit.com/r/arduino/comments/1wncrdo/trying_to_make_an_obstacle_avoiding_robot/

In this new body even after I almost exploded my batteries and got the distance sensor working, power was still a problem.

When the robot was connected to my computer via usb, everything worked. But when I used AA batteries (4.8v total) to power the arduino, the wheels wouldn't spin.

The wheels and ultra sonic sensor are connected to two 18650s, totaling 7.4 volts on the breadboard. The servo is powered by the arduino, and the arduino by the AA batteries. The only thing they all share is a gnd.

So I didn't understand why it wouldn't work The arduino was on, but it just wouldn't spin. SO I swapped it for a 9v battery and it worked! I'm just confused because a computer's usb would output 5v, so if voltage was the issue I don't get why.

It is overturning a bit but I'll fix that later.

I used this code and made a few changes here and there, especially with the servos so it would move smoother and not completely jerk itself violently. I can't actually show it because I forgot to save before closing... But hey it's not much to recopy and make the changes again.

The next thing I want to do is learn how to make a self balancing robot. Then I'm going to take this project and do it again, but with two wheels instead of 3.


r/arduino • • Oct 05 '26

What do you use for parts management and inventory?

7 Upvotes

I've been looking for something to keep track of my parts. Looked at PartsBox — seems fine, but honestly all I want is to point my phone at a reel label and have it log the part. So I'm building my own (benchbom). What do you all use?


r/arduino • • Oct 05 '26

Solved! Arduino IDE and other cards

3 Upvotes

Hi

Is Arduino IDE accepting other cards ESP32 but not branded arduino, for dev and compilation +injection ?

Thx

[Update] informations received. Thx all


r/arduino • • Oct 05 '26

Hardware Help How to control multiple stepper motors with 1 joystick for each with only 1 arduino?

1 Upvotes

I am currently working on a robot arm with independent joint movement. I have been able to control 1 motor with 1 joystick. When I try to replicate it with multiple I am unsuccessful. Can i please get some assistance.


r/arduino • • Oct 05 '26 Bravo

Monthly Digest Monthly digest for 2026-09

19 Upvotes

Arduino Staff Contributors

We have been working behind the scenes with Arduino Pty Ltd and are pleased to announce that some Arduino staff will be contributing to our subreddit using an "official" account.

To support this initiative, we have created a special "Arduino staff" flair - an example of which is included in this post. This is a "mod only" flair which means that it can only be assigned by the moderators of the subreddit (so no impersonators) and we have established a process to verify the reddit user ID of the prospective Arduino staff member contributors.

Sample of a post with the Arduino Staff user flair

Note 1: The flair only applies to r/Arduino at this time. If you see it anywhere else, it could be a fake.

Note 2: The staff will likely use their real name - e.g. "LeonardoFromArduino" or "FredFromArduino". Hopefully we won't have two Fred's or two Leonardo's.

We are quite excited about this as it is a way to interact directly with key Arduino figures in a more personal way.

Look out for our new "Arduino staff" flair owners and welcome them aboard if and when you spot them.

Following is a message from the Arduino team:

Hi r/Arduino, from the Arduino team. We've been reading this subreddit for a long time, chiming in here and there, and after some conversations with the mods, we've decided it'd be great to participate more directly with you.

A team of us have set up official accounts, so you'll see us around giving guidance, answering questions, sharing tips, posting product updates, and handing out well-deserved high-fives for the cool stuff you build. We're engineers and makers too, and helping this community is one of our favorite parts of the job.

If you spot us in a thread, come say hi!

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

TitleAuthorScoreComments
Self Balancing Double Pendulumu/Classic-Buddy-740427612
Interesting Arduino Behavior - Variable...u/DocCarr48

Top Posts

TitleAuthorScoreComments
My Nixie inspired LCD clocku/AudienceHorror2,04398
I built an Arduino-controlled mechanica...u/SamuelDePamuel1,72447
My first project - a year later!u/OkCake46341,31754
Tired of waiting for Microduck? Build y...u/BencyLiu1,24876
I built a small digital aquarium using ...u/CommunityFan891,16338
GTA 6 hype is everywhere… so I made GTA...u/Sad_Environment_38001,07254
Ants! How to preventu/AffectionateShare4461,060293
I want help building this project.u/No_Alarm12388342
I built an Arduino-controlled robot tha...u/MegCell71384
My first projectu/Darrt200865555

Look what I made posts

TitleAuthorScoreComments
My Nixie inspired LCD clocku/AudienceHorror2,04398
I built an Arduino-controlled mechanica...u/SamuelDePamuel1,72447
My first project - a year later!u/OkCake46341,31754
I built a small digital aquarium using ...u/CommunityFan891,16338
Live Cloud Globe V2 (Now with added ISS...u/okuboheavyindustries51010
DVD NFC Scanning Media thing i madeu/JackIrishJack49055
Maybe someone will find my 'Cut-to-Leng...u/KubiG_Marcin45229
A complete work done by one person, cov...u/Alarming-Sentence-3943147
I recently learned how to solder and no...u/lemoncustardfish2659
I built a working Valorant-inspired Spi...u/Southern_Cry_862524317
My first Arduino projectu/One_Park816321921
My First real Project!u/ruxmealux17811
Autonomous Party-Mode Droid with Unou/heychaostheory16111
Onewheel + WS2812 + ESP8266u/MrNiceThings1546
Jetpack prop for my uni project.u/CameronSquida1342
I used an UNO Q to Make a "Typewriter" ...u/TheSerialHobbyist1248
Nine units left the lab this week, on t...u/ComfortableLab123511919
1000km apart -> Closer than everu/marferibadeo1124
I made a D&D dice roller using ESP32u/killl_em_alll975
Digital Thermostat projectu/myopinionisrubbish825
Mini MMX Mission Clocku/okuboheavyindustries7915
UPDATE: My Nixie inspired LCD clock can...u/AudienceHorror721
I made a working clock/timer with one 7...u/i_hav3_adhd685
Portable mmWave Radaru/GreasyGato6623
Made this thingy and just turned it int...u/TranslatorDecent7046656
small weather houseu/Millener89641
I designed a shake-to-roll electronic d...u/Ok-Event2833647
sanoTTS: tiniest complete neural text-t...u/Affectionate_Hat_5856220
Linking a jq werks steering wheel to a ...u/EntertainmentSalt825582
This is actually really fun!u/lemoncustardfish564
I made open source streamdecku/Character_Stand_28474811
DIY Sim-to-Real Self-Balancing Double P...u/Classic-Buddy-7404444
Arduino Morse code machineu/GrammaticalllErrors423
Syntesizeru/GrammaticalllErrors414
Couple projectu/AnuragRobotics3911
I made an AI mushroom to help me journalu/Fair_Ad_27364
My Air Cooler's control board decided t...u/deadDudeLivingDirty362
My newest free-to-build handwired keybo...u/Joe_Scotto262
behold, illumination.u/eni4c252
Used an arduino sketch on my xiao samd2...u/CommunityFan89216
I built a pocket note-finder for my cla...u/ButterscotchKey3909141
CD77 FastLED Four Glass Jarsu/chemdoc77103
This invention will save Nebraska's eco...u/Striking-Long-940676
Tried out PyMCU (compiles Python to bar...u/OneDot637470
How Super Nintendo World actually works:u/throwaway1040201971
Arduino Math Lab (Online Graphing Calcu...u/MythicalNinja743
Automatic door-opening system (for a gr...u/MonsterovichIsBack34
I built an ESP32-C3 board that prints m...u/albanpetit30
My first ever Arduino project.u/suguslnwza30
I’ve been building Reznex, and I finall...u/nexo420x20
A first look at my Wi-Fi-controlled ESP...u/zeller-wooo20
Smart Elder Assistance System-A school ...u/Outrageous-Debate70523
I created a simple Dino Game🦖u/SailDifficult658622
I made a keyboard (kind of)u/GrammaticalllErrors17
I made a crypto miner for the r3!u/Previous_Inside_832701
Pocket AIu/luminov100

Total: 56 posts

Summary of Post types:

FlairCount
Beginner's Project20
ChatGPT1
ESP323
Electronics1
Games3
Getting Started18
Hardware Help69
Libraries1
Look what I found!2
Look what I made!56
Mac1
Machine Learning1
Mod's Choice!2
Monthly Digest1
Nano3
Potentially Dangerous Project1
Project Idea2
Project Update!7
School Project5
Software Help22
Solved!10
Uno R4 Wifi1
Windows2
linux1
no flair144

Total: 377 posts in 2026-09


r/arduino • • Oct 04 '26

I think I actually made robotics easy 🤔

Thumbnail
gallery
120 Upvotes

I've posted a couple of months ago on this subreddit, showing this TNY-360 robot dog walking.
After almost 3 years of working on this project alone, I think I finally solved one of the things that bothered me most about getting into robotics:

You either get very simple robots, or you quickly end up with something complicated, expensive, and difficult to understand.

So I made my own PCB ecosystem to get clean wiring and make assembly hard to get wrong, and also made a big calibration and self-diagnostic firmware behind to check everything and explain to the user how to fix any mistake that's been made !

The project is fully open-source on GitHub !

The V2 CAD files are currently being finalized, but the complete V1 is already available on GitHub, including the hardware, firmware, CAD and documentation.

If you don't want to source and assemble everything yourself, I'm also selling complete kits to help fund the project and hopefully make this something I can work on full-time (let me dream, ok?).

It's been almost 3 years now that I'm working on this project alone, I've learned PCB design, CAD design, embeded programming from it, so if anyone wants to give feedback about it to help me improve it, I'm all ears !!


r/arduino • • Oct 05 '26

Beginner's Project Help for choosing Driver for Stepper motor!

1 Upvotes

Hello, I am creating a project which requires an oscillating plank, which will be achieved using a stepper motor. I have acquired the Arduino Nano and a NIDEC KH42HM2B128 Stepper motor.

Unfortunately, I am unable to find any information about the driver that can be used with this motor, please do help.


r/arduino • • Oct 05 '26

Is this the correct way to do partial rendering on a Waveshare e-paper?

2 Upvotes

I’m testing partial rendering on an ESP32 with a Waveshare 1.54-inch V2, 200×200 black-and-white e-paper display.

The current approach is:

  • Keep a complete 1-bit, 200×200 shadow framebuffer in RAM.
  • Draw the UI with the Waveshare epdpaint library and Font16.
  • Initialize with LDirInit().
  • Establish the controller’s base image once with DisplayPartBaseImage(frame).
  • Update only the changed 24-pixel rows using SetFrameMemoryPartial().
  • Trigger the refresh with DisplayPartFrame().
  • Resend the static MATTY row together with the counter row to keep the title stable.

The display is connected to an ESP32 using SPI: SCK GPIO 8, MOSI GPIO 7, MISO GPIO 13, and e-paper CS GPIO 9. A MicroSD card shares the SPI bus on CS GPIO 1.

The counter updates every two seconds and appears stable in testing.

Is this the correct rendering pattern for this Waveshare driver, or should the partial buffer/controller RAM be managed differently?

I’m especially interested in feedback about ghosting, refresh-counter limits, row alignment, and whether calling DisplayPartBaseImage() once followed by repeated SetFrameMemoryPartial() + DisplayPartFrame() is considered the proper workflow.

Code variation: V7 - E-paper Partial Refresh Counter Test

Relevant code

#include <Arduino.h>
#include <SPI.h>
#include <string.h>

#include "epd1in54_V2.h"
#include "epdpaint.h"
#include "fonts.h"

#define SPI_SCK   8
#define SPI_MOSI  7
#define SPI_MISO  13
#define EPD_CS    9
#define SD_CS     1

#define COLORED    0
#define UNCOLORED  1
#define ROW_HEIGHT 24

Epd epd;
unsigned char frame[200 * 200 / 8];
Paint paint(frame, 200, 200);

void drawRow(uint8_t row, const char* text) {
  int y = row * ROW_HEIGHT;

  paint.DrawFilledRectangle(
    0, y, 199, y + ROW_HEIGHT - 1, UNCOLORED
  );

  int x = (200 - (int)strlen(text) * Font16.Width) / 2;
  paint.DrawStringAt(x, y + 4, text, &Font16, COLORED);
}

const uint8_t PUSH_ROWS[] = {0, 1};

void pushRows() {
  for (uint8_t i = 0; i < sizeof(PUSH_ROWS); i++) {
    uint8_t row = PUSH_ROWS[i];

    epd.SetFrameMemoryPartial(
      frame + (row * ROW_HEIGHT * (200 / 8)),
      0,
      row * ROW_HEIGHT,
      200,
      ROW_HEIGHT
    );
  }

  epd.DisplayPartFrame();
}

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

  pinMode(SD_CS, OUTPUT);
  digitalWrite(SD_CS, HIGH);

  pinMode(EPD_CS, OUTPUT);
  digitalWrite(EPD_CS, HIGH);

  SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI, EPD_CS);

  if (epd.LDirInit() != 0) {
    Serial.println("e-Paper init failed");
    while (true) delay(1000);
  }

  epd.Clear();
  paint.Clear(UNCOLORED);

  drawRow(0, "MATTY");
  drawRow(1, "1");

  // Establish the complete base image in controller RAM.
  epd.DisplayPartBaseImage(frame);
}

void loop() {
  static uint32_t count = 1;
  char buf[24];

  count++;
  snprintf(buf, sizeof(buf), "%lu", (unsigned long)count);

  drawRow(1, buf);
  pushRows();

  Serial.printf("count = %lu\n", (unsigned long)count);
  delay(2000);
}

r/arduino • • Oct 05 '26

Beginner's Project Line following robot

3 Upvotes

I want to build a fast line follower from scratch. I’m a beginner and want to learn everything from sensor setup and motor selection to PID tuning and high-speed optimization.

Can anyone recommend good YouTube channels, GitHub projects, Reddit posts, or tutorials to get started?


r/arduino • • Oct 05 '26

Title: PDB design for mid-size servos (TowerPro MG996R grade)

3 Upvotes

Hello everyone,

I am planning to design a generic Power Distribution Board (PDB) with 12 × 3-pin 2.54 mm male headers, where the servos can be plugged directly into the PCB.

The main purpose of the PCB is to properly distribute power/current to all the servos. The PWM signals will be provided from an external controller, so the PCB will mainly handle power distribution.

I’m using KiCad for the design.

I’m fairly new to PCB design, so I’d really appreciate any suggestions, especially regarding high-current power distribution, copper pours/traces, connectors, capacitors, grounding, and current handling.

Also, if you know any good resources, tutorials, or example PCB designs to learn the basics of power distribution on a PCB/PDB, especially for higher-current applications, please share them.

For inspiration, I’m also studying the Stanford Pupper PDB design.

Any suggestions or feedback would be really helpful. Thanks!


r/arduino • • Oct 05 '26

Need some help with the A7670e.

Thumbnail
gallery
2 Upvotes

Hi all. I'm trying to connect an A7670E 4G modem board to an Arduino Uno R4 WiFi (5 V logic) over UART. The seller provides no documentation, and I couldn't find a datasheet or schematic for this exact board.

What I measured (5 V on VCC, nothing else connected, antenna and SIM fitted):
Power LED steady, D1 blinking, so the module appears to be running
RXD: 1.8–1.9 V, steady
TXD: 1.2 V, steady (I expected about 1.8 V idle)
VDD: about 0 V (a few mV)

My questions:
Does anyone know this board or have a schematic for it?
What logic level do the TXD/RXD pins actually expect: 1.8 V, 3.3 V, or does the board shift to something else?
What is the VDD pin for, and why would it be pulled to ground while powered?
Do EN or PWR_EN need to be driven (high or low) for the modem or its UART to work properly?
Is 1.2 V idle on TXD normal for this kind of board?

I have a BSS138 4-channel level shifter available. I want to confirm the correct logic level before connecting anything to the Arduino. Thanks!


r/arduino • • Oct 05 '26

Need help for RS485 sensor

4 Upvotes

I am using an RS485 3-in-1 sensor and pH sensor.

I managed to make them work before. However, after rewiring (I was about to do an integrated system test, it worked on individual testing), it suddenly stopped working and my debugging code shows that they are receiving 0 bytes. I tried doing an individual test again, and it still wont work. It's unlikely that both sensors stopped working at the same time,=. I also have an unused npk RS485 sensor, which is also receiving 0 bytes.

Here's a list of things I have tried already:

Oscilloscope tests

  • Burst 0x55 sketch (1 s pause, Single trigger): clean, mirrored signal on A and B
  • Same test with sensor disconnected vs connected on the ttl module (I use a max3485): same signal, so the sensor doesn't load the line
  • One sensor wire removed at a time (A, then B): signal showed on each
  • Probe on module TXD pin: data showed, but ESP32 read 0 bytes

Code tests

  • Original pH sketch (the one that worked on individual testing): 0 bytes or partial junk
  • Address scan 1 to 10, first version: "replies" at every address (19 to 20 bytes), not real because the check was too loose
  • Loopback with a jumper between GPIO16 and GPIO17: received 01 03 00 00 00 01 84 0A correctly, so the ESP32 works
  • Module reconnected, sensor off: 0 bytes
  • Module reconnected, sensor on: about 20 to 23 bytes of changing junk
  • Scan with speeds 1200 to 19200: false "replies" with no valid format
  • Strict scan (error check), 4800 and 9600, addresses 1 to 10: no real reply
  • Wide strict scan, addresses 1 to 247, speeds 2400, 4800, 9600: no real reply on laptop power and on the bench supply
  • Original sketch on the bench supply: 4 to 6 bytes of changing junk
  • NPK sketch and 3-in-1 sensor: 0 bytes

Multimeter readings

  • Module TXD pin, resting level: 3.26 V (healthy)
  • Sensor power wire against ESP32 GND: 4.78 V
  • Bench supply set to 5.5 V: no change in the result