Skip to main content

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
9 views

Configuring HC-05 module but giving me Error: (0) for certain commands [closed]

I am currently stuck trying to get my who HC-05 modules to work in as master slave. I am having issues configuring the modules. When I do AT+UART the serial monitor just prints out ERROR:(0). However, ...
Makan H.'s user avatar
0 votes
1 answer
17 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 ...
AndyP's user avatar
  • 11
1 vote
0 answers
18 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 ...
michael86's user avatar
0 votes
0 answers
18 views

How to connect a stepper motor to Arduino far away?

What cables would be good for the question in the title, noting that I do not (at least yet) have any soldering/crimping/etc. equipment? Preface To start with; I'm a complete beginner, never had ...
Nuubles's user avatar
0 votes
0 answers
11 views

Arduino Uno 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 ...
Pappa's user avatar
  • 1
0 votes
0 answers
36 views

I get error: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

I am trying to run a .launch file, while my STM32 Bluepill is loaded from the Arduino IDE. First I though the issue would be due to packages. I already had the <...
Marc Foster's user avatar
0 votes
0 answers
49 views

Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python | Problem using interrupt

I have the following Arduino code that reads motor encoder data on Arduino interrupt pin2 and pin3 and publishes encoder ticks ...
Mubashir's user avatar
0 votes
0 answers
34 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 ...
ertretff's user avatar
0 votes
1 answer
45 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 ...
ertretff's user avatar
0 votes
0 answers
27 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 ...
Paul Alexa's user avatar
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 ...
ertretff's user avatar
0 votes
0 answers
10 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 ...
ertretff's user avatar
0 votes
0 answers
18 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 ...
ertretff's user avatar
1 vote
0 answers
27 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 ...
Elias's user avatar
  • 11
0 votes
0 answers
51 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
49 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 votes
3 answers
88 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
1 answer
150 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
6 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
34 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
156 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
53 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
2 answers
2k 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
23 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
54 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
326 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
31 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
268 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
96 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
35 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
55 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
76 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
190 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
70 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
140 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
421 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
165 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
47 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
141 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
2 answers
329 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
19 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
126 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
202 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
3 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
164 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
94 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 ...
SKJQ'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
46 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
199 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
13 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

1
2 3 4 5
18