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
20
votes
4answers
20k views

How can I use the Arduino PID library to drive a robot in a straight line?

I would like to create an Arduino based robot with 2 wheels, quadrature encoders on each wheel, a H-bridge driver chip (or motor controller) and a caster. I want to use the PID library to ensure the ...
15
votes
2answers
33k views

Connecting More Than Six Analog Input Pins to arduino

I'm in the planning stages for a project using the Arduino Uno to control 8 distance sensors, and have run into a little road block, the Uno only has six input pins. So I'm wondering, is there any way ...
13
votes
3answers
19k views

Quadcopter PID tuning

In continuation of the question I asked here: Quadcopter instability with simple takeoff in autonomous mode ...I'd like to ask a few questions about implementing a basic PID for a quadrotor ...
12
votes
5answers
2k views

Starting out advice on making robots and tinkering with microcontrollers [closed]

I'd like to start making robots and tinkering with microcontrollers. Where do I start, and what do I need? I'd like to make my own robots. I'm comfortable with programming (assembly and C) so I've ...
11
votes
3answers
28k views

What are the signs that a servo might be broken?

I just got a kit and im not sure if its me or not but it appears one of the continuous servos might be broken. What happened first when I plugged it into the microcontroller, it made a humming sound ...
10
votes
5answers
66k views

How can I send video from my Arduino camera module video to my Android screen?

I'm trying to connect a camera module to my Arduino Mega, connect my Mega to my Android phone (throught BlueTooth or other), and send the live view of the camera to the mobile phone. I saw a video ...
10
votes
4answers
16k views

Control both Velocity and Position (Linear actuator)

I am trying to control the velocity+position of a linear actuator. At this moment I am able to control the position or the velocity. But I'm trying to control both. What the control has to do: Let ...
10
votes
3answers
2k views

Quadruped Learning Simulator

I'm currently building a robot with four legs (quadruped), 3 DOF (Degrees of Freedom) and Its been suggested here that I use a simulator to do the learning on a computer and then upload the algorithms ...
9
votes
2answers
6k views

Line Follower optimization

I'm working on building a line follower robot and want to optimize its performance. It was suggested that I use a PID algorithm. I read a lot about PID but am confused a bit regarding following: I've ...
9
votes
2answers
13k views

How to use Arduino for ESC control?

I am using an Arduino Uno to control an ESC for my (in progress) quadrocopter. I am currently using the servo library to control the ESC, which works great. Except.. A count of 100 is max speed, ...
9
votes
2answers
19k views

How to tell a stepper motor's position, or detect slippage

I am creating a CNC machine on a budget, using old motors out of printers/scanners/etc. I am limited to about 650mA for the whole system, so my fear is that when the cutting bit touches the material,...
9
votes
3answers
2k views

How can I improve the map in my Mobile Autonomous Robot using KINECT

A little background of my aim I am in the process of building a mobile autonomous robot which must navigate around an unknown area, must avoid obstacles and receive speech input to do various tasks. ...
8
votes
5answers
15k views

How computationally powerful is an Arduino Uno board?

What can an Arduino board such as the Uno really do? Of course simple things like controlling a couple servos is very easy for it. However, I don't think an Uno board would be able to preform real-...
7
votes
5answers
5k views

Learning Algorithms for Walking Quadruped

I'm building a 4 legged robot (quadruped) with 3 Degrees of freedom per leg. The goal of my project is to make this robot able to learn how to walk. What learning algorithms will I need to implement ...
7
votes
4answers
3k views

Sensors for differential drive

I have the following chassis along with an Arduino and a motor shield. I'm in the process of developing a tracking mechanism for use with differential drive. Normally, a photo reflector can be ...
7
votes
1answer
2k views

Using an Arduino to control an ON / OFF connection between two pins

I've got this driver: http://www.pololu.com/catalog/product/1182 ... a A4988 stepper motor driver carrier I'm attempting to control a connection between the RESET and SLEEP pins with logic ( code ) ...
7
votes
5answers
553 views

Arduino Motor control

I'm working on a rather low budget project, and need some way to control four or more motors using one Arduino. I've looked at motor shields a little, but I have a shield on top of it already, It does ...
7
votes
3answers
590 views

Including a RaspberryPi within a robot... Does this allow for a "universal API"?

I know this is a broad statement, but when you've got support for both TCP as well as a full fledged computer on board (to integrate/run an arduino), does this essentially allow for anything that ...
7
votes
6answers
10k views

What mechanical parts can be attached to DYJ48 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,...
7
votes
5answers
8k views

Track a moving object

If this has already been answered, by all means please point me to it. I am in the process of building a quadcopter which I eventually plan to run autonomously by allowing it to track an object and ...
7
votes
1answer
350 views

When taking VCC power from an arduino to a 12v regulator, then to a 5v, do I need two sets of capacitors?

