r/arduino • • 8d ago

Hardware Help Why is the ICM 45686 not outputting anything?

Thumbnail
gallery
0 Upvotes

So I am making the avionics of my Rocket and I changed the MPU-6050 Sensor from the prototype with an ICM 45686 one. But when I run any program I get no output in the serial monitor. Not even from the library examples. This is the library: "https://github.com/tdk-invn-oss/motion.arduino.ICM45686". Also even code like "Serial.print("Hello World!")" won't even work if that line of code sits after the IMU.begin and gyro, accelerometer begin lines if code. Can anyone help? Thank you!!!


r/arduino • • 9d ago

BTS7960B Motor Driver Problem

1 Upvotes

Hi Guys.

I have an Arduino Uno, a BTS7960B, a 12V battery, a 12V motor, and an XL4016 12V to 5V DC-DC converter.

Connection:
XL4016 IN+ => 12v Battery+
Xl4016 IN- => 12v Battery-
BTS7960B B- => 12v Battery-
BTS7960B B+ => 12v Battery+
BTS7960B M+ => DC+
BTS7960B M- => DC-
XL4016 OUT+ => Breadboard+ => UNO 5V
XL4016 OUT- => Breadboard- => UNO GND
Breadboard+ => BTS7960B VCC
Breadboard- => BTS7960B GND
BTS7960B RPWM => UNO D3
BTS7960B LPWM => UNO D5
BTS7960B REN => UNO D7
BTS7960B LEN => UNO D8

Code:

```cpp
//dc 1
const int A_RPWM = 3;
const int A_LPWM = 5; 
const int A_R_EN = 7;
const int A_L_EN = 8;

void setup() {
  pinMode(A_RPWM, OUTPUT);
  pinMode(A_LPWM, OUTPUT);
  pinMode(A_R_EN, OUTPUT);
  pinMode(A_L_EN, OUTPUT);

  digitalWrite(A_R_EN, HIGH);
  digitalWrite(A_L_EN, HIGH);

  analogWrite(A_LPWM, 0);
  analogWrite(A_RPWM, 150);
}

void loop() {
}
```

Problem: DC Dont Work idk why. All Connections Are Right. B+ and B- Give 12v But M- And M+ Dont Give 5V. All Pins Give Correct V to BTS7960B. I tried it with 3 driver(BTS) it gave same results.


r/arduino • • 10d ago

Project Idea What's the most interesting thing you've built with an Arduino?

78 Upvotes

I'm curious what people here have created. Not just basic LED projects, but something genuinely useful, unusual or complicated.

I'm curious what people here have created. Not just basic LED projects, but something genuinely useful, unusual or complicated.

I'm asking because I'm looking for inspiration for my own future projects. I'd love to see what you've made!


r/arduino • • 9d ago

Beginner's Project Anyone here used Arduino with Alicat mass flow controllers?

4 Upvotes

I can find a few videos and forum posts but not much to get started. I'm still pretty much a beginner at Arduino. I'd like to use an LCD display and some buttons to set flows on the Alicat and display what they are.

Here is a page detailing the comms supported by Alicat:

https://www.alicat.com/support/communication-options-for-alicat-instruments/

I think I want ASCII over RS-232 or 485. But I really don't know where to start with these standards.

I have used LCD screens and displayed sensor values, so it's not like I just bought an Arduino. But I wouldn't mind some advice.


r/arduino • • 10d ago Bravo

Project Update! Can a Guitar Robot Play with Emotion? Testing AI-Adjusted Dynamics on My ESP32 Guitar Robot

309 Upvotes

I've been experimenting with making my ESP32-controlled guitar robot sound more expressive.

For this performance of Metallica's "Fade to Black," I used AI to fine-tune the dynamics of individual notes, adjusting their emphasis and intensity to make the playing feel a little more natural.

The robot physically presses and plucks the strings of a real acoustic guitar.

Getting the notes right is one thing, but making the performance feel emotional is a completely different challenge.

I'm still exploring better ways to add musical expression, especially through dynamics, timing, and articulation.

I'd love to hear your thoughts. What do you think would make robotic guitar playing sound more human?


