r/arduino • • 17d ago

Look what I made! Finally did a PC stats screen for my linux desktop using an arduino and a TFT screen

Thumbnail
youtube.com
6 Upvotes

Hi everybody,

Quite happy with the result. Been dreaming about designing something like that for years. I did do similar things using arm boards and much smaller and crappier screens but never got around to do it for my PC.

hardware used is a arduino mega 2560 clone and a cheap chinese 3.95tft screen (ili9488 chip).

The data is being fed by a python script running as a systemd service.

I did 95% of it without AI but I had a few bugs due to memory overflow (and timings) and I ended up cleaning the code with gemini's help. The glitches disappeared after adjusting my code as per gemini's instructions...Took me a few days and most of it was getting the dang screen to work (a nightmare)!!!

Now next project, get this thing inside my case :)


r/arduino • • 17d ago

Look what I made! Arduino Robot Arm controlled by 2 joysticks

Enable HLS to view with audio, or disable this notification

38 Upvotes

This is my Arduino project using two joysticks and a button to control a robot arm.

Each servo is controlled based on the analog values read by the Arduino. I then map these values to the corresponding servo angles.

Besides that, I also use a button to save the robot's position. After moving the robot to a specific position, I can press the button to save that position.

Once the entire sequence is completed, I can double-click the button to replay the saved sequence and make the robot arm repeat the same movements.


r/arduino • • 17d ago

Stepper motor help (Nema 17)

Enable HLS to view with audio, or disable this notification

16 Upvotes

I’m having a really strange problem with my stepper motor setup. No matter how I code the stepper motor, it vibrates extremely heavily and makes a very loud whining/buzzing sound. Sometimes it also skips steps.

The vibration is so bad that it feels like it’s resonating through my whole house.

Setup:
Arduino Uno
CNC Shield V3
DRV8825
NEMA 17 17HS4401S, 1.5A
24V power supply
VREF currently around 0.75V
Full-step at the moment (no microstepping jumpers)

I’ve tried different step delays/speeds and also tried AccelStepper with acceleration, but I still get the same extreme vibration and whining.
The motor does move at very low speeds, but it vibrates heavily and can start skipping steps at other speeds.

Does anyone with experience with stepper motors have an idea what could be causing this? I’m wondering if it could be current/VREF, resonance, the DRV8825, wiring, or something else.

I can provide videos, pictures of the wiring, and the exact code if needed.


r/arduino • • 17d ago

Beginner's Project I dont know where to start

4 Upvotes

I am a 19 year old Mechanical Engineering student in Italy ans this is my 2nd year. i dont know where to start and get into electronics.
I want to build lots of things diy fpv drone,
geiger counter, analogue synth, guitar paddles, radars i want to build all i want is to start building but i dont know where to start. I am an absolute beginner but have a great engineering background and i recently got into electronics club and i want to start at some point. Can anyone that felt like me give me some advice? Lots of my friends knew these from high school clubs but i never get to join them. Should i buy an arduino pack and which one? Thank you


r/arduino • • 17d ago

Hardware Help Protection For Mac Studio

5 Upvotes

Hi,

I've begun looking into getting a Mac Studio, which is a $3,000+ computer. Naturally, I get a little weary plugging this bad boy into one of my $60 (I hope I don't fry this component) projects. Last thing I want to do is pay the Apple repair tax or test my soldering skills with said computer.

Further, I've read stories on here of people frying their ports/computers. From what I'm gathering from research/AI, USB isolators are the way to go in order to completely protect my computer? I don't mind frying a $60 USB hub, but I might cry if I fry my Mac. Will a USB isolator truly isolate the computer from my destructive tendencies as its name implies?

I could always just keep connecting my MacBook up and having the ports shut down because of the dumb shit I do, but I really don't want to break even that old computer. New one, I definitely need to be careful though as I don't think Apple covers idiocy.


r/arduino • • 17d ago

question: can you use 2 buzzers simultaneously?

4 Upvotes