I'm building an open-source bio-research hardware (ask me how you can help!) and I've got this guy here: My big questions are: Can I get away with all the ground being common? (I've got a 12v and 5v ...
7
votes
2answers
4k views

Cascading PID DC Motor Position & Velocity Controllers

I'm trying to build a robot with a differential drive powered by two DC Motors. First I implemented a PID Controller to control the velocity of each motor independently. Estimated the TF using the ...
7
votes
1answer
3k views

Unwanted Arduino reconnect: Servo + Arduino + Python (Raspberry Pi)

I am having difficulty sustaining a connection between my Raspberry Pi (Model B running Raspbian) and my Arduino (Uno) while sending signals from the Raspberry Pi to a continuously rotating servo (...
6
votes
4answers
278 views

How to find out how far a motor has taken a vehicle?

I have a small motorized vehicle with gears as wheels running up and down a track made of gear racks. How can this robot know when it has run half the track? And what's the best method to keep it from ...
6
votes
5answers
2k views

How can I create a robot like the EZ-B using a regular Arduino?

I am interested in building a robot like the EZ-B, sold by ez-robot.com. It comes with an SDK for Visual Studio and has direct scripting in runtime through a USB, Bluetooth, Wi-Fi, IRC or HTTPS ...
6
votes
3answers
12k views

How to get data from ArduPilot through Serial Port

I'm doing a project related to telemetry, and I want to make ArduPilot (programmed with ArduPlane 2.73) send through a serial port the sensors informations such as height, GPS position, etc.. I have ...
6
votes
7answers
30k views

Bluetooth module HC-05 giving ERROR :(0)

I am working right now with Arduino UNO and HC-05 bluetooth module.I followed the instruction given on this link for wiring. So there are 2 mode of working with this HC-05 module Simple serial ...
6
votes
1answer
2k views

Adding Rotary Encoders to an Electronic Wheel Chair

We have an electric wheel chair, and are looking to add a rotary encoder to each wheel. We don't want to hack the motor itself, so want to add the encoder without harming the motor-to-wheel ...
6
votes
6answers
14k views

How to check for a sharp angle with a line follower?

I have the mBot robot and I want to program it to follow the line. So far it can pass any kind of line that is >90°. I want it to be able to pass 90°-ish angles as well. Like this one: The problem ...
6
votes
1answer
827 views

Quadrotor control using ArduIMU

We are using ArduIMU (V3) as our Quadrotor's inertial measurement unit. (we have a separate board to control all motors, not with ArduIMU itself). As mentioned here , the output rate of this module ...
6
votes
1answer
2k views

Is it possible to interface android mobile as GSM and GPS module with arduino based robotic applications?

I want to built a robot and i need bunch of modules to track it like GSM/GPS Wifi and Camera If i try to buy each of module separately it will cost me 300 dollar each aprox in Pakistan. On the other ...
6
votes
5answers
3k views

Controlling more than 12 Servos with the Arduino Servo library

I'm using Teensy hardware specifically. I have a Teensy 2.0 and a Teensy 3.0, and from the documentation it seems like there are two 16 bit timers available, and each should be able to control 12 ...
6
votes
4answers
2k views

PID control of tank-like robot and IMU

Consider a tank like robot with a motor driver channel for each side of the robot (two motors on the left and two motors on the right) and an IMU. I'm interested in driving the robot in a straight ...
6
votes
1answer
697 views

Motor and Ethernet shields together

I was wondering if it is possible to plug a motor shield on top of an Ethernet shield, even though the direction pins on the motor shield would be connected to the same pins as the spi bus. I was ...
5
votes
5answers
9k views

High voltage motor control with arduino

I'm trying to control a higher voltage motor than an arduino can source with a pin, with an arduino. I am trying to hook it up to a transistor. The battery pack is not supposed to be 4.8V, it's 6V, 4 ...
5
votes
4answers
12k views

How would i go about learning to code a flight controller?

I'm interested in quadcopters/multi-rotors and want to eventually code my own flight controller ala an APM and/or Pixhawk. I've got a little experience in programming (i.e i know about if/else/else if ...
5
votes
2answers
3k views

Arduino Vin Current Limit

I've found that Arduino (Duemilanove) has a current limit of 40mA per pin. Does this include the Vin pin? Or does the Vin pin have some sort of work around in place on the board to allow for higher ...
5
votes
5answers
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/...
5
votes
4answers
2k views

Pushing Buttons Remotely over Ethernet

So I want to program something that will simply push a button, but controllable over ethernet. I'm new to robotics so I don't know where to start. What's the best way to control an actuator over a ...
5
votes
1answer
307 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 ...
5
votes
1answer
365 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 ...
5
votes
3answers
6k views

Limits of PWM, Timers and Interrupts?

I have a robot with two wheels/motors and each has a quadrature encoder for odometry. Using the wheel/motor/encoder combo from Pololu, I get 48 transition changes per rotation and my motors give me a ...
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 ...
5
votes
1answer
4k views

12V compressor and air pressure control

I am trying to make a simple robot with few functionality for someone, one of these functionality is inflating a balloon inside the robot, I know how to control a compressor using Arduino but the ...
5
votes
2answers
2k views

Arduino Nano + Raspberry Pi = UAV Ground Station?

I'm a programmer by trade, and an amateur aerospace nut, with some degree-level training in both fields. I'm working on a UAV project, and while the good people over at DIY Drones have been very ...
5
votes
2answers
246 views

What kind of motor control can I implement if I cannot use an Encoder?

Every time I see a PID control for a motor, it involves an Encoder, so the algorithm knows the real position of the motor or wheel. But with the robot I have, I cannot use an encoder. I only have ONE ...
5
votes
1answer
7k views

Visualizing raw accelerometer and gyro data

I have an arduino wired to an MPU6050 breakout board. The arduino continuously collects accelerometer and gyroscope data from the MPU6050 and calculates angle and velocity. Simply plotting the ...
5
votes
2answers
2k views

Wheel encoder triggers interrupt too many times

I am building a simple robot with two driving wheel. I want to control the wheel rotation using a wheel encoder like this one. Here is a code I have on Arduino to try to understand the problem I'm ...
5
votes
1answer
170 views

Any globally unique signature in Ardupilot hardware, or Arduino in general?

I have several APM 2.5 boards and need to identify them based on some globally unique hardware signature that does not change with programming. Arduinos and atmel AVR chips in general do not have (...
5
votes
1answer
11k views

Send Arduino sensor data to server with GPRS shield

I'm trying to send Arduino sensor data to a server using a GPRS shield (SIM900 shield from Geeetech). I have this particular set up because the data will be updated to a website and the device will be ...

1
2 3 4 5
10