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
2answers
2k views

Send numerical values from Matlab to arduino

I have an array (2x4) in Matlab which may contains integer values as well as values in decimals. For example: [1.1, 23, 1.56, 5.29; 2.14, 2.39, 67, 4.001]. I have to send these values to arduino using ...
1
vote
1answer
63 views

Why does the motor only run between 170-180? [closed]

I'm using a brushless motor of 1000kv and an ESC simon30A. I power the motor using arduino adapter AC/DC 9v. When I try to run the motor using sweep example. The motor will only run when the value is ...
3
votes
4answers
26k views

How to program a continuous servo motor? (Arduino)

I need to use continuously rotating servo for a camera stabilization system. My professor bought servos that have already been modified for continuous motion--there's no stop in the gears, and the ...
0
votes
2answers
4k views

Using IR LED and photodiode to estimate range and bearing of other Swarm Robots

I'm trying to make swarm robots that use 8 IR LEDs and 8 Photodiodes arranged alternately along the circumference of the circular body to determine the range and bearing of other nearby swarm robots (...
3
votes
3answers
4k views

Supplying power from a power bank to an arduino and DC Motors

I have a two port powerbank capable of supplying a maximum of 5V 2.1A I'm using it to power an Arduino and a L293D IC connected to two DC motors which have the following specifications: Working ...
1
vote
0answers
272 views

Is it my PID that is unstable or my physical system? (Quadcopter)

I've been working on this Arduino-MPU6050 quadcopter for a while now, and it looks like it's close to being finished. I have programmed it in rate mode, so the PID's control the rotational velocity. ...
4
votes
1answer
396 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 ...
2
votes
3answers
529 views

Making a robot move straight between two maze walls

Using a PID with encoders, I can make the robot move straight but there is a 0.5 degrees drift and it eventually hits a wall so I need to adjust to center it between the two walls. I have a sensor on ...
0
votes
1answer
986 views

Balancing robot tuning approach

I'm at the stage where I assembled a balancing robot and it's not maintaining a stable position. This is not a surprise I just started testing last night. My code is here, views of the device are ...
1
vote
2answers
104 views

Baby Child Following Robot

I am Planning to make a crawling bot which will follow a baby,having a pillow on the board.The Problem with the project is: Suppose a case when the baby falls, the bot should come exactly at the place ...
2
votes
0answers
176 views

Simple inertial 2d path planning library for arduino

I have a pretty simple 2d manipulator which uses an arduino to control a payload weighing about 2kg. I want to implement a simple 2d path planner which takes as input: Current position, velocity, ...
1
vote
2answers
1k views

What stepper motor driver to use?

I want to control a DVD drive's stepper motor with an arduino uno, but at the moment I'm not sure what kind of motor driver will work for that. I am currently looking at this one I have no idea ...
1
vote
1answer
43 views

I want to code with arduino, but do not have a good computer

Before I buy any arduino products, I want to make sure that I can use this website: https://create.arduino.cc to create the code for the arduino. The thing is, I do not know if I can use this to ...
0
votes
1answer
858 views

How do you make a device that can pick up nerve signals? [closed]

I am trying to make a robotic arm that mimics the movement of the user's arm, They way I need it to work is to detect nerve signals and send them to an arduino. The arduino would then have a servo ...
1
vote
1answer
792 views

Can an arduino control a large servo motor?

A I wanting to build a robotic hand, a big one at that. Similar to this one but in a much larger scale: http://www.instructables.com/id/DIY-Robotic-Hand-Controlled-by-a-Glove-and-Arduino/ Does it ...
5
votes
1answer
301 views

Why to combine a Raspberry Pi (or similar board computer) and an Arduino for controlling motors?

I am planning to build a omnidirectional holonomic robot, and checking what I should use for the hardware, I saw many people using a Raspberry to compute most stuff, which in turn calls an Arduino to ...
2
votes
2answers
26k views

how to read and write data with pyserial at same time

How can i make pyserial read and write at same time or at same program? Right now i only know how to either write or to read but not both simultaneiously. So how can i do it? I tried this simple code: ...
1
vote
1answer
782 views