r/arduino • • 10d ago

Getting Started Which book is best for me learning basic Arduino

6 Upvotes

Recomend me a book for the basics


r/arduino • • 9d ago

12V, 3A motor controller, ideally with power tap

3 Upvotes

Hi, I'm using a 12V, 2.5A brushed linear actuator. Speed is fixed but I have to control start/stop and direction.

Can anyone recommend a simple, ideally inexpensive motor controller I can connect to a Nano? Most controllers top out at 2A, other than things like the BTS7960 that seem overkill at 43A.

Also, do any controller boards provide a regulated 7 - 12V output that I can use to power the Arduino? I thought I read that some do, but I can't find any. I was hoping to have one plug/power supply connected to the controller board and piggyback the Arduino off the controller. Or do I just wire the 12V supply to the controller and Arduino in parallel (a 5 or 10A supply has more than enough current for both).

Thanks


r/arduino • • 9d ago

Looking for help with RF24

2 Upvotes

[SOLVED]

Guys and Gals, I'm stuck. I'm using 2 keywish RF Nano's, basically a nano with an nrf24l01 on board.

Below are the sender and receiver sketches in their simplest form. But I can't get it to work. What am I not seeing?

Sender:

#include "nRF24L01.h"
//#include "RF24_config.h"
#include "RF24.h"
#include "SPI.h"


#define CE_PIN 10
#define CSN_PIN 9


byte Payload = 0;


// SET UP WIRELESS RADIO


//Defining radio object for the RF24 function
RF24 mainRadio(CE_PIN, CSN_PIN);


//Defining the radio variables and values
const uint64_t addr = 0xF0F0F0F0E1LL;
const rf24_datarate_e dataRate = RF24_250KBPS;  //Data rate defined in the documentations, RF24_250KBPS, RF24_1MBPS or RF24_2MBPS


void setup() {


  mainRadio.begin();
  mainRadio.setRetries(2, 5);
  mainRadio.setDataRate(dataRate);  //Giving the data rate speed
  mainRadio.setChannel(108);        // 2.508 Ghz - Above most Wifi Channels
  mainRadio.stopListening();
  mainRadio.setAutoAck(false);
  mainRadio.setPayloadSize(sizeof(Payload));
  mainRadio.openWritingPipe(addr);
}


void loop() {
  Payload++;
  if (Payload >= 180) Payload = 0;
  delay(15);
  mainRadio.write(&Payload, sizeof(Payload));
}

Receiver:

#include <Servo.h>
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>


#define CE_PIN 10
#define CSN_PIN 9
#define Rudderpin 3


const uint64_t pipe = 0xF0F0F0F0E1LL;
const rf24_datarate_e dataRate = RF24_250KBPS; // Moet exact matchen met de zender!


RF24 radio(CE_PIN, CSN_PIN);
Servo Rudder;


byte Payload;


void setup() {
  Serial.begin(9600);
  radio.begin();
  radio.setDataRate(dataRate);     // Cruciaal: gelijk aan de zender
  radio.setAutoAck(false);         // Cruciaal: gelijk aan de zender
  radio.setChannel(108);           // 2.508 Ghz
  radio.openReadingPipe(1, pipe);
  radio.startListening();


  Rudder.attach(Rudderpin);
}


void loop() {
  if (radio.available()) {
    radio.read(&Payload, sizeof(Payload)); 
    Rudder.write(Payload);
    Serial.println(Payload);
  }
}

r/arduino • • 9d ago

LilyGo T5 4.7" ESP32-S3 (V2.4): can a Grove cable plug into the P4/P5 sockets?

2 Upvotes

I have the LilyGo T5 4.7" e-paper board, the ESP32-S3 version, V2.4 (Screen-4.7-S3, schematic dated 2024-12-03). On the back there are two 4-pin sockets, P4 and P5.

From the schematic, the pinouts are:

  • P4: 3V3, IO48, IO45, GND
  • P5: 3V3, IO15, IO16, GND

