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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 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 ...
Finn's user avatar
  • 1
0 votes
1 answer
15 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 ...
EDRIEL SANTOS's user avatar
1 vote
1 answer
35 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 ...
Derek Langley's user avatar
0 votes
0 answers
40 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 ...
AnaxGT's user avatar
  • 1
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 ...
Daniel's user avatar
  • 1
0 votes
0 answers
24 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 ...
Ibrahim Sheikh's user avatar
0 votes
0 answers
84 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: ...
Temilolorun Aiyelari's user avatar
0 votes
0 answers
36 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 ...
Sang Nguyễn's user avatar
0 votes
1 answer
508 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 ...
Ankith Samuel Abraham's user avatar
0 votes
0 answers
16 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 ...
Ximena Pinacho's user avatar
0 votes
1 answer
39 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 ...
Sagar Shrestha's user avatar
1 vote
1 answer
158 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 ...
Sourabh Tiwari's user avatar
0 votes
0 answers
27 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 ...
Lovre Perajica's user avatar
0 votes
0 answers
204 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 ...
Randy Hearn's user avatar
0 votes
2 answers
83 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 ...
Bilal's user avatar
  • 144
0 votes
0 answers
26 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 ...
LeonidasEng's user avatar
1 vote
0 answers
47 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 ...
LeonidasEng's user avatar
0 votes
2 answers
65 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 ...
Maaz Ismail's user avatar
0 votes
1 answer
120 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 ...
Maaz Ismail's user avatar
0 votes
1 answer
61 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 ...
Atin Srivastava's user avatar
0 votes
1 answer
105 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 ...
Aymane Lotfi's user avatar
1 vote
1 answer
258 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 ...
Mito's user avatar
  • 111
1 vote
1 answer
120 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 ...
ElectricRay81's user avatar
0 votes
0 answers
29 views

Arduino robotic arm kit

I want to buy a cheap robot arm for control it with an Arduino. Do you know of a kit that has a good value for money? I don't care about the degrees of freedom it has (4, 5 or 6), and above all I'm ...
Unai Granados Ormaetxea's user avatar
0 votes
0 answers
35 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 ...
JerSci's user avatar
  • 1
1 vote
1 answer
103 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
Haris Khan's user avatar
0 votes
1 answer
192 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 ...
Abhishek A Udupa's user avatar
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) ...
Catalin Ionut CRACIUN's user avatar
0 votes
2 answers
119 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 ...
maneedos's user avatar
0 votes
0 answers
194 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 ...
ardoknow's user avatar
0 votes
1 answer
2 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: ...
user avatar
0 votes
1 answer
146 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 ...
Ha-Naa's user avatar
  • 1
2 votes
0 answers
76 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 ...
Kuba's user avatar
  • 21
0 votes
0 answers
40 views

What DC motor is fit to replace this AC one?

I've a machine with this motor: I would like to swap this one with a DC motor in order to have better control, maybe a stepper one so that it could be controlled via an arduino board and a dedicated ...
user3450548's user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
1 answer
157 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. ...
SAI MANI's user avatar
0 votes
1 answer
8 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 ...
user avatar
0 votes
2 answers
3 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 ...
user avatar
0 votes
0 answers
37 views

TORQUE OF ARDUINO CAR

when an obstacle is in front, the Arduino car should turn left or right. But it is not turning properly. So, what can be the problem?
SAI MANI's user avatar
2 votes
1 answer
143 views

How to Contol the RPM of a Micro Metal Gearmotor with Encoders (Pololu) using PID?

I use the PID algorithm to control the RPM of a micro Gearmotor. My motor and encoder specifications are given below. Motor: https://www.pololu.com/product/2378 - 6V 29.86:1 gear ratio - please ...
Upul Bandara's user avatar
0 votes
1 answer
82 views

How does a biped humanoid robot like OttoDIY move?

How does a biped humanoid robot like OttoDIY moves? What is the sequence of foot & legs servos? Can make it move forward, by lifting one foot up and turning leg, and then repeating the same steps ...
Priyank Bolia's user avatar
0 votes
1 answer
33 views

Actions example server for MicroRos Arduino

Hello, Is the 'action's (vs publisher/subscriber and 'service' server/client) ready for use in MicroROS for Arduino? Is "https://github.com/micro-ROS/micro-ROS-demos/blob/galactic/rclc/...
user avatar
0 votes
0 answers
26 views

Sample code for L298N H bridge Arduino Motor Driver not working

I am quite new to robotics, arduinos, motors and that sort of thing so there is a very strong chance I am missing something very obvious. However, I have looked up multiple tutorials online, none ...
Crafty's user avatar
  • 1
0 votes
2 answers
88 views

How to add precise amounts of ingredients in my beverage making robot? [closed]

I am currently in the process of making a robot that can make a cup of tea, when It receives the command to do so. The general idea is as follows: checks if saucepan is placed checks if milk is ...
abdullah mohsin's user avatar
0 votes
1 answer
52 views

Can an Xbee transceiver module be used for controlling a stable Quadcopter?

I would like to use an Arduino Nano IOT as a flight controller and connect this to a Xbee transceiver module for control. If the Xbee module was set up so that for each packet transmission it included ...
Matthew Haywood's user avatar
0 votes
2 answers
414 views

Aligning the coordinate systems of accelerometer and vehicle

I have an accelerometer located in an arbitrary position on a car. As the accelerometer already has a coordinate system by default, I want to find some method that allows transforming the data I have ...
José Vicente R's user avatar
0 votes
2 answers
29 views

Strategies for tuning with low sample rate

I’m designing an arduino robot that’s objective is to find and drive towards a light using a photo resistor mounted on a servo. I want to write my program with PID control to sweep the photo-resistor ...
Nick Thorpe's user avatar
1 vote
1 answer
217 views

What is the noise in this PWM signal?

I'm in the process of calibrating servos while constructing a new hobbyist robot arm. When testing the base rotation servo I noticed some unexpected noise in the PWM signal while the servo is in ...
RowanP's user avatar
  • 339
0 votes
1 answer
15 views

Rosserial Publish method

Hi, I am using rosserial packge for the external sensors. When I dig into the tutorial, I found that there are two types of publishing. publish raw data std_msg (...
user avatar
0 votes
1 answer
361 views

How do I identify the different wires on RPLidar?

I bought an RPLidar A1M8-R6 from the following site: https://www.dfrobot.com/product-1125.html?tracking=585c2ddea9c83 I am trying to connect RPLidar to Arduino so I could get information on the ...
addie's user avatar
  • 1

1
2 3 4 5
18