Is pyserial real time

I am using arduino with FreeRTOS and a computer with patched xenomai linux. I am using python library called pyserial to communicate with arduino. Right now I am using simple servo motors. I want to ...
2
votes
3answers
5k views

Is it possible to use an arduino in hard real time

I am using the ros_arduino_bridge to control a robot, by connecting the Arduino to a main pc with a usb cable. I was thinking of using the Arduino with main pc with a serial cable and then doing real ...
1
vote
2answers
236 views

Biped Robot not getting on one foot

I am creating a biped robot with an arduino and I have the lower part of the body complete, the legs and hip joints. Before I am going to 3D print the top part of the body I wanted to make sure that ...
0
votes
2answers
279 views

Arduino uno A0 pin not working properly

void setup() { pinMode(A0, INPUT); Serial.begin(9600); } void loop() { if (digitalRead(A0)== HIGH) { Serial.println("YES"); } } Not giving any input when i am supplying input via push ...
1
vote
1answer
87 views

serial monitor not showing proper output

I was reading the encoder value in arduino uno. But the output is not comming properly. It is coming like this: I am using this arduino code to read encoder: ...
0
votes
3answers
2k views

What exactly does a motor driver do? Why do we need an additional power supply for motors?

What exactly does a motor driver do? Why do we need an additional power supply for motors? I'm a hobbyist and making a line follower from scratch.
2
votes
1answer
1k views

Arduino robot to move spirally

I am planning to build robot like irobot Roomba. So cleaning in a spiral pattern is required like the image shown starting from the center: This code is part of my full code which doesn't give me ...
0
votes
1answer
579 views

Arduino + SIM900: Identify if call is received?

I try to find command to identify if call is received and when user press any button of number on their phone. I use arduino + sim900A + Ethernet. I try alot but still no see command to do that. Are ...
4
votes
4answers
1k views

Alternatives to Kalmam Filter

I am currently working on a self balancing robot project. I am going to use a MPU6050 to get data from both the accelerometer and the gyroscope. Since I need to get accurate data in a very small ...
2
votes
0answers
271 views

How do I hack RC transmitter of my drone by realised communication with my PC? [closed]

I have a Chinese drone (cost less than $100), that works with a 2.4Ghz transmitter of 2.4. I am trying to build an application in C++ to control the drone with PC. I am thinking of using an ARDUINO ...
0
votes
1answer
590 views

Arduino output SPWM using Matlab

I have Arduino and Matlab which has hardware support package for Arduino. I want to create SPWM signal (sinusoidal pulse width modulation) to be the output of the Arduino board. I could generate the ...
5
votes
1answer
2k views

Balance Bot PID tuning

so I am working on a Self Balancing Bot with Arduino Mega. I'm using 12V 200 RPM motors with built in 840 PPR quadrature encoders. The torque rating is as follows: Rated Torque: 2.4 Kg-cm Stall ...
1
vote
1answer
1k views

Reading multiple signed digits from serial port

I'm using simulink support package for arduino to read serial data from port2 in Arduino due. My plan is to read signed integers (-415 for example) representing motor speed and feed it to the pid ...
2
votes
2answers
471 views

iRobot Create2+Arduino: Make the robot stop when facing an obstacle

I have been working on writing a code to control the iRobot Create movements (forward, backward, right, left and stop) from serial monitor and finally I got the correct code. I was trying to ...
0
votes
2answers
423 views

How to communicate Ardupilot with Arduino

Can anyone tell me if it is possible to send data through the analogue pins of the Ardupilot to the analog pins of the Arduino? For example, I would like to trigger a button on a channel from my ...
2
votes
1answer
493 views

“Updated” Help in iRobot create serial communication in Arduino

I am programming an iRobot Create to follow serial commands using Arduino Uno. I have written the library, and found the serial commands to move the robot forward in the iRobot manual, but I couldn't ...
2
votes
3answers
3k views

Connected battery, esc and motor does not power up the arduino

I am currently doing my first arduino project and i am having trouble finishing it. I have a 3s lipo battery connected with an esc (120A) that is connected to a motor (270KV). From the esc i am ...
0
votes
2answers
3k views

