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.
897 questions
0
votes
1
answer
19
views
Arduino uno 5 DOF robot arm (Hiwonder miniarm)
My program is compiling. I am using inverse kinematics to move the robot. However, the robot keeps stalling and the motors are stuttering. I was able to move the end effector once, but only one joint ...
0
votes
0
answers
38
views
Rotary inverted pendulum using only one encoder
I’m building a Furuta pendulum using PIDand want to stabilize it using a DC motor on the arm. I only have one LPD3806 encoder on the pendulum—no encoder on the motor.
Is it possible to stabilize the ...
0
votes
1
answer
53
views
Power supply issues on hexapod robot using multiple MT3608 step-up converters and Arduino Nano
I'm building a hexapod robot controlled by an Arduino Nano, with 12 SG90 micro servos and a Bluetooth module. The robot is powered by a 3.7V 5000mAh Li-ion battery connected to 5 MT3608 DC-DC boost ...
0
votes
0
answers
14
views
Is microROS supported on Portenta H7 Lite?
I've got microROS working on a Portenta H7, as I saw it listed as supported. Just curious, has anyone got it working on a H7 Lite? Would prefer to use those as they are cheaper than the original full-...
0
votes
0
answers
79
views
micro-ROS for an Arduino DUE, example sketch does not compile
I downloaded the library for the Arduino IDE (v2.0.7-humble) and installed it.
https://github.com/micro-ROS/micro_ros_arduino/releases
Then I opened the example sketch for the publisher and tried to ...
0
votes
0
answers
30
views
Arduino robotic arm base rotation opposite in real worl and gazebo/rviz
i'm using Tinkerkit Braccio robotic arm with ros for a project with ROS(1), using as starting point this repository and ros_serial and i have this "issue":
I've noticed that the robot base (...
1
vote
0
answers
23
views
Micro_Ros_Agent on Arduino Due not Publishing Encoder Data to RPi4B (Ros2 Humble)
I am using three motors and three rotary encoders to get positions for the motors. The Arduino Due is just sending commands to the motors and publishing encoder data. The PI is doing all of the high ...
0
votes
0
answers
86
views
Jetson Nano and Arduino Problem
I am developing a project with ROS on a Jetson Nano board. I connect my Arduino Mega board, which I have connected to an external PCB, to the USB ports on the Jetson board. There are also other ...
0
votes
0
answers
31
views
unable to extract data from lds lidar
I have this lidar and I want to know how to use it with this library (wish version) the only information I know is that the lidar works with 115200 baud rate.
if anyone can help pls,
thank you.
0
votes
2
answers
50
views
Occurs bug when communicating Arduino and Raspberry PI throug Serial
I am working with Arduino and i am having problem when communicating from Raspberry PI to Arduino. I have two motor drivers (bts7960B) that connected to the Arduino....
0
votes
0
answers
17
views
Arduino IDE doesnt find custom message although the file exists
I am trying to compile am Arduino programm but the ide just doesnt find one of my custom messages with the error No such file or directory although it exists in the folder
it is importet like this: <...
0
votes
0
answers
42
views
Migrating from Arduino to Raspberry Pi with ROS2
I am currently working on a project involving an Arduino Rev 4 WiFi to develop a robot capable of carrying belongings and following a user. Despite being in the early stages, we have successfully ...
0
votes
2
answers
87
views
Measuring the torque of a 3 phase AC induction motor using a load cell
We are working on a project, modelling and simulation of a 3 phase AC induction motor. We are at the level of validation of our model. We have a sample motor and we want to measure some variables; ...
0
votes
1
answer
154
views
Theoritical: ROS2 vs microROS without ros2_control in the urdf for 3 motors robot to be migrated from ros1 to ros2
I am migrating a project from ROS1 to ROS2, and the original project uses an arduino to control 3 motors, the adrunio code subscribes to the joint states and uses that info to transform it to steps/...
0
votes
1
answer
201
views
Micro-Ros Agent topic not present for non-root users
I'm working with a Raspberry Pi 4B running headless Debian (Raspbian) Bullseye Lite and an Arduino Nano RP2040 connected to the UART pins on the Pi. I have installed ROS2 Humble via these instructions ...
1
vote
0
answers
32
views
How to install ROS on Intel Galileo
I got an old Intel Galileo (Gen 2) board and found an article about installing ROS on it.
After a while of research, I couldn’t find any useful downloads for it.
I am looking for an SD Image with ...
1
vote
2
answers
53
views
Arduino Uno R4 can only produce certain PWM duty cycles
I'm using the servo library on an Arduino Uno R4 to control a servo. However, when I use Servo.microSeconds(), the duty cycle only changes with every 100th ...
0
votes
1
answer
72
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
38
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 ...
0
votes
0
answers
24
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 ...
1
vote
0
answers
59
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 ...
0
votes
0
answers
78
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
90
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 ...
-1
votes
3
answers
125
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
380
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
3
answers
3k
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
89
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 ...
1
vote
1
answer
577
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
2
answers
141
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 ...
0
votes
0
answers
53
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 ...
1
vote
0
answers
85
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
2
answers
116
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
1
answer
279
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
90
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 ...
0
votes
1
answer
224
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 ...
1
vote
1
answer
609
views
How to detect the position in a linear actuator? [closed]
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 ...
1
vote
1
answer
220
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 ...
0
votes
0
answers
61
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 ...
1
vote
1
answer
188
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
0
votes
2
answers
574
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
0
answers
22
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
2
answers
195
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 ...
0
votes
0
answers
214
views
Publishing transform with rosserial using TF/Odom + display in RVIZ?
I'm trying to model a simple helicopter transform with a spinning rotor in RVIZ. I would prefer it to be timestamped into a single topic.
I've been working through the Odom and TimeTF examples in ...
0
votes
1
answer
10
views
tf::TransformListener for Arduino
Hi, Sorry for the mistakes, as English is not my native language. I have a code having the following lines:
...
0
votes
1
answer
229
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 ...
2
votes
0
answers
167
views
Floppy fish mechanism design
I've bought a floppy fish toy (crab version) for my kid. The toy looks like:
Unfortunately, the toy mechanism inside jams when grabbed and the battery lasts for a short time:
I tried to do my own ...
0
votes
1
answer
68
views
RpLidar A1 arduino
Hi guys, I'm trying to connect RpLidar into Arduino Portenta H7 Lite and get the data into Robot Operating System. I trying to use to rplidar_arduino package to read data from lidar and next I'm using ...
0
votes
1
answer
221
views
Arduino problem
I am actually doing an obstacle avoiding car. So, I bought Arduino UNO and L293D motor driver and four motors, servo motor and ultrasonic sensor. After the connections I have kept 10v li-ion battery. ...
0
votes
1
answer
36
views
Why rviz crash when using robot_upstart?
Hi everyone, really need some help in getting rviz to work with robot_upstart. I'll try to describe the issue and what I have tried as detailed as possible.
Requirement:
I would like to make an ...
0
votes
2
answers
27
views
publishing sensory data out of sync
Hi all,
I am working on a project with the ROBOTIS turtlebot3 burger and am trying to include a temperature sensor with its build.
I have uploaded some arduino code into the OpenCR1.0 to read sensory ...