Let's Make Robots!

Arduino

programming arduino

So I made my first attempt at a robot using my Arduino...

It can be seen here, so that I don't have to explain how everything works again: http://letsmakerobots.com/node/31357

Now my problems is the code. What I have so far looks like so:

 

 

#include <IRremote.h>

#include <Servo.h> 

 

Servo run; // servo for running hind wheels, continuous rotation 

Servo steer; // Servo for steering

int pos = 0;

int RECV_PIN = 11; // IR pin

 

I had my brother over for Christmas and as he is a scientist and I have done some work for him earlier, he asked me if I could build him an XY table to navigate … Read more

How to code this properly .....

Ok being distracted from my robot hack of late .... anyway being trying out the led tutorials on tronixstuff and have a little problem ...

 

Those of you that follow tronixstuff will have seen the tutorials on leds  ... im trying them out at the moment.  First tutorial is http://tronixstuff.wordpress.com/2010/04/04/getting-started-with-arduino-chapter-zero/

Video of problem at bottom of post

Spins in place, or moves a bit (but not straight)
Using a
Hi, LMRers! LMRites? Hmmm... Anyhow, I'm a raw beginner at this, and have little grasp of electronics. However, I figured I'd give it a shot, since I'm interested … Read more
drives around guided by IRremote
Using a
My first robot! Built from an Arduino UNO, some Lego I had lying around, and a couple of 9g servos... The IR and remote have been scavenged from a remote controlled … Read more

making an arduino line follower with obstacle avoidance

I have had an arduino for a wile now but i just cannot find out how to make a robot with line following and obstacle avoidance.

How can I write a sketch that will alow one sensor to have more power over another sensor? So if my robot is moving along a line and i put something infrunt of it it will sotp useing the line sensors and use the code for the obstacle avoidance.

 

111swords

Maus LearningBot - State Machine v2

Introduction

Well, after the couple of comments from this blog, Maus LearningBot - Family Challenge One (State Machine), I've done some reading, recoding and experimenting with some of the concepts suggested of how state machines should work.  I've now dubbed this version 2 and it seems to work just as well as version 1.  I'll try to explain myself as I walk through the code.

Why a State Machine?

Arduino tamiya twin motor gear power supply and stuff

 

Hello thereI am building a simple Arduino tank but the problem is that after running it for 20? seconds it starts to run slower and slower. Then after turning it off, and on it does not run anymore. After letting it stay off for almost 5 minutes, it runs really slow. Looks like the 9v battery can't handle it?