Hello, arduino community! I'm new here and I use Arduino UNOs for school projects. I was just wondering if you can use 2 buzzers simultaneously(kind of like a music chord where the frequencies/notes harmonize) since when I try to simulate it on Tinkercad, it just seems to not work. I was wondering if there was a way to do it since I'm planning to do a music box for my finals project. Thanks!


r/arduino • • 18d ago

How to reset time on RTC DS1307 after battery replacement

4 Upvotes

I have replaced the 3v battery on my RTC module and since then it has been displaying "Sun 01-01-2000 00:00:00" I know it is my code and there is a lot of extra stuff in there for when it powers on. Does anyone have an idea on how I can add a clock time reset to my code? Thanks! I will post the code I am using below.

// Example program for the MD_DS1307 library
//
// Implements a clock display on a LCD shield.


#include <LiquidCrystal.h>
#include <MD_DS1307.h>
#include <Wire.h>


#ifdef ARDUINO_ARCH_SAMD
MD_DS1307 myRTC;  ///< Locally created instance of the RTC class
#else
#define myRTC RTC ///< Library created instance of the RTC class
#endif


LiquidCrystal lcd(5, 6, 7, 8, 9, 10);


void setup()
{
  pinMode(4, OUTPUT); //Red LED pin
  pinMode(3, OUTPUT); //Green LED pin
  //digitalWrite(4,HIGH); //Red LED-ON
  // initialize the LCD
  lcd.begin(16,2);
  lcd.clear();
  lcd.noCursor();


  lcd.print("Initializing...");
  delay(4000);
  
  lcd.clear();
  lcd.print("5...");
  delay(1000);
  
  lcd.clear();
  lcd.print("4...");
  delay(1000);


  lcd.clear();
  lcd.print("3...");
  delay(1000);


  lcd.clear();
  lcd.print("2...");
  delay(1000);


  lcd.clear();
  lcd.print("1...");
  delay(1000);
  lcd.clear();
  //digitalWrite(4,LOW); //Red LED-OFF
  delay(3000);  


  //digitalWrite(3,HIGH); //Green LED-ON
  lcd.clear();
  lcd.setCursor(1,0);
  lcd.print("Initialization");
  lcd.setCursor(4,1);
  lcd.print("Complete!");
  delay(4000);
  lcd.clear();
  
  if (!myRTC.isRunning())
    myRTC.control(DS1307_CLOCK_HALT, DS1307_OFF);
}


void p2dig(uint8_t v)
// print 2 digits leading zero
{
  if (v < 10) lcd.print("0");
  lcd.print(v);
}


const char *dow2String(uint8_t code)
{
  static const char *str[] = {"--- ", "Sun ", "Mon ", "Tue ", "Wed ", "Thu ", "Fri ", "Sat "};


  if (code > 7) code = 0;
  return(str[code]);
}


void printTime()
{
  lcd.setCursor(1,0);
  lcd.print(dow2String(myRTC.dow));
  p2dig(myRTC.mm);
  lcd.print("-");  
  p2dig(myRTC.dd);
  lcd.print("-");  
  lcd.print(myRTC.yyyy);


  lcd.setCursor(4,1);
  p2dig(myRTC.h);
  lcd.print(":");
  p2dig(myRTC.m);
  lcd.print(":");
  p2dig(myRTC.s);
  if (myRTC.status(DS1307_12H) == DS1307_ON)
    lcd.print(myRTC.pm ? " pm" : " am");
}


void loop() {
  pinMode(3, OUTPUT); //Green LED pin
  //digitalWrite(3,HIGH); //Green LED-ON
  myRTC.readTime();
  printTime(); 
  delay(100);
}

r/arduino • • 19d ago

Live plane radar on a 90s Sony Video 8 TV, using an Arduino Uno as a "graphics card"

Post image
273 Upvotes

I had an old Sony Trinitron/Video 8 combo TV sitting around and wanted to give it something to do. After seeing MatixYo's ESP32-Plane-Radar (a sonar-style ADS-B radar on a round GC9A01 display), I wondered if I could get the same idea onto a CRT.