How to convert this arduino code snippet to AVR GCC?

I recently engaged with a university robotics project (based on ROS) and my main processing controller is Raspberry Pi and the system stability controller is Atmega 32 microcontroller (It is ...
4
votes
2answers
339 views

Should I use an arduino to control my balancing robot's motors?

I'm building a 2-wheel balancing robot from old parts. DC motors from an old printer, wheels from a BBQ, bodywork from an old optical drive etc. The brain of the robot is a Raspberry Pi 3. I'm using ...
0
votes
1answer
261 views

Use of ADC with Sharp Infrared Sensor

I have a Sharp GP2D12 and I've been using it with my Arduino just fine. I have however had some experience in the past where this sensor (which is analog) was fed into an ADC (like ADC0831) to go to a ...
1
vote
2answers
552 views

how to add a Matlab code to a simulink model?

I want to program an arduino using matlab by "arduino support package" and I want to use simulink in normal input output operations but also use Matlab language in another part so is it possible to ...
3
votes
2answers
1k views

Driving sensorless three phase BLDC motor with Arduino and IMU

I have started to work on a little project of mines, which consists in implementing the stabilization a single axis gimbal using Arduino. The gimbal is driven by a sensorless three phase brushless DC ...
0
votes
3answers
2k views

how to manipulate arm robot? [closed]

I want to make a robot arm with a gripper that can go to any x y z coordinates near it. the robot itself will be simple just servo motors and Arduino but I don't know how to make reach the desired ...
2
votes
1answer
3k views

Error while running rosserial node in ROS

I have an Arduino connected to ROS through serial port. I wrote an ardiuno code to drive motors. below is my code. ...
3
votes
1answer
149 views

Need help modelling and coding a feedback scenario

Above illustration is the basic setup for the question. The scenario will be the following: A potentiometer(providing 0 to 5V) is an analog input to A0. This potentiometer voltage is converted to ...
2
votes
1answer
1k views

Need super-basic help with motor encoder

So I have this motor: https://www.servocity.com/23-rpm-hd-premium-planetary-gear-motor-w-encoder and this motor shield for my arduino uno: https://www.pololu.com/docs/pdf/0J49/...
-1
votes
1answer
578 views

How to make a simple Arduino Insect Robot? [closed]

I want to make a simple Arduino based programmable insect robot. I want it to walk on legs and legs will be made of hard aluminum wire. It needs to have 4 legs. I am planning to use Arduino Nano for ...
4
votes
1answer
485 views

What are good, low cost, actuators for a braille tablet to be controlled by arduino?

I want to basically make a pin matrix controlled either by spring, electromagnets or small motors(spring being the most viable option), something like what’s shown in the image. I'm pretty new to ...
2
votes
1answer
143 views

Measure 2 diffrent battery voltages on arduino

Is it possible to measure the voltage of 2 different batteries on arduino? Currently I am able to use a resistor divider / voltage divider of 2x 10K resistors to an analog pin to read the voltage of ...
5
votes
1answer
355 views

Will this pseudocode work as a basis for a flight controller?

I'm programming a flight controller on an Arduino. I've researched how other people have written theirs but without notes it's often so obfuscated that I've decided it will be easier and better to ...
0
votes
1answer
64 views

12 volt input to 5 volt ouput of Arduino

I accidentally ended up supplying 12 v to the Arduino 5v output pin instead of the Vin pin. Does that mean that I can't use the 5v output pin anymore i.e. its fried?
2
votes
1answer
1k views

CC3D PWM control signal characteristic (to be simulated by Raspberry PI)

My goal is to control drone by Raspberry PI. The Raspberry PI uses camera and OpenCV, sends control commands to AVR microcontroller which will generate the PWM control signal. Meaning that it will ...
1
vote
1answer
234 views

What does internal sparking in a motor mean?

My Arduino + Raspberry Pi robot was working fine in the morning. I tested it, it ran perfectly, and then I switched it off. Now in the evening when I'm trying to run it again, with the same ...

1 2 3
4
5
10