The first incarnation of Sandbot seems to have yielded some successful results (see http://letsmakerobots.com/node/30447). It can successfully navigate its way … Read more

The mother of all fancontrollers... Hopefully

So, I'm the process of making the -in my opinion- ultimate PC fan/pump controller for use with a water cooling system.

The idea is to make a bracket which fits into a 5.25" bay and holds an LCD, some type of input (probably joystick) and an arduino, so the temperature responses are completely programmable. It should have three fan/pump channels and 3-6 (however many ADCs I have left, at least 3) temperature sensors.

Vote for Me in the Instructables Arduino Contest!

Hello LMR! I entered my robot in the Arduino contest on Instructables... and I'd be happy if you guys could vote for me :) Thanks!

Here's the link: http://www.instructables.com/id/How-To-Make-an-Obstacle-Avoiding-Arduino-Robot/

Found this on the instructables website...again for US citizens only :-( but I wish you good luck guys. http://www.instructables.com/contest/arduino2012/ There are … Read more

Maus LearningBot - Family Challenge One (State Machine)

Introduction

We have put together our learning robot and have switched out our Arduino stack consisting of the Arduinio, screw shield and arduino motor shield for one of Ro-Bot-X's Robot Builder's Rduino v2 boards.  Now that things are hooked up to the new board, we decided to go forth with a simple programming challenge.

The Challenge

Our first programming challenge is for each of us to program the robot to move foward towards a wall and try to stop the closest to the wall without knocking over the blocks used to create it.

General Programming - Debug

Introduction

When I'm coding, depending on the programming language, I usually like to sprinkle debugging statements into my code to see data, code decisions and general information while the program is executing.  Using the Arduino, I can use the Serial library to stream print statements to the Serial Monitor for example.

Option 1: In code #if

The first option is very simple.  At the top of your source file, you put in the following line when you want to turn debugging code on:

#define DEBUG

Library Basics - Optimization

The first Library Basics blog covered a basic conversion from a working sketch to a very simple library using the C++ class.  User mogul correctly pointed out some code optimizations that we can make.  His original message was:


You seem to waste a little resources here and there:

You store 4 private variables.

infrared sensors

I've got two sets of phototransistors and infrared emitters put together to make two IR distance sensors. They are both connected in the same way, both powered by my Arduino Uno, both with the same resistor, etc. But when I check the values I'm getting from them, one of them ranges from about 980 - 1010, with the higher value closest to the sensor. The other, however, goes from about 350 - 570, with the higher value the furthest from the sensor.

How do you use a L293D Motor Controller with an Arduino MEGA?

I have recently received my order from ebay. A L293D Motor Controller for my first robot. I read the datasheet and other guides but i can't figure out how to use it, please help! I didnt order 2 so i only have 1, if it fries, i cant get another one or i have to make one. :(

 

Library Basics - Baseline

Introduction

 With all the questions surrounding libraries in the Arduino IDE, I thought I'd start my next blog about creating a class used as a library for my Ping sensor.  As a start, I'll use the example sketch from the Arduino examples.  Below is the example code created by David Mellis and Tom Igoe with the majority of the comments removed:


Original (uncommented) Sketch

Confused by Arduino's new R3 motor shield.

I'm new to Arduino and microcontrollers in general. I've had an Uno for about a half of a year. Using the diagram posted by Tom Igoe (link below), I made an H-bridge to allow me to control a stepper motor with my Arduino. I made the mistake of buying an Arduino's R3 motor shield, not realizing that the design was so new. Come to find out there is little to no documentation to be found on it. My problem is that I have no clue (other than mounting the shield) on how to wire in the stepper motor and what changes to make to the sketch which works with my H-bridge.

Autonomous transatlantic boat

While exploring the LMR website, I came across a couple of autonomous boat projects that looked really cool. They reminded me of another project that I've been watching for a while now called the Scout Transatlantic Project. If you haven't seen it, it's an 8 foot long carbon/kevlar boat, controlled by an arduino mega, and powered by solar panels and lipos. Enjoy.

Simon

Navigate without killing itself
Using a
Hello once again LMR! I recently made a few changes to my robot “Mobile Arduino Experimental Platform” (MAEP), and have written this tutorial on how to create a … Read more
navigate in various ways, teach me about robotics
Using a
Hi! MAEP 2.0 is the second version of MAEP (please check it out if you haven't already). I won't go into all the details about things that are the same as the … Read more
Robotic Arm with Voice Recognition
Robotic Arm with big servos, at least 2 of them. It will have voice recognition and also can be controlled with a nunchuck. In 1 week I will continue to work on it. … Read more
Runs over stuff, should be very snow capable, as well as most other land terrains.
Using a
Another new video 3/4/12.  I got it all together and it WORKS.  I think it did pretty good, many changes to come. Added another video of me trying to pull myself … Read more

Error coming up in code

copied this code from http://www.jeremyblum.com/2011/07/31/tutorial-13-for-arduino-liquid-crystal-displays/ but when i try to compile i get a error at void set up {}( function definition dose not declare parameters) i highlighted the part that gets this error ... but i can figure out whats wrong ...

 

/*

*RS: Pin 2

*EN: Pin 3

*D4: Pin 4

*D5: Pin 5

*D6: Pin 6