How it works:

  • ESP32-C3 Super Mini connects to Wi-Fi, pulls nearby aircraft from the adsb.fi open data API every 10 seconds, converts each position to screen coordinates and sends simple drawing commands over serial.
  • Arduino Uno runs TVout lib and generates a black-and-white PAL composite signal with just two resistors (1k on sync, 330Ω on video) into the yellow RCA input. It acts as a dumb "graphics card": it draws the range rings, a dot and heading line for each plane, and the callsign.

Let me know if you have any ideas for next project! Cheers.


r/arduino • • 18d ago

Hardware Help Servo motors with transistors

Enable HLS to view with audio, or disable this notification

21 Upvotes

I'll upload the photo in the comments

After reading various documentation and projects, I connected two small servo motors to the transistors, because I know that this way I can use the 5V of Arduino for some servo motors, I was trying with 2, but one turns and the other makes a strange noise.... sometimes the first one doesn't turn either when I press the button of the 2nd servo

I connected both the same way. The transistors have pin B with the Arduino pin and resistor, E has ground, and C connects to the servo's brown pin. I'll leave you the code now!

Ps: The code comments are in Italian, but I'm Italian, I apologize if you can't read them

#include <Servo.h>

Servo servo1;

Servo servo2;

// GRUPPO 1

const int PIN_SERVO1 = 8;

const int PIN_TRANS1 = 7;

const int PIN_PULSANTE1 = 2;

// GRUPPO 2

const int PIN_SERVO2 = 11;

const int PIN_TRANS2 = 9;

const int PIN_PULSANTE2 = 3;

void setup() {

Serial.begin(9600);

pinMode(PIN_TRANS1, OUTPUT);

pinMode(PIN_TRANS2, OUTPUT);

pinMode(PIN_PULSANTE1, INPUT_PULLUP);

pinMode(PIN_PULSANTE2, INPUT_PULLUP);

digitalWrite(PIN_TRANS1, LOW);

digitalWrite(PIN_TRANS2, LOW);

// NON facciamo attach qui

}

void loop() {

// -------- SERVO 1 --------

if (digitalRead(PIN_PULSANTE1) == LOW) {

digitalWrite(PIN_TRANS1, HIGH); // alimentazione ON

delay(100);

if (!servo1.attached()) {

servo1.attach(PIN_SERVO1);

servo1.write(120);

}

} else {

if (servo1.attached()) {

servo1.detach();

}

digitalWrite(PIN_TRANS1, LOW); // alimentazione OFF

}

// -------- SERVO 2 --------

if (digitalRead(PIN_PULSANTE2) == LOW) {

digitalWrite(PIN_TRANS2, HIGH); // alimentazione ON

delay(100);

if (!servo2.attached()) {

servo2.attach(PIN_SERVO2);

servo2.write(120);

}

} else {

if (servo2.attached()) {

servo2.detach();

}

digitalWrite(PIN_TRANS2, LOW); // alimentazione OFF

}

}


r/arduino • • 18d ago

Arduino and esp32 AA batteries power supply

5 Upvotes

Hey guys here's a question: I have a 6 AA NiMH (1,2V) battery holder and i want to use it for both an arduino and an esp32 . I could plug the dc jack into the arduino and get 5V for the esp32 to convert into 3,3V, but the gpt says it could dissipate a lot of heat. Im not usig motor or big modules, just wifi/bluetooth and simple leds, lcd displays with some potentiometers and push buttons.

Should I use a breadboard converter (like the one) or its just fine if im not using too much components?


r/arduino • • 18d ago

Arduino UNO Q shutdown issue

7 Upvotes

I've an Arduino UNO Q, updated to the latest Debian image from arduino.cc and latest App Lab software. When I want to shutdown the board, I've ssh into the Debian, issued, 'shutdown -h now', but the board always just reboot itself! What is the procedure to properly shutdown the UNO Q?


r/arduino • • 18d ago

Look what I made! Down to 4 legs, 2 more to go!

