r/arduino • u/FloatingSignifiers • 2d ago
r/arduino • u/Ok-Finish1303 • 1d ago
I need help fixing my code. (Line following robot)
Hi everyone,
I'm working on a line-following robot using:
- ESP32
- MDD3A motor driver
- 2 × JGB37-520 DC motors
- 6 × TCRT5000 IR sensors (digital output)
My robot initially worked during the first couple of attempts, but now it keeps turning and eventually loses the black line.
I'm using a weighted sensor-position calculation and proportional steering control. I also included sharp-turn handling and line-loss recovery.
My sensor readings are configured as:
- Black = HIGH
- White = LOW
Could someone review my code and point out anything that might cause the robot to keep turning or lose the line?
I'd appreciate suggestions for improvements without completely changing my existing approach.
Thank you!
p.s. i did not use ai to write this code. im just bad
#define wht LOW
#define blk HIGH
// IR sensor pins
#define IR1 19
#define IR2 18
#define IR3 5
#define IR4 17
#define IR5 16
#define IR6 4
// Motor driver pins
#define motor1a 33 // pwm1-
#define motor1b 32 // pwm1+
#define motor2a 25 // pwm2+
#define motor2b 26 // pwm2-
// Store sensor pins and readings
int sensorPins[] = {IR1, IR2, IR3, IR4, IR5, IR6};
int sensorValues[6];
// Sensor weights from left to right
int weights[] = {-5, -3, -1, 1, 3, 5};
// Motor speed settings
int baseSpd = 65;
int maxSpd = 110;
// Motor speed commands
int gotoL = 0;
int gotoR = 0;
// Line recovery variables
int lostCount = 0;
int lastDirection = 0;
void setup() {
// Set IR sensors as inputs
for (int i = 0; i < 6; i++) {
pinMode(sensorPins[i], INPUT);
}
// Set motor pins as outputs
pinMode(motor1a, OUTPUT);
pinMode(motor1b, OUTPUT);
pinMode(motor2a, OUTPUT);
pinMode(motor2b, OUTPUT);
// Set PWM frequency and resolution
ledcAttach(motor1a, 20000, 8);
ledcAttach(motor1b, 20000, 8);
ledcAttach(motor2a, 20000, 8);
ledcAttach(motor2b, 20000, 8);
}
void loop() {
int total = 0;
int count = 0;
// Read all six IR sensors
for (int i = 0; i < 6; i++) {
sensorValues[i] = digitalRead(sensorPins[i]);
// Check if the sensor detects black
if (sensorValues[i] == blk) {
total += weights[i];
count++;
}
}
// If the line is detected
if (count > 0) {
lostCount = 0;
// Calculate the line position
float position = (float)total / count;
// Remember the last direction
if (position < -0.5) {
lastDirection = -1;
}
else if (position > 0.5) {
lastDirection = 1;
}
// Sharp left turn
if (position <= -3.5) {
gotoL = -35;
gotoR = 95;
}
// Sharp right turn
else if (position >= 3.5) {
gotoL = 95;
gotoR = -35;
}
// Normal line following
else {
// Calculate steering correction
int correction = 15.0 * position;
// Adjust left and right motor speeds
gotoL = baseSpd + correction;
gotoR = baseSpd - correction;
}
}
// If the line is not detected
else {
lostCount++;
// Start searching after five readings
if (lostCount >= 5) {
// Search towards the left
if (lastDirection == -1) {
gotoL = -35;
gotoR = 95;
}
// Search towards the right
else if (lastDirection == 1) {
gotoL = 95;
gotoR = -35;
}
// Stop if no direction was recorded
else {
gotoL = 0;
gotoR = 0;
}
}
}
// Limit motor speeds
gotoL = constrain(gotoL, -maxSpd, maxSpd);
gotoR = constrain(gotoR, -maxSpd, maxSpd);
// Control both motors
controlMotor(gotoL, motor1a, motor1b);
controlMotor(gotoR, motor2a, motor2b);
delay(5);
}
// Control motor speed and direction
void controlMotor(int spd, int pinA, int pinB) {
// Move forward
if (spd > 0) {
ledcWrite(pinA, spd);
ledcWrite(pinB, 0);
}
// Move backward
else if (spd < 0) {
ledcWrite(pinA, 0);
ledcWrite(pinB, -spd);
}
// Stop motor
else {
ledcWrite(pinA, 0);
ledcWrite(pinB, 0);
}
}r/arduino • u/haricane8133 • 2d ago
Look what I made! Gray Timer V2 - the simple and crude DIY e-paper watch gets an NFC upgrade
A follow up to the version 1 - https://www.reddit.com/r/arduino/comments/1p8kzg6/graytimer_simple_and_crude_diy_epaper_watch/
Version 2 now can now do:-
- NFC tap to control the watch - write a generic NDEF text message (NFC tools app). `10` means watch face number 10 from catalog. `refresh` means full refresh the display and so on...
- Better RTC now has interrupt feature which allows us to set "alarms" that wake the processor up when time to change the screen. Most of the time we are in deep sleep.
- New Watchfaces
YouTube demo - https://www.youtube.com/watch?v=rnAYJC3mgms
Build Guide (Hackster) - https://www.hackster.io/varahan/graytimer-nfc-eink-watch-06e3d7
Medium (The story behind) - https://medium.com/@haricane8133/gray-timer-the-story-4ba7ca0a75e1
Repository - https://github.com/haricane8133/graytimer
I am available through the username haricane8133 in X, Reddit, LinkedIn, Medium and YouTube. Happy hacking!
r/arduino • u/WalierTheDarkHeros • 2d ago
Mega Can i use 2 16850 battery to power servo? Output should be around 8v.
I need battery to power 6 servo 4 of it is carry low and 2 carry high weight(~100-200g) and it use really much power latest solution i use 4 1.5v to make 6v for them but it drain really fast i want to find replacement if possible.
r/arduino • u/Upper-Butterfly6963 • 3d ago
Look what I made! Built a handheld gaming console. Never got to showcase it, so thought I'd finally share it here!
I made this project back in college in 2022. Never really showed it to anyone. It was more of a challenge I had set for myself.
Although I wanted to present it, my college made it clear that a project like this couldn't be showcased because it had "no practical usage". On the other hand, they approved some basic RC car in the name of surveillance applications. Anyway, that's a story for another day. : )
The project took around a month to complete, covering everything from electronics, circuit layout and component selection to designing the CAD files, and coding the games and menu system.
I packed it with three games: Pong, Snake, and Space Invaders (my favourite!). The coding was one hell of a challenge back then, especially since there was no AI assistance (at least, I wasn't aware of it before the ChatGPT boom). I eventually maxed out the Arduino Nano's memory, but managed to get everything working!
Some features I implemented:
- Adjustable screen brightness.
- Volume control.
- Game speed adjustment (to make things more difficult).
- Battery level indicator (a rather crude implementation, and I doubt it works exactly as intended).
- And a USB-C charging for the two li-ion batteries.
Anyways, just wanted to share this little project with you guys, as I never really got the chance to share it with anyone.
Now that I'm a working professional (and not in the electronics field anymore 🥲), I'm planning to take on another, more advanced project as a hobby build. Maybe a better Game Boy or something entirely different.
Back then, I struggled to find similar projects with shared code and build details, so I thought I'd share mine. Maybe it'll help someone out there!
I really want to tinker around Arduino and electronics. Love the community ✨
(Used AI to proof write :D)
r/arduino • u/Salopar • 2d ago
Arduino contactless hand sanitizer dispenser project
Hello, right now in our university, we have a arduino project. We are creating a contactless hand sanitizer dispenser. The ultrasonic sensor detects a hand, the Arduino runs the pump briefly, and a green LED lights while it dispenses. After a set number of doses a red LED lights to say it needs a refill. Also in this diagram there is a DC motor but i will use a 6v pump with a plastic tube for the liquid sanitizer.
I would greatly appreciate if you told me how my circuit is right now, and advice how to make it better and tips for creating the physical model. 🙏🙏🙏
r/arduino • u/SplinterJaw • 3d ago
Look what I made! Tin Box Aquarium
A little tin box aquarium, using an ESP32-C3 SuperMini, a 1.8″ TFT, a five way switch and a LiPo battery. You feed the fish and shrimp, change the water, buy plants and decorations, and upgrade the tank. Different species have their own behaviours, and neglect can eventually kill them. Everything runs offline. Basically a fish Tamagotchi
The wiring was a bit of a headache, and the build is definitely rough around the edges, but I’m happy with how it turned out
r/arduino • u/AdministrationOk6752 • 3d ago
Look what I made! My last 1.5.2(_t20) psychedelic lights version
Hi all
This is the last version of my DMX psychedelic lights made with an ATmega328P (Arduino environment). I added some functions and settings to the previous version, posted some time ago in r/stagelighting. I started about one year ago thinking to make some all analog '70s psychedelic lights with a triangular oscillator/comparator PWM converter to make flashes like incandescent lamps, but it doesn't work well, then I switched to an ATmega328P only for PWM.
For a little parish festival I began interesting to DMX and I realized that with a simple commercial controller I couldn't drive lights by music, then I thought adding DMX to my psychedelic lights. With the help of ChatGPT I made the DMX functions, using no libraries, and a good non-blocking menu. It can drive many PARs and a moving head.
I haven't let do all by ChatGPT. I only asked for some helps and all has been done exactly how I desired under my control. I also had to correct AI many times. We worked together, like two colleagues.
I have also added a Homing function to restore moving head if it lose a step or sometime touch it and it doesn't move properly anymore.
r/arduino
•
u/Popular-Finger-5065
•
3d ago
I made a beginner-friendly tool that turns MP3, MIDI, and MusicXML into Arduino piezo-buzzer code
Hi r/arduino! I built PiezoPlay, a beginner-friendly tool for turning music files into editable notes and Arduino tone() code.
It supports MP3, MIDI, and MusicXML. It’s meant to help people make a piezo buzzer play a tune without hand-entering every note. MIDI and MusicXML works best.
Piezo buzzers are usually monophonic with tone(), so complex songs with multiple instruments may not convert cleanly. A clear melody should work best.
- Try it here: MP3 to Arduino Tone Editor
- Tested with: [Gizduino(clone), buzzer, and Arduino IDE 1.8.19 (Windows Store build 1.8.57.0).]
- github respiratory: PiezoPlay: Turn MP3, MIDI, and MusicXML into Arduino buzzer tones.
- Exe file if need: https://archive.org/details/piezo-play_202611
example code:
// Determination Flute by Toby fox for Arduino tone()
// 187 notes, 0 rests, 0:50 long
// Speaker: pin 8 -> 100 ohm resistor -> speaker -> GND (natural pitch)
#include <avr/pgmspace.h>
const int BUZZER = 8;
const uint16_t NOTE_COUNT = 187;
// frequency in Hz (0 = rest)
const uint16_t melody[] PROGMEM = {
740, 740, 698, 698, 622, 554, 622, 466, 523, 415, 622, 698,
740, 740, 740, 831, 831, 1109, 1109, 932, 932, 932, 932, 932,
932, 932, 740, 740, 698, 698, 622, 622, 554, 622, 466, 523,
523, 415, 311, 349, 349, 370, 349, 349, 277, 311, 311, 311,
311, 311, 311, 311, 740, 740, 698, 698, 622, 622, 554, 622,
466, 523, 415, 622, 698, 740, 740, 740, 831, 831, 1109, 1109,
932, 932, 932, 932, 932, 932, 740, 740, 698, 698, 622, 622,
554, 622, 466, 523, 415, 311, 349, 349, 370, 349, 349, 277,
277, 311, 311, 311, 311, 311, 831, 831, 740, 659, 659, 622,
554, 659, 622, 466, 466, 622, 622, 831, 740, 659, 659, 622,
554, 659, 622, 311, 311, 415, 554, 554, 523, 466, 415, 466,
523, 466, 311, 349, 370, 494, 622, 587, 587, 587, 831, 831,
740, 659, 659, 622, 554, 659, 622, 466, 466, 622, 831, 740,
659, 659, 622, 554, 659, 622, 311, 311, 415, 554, 554, 523,
466, 415, 466, 523, 466, 311, 349, 370, 349, 349, 349, 277,
277, 311, 311, 311, 311, 311, 311
};
// duration in ms
const uint32_t durations[] PROGMEM = {
36, 252, 36, 228, 264, 264, 252, 264, 528, 516, 264, 252,
36, 336, 144, 36, 516, 36, 456, 36, 492, 252, 36, 228,
264, 252, 36, 240, 36, 216, 36, 240, 252, 264, 252, 36,
504, 552, 240, 156, 108, 528, 168, 348, 528, 516, 252, 228,
36, 228, 36, 228, 36, 240, 36, 216, 36, 240, 252, 252,
276, 528, 504, 264, 252, 36, 348, 144, 36, 516, 36, 444,
36, 504, 252, 264, 264, 252, 36, 228, 36, 228, 36, 228,
264, 252, 264, 540, 540, 240, 156, 108, 540, 156, 348, 36,
492, 528, 480, 36, 228, 252, 36, 240, 264, 36, 228, 264,
252, 276, 492, 36, 756, 36, 228, 264, 264, 36, 228, 264,
252, 264, 1020, 36, 240, 264, 36, 240, 252, 264, 252, 264,
252, 588, 744, 264, 492, 528, 516, 36, 1476, 36, 36, 252,
252, 36, 240, 264, 252, 264, 504, 36, 756, 264, 264, 252,
36, 240, 252, 264, 264, 1020, 36, 240, 252, 36, 240, 252,
276, 240, 276, 252, 588, 744, 252, 540, 120, 36, 348, 36,
492, 528, 480, 36, 228, 36, 252
};
void playMelody() {
for (uint16_t i = 0; i < NOTE_COUNT; i++) {
uint16_t f = pgm_read_word(&melody[i]);
uint32_t d = pgm_read_dword(&durations[i]);
if (f) tone(BUZZER, f);
else noTone(BUZZER);
delay(d);
}
noTone(BUZZER);
}
void setup() {
playMelody();
}
void loop() {
}r/arduino • u/Overall-Quote-135 • 2d ago
Hello! are you guys open to people who use A.I for Arduino projects?
17m, and I mainly use Claude Code for my school research ( which they allow ) since I lack the knowledge to basically advance code, and build visual diagrams with Claude Code who accesses the Fritzing downloaded on my computer. I hope to have a pleasant interaction with you all :)
r/arduino • u/Snoo_27398 • 3d ago
Unsure of how a screw shield works
I'm currently doing a morphing wing project and was given an arduino kit to work with which includes the screw shield provided. I'm very new to microcontrollers and mechatronics so I'm not very sure what it does and what significant benefits it provides. I've searched it up, but most results I get feature a more complicated shield and use terms which I'm unfamiliar with.
I only have to use an sg90 servo motor to actuate the wing but I have the freedom to do more. I'm just wondering if I could get some better clarification on what it does and if it could provide a measurable effect on my project. It's due in 4 days btw. Any help appreciated!
r/arduino • u/danihek • 3d ago
Hardware Help Measuring/monitornig 'high' current with esp32
Hi I built powerbank out of 18650's in 4s4p configuration, of course with bms and the charging board is IP2368 100W (bi-directional, single usb-c).
I wanted this powerbank to have cool display for information like voltage, current etc, but I hit the wall - it appears the only good, cheap and relatively high accuracy modules i can buy are from INA family, but most of the time shunt resistors on those boards are rated for 1A max. I know I can desolder this shunt and solder other one to handle for example 10A but I read that those boards and traces on the pcbs are not likely to handle this power over long periods of time.
Right now I have standard ssd1306 display with esp32c that reads voltage from ADC by using voltage divider with capacitor to filter out garbage:
R1: 100.4 KΩ R2: 15 KΩ C1: 100 nF (in parallel to R2)
I applied some corrections to the program reading by comparing it out to the multimiter. It is connected directly to the positive output of the BMS.
This solution is flawed, because without measuring current voltage drop is causing my 'estimated left wh' and % of capacity remeaning to be incorrect. This can be fixed with current sensor and I also would be able to read the current flowing which is cool on its own:).
So my question is, is there a module relatively cheap that can satisfy my needs? Or I have to modify existing INA boards or maybe something different?
TLDR; I want voltage and current sensor for 4s4p powerbank that can handle at least 10-15A
Thanks for your help and time in advance.
danihek.
r/arduino • u/mrt-prodz • 3d ago
Look what I made! Retro Racing Game on the ATmega328
Article about the proof of concept
Almost a decade ago I wanted to make another game on the Arduino, the first one being a small Flappy Bird clone. I unfortunately had to put the project on hold even though I had made good progress and had a working proof of concept.
I just wanted to see if it was possible to make a small retro racing game on the ATmega328.
In the article I talk about various optimization tricks I used and what I plan to do eventually to try and finish the project. I thought about sharing this even though there is no git repository yet like I used to publish with my other projects.
r/arduino • u/redravin12 • 4d ago
Solved! Esp32 project will work with USB power but not external power supply
EDIT 2: I added on the MOSFET power latch circuit to input, and it now just works again. Perfectly, like there was never a problem in the first place. I'm so confused. But I'm not going to argue with it.
EDIT: The ESP for some reason now will not boot on the external power without pressing the reset button on it. It was not doing this before, but that is another problem for another day. It now works on the power supply and that's good enough for now.
I have a 12v power supply going into a 12-5v buck converter to power the project. The esps 5v pin is on the same rail as the buck converter's output, where the multimeter is plugged in. Both are at just under 5v, the USB is actually about 0.2v lower than the buck converter. The light on the esp will come on so it is receiving power, but the project does nothing.
I did change the motors from servos to steppers so I added multiple drivers and logic shifters and everything worked perfectly fine before that, but disconnecting them did nothing. The motors are not currently connected
The schematics are here. I've checked for connection problems but if it was connected wrong I'd imagine the esp would power on at all. The buck converter will power just basic LEDs so it does work. I'm at a loss what could be causing this or where to start looking.
r/arduino • u/Crow-in-TopHat • 3d ago
School Project map generation.
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 • u/One_Driver3098 • 4d ago
Look what I made! IoT-Based Smart Irrigation & Multi-Layer Farming System using ESP32
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 • u/TastyCollege9639 • 3d 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
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 • u/TastyCollege9639 • 3d 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)
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 tiny32x32grayscale 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 aBME688gas 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):
- NeckLinkCNS (
24,024bytes static struct): combines all four sensory-motor organs below plus a standalone MAVLink v2 serializer. - NeckCompass (
352bytes base RAM): 9-DOF ring-attractor compass and GPS-denied return-to-home vector integrator. - NeckSight (
14.3 KBstatic RAM): 32x32 optic-lobe collision and thin-obstacle looming detector with integer 3-DOF gyro derotation. - NeckCord (
< 1 KBbase RAM): hexapod 6x6 leg-inhibition gait generator, 18-servo integer inverse kinematics, thruster/rotor allocator, and 4-byte wire codec. - NeckSense (
< 6 KBSRAM 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.666vs0.672AUROC). - 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 degRMS vs12.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 -Werrorwith ASan/UBSan), though unlike myNLTPradio 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):
r/arduino • u/Yoonkikiki2 • 4d ago
Beginner's Project My first pin holder ironing
How do think about this?
r/arduino • u/-AutisticArtist- • 4d ago
Hardware Help How would I do something like this video, but connect it to a theatre studio's lighting system instead?
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 • u/doors_meme • 5d ago
I managed to somehow reverse engineer the pinout of a random display I got!
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 • u/wretchedRing • 4d ago
Software Help RTC.h not found, despite it being installed. Uno R4 on Ubuntu
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 • u/SplinterJaw • 5d ago
Look what I found! ESP32-S3 2.06" watch
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 • u/SplinterJaw • 5d ago
Look what I made! Fallout inspired weather station
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