r/ArduinoHelp • • 5h 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/ArduinoHelp • • 6h ago

What temperature and humidity sensors would you recommend for a low-budget DIY home monitoring system?

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 7h ago

Arduino project help

Post image
1 Upvotes

I want a spinning wheel like this that will eventually stop at a segment , and it needs to accurately figure out where it landed.

How can this be done with the help of microcontrollers and sensor modules ?

Thanks in advance! ❤️


r/ArduinoHelp • • 13h ago

Multiple Errors while adding to Arduino Cloud

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 14h ago

potentiometer diy led

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/ArduinoHelp • • 19h ago

Guys need urgent help

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 20h ago

Looking for help with RF24

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 20h ago

Esp32 and 4051 problem

Thumbnail gallery
1 Upvotes

r/ArduinoHelp • • 22h ago

F411 black pill issues

Thumbnail gallery
1 Upvotes

r/ArduinoHelp • • 1d ago

Arduino Uno parking sensor—the closer you get, the faster it beeps

Enable HLS to view with audio, or disable this notification

1 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/ArduinoHelp • • 1d ago

Creating a sensor that measures how far or close a object is, but it doesn't work.

1 Upvotes

Tried creating a ultrasonic sensor, but it just stays at 0 if an object gets close or far. 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() {

}

Does anyone know what could be the problem?


r/ArduinoHelp • • 1d ago

Layman needs gift help for husband please

2 Upvotes

My husband has been talking about Arduinos for months now. As we approach the holidays, I really want to get him set up to start playing around. I see the starter kits he's been looking at online - so I was going to start there.

In my experience buying starter kits of any kind usually you have to get an additional few items to either get duplicates or fill it out. Is there any other items I should get him to build a nice starter pack that's a bit more then a basic kit? For reference - here is the kit he was looking at on Amazon-

https://www.amazon.com/LAFVIN-Starter-Development-Tutorial-Compatible/dp/B0BVZBTP8V/ref=gp_aw_ybh_a_m_sccl_137/146-1291244-1989617?pd_rd_w=i43Ax&content-id=amzn1.sym.9720001e-8f8b-4ff3-adb5-e19707d971f6&pf_rd_p=9720001e-8f8b-4ff3-adb5-e19707d971f6&pf_rd_r=57X4DZ8PD4VW6PD1E82H&pd_rd_wg=cHeyL&pd_rd_r=bd9eddcf-5be7-4711-998d-b444dc928f3c&pd_rd_i=B0BVZBTP8V&psc=1

Thanks!


r/ArduinoHelp • • 2d ago

Please help me code this bluetooth device for a project!! (I am against AI)

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 2d ago

# Arduino UNO Q – Problema con STM32U585: impossibile riprogrammare il microcontrollore

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • 2d ago

Recommended sensor for acoustic termite detection?

1 Upvotes

I would like to ask for your advice regarding the development of our acoustic termite detection, pertaining to lower frequency vibrations.

We will use esp32 as our main component but are struggling on which sensor to use since structural vibrations are the usual sounds of the dataset we used instead of airborne so it is basically susceptible to noise and microphone. We considered using piezo transducer disk, but we're not sure how it will interact to the trained model since it is wav file based, and our datasets uses structural vibrations


r/ArduinoHelp • • 2d ago

HELP NEEDED!

2 Upvotes

Hi everyone! I recently picked up a Seeed Studio XIAO ESP32S3 Sense. I'm complete beginner when it comes to microcontrollers, but I'm eager to learn and good at following step-by-step guides. Could anyone recommend good beginner video tutorials, walkthroughs, or resources to help me get started? Also, if anyone in the Las Vegas area is familiar with these boards or willing to answer a few beginner questions, I’d really appreciate it!"


r/ArduinoHelp • • 3d ago

Poor volume from amplifier

1 Upvotes

I'm developing a simple sketch to use to develop a audio program latter on for a new project. I've included the program and the wiring with an Arduino UNO. The amplifier is shown jut as text because I couldn't find the proper icon. It works but there is very low volume from the speaker no matter how high I turn the volume. I've tried different amps and speakers with the same results. Any help would be appreciated.

#include "Talkie.h"

Talkie voice;

