Questions tagged [robotics]
use this tag for questions about robotics.
140 questions
2
votes
1
answer
538
views
communicating esp 32 with arduino uno
I made a spider robot using arduino and from esp. I made an audio output device which is linked to python program which writes a particular data (when we speak a command) to esp board and accordingly ...
1
vote
3
answers
434
views
are 4AA batteries (6V) power my arduino
I'm actually new to using arduino , and trying to make a simple car, using two dc motors, a l298n and an arduino, the problem is that a 9v battery doesn't seem enough to just power the l298n and one ...
1
vote
0
answers
27
views
IoT Explorer Kit registration process
how do I reinitialize an Arduino kit registration number for a new student using a kit previously registered? We recently ordered 50 of the IoT Explorer Kits and they will be used in a robotics class ...
1
vote
3
answers
597
views
LM7805 gets very hot with four servo motors
I'm making a robotic arm using three SG90s and one Futaba s3003 servo motors and an ESP32 dev_kit_V4.
The problem is when I am controlling the arm, the voltage regulator gets so hot that I can't touch ...
0
votes
1
answer
851
views
How often does a mpu6050 gyro sonsor need calibration?
I want to use it in my real car for daily use to measure yaw angle when needed.
Is is ok to only calibrate it once at first then use it every day when driving without any problem? if not, how often ...
3
votes
1
answer
581
views
Pulsein() function blocks other tasks from running silmultaneously
I am using a zumo bot with a reflectance sensor used to follow a black line. I want to use an arduino to make the zumo bot stop once it gets a certain distance from an obstacle.
I have an ultrasonic ...
7
votes
5
answers
5k
views
What is the best technique to design a 20 push button circuit
I will be controlling a robot with more than 10 motors which means I'll need 2 buttons each to control moving forward and backward. My controller is an Arduino mega. Is 1 pin = 1 button the best ...
1
vote
0
answers
48
views
DC Motor Shuddering
I am testing my BTS7960 Module with my UNO for bi-directional rotation of DC Motor. I am using a small DC motor as a test (like the one here) and I am powering the UNO via USB cable. The problem is ...
0
votes
3
answers
3k
views
Smooth Servo movement for robotic arm: An ongoing answer and soluton
This is not and will not be a duplicate.
This is a thread meant to share a solid soliton I figured out with the rest of the community and update it as I optimize it, ad-hoc.
So I had visited ...
0
votes
1
answer
166
views
How to put together an HKT30 optical rotary encoder?
I'm working on a project involving stepper motors. It is important for this project to track the position of these motors, so I decided to buy an optical rotary encoder, specifically an HKT30(HKT3005-...
1
vote
0
answers
558
views
Line Following Robot using PID control not working
I'm currently making a line following robot using PID control. My robot uses an Arduino Uno board, a L298N motor, 1 9V battery, 2 motors, 5 TCRT 5000 infrared light sensors to detect a black line on a ...
1
vote
0
answers
179
views
What module should I use for high precision localization?
I have a toy car and I want to measure the coordinates/location of that car in my house.
It need to bee high precision equipment so GPS won't work here.
My precision requriments is 5+- cm and the ...
2
votes
2
answers
2k
views
Most precise way to measure linear distance travelled by a wheel
Suppose a bot with wheels is traveling in a a straight line, and we want to measure this linear distance traversed by it as accurately as possible.
One of the ways is to use an optical encoder to ...
1
vote
1
answer
84
views
Is it possible my ATMega is burnt due to bad wiring?
While working on a project I tried sending data from my Arduino NANO to ATMega64 placed on AREXX Robot arm PCB via TXD/RXD. After plugging in VCC, GND, TXD and RXD to UART socket it didn't work so I ...
-1
votes
1
answer
375
views
Problem with L293D controlled motors using IR pilot remote
I have a problem with my line follower:
My robot has 4 wheels with DC motors connected to L293D shield (Arduino Uno).
The robot is a line follower controlled by IR pilot with an IR receiver, it has 4 ...
2
votes
0
answers
31
views
Brushless ESC Recommendations
I've got a project in which I'll be controlling 8 24V/10A brushless DC motors with an Arduino Due on a quadrupedal robot. I've been having trouble finding ESCs that would work well for this ...
0
votes
1
answer
535
views
Deriving the exact relationship between PWM and steering
I am using a L298n driver to make a basic RC car. I realise that PWM is used to control the speed of the motors and that the car would turn when the wheels on one side of the car have a rpm different ...
2
votes
4
answers
413
views
Need some Hardware advice with arduino
I am fairly new(having less hands on experience) to Arduino and electronics in general. I have a project for which I know the features and required electromechanical parts. I need some advice in ...
1
vote
3
answers
341
views
L239D motor driver not able to drive motors
I am making a line follower robot. The issue is trying to make the motors run.
The L239D module has 4 input pins (to control two motors), 4 output pins (to drive motors), and 6 power pins (5V, 5V, GND,...
1
vote
0
answers
144
views
How do I reset to servo position everytime I excecute a particular sequence
I'm trying to make a prosthetic hand that can play rock, paper, scissors with a human. It is based on the premise that you push a button and it randomly selects a move to play. After each move, I'd ...
1
vote
1
answer
437
views
4WD Robot keeps freezing
I have been working on a 4WD robot for a while now. The parts I'm using are Arduino v4 shield, l298N driver motor, Hc 05 ultrasonic sensor, DHT 11, mq2, Bluetooth module, servo motor, ir transmitter ...
1
vote
0
answers
62
views
LED goes off in nodemcu If I turn on other LED
I developed an android app to control a robot using nodemcu. I have added some buttons to on/off or blink some LEDs. It works fine but, if I on the one LED or drive the robot, the other LEDs goes off. ...
1
vote
0
answers
449
views
Help Needed! How do I attach a color sensor to a 2WD robot and use it to control its movement?
I'm relatively new to the world of Arduino, so don't be frustrated if I ask questions that could be silly. This project has a deadline, so any input is appreciated.
THE PROJECT:
I am planning to ...
0
votes
1
answer
86
views
Running a robot with 2 front-facing sensors, but it's stuttering
Here's the run down: I have a small robot with four continuous servo motors and two ultrasonic sensors. It's run by and UNO board with a Sensor Shield V5 on top.
My goal is to program the front right ...
1
vote
1
answer
333
views
How do I code delay inside a ISR?
I have built a basic obstacle avoidance robot. When the sensor senses an obstacle it gives a RISING interrupt to pin 2. At this moment I want the robot to come back for 2 seconds and turn right for 2 ...
0
votes
2
answers
406
views
Follow black and white line simultaneously
I have a line following bot which uses IR sensors (LSA08, more specifically) to detect the white line on black surface and stay on track. For the project however, there is a trick in the track. At a ...
0
votes
0
answers
72
views
A small problem that I cannot detect, My steppers are not moving for some reason ...?
I'm working on a similar project that can be found in this link
https://howtomechatronics.com/projects/arduino-mecanum-wheels-robot/
It's the same build.
To control the 4 steppers (via the NRF24L01), ...
0
votes
1
answer
795
views
Forward kinematics of a differential drive robot
I've been braking my head over this for the past few days and can't make it work.. So, I have a small robot with a rotary encoder on each wheel and i want to track its position (in x and y) on a flat ...
0
votes
1
answer
324
views
Remote Controlled Self-Balancing Robot - how to mix control input with IMU input?
I'm building a two-wheeled, self-balancing, remote-controlled robot. I'm familiar enough with the IMU and PID to get it working to just stand up but I need to drive it via remote control.
I've got no ...
-2
votes
1
answer
837
views
How do you determine Lead Screw position using Absolute Encoder?
I need to control the position of a lead Screw Stepper motor using EMS22A Absolute Encoder? I've seen James Bruton do this in his video. can anyone help me?
James Bruton Video: https://www.youtube....
1
vote
1
answer
1k
views
Arduino communication protocol with python - beyond pyserial and Arduino example
TL;DR does someone know of a advance and reliable/redudent USB protocol for communicating between a raspberry pi and Arduino due (native port)
I am trying to learn how to build a little robot which I ...
1
vote
2
answers
156
views
Trying to individually control the servos in my robot using keyboard input
#include<Servo.h>
Servo ser1;
Servo ser2;
Servo ser3;
Servo ser4;
Servo ser5;
int poser = 0;
int val;
int mot;
void setup() {
Serial.begin(9600);
ser1.attach(4);
ser2.attach(5);
...
0
votes
1
answer
511
views
Python Arduino Serial Communication Speed
Background : Im controlling serial manipulator using Arduino Uno with Servo Shield. Servo work at 20 ms, so i would like to send command atleast every 2.5ms. Command sent from PC.
I send 8 bytes of ...
0
votes
1
answer
116
views
Built-In Digital Map for Robot Driving
So, I'm creating this project for school. It's a simple robot with Arduino MEGA 2560 and basically, I create a digital map, feed it into the Arduino program and then the robot can drive. However, I've ...
0
votes
4
answers
1k
views
How can I hook up multiple MMA8451 accelerometers, (I2C protocol) using one Arduino Mega?
How can I hook up four (adafruit) MMA8451 accelerometers (using I2C protocol) using one Arduino Mega? What I'm confused about is I only have one SDA and SCL on the Arduino Mega obviously. So how can I ...
1
vote
0
answers
280
views
Arduino Bluetooth to Control Joystick Issue
I am trying to control a robot, where I have one HC05 module as a master connected to an Arduino Uno with an attached joystick. This Arduino sends data signals that will run blocks of code on the ...
2
votes
1
answer
122
views
Can 2 H-Bridges be controlled by one Arduino?
The three motors are from windshield wipers, with one of the brushes disconnected in each. The controllers are BTS7960 43A modules
One bridge for two drive motors (speed and direction), and the second ...
0
votes
1
answer
403
views
Arduino acts odd when disconnected from computer
I'm building an self-navigating robot with an arduino, an ultrasonic sensor, and two DC motors. I'm currently within the process of coding the robot but I've discovered I have an unusual problem; ...
-1
votes
1
answer
1k
views
How to properly run four DC motors with an Arduino?
I am working on a project where I have four DC motors that are controlled by two L293D motor drivers. Two of the motors act as the wheels of the robot, and the other two act as a mop.
The Arduino ...
0
votes
1
answer
113
views
Trying to Pulse an LED a number of times outside of the main loop
I'm trying to call a class function that pulses an LED "x" number of times. I dont want to use a delay, which is making it tough. If I use a while loop, the LED just stays on. I attach an interrupt in ...
-1
votes
2
answers
161
views
Error compiling a sketch to class/library conversion
I'm trying to take a sketch and turn it into a class for a library I'm making, but I'm getting compile issues.
This is not a duplicate as suggested. as i explain in the comment and my answer. Thank ...
-1
votes
1
answer
728
views
Connecting Winsen ZE11-C2H4 Sensor to Arduino
How should I connect the ZE11 Ethylene Sensor to an Arduino Uno? I want to know how to attach the pins of the sensor to the Arduino and which resistor I should use. I'm very unprofessional at working ...
0
votes
2
answers
187
views
Out of two logically similar sketches, one works while the other does not
I am currently making a project involving a self balancing bot & found this code online:
#include "PID_v1.h"
#include "LMotorController.h"
#include "I2Cdev.h"
#include "...
-1
votes
1
answer
2k
views
How to change speed of multiple servos acting at the same time with PCA9685 module?
I'm using the PCA9685 module with its Adafruit library. In my code I have one object of the servodriver class that has 14 channels (controlling 14 servos basically).
void Positioning(){
ServoDriver....
0
votes
3
answers
1k
views
Determining direction from IMU accelerometer data
I am learning how to integrate sensors on arduinos and read their data.
My ultimate purpose is to place the IMU on a robot and use it in determining the robots location in an environment.
Using the ...
0
votes
1
answer
3k
views
Can I connect Multiple Devices to One 5V and one GND pin of my Arduino Uno R3
I have made a Bluetooth Controlled Robot Car. Using L298N Motor Driver, HC-05 Bluetooth Module and Arduino R3 I was able to run it by giving one "VIN" and one "GND" to L298N, one "5V" and one "GND" to ...
0
votes
2
answers
223
views
Trying to connect FT sensor to Arduino Mega using RX TX
I am trying to interface this sensor, https://www.robotous.com/forcetorquesensor (RTF60-HA01-C), with the Arduino Mega. The sensor has an input voltage of 5Vs and communicates using CAN/RS232/RS422. I ...
0
votes
1
answer
146
views
Robot car speed issue
If I'm connecting it in this way I have no issue and I can control the speed.
here is a video
const int speedMotorA = 9;
const int speedMotorB = 3;
const int motorPin1 = 4;
const int motorPin2 = 7;...
0
votes
1
answer
298
views
Arduino or Raspberry? Self Balancing robot
Here's another one, as you probably have seen before.
I'm finishing college, and I'd like, base of my subscription to be a self balancing robot that can send data to a screen. What kind of data? I am ...
0
votes
1
answer
621
views
My "avoid car" can't move straight [closed]
I use 2 gearbox motors with 2 wheels .. but if I try to run it, he can not walk straight. he always moves slightly to the right or to the left.
How i fix it ?