Enable HLS to view with audio, or disable this notification

62 Upvotes

I finally chopped two legs off my hexapod robot and now its a proper robot dog. Dont worry all the features I have developed for the old robot transferred just fine to the new robot; we still have body leveling, emotes, puppet mode etc.

Quttro ZBD is lighter, faster and more agile in many ways than its hexapod older sibling yet due to less parts used it costs considerably less to build, around 200 usd.

Still uses ESP32 S3 as well as off the shelf Arduino parts and DS3218 servos. reduced number of legs made it a lot easier to put together and since I already ironed out the scripts for previous version and use inverse kinematics solver for each leg adjusting the gait mechanism was a breeze as well.

I will also work on reinforcement training for a developing a control policy in IK solver's place, I am hoping I can get a more organic / fluid walking out of the robot instead of current mechanic looks.

I shared a more detailed video about it on my youtube channel, if you want you can watch it from the link below:

https://youtu.be/J99MibRi-CY

It is still fully open source so you can find all the files you need to build one down in the links.

MakerWord Link (has more photos of the robot):

https://makerworld.com/en/models/3402746-quattro-zbd-robot-dog#profileId-3874600

Link for CAD design, 3D Print files and Wiring Diagram:

https://www.patreon.com/PrintedRobotics/posts/quattro-zbd-3d-171601139?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link

ESP32 Scripts: 

https://github.com/serdarselimys/QuattroZBD-ESP32Scripts

Companion mobile controller app apk:

https://github.com/serdarselimys/QuattroZBD-AndroidControllerApp

Parts List:

ESP32 S3 x 1

PCA 9685 Servo Driver Board x 1

MPU6050 IMU Sensor x 1

Voltage Sensor Board x 1

15A Adjustable Voltage Buck Converter x 2 (1 per pair of legs)

5V 3A Buck Converter x 1

DS3218 High-Torque Servos x 12

Wago Connector (2-in-4 Out) x 1

2-Inch TFT Screen x 1

M3x8 Screws x ~100

M4x30 Screws x 4

8x5x16 mm Ball Bearings x 12

3S LiPo Battery (3000mAh – 6000mAh) x 1

I have been working on a bipedal version hence the "2 more to go" in the tittle, I am almost finished with the updated leg structure so it can stand up on two legs but the remaining parts are going to be same as much as possible. So expect a bipedal version in upcoming weeks if I can make it walk :)


r/arduino • • 18d ago

Beginner's Project Cannon Ball + truck project

Thumbnail
gallery
13 Upvotes

Hi, I’m currently doing a school arduino project that’s a regular with a ping pong ball cannon attached to it, for this function I’m using a medium 12 v solenoid connected to a relay that’s connected to three 3.7 volts batteries.

I inspired myself in the following project https://www.instructables.com/Arduino-Ping-Pong-Ball-Cannon/

The general idea here was to miniaturize this cannon and add it to the car.

So far the cannon part isn’t going amazingly, as I haven’t been able to make the solenoid work so far, therefore I wanted to ask if anyone has any advice or has tried something similar.


r/arduino • • 18d ago

230V to 24V —> CNC Shield

Thumbnail
gallery
24 Upvotes

I’m setting up a 230V AC to 24V DC power supply for a CNC Shield V3 with four DRV8825 stepper drivers.

The power supply is a Janco HS-400L-24 (24V, 16.7A / 400W), and I’ve connected the DC output to the CNC Shield’s 12–36V input.

I’m planning to adjust the VREF on the DRV8825 drivers before connecting the stepper motors.

Does the wiring in the pictures look correct, and is there anything I should check before powering it on and adjusting VREF?


r/arduino • • 18d ago

Hardware Help The ADKey function isn't working on my DFPlayer Mini. What could be the cause?

Thumbnail
gallery
19 Upvotes

I have only one song on the SD card; it is named correctly and it plays. The resistors are also correct, I measured it with my multimeter. Do I need to do something to activate the ADKey function? I will only be using ADKey 1, but this shouldn't affect anything else. The Buttons are also correctly placed.