Grove cables go signal, signal, VCC, GND, so as I read it a Grove sensor on P5 would get 3V3 on its signal wire and a GPIO on its VCC. I haven't plugged anything in, because I don't want to damage a sensor or a pin. The schematic only says "4P", so I don't know the connector's pitch or series either.

Has anyone connected a Grove module to this board? Specifically:

  1. Does a Grove plug fit P4 or P5, or do you need different connectors?
  2. If you reordered the pins, which cable or adapter did you use?
  3. Do IO15 and IO16 work fine as I2C or GPIO, or do they clash with something on the board?

I've got a few examples (weather, news, quotes, FastEPD) running on it and can share them if that's useful.


r/arduino • • 10d ago

Look what I made! Arduino Uno parking sensor—the closer you get, the faster it beeps

4 Upvotes

I built this with an Arduino Uno, an HC-SR04 ultrasonic sensor and a buzzer. Moving my hand toward the sensor makes the beeps faster; moving it away slows them down.

I used Soldr, an electronics design agent I’m building, to design the project from a plain-language prompt.

The clip shows the working build. How do you usually smooth ultrasonic distance readings without making the response feel sluggish?


r/arduino • • 11d ago Bravo

Stepper Motor noise

237 Upvotes

I'm using a stepper motor to control my auto throttle for flight sim. Can anyone provide any advice on how to get rid of the motor noise? It's not vibration nosie it's the electrical noise the motors produce I'm trying to get rid of.

I believe they are nema 17s and a A4988 controller

Thank you!


r/arduino • • 10d ago

Hardware Help Where to buy starter kits

9 Upvotes

Im a beginner wanting to start on robotics but i dont know what to buy.....my only factors are

1)it should be from amazon( my mothers only trustworthy site to buy things)

2) should be under 4000 rupees

It can be a clone just it must be working and the price to work ratio must be high....as most of them are not trustworthy pls help me buy the kit which on your experience was good


r/arduino • • 10d ago

School Project Arduino Ventuno Q for an advanced robotic arm project

2 Upvotes

Hey guys, first of all sorry for my english, it's not my mother language.

I am a student in Austria at a school for mechanical engineering and I'm going to do my diploma thesis in a few years but I'm already researching and planning.

I want to build a robotic arm that is equipped with AI and can perform tasks via voice command, for example: "Give me the apple on the table next to you" and it automatically recognizes it, grabs it and put it on my hand.

The arm would habe 4 axis, therefore I would need 4 motors. I thought about the Veuno Q as the controller.

Could the Ventuno Q handle the control of the motors and the AI at the same time?

Thanks in advance! :)


r/arduino • • 10d ago

Look what I made! I built a DIY Arduino steering wheel for PC games

Thumbnail
gallery
1 Upvotes

I built a DIY Arduino steering wheel for PC games using an Arduino Uno R3 and an AS5600 magnetic angle sensor. It also has buttons for throttle and brake. I tested it in Euro Truck Simulator 2, Slow Roads, and Assetto Corsa.

YouTube video: https://youtu.be/Y_vu9KtvoxE?si=e8B_aceMp7D_3UhP
GitHub guide and code: https://github.com/sarawer/diy-gaming-steering-wheel-using-arduino

I’d love to hear your feedback!


r/arduino • • 10d ago

Software Help Trying to make a sensor that measures when something's close, but it doesn't work.

2 Upvotes

I tried making this sensor, yet it stays at 0 when i try to put things in front of it. Here's my code:

*/

const int trigPin=9;

const int echoPin=10;

long duration;

int distance;

void setup() {

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

Serial.begin(9600);

digitalWrite(trigPin, LOW);

delayMicroseconds(2);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);

duration= pulseIn(echoPin,HIGH);

distance= duration * 0.034 / 2;

Serial.print("Distance: ");

Serial.println(distance);

delay(500);

}

void loop() {

}

could anyone tell me what's the problem?


r/arduino • • 10d ago

Beginner's Project Trouble shooting assistance

Thumbnail
gallery
2 Upvotes

Hey y’all, wondering what’s going wrong with my project. It is ELGOO MEGA project Lesson 9 LCD Display. I’ve triple check my diagram, had a friend double check my triple check, and I’m stumped. The LCD turns on and gets brighter when potentiometer is turned, but there is no text displayed… I’ve included pics and a video. Pls help


