Questions tagged [arduino]
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Be sure to use the Arduino Stack Exchange for questions that are more Arduino and less robotics.
892
questions
0
votes
0
answers
11
views
Error received from Arduino (related to arducam)
Do you know the following error?
ACK CMD ArduCAM Start! END
ACK CMD SPD inside Error! END
ACK CMD CM
I'll add more details about the situation below.
Receive data ...
0
votes
0
answers
30
views
Receive data from Arduino. I'm having a hard time converting this
Image data is received and transmitted from Arduino through spi communication. In Arduino
By reading through temp = SPI.transfer(0x00);
Pass it to ...
0
votes
1
answer
882
views
ros2 humble with arduino uno
I am trying to do serial communication with arduino uno with ros2 humble, i have tried something with micro-ros and it didn't work. There are no clear instructions on how to do it. I just want to push ...
0
votes
1
answer
26
views
Getting data from RPLidar A1 package to Arduino using rosserial
We have an Arduino Uno board connected to raspberry pi 4 in which the RPLidar A1 is connected. The problem is we are trying to subscribe from the /scan topic to get the data from each ranges from 0 to ...
0
votes
2
answers
249
views
Powering 3 MG996R servos
I'm building a robotic arm with 3 MG996R servos using Arduino Uno R3 board. I'm using this 16 channel servo motor driver for the project. I'd like to use an AC-DC adapter to power the servos. Is that ...
0
votes
1
answer
29
views
What is the alternative to a <ros2arduino.h>
I am using Arduino Mega.
I wanted to configure it to create a ros2 topic using the ros2arduino header.
However, I found out that the header cannot be used because it can only be supported from 32bit ...
0
votes
0
answers
24
views
Code reacts too slow for motors to react
I am building an inverted pendulum robot. After analyzing what others have created I came to the conclusion that my code is way too slow. I am looking for suggestions to improve the code I wrote. I ...
-1
votes
3
answers
81
views
Controlling power input for different currents and voltages connected to the same power source
I am new to robotics and am struggling with the electronics a bit. I am using two 9 V batteries in series to provide 18 V. I need to power 2 x 12 W DC motors and an Arduino Uno. I need to divide the ...
0
votes
1
answer
157
views
Turning a mecanum wheeled robot at a specific angle i.e 45 degree
I am implementing inverse kinematics for motion control of a robot with four mecanum wheels. However I am not getting how to turn it at specific heading angle(45 degree)? I am using encoders to check ...
0
votes
0
answers
14
views
what is arduino when using bridge between device and hardware(actuators)?
When Arduino simply provides a target value according to a command,
Is this the same as a controller? Or is it called controller manager?
If I configure Arduino as a node and deliver a message,
What ...
0
votes
0
answers
8
views
What are the pros and cons of ros2 node configuration and controller configuration?
I tried to configure the node on Arduino, but instead, I decided to just configure the controller on the main body and use it.
What advantages does this have?
The advantage of forming a node is that ...
0
votes
0
answers
11
views
I2C data receiving method
I am planning to use arduino.
Here, we confirmed that data from products used as I2C can be received via USB or serial.
Now I want to see the data structure in order to read it like pl2303 and use it ...
0
votes
2
answers
72
views
E6C3 AG5C omron encoder can be used to differentiate clockwise and counter-clockwise movement
I bought E6C3 AG5C, here, for my project. My project is indoor robot localization using encoders and IMU. From its datasheet it has 13 wires, black and red wires are for ground and source and 10 are ...
0
votes
3
answers
2k
views
Self balancing robot: PID Control Algorithm
I am working on a hobby project for self-balancing robot. My robot balances quite well, so my next step is to start moving it. I saw in some blogs that they used a cascade control algorithm as shown ...
1
vote
0
answers
19
views
Issue with /cmd_vel Twist msg and Arduino
I have a laptop with ubuntu 20 and ROS noetic connected to an Arduino using rosserial_arduino.
The blink example from the ROS library works fine.
But I fail to set up a subscriber on my Arduino that ...
1
vote
1
answer
230
views
Arduino IDE micro-ros two subscriber in Arduino due issue
I’m recently started working with micro-ros and also tested the publisher and subscriber with Arduino Due, but I want to add multi subscriber in my Arduino code (at-least two). but it’s not working ...
0
votes
0
answers
40
views
Arduino Scara Robot inverse kinematics
I am building a simple scara robot using an Arduino Uno with a CNC shield and for that, I programmed a simple library (Here a normal program for testing purposes). I keep getting back NaN so not a ...
0
votes
1
answer
111
views
Arduino-based Drone Project: Struggling with Altitude Control
I've been working on a DIY project which involves creating a drone from scratch. My aim is simple yet challenging; I want the drone to ascend to a specified altitude, hover for a few minutes, then ...
0
votes
2
answers
121
views
How to: implementation problem with Position control on a 3 Wheels robot (2 motorized) with velocity profile of trapezoid
I'm trying to apply position control in a wheeled robot, controlled by an arduino mega.
The robot has two wheels powered by two dc motors (1 motor for each wheel) and one castor wheel.
In order to ...
1
vote
1
answer
297
views
How to detect the position in a linear actuator?
I was planning on 3D printing my own 30 cm stroke length 3D printed linear actuator and I don't know how I could read its position, or tell it to go say to 16.5 cm. I used this video, 3D Printed ...
0
votes
2
answers
86
views
simple hardware interface for mobile robot (RobAir)
I want to create a hardware interface to interface a simple research mobile robot called RobAir, this robot has two wheels and using velocity controller cmd_vel through a ROS node on Arduino board to ...
1
vote
1
answer
140
views
Approach for covering entire floor plan using Arduino-UNO and HC-SR04
I am working on a bot controlled by Arduino-UNO using HC-SR04. I want my bot to go around the floor, avoiding all obstacles, covering the entire floor. I tried measuring wall distance on all sides and ...
0
votes
0
answers
66
views
micro ros arduino Deserialization of data failed -> function deserialize_change error
Setup:
Arduino Portenta H7 & Arduino Nano RP2040 Connect
Host PC running ROS2 Foxy and micro ros agent
Problem:
I get this error from time to time and randomly
...
0
votes
1
answer
132
views
How to communicate vrep with ESP8266 via wifi to send and receive data
I'm looking for some guidance on a project that I've been doing for quite a long time; the project is about a 4WD robotic platform for obstacle avoidance with haptic feedback. If you know about the ...
0
votes
1
answer
44
views
Servo malfunction
Summary
I am making an automatic door for my chickens including a servo motor. In the process I actually shorted my 5V from my Arduino. The servo is powered by external batteries and only gets its ...
0
votes
0
answers
5
views
Teleopt a Turtlebot 3 and controling arduino compatible LED-Matrix at the same time
for a Uni Project I'm currently using a turtlebot 3 and through ROS noetic controlling its speed and angle via a Phyton controller. I want to control as well an Arduino compatible LED Matrix that I ...
0
votes
0
answers
26
views
JSON communication issue with ROS2 deserializeJson() returned InvalidInput
Currently I am working on mobile robot, I am using MicroROS ESP32 and Arduino Mega ((## Not that MicroROS does not support Arduino mega board yet##)) . I am using the ESP32 to publish and subscribe to ...
0
votes
1
answer
565
views
MPU6050 gyroscope giving wrong measure
i am trying to make an angle meter, using the UNO and MPU6050, following joop brokking video tutorials,
when utilizing the accelerometer, the results are fine,
however when i try to use gyroscope ...
0
votes
0
answers
117
views
GPS integration to ROS via Arduino
Please I have some problems with this.
I am a beginner.
I want to send GPS data from a GPS connected via arduino to ROS.
My code arduino is as below:
...
0
votes
0
answers
44
views
How to tracking an object with eye in hand pan/tilt robot using pid controller and depth camera
I have a problem in my thesis, that is the stepper motor is limited in movement when following an object, the second problem is that when I use the pid controller, the center of the color image ( is a ...
0
votes
0
answers
19
views
MG995 not working under 3A and 6.96V
I'm trying to work with this type of servomotors, I've been having a hard time trying to supply the required current to it, these are the things that I've tried:
First, I tried creating my own power ...
0
votes
1
answer
45
views
My obstacle avoiding car doesn't work with dry cells
Ok, I am not a genius in such projects but, it is the first project I am doing in robotics.
The problem is that the wheels of the car doesn't continuously tend to rotate when I power the motor driver ...
7
votes
2
answers
15k
views
what is the algorithm to get position (Linear displacement and linear velocity ) using IMU (Like MPU6050)?
So I have been working on a drone project for a very long time, now I decided to work on Kalman filter which is used widely nowadays like Ardupilot. I looked at the source code so basically understand ...
0
votes
0
answers
30
views
Nordic nrf24l01 and ROS not working together on the same Arduino board?
i have a problem. I am using two Nordic nRF24l01 modules with two Arduinos,one to transmitt some data and second one to receive that data.I want to publish that data on some topic to ROS machine, but ...
0
votes
0
answers
27
views
Dynamixel XM430-W210-R configuring getPresentPosition or suggest an alternative?
I am currently using 2 Dynamixel XM430-W210-R servo motors and have encountered a strange issue with getPresentPosition function. Now, this might just be a configuration issue that I have been unable ...
7
votes
6
answers
3k
views
Electronic circuit for heating nylon fishing line muscle
I'm trying to make artificial muscles using nylon fishing lines (see http://io9.com/scientists-just-created-some-of-the-most-powerful-muscl-1526957560 and http://writerofminds.blogspot.com.ar/2014/03/...
1
vote
1
answer
5k
views
Which motor to use for self-balancing-bot?
I am building a self balancing bot using
MPU-6050
Arduino Mega 2560
100 rpm 12V DC motors
Currently I have used two 100 rpm DC motors in the bot. The pwm signal is given to the bot on the basis of ...
0
votes
2
answers
25
views
How can i send a message from ROS to arduino using rosserial?
I want LED 13 on my Arduino Uno board to glow when I pass the number 100 as command line argument from ROS.
Here is my arduino code:
...
0
votes
0
answers
233
views
Using micro_ros_arduino with ESP32 with wireless ROS system
I am retired and programming has always been a hobby but also my College Degree in Game/Simulations (90%). So I am familiar with a lot of programming as I used it in work for some development/problem ...
1
vote
0
answers
51
views
Arduino & Dynamixel XM430-W210-R: Adding a potentiometer to increase/decrease rotation
I want to create an improvement to an Arduino script. I have a Dynamixel XM430-W210-R servo with a Dynamixel Shield and Arduino Mega. I am using the OP_EXTENDED_POSITION mode. Here is part of my code ...
0
votes
1
answer
142
views
How to resolve 'nullptr not declared in this scope' compiling error in Ros_lib blink example and other ros_lib examples Ubuntu 20.04 with ROS Noetic?
I am new to ros and I am using virtual machine with Ubuntu 20.04 and ros neotic in it. I have installed rosserial arduino package step by step from this.
After this I open ros_lib blink example and it ...
0
votes
1
answer
65
views
Replacing AX-12A motors with AX-18A motors causing issues with ROS Arbotix
I'm currently working on a project with an oculomotor robot head interfaced with ROS and Arbotix-M (https://github.com/combra-lab/spiking-oculomotor-head-control/tree/main). The robot head comprises ...
1
vote
1
answer
133
views
Difficulty with tuning motor PID controller [closed]
I am struggling for a while now with tuning PID control on my motors. I have bought different motor driver boards better motors etc but still I am unable to get a good control on the motors.
What I am ...
5
votes
1
answer
457
views
MPU6050: Changing Gyro Output Range Throws off Positional Reading
I am using the MPU6050 in conjunction with an Arduino and Jeff Rowberg's i2cdev library, and my project requires that the gyro rate outputs be more precise than the default setting, which is 1/16.4 of ...
0
votes
0
answers
40
views
Simulink and Arduino - Simulink can't read data from arduino pins
I have a very simple setup depicted by this picture
All I want to do is, using simulink, collect data from pin 8. Simulink model is as follows
However I'm not getting any data, specifically 0. I can ...
11
votes
7
answers
13k
views
What mechanical parts can be attached to a 28BYJ-48 stepper motor?
Sorry I am asking a mechanical question here, but, after all, where else people have experience with using motors? If there is a better forum for this, please do guide me.
Everywhere I've seen online,...
1
vote
1
answer
116
views
Minimum distance that can be measured using Rplidar A1M8
can you please explain what is the minimum distance that can be measured using RPliadr A1M8
1
vote
1
answer
308
views
Controlling YuMi robot by serial port
I'm trying to control the YuMi robot arm by a serial port. The serial port will give the information on what direction the end-effector should move and what is the velocity. What I would like to ...
0
votes
0
answers
17
views
SIM808L 2.0 won't connect to Arduino
I have an Arduino Uno and a SIM808L 2.0 module.
I want to connect the module to the Arduino, but I can't. It displays 'not working' (you can see in the picture)
...
0
votes
1
answer
212
views
How the motor commands are obtained from gcodes?
I have started my research with scara and cartesian robots for drawing robot. The gcodes are converted and given to robot. There are firmware like grbl, marlin, etc for this process. But I couldn't ...