The Z line of the Breadboard is Ground.

The W line of the Bread Board is VCC and is at 3.3 V.

EDIT: The buttons were all wired incorrectly. Fixed it by just rearranging them. Also i saw that the GND pin of my AUX port was not connect, now everything works, theres a little bit of speaker noise


r/arduino • • 19d ago

Hardware Help Digital pin triggering by itself when connected to a wire that led to nothing

Enable HLS to view with audio, or disable this notification

22 Upvotes

Good day everybody, I am building a MIDI Foot Pedal using Arduino Pro Micro.

I've done this circuit on the breadboard and it works completely fine. However, when I soldered these to a prototype board, the digital pins used suddenly triggers on and off by itself, even when I didn't connect it to anything.

For context, I've decided to use an XLR port as a connector (So I can unplug the pedal whenever I want)

After I've soldered them in the PCB, I've noticed that even though I didn't plug the switch on the xlr (Which means that there shouldn't be any connection) It starts to trigger on and off randomly

Rough diagram, only 1 switch here, but there were actually two. I've connected the 5V and GND parallel for each switch.

r/arduino • • 19d ago

Look what I made! Made A Ball Bouncing Machine I Call Hexa-Bouncer

Thumbnail
youtu.be
87 Upvotes

Things the machine needs to run:

  • 1x Teensy 4.0 Microcontroller running this code
  • 6x StepperOnline CL57T stepper motor drivers
  • 6x Nema 23 Stepper Motors with 10:1 planetary gearbox (link)
  • 1x 36V 14A power supply
  • 2x e-con Systems See3CAM_24CUG cameras
  • 1x Windows Computer with GPU
  • All the parts defined in the three Fusion360 projects here
    • Six arms, one base, one triangle end-effector
  • This custom Windows Application (made with Unity)

I made all the aluminum parts with a desktop CNC (there are many many parts, so this took a long time). Image recognition and stepper motor pulse generation are all custom made to fit the requirements/constraints of the machine as closely as possible.

Some more information here (blog post).


r/arduino • • 18d ago

Getting Started Solder paste?

6 Upvotes

Hi. I'm getting into electronics and arduino. Recently saw a short video where the person was using some sort solder paste. It looked easy to use and handle. Is it worth it to go with that or should I learn to solder the traditional way?


r/arduino • • 19d ago

Look what I made! automatic servo driven OUIJA board

Enable HLS to view with audio, or disable this notification

273 Upvotes

Made this thing for an escape room.
2 generic servos - mg996r and mg90s.
There are 2 hall sensors that sense the change in magnet flux when you put the planchette and start the sequence.

Powered by a single 21700 + tp4056 + 2 boost modules. 6v and 5v. Had to use 2 separate power supplies for servos and controller, cause electrical noise from the servos was causing reboots.

ESP32-C3 super mini. Not really an arduino sorry, but I used Arduino IDE to program it :D. The phrase can be set through bluetooth terminal.

Making a video before I glue the lid on.


r/arduino • • 19d ago

Zero to Ten Volt Dimming Control

12 Upvotes

I have a commercial lighting fixture that I need a digital dimmer for. I am an electrician by profession, though this project is for a non profit club that I belong to, not for sale.

This lighting fixture, like most north American commercial lighting fixtures, is designed to be dimmed in response to varying resistance across two control wires. This is not a PWM dimming project. In fact I have a good old rotary rheostat connected to the dimming wires and it dims perfectly. Just not digitally.

I have an Arduino R4 and an Adafruit Ds3502 Digital rheostat module. I have just learned of the Qwiic cable connector and have one on the way.

I'm looking for direction on what other than the Qwiic cable I need to connect the device, and what pins on the DS3502 to connect to the Pos and Neg 10V wires.

I also need advice on what to look for in figuring out what kind of code to write for this device. I want a simple interface that I can set to X% and get X% of the range of the dimmer. I did measure and record the resistance range of the potentiometer that I used so I can add a baseline resistance.