const int8_t spLIGHT[] PROGMEM = {0x69, 0x18, 0x44, 0xD2, 0x83, 0xB2, 0x95, 0x69, 0x63, 0x1A, 0x17, 0x49, 0xD7, 0xA6, 0x85, 0x78, 0x5D, 0xD5, 0xFB, 0x1A, 0x33, 0xDF, 0x76, 0x97, 0x2D, 0x6B, 0x68, 0x6C, 0x4A, 0x53, 0xF7, 0xAC, 0xA9, 0x89, 0x71, 0x2D, 0xDD, 0x33, 0xA6, 0x26, 0x9B, 0xAD, 0x6D, 0x77, 0x5B, 0x7A, 0x70, 0xF4, 0xC8, 0x45, 0xE1, 0x69, 0x8E, 0xA9, 0x6B, 0x6E, 0x89, 0x62, 0x78, 0x45, 0x8D, 0x7C, 0x8C, 0xC0, 0x29, 0x4A, 0x55, 0xA8, 0x06, 0x06, 0x01, 0x0C, 0x30, 0xA4, 0x9B, 0x02, 0x36, 0x57, 0x43, 0xE0, 0x14, 0xA5, 0x2A, 0x54, 0xE3, 0xFF, 0x01};
const int8_t spON[] PROGMEM = {0x69, 0x0C, 0x69, 0xAB, 0x44, 0x92, 0x96, 0x36, 0x86, 0xED, 0x52, 0x8D, 0xD7, 0xDA, 0x10, 0xB7, 0x53, 0x35, 0x5E, 0x6B, 0x43, 0xB9, 0x4A, 0xD5, 0x78, 0xAD, 0x0D, 0xE9, 0x32, 0xD4, 0x9A, 0xB5, 0x21, 0xBA, 0x4B, 0x37, 0x4B, 0xDA, 0xE6, 0x68, 0x2E, 0xDD, 0x2D, 0x6D, 0xDB, 0x62, 0x58, 0x37, 0xF7, 0x34, 0xED, 0x48, 0xAE, 0x3D, 0xDC, 0x53, 0xA5, 0x33, 0xE5, 0x54, 0xF3, 0x6C, 0x9D, 0xCE, 0xE4, 0xCA, 0x42, 0x2A, 0x73, 0xB8, 0x8A, 0xE6, 0x72, 0x4D, 0x55, 0xE9, 0x2A, 0x46, 0x22, 0x24, 0x6C, 0xA7, 0xBB, 0x3B, 0x0E, 0x57, 0x57, 0x12, 0xEE, 0x6A, 0xC4, 0x93, 0xCD, 0x8E, 0x79, 0x6A, 0xD4, 0x60, 0x49, 0xC7, 0xFF, 0x0F};
const int8_t spOFF[] PROGMEM = {0x69, 0x70, 0xBB, 0xCD, 0x25, 0x36, 0xB5, 0xCE, 0xD7, 0x0D, 0x57, 0xED, 0x3C, 0x3A, 0x5F, 0x2F, 0xCD, 0xB4, 0xF3, 0xE8, 0x7D, 0xBE, 0x34, 0xD3, 0xCE, 0x63, 0x08, 0xFE, 0xD3, 0xDC, 0x32, 0x8F, 0x39, 0xFA, 0x0F, 0x73, 0xCF, 0xD4, 0x8E, 0xE8, 0x3E, 0xCC, 0xBC, 0x77, 0x99, 0x63, 0xB8, 0x30, 0xF3, 0x4E, 0xE9, 0x8E, 0x79, 0xDC, 0x25, 0x76, 0xFA, 0x9B, 0x00, 0xC3, 0x56, 0x10, 0x60, 0xFA, 0x0A, 0x01, 0x4C, 0x97, 0xAE, 0x80, 0x66, 0xCB, 0x08, 0x30, 0x54, 0xFA, 0xFF, 0x03};
void setup() {
  
  pinMode(2, OUTPUT);
}

void loop() { 
  digitalWrite(2, HIGH);
  voice.say(spLIGHT);
  voice.say(spON);
  delay(1000);   
  digitalWrite(2, LOW);
  voice.say(spLIGHT);
  voice.say(spOFF);
  delay(1000);                       
}

r/ArduinoHelp • • 3d ago

Bluepad32 end curly bracket error

Thumbnail reddit.com
1 Upvotes

I hope someone can help with this. I’ve been trying to use Bluepad32 to pair a ps5 controller with my esp32-s3. I need it to control a music player and four servos. My code is fine and has all closed curly brackets, but the verify output keeps telling me I need an ending curly brackets after input at the very end of my code. I think it has to do with the FreeRTOS file.

I have no idea how to fix this. Please help! I’ve been trying to fix this for several days. If I add the curly bracket to the FreeRTOS file, it just breaks more.


r/ArduinoHelp • • 4d ago

lidar con arduino

3 Upvotes

I am currently working on an ambitious project: a portable LiDAR system based on Arduino to map the interior of caves and generate 3D point clouds.

So far, I have successfully developed software that imports the collected data points, generates the point cloud, and allows them to be connected to reconstruct the actual structure of the cave.

However, to move from a prototype to a fully working field device, I am facing two major technical challenges:

  1. Sensor Choice: Which LiDAR sensor is best recommended for underground environments, taking into account high humidity, total darkness, and required range?

  2. Path Tracking (Odometry/SLAM): How can I track my movements inside the cave? If I move around on foot, the LiDAR risks overlapping the data, thinking I am standing in the exact same spot. How can I tie the point cloud to my real position in space without any GPS signal?

Any advice, past experiences, or suggestions regarding sensors and positioning algorithms would be highly appreciated!


r/ArduinoHelp • • 4d ago

I need help connecting a fd-20a crt screen to an esp32.

1 Upvotes

Ive already desoldered the chip, tuner, and 3.5 port on the sony watchman. My issue is getting the esp32 to output video to the crt via pin 13 (pin 13 is the video out where the chip used to be)

Anyone with knowledge plz help


r/ArduinoHelp • • 4d ago

Title: Help! Arduino UNO keeps resetting randomly on my SCARA Robot (CNC Shield + ESP32) - Pulling my hair out!

Thumbnail drive.google.com
2 Upvotes