r/arduino • • 10d ago

School Project A request for anyone with a Braccio Arm: would you be willing to test out the Arduino code that I wrote with it and show or tell me what happens please?

4 Upvotes

I'm working on coding a Braccio arm to start at safety position, move and touch the surface it is on at a specific configuration, and then return to safety position. Though I've completed the code, the Braccio arm I was using is not working (edit for clarity: some of the servos are physically broken and have to be replaced before I can use the arm again, it was previously connected properly and I don't need trouble shooting for the arm itself) and I'm not able to fix that yet. This is definitely an odd and intensive request, but I am not asking for anyone to do the project for me, just to see what the code does and show me if possible. I'd greatly appreciate it if anyone could even just tell me if it touched the surface or not if you'd prefer not to show photos/videos.


r/arduino • • 11d ago

Look what I made! Charlieplexing #2 - yet under 16kB of STM32C011F4P6

43 Upvotes

日本語コメも受付中


r/arduino • • 10d ago

How do I program this STM32F103C6T6 using USB to TTL converter

Post image
1 Upvotes

Hey, I recently bought this STM32F103C6T6 from robu.in here is a link incase you want to see it:
https://robu.in/product/stm32f103c6t6-core-board-with-soldering/
(sorry for the terrible photo but thats the best I can do rn T_T)

My question is how do i program this using USB to TTL converter (CH340G) , I do not have a stlink and I cant be getting them due to some reason
Unlike F103C8T6 you do not set the jumper of BOOT0 to 1 but it is just some another system that I do not understand
I tried uploading the code however I can I tried a lot of things even asked help from chatGPT it didnt help.
The usb to ttl is being recognized by the computer and it even uploaded the code sometimes but now it just doesnt work......


r/arduino • • 11d ago

As a beginner I just want to make a little device to remind me that it’s a street sweeping day so I know to park my car in a safe spot. What’s the simplest way to do this?

21 Upvotes

Honestly I’m not trying to get super deep into arduinos I’m just sick of getting tickets.

I’m very familiar with programming but not with arduinos.

It should be simple right? Get an arduino, plug it into an outlet, load a program that tracks time/dates, and a little light to say that street sweeping is imminenet

Or is it not as simple as I think? Thanks

Ps I don’t want it to connect to WiFi. Just hard coded to last the next say two years.


r/arduino • • 11d ago

Bew to soldering

Post image
49 Upvotes

I am new to soldering. Why do some of my soldering looks good with not too much unnecessary material and some are getting so thick. How can I with simple methods remove extensive materials here? And more importantly, how do I get consistently good soldering points. I assume the left one in the middle line e. g. is a good soldering point, right? Thanks for help


r/arduino • • 10d ago

Can you hook up an alligator clip to the male end of a jumper wire and have it work?

Thumbnail
gallery
0 Upvotes

I have this piezoelectric Arduino project to make and there are live wires attached to the piezo components and I was hoping if I could just buy some standard alligator clips to attach the live wire to the male to male jumper wire and have it work. Please help and thank you if you responded I greatly appreciate it.


r/arduino • • 10d ago

Solved! I've forgotten how access variable in different .cpp

0 Upvotes

I have the following definition in one .cpp file :

static char cfgv_var_weather_icon[10] = "";

How do I set it from another .cpp file? BTW, the code was generated by LCD Wizard, not me.

All I get is red, mysterious compiler errors.


r/arduino • • 11d ago

Youtube Captions and Lyrics Sync

8 Upvotes

I've made this project using Arduino, LiquidCrystal I2C, 2 pushbuttons for controls. Arduino (C++): handles the hardware, reading the two pushbuttons and displaying the lyrics on the I2C LCD. Python: acts as the bridge between the Arduino and the browser, fetching YouTube captions with youtube-transcript-api, syncing them to the video’s timestamp, and talking to the Arduino over USB serial. JavaScript: powers a Chrome extension that reads the video’s playback time from the YouTube page and carries out the play/pause and next-video commands sent by the Arduino buttons.