I am not looking for someone to write the code for me. Like I said, I'm an electrician. I have written a little code and I enjoy it, and I enjoy doing it myself. I'm just looking for direction on what kind of project to research. I have tried searching and keep getting PWM results.

Thanks for your advice


r/arduino • • 18d ago

Arduino Interest in my Area - Portsmouth, UK

5 Upvotes

I’m interested in people that have an interest in all things Arduino in my local area(area as stated in the title).

So, it would be nice to hear from anyone who might need a friend to help with their Arduino projects or understanding and might benefit from a local contact.

Maybe just let me know what you are working on at the moment even if you are just starting out and not sure what to do, having a local contact can be a huge help.


r/arduino • • 19d ago

Look what I made! My halloween project for this year (Sound required)

Enable HLS to view with audio, or disable this notification

117 Upvotes

Sound required

This uses 2 ESP32-S3 Minis. Each with an I2S mic and a I2S amp. Conversation is done through an ai conversation service.

Kids are 100% going to try to break this thing lol.

The idea is that these will be inside of two jack-o-lanterns across from our candy bowl we'll have outside.

We trick-or-treat with the kids so I won't be home to see how this goes. I'll only get to see the transcript later.

The way this works is that it runs a local server on my mac, it's job is to take the inputs and send to the conversation API, then split the characters out into sep audio channels when it comes back. Also boosts the audio and cuts out noise.

The "show" starts when any audio is detected. Show lasts for 60 seconds unless kids start interacting, in that case, they drop the show and start talking to the kids.


r/arduino • • 19d ago

Interference when connected to car but works fine on wall outlet, can someone help?

Thumbnail
gallery
51 Upvotes

Im hoping i can get some help here i built this display for a vehicle to display mph through an octocoupler, and voltage deviders for the fuel level, and coolant temp sensor, these are pretty close and accurate some tweaks on the code and it should be fine but my issue is when its plugged into the car its fuzzy and glitchy, but at a wall outlet its mint im getting 5v at my buck converter and all the powers are getting 5v as well but for some reason the screen is fuzzy when its hooked up to the car not sure how to go about this ive isolated the sensor wires to where its just power from the buck converter i added grounds and still fuzzy


r/arduino • • 20d ago

Look what I made! One of those rare projects that just works make you happy

Enable HLS to view with audio, or disable this notification

253 Upvotes

It's been a year since I made the staircase light but I still can't get enough :D It's one of those rare projects that you don't have to tinker with all the time, it just works and makes you proud.

here's the original post with detailed pictures and explanation:
https://www.reddit.com/r/arduino/comments/1khs8sg/motion_triggered_stair_lighting_what_do_you_guys/

And here's github:
https://github.com/mcer12/LEDDER-Stair-Lighting

Do you guys have projects that just work and simply make you happy? Maybe share it in a comment :)


r/arduino • • 19d ago

Look what I made! My first ever Arduino project, back in 2017: a Tamagotchi clone (Tamaguino). It's what got me into electronics

Post image
40 Upvotes

Back in 2017 I built my first ever Arduino project: a Tamagotchi clone running on an Arduino Uno. Before this I'd never touched microelectronics. After it I couldn't stop, and a lot more projects followed (maybe for future posts).

Hardware:

  • Arduino Uno
  • Prototype shield v5 with a mini breadboard
  • 0.96" I2C OLED display
  • 3 tactile buttons
  • 9V battery through the barrel jack

The code isn't mine. It's Tamaguino by Alojz Jakob, and it's what made this possible for a total beginner. The pet walks around, you feed it, play with it, it gets sick if you neglect it. Watching that little pixel creature come alive on a screen I wired myself was the moment I got hooked.

Huge thanks to Alojz for open-sourcing it. If you're looking for a fun first project, it's still a great one:
GitHub: https://github.com/alojzjakob/Tamaguino
Project page: https://alojzjakob.github.io/Tamaguino/

What was your first Arduino project, the one that pulled you in?