Let's Make Robots!


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


 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.


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

Building a new controller - fun and games

Friday 27th January, 2012
This blog is a an ongoing list of my thoughts, as I attempts to create a library for the Micro Magician. It is boring and should not be read by anyone :p


As some of you may already know, I am designing a new Arduino compatible controller for small robots. One problem with small robots is limited space. This makes sheilds, motor controllers and wires difficult to fit. For this reason I tried to incorporate a few useful devices onto a controller while keeping the cost low.

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

Allows me to program my Arduino via bluetooth, USB not needed any more
I finally figured out how to program my Arduino controlled "Start Here Robot" clone without leaving my chair using bluetooth. Unfortunately it still only works when … Read more

How do you connect a SRF005 to an Arduino MEGA 1280

I need help on connecting a srf005 (the blue one) to an Arduino MEGA 1280

You can use this image as a guide.

I want the connection for the srf005 using only three pins. :) (The one where you connect the mode pin to ground)



motor board connecting with Arduino board ... need some help

Hi all need a little help ..... got my first bit of stuff from yourduino .... and very happy ..... part of which was a arduino board (mega 1280 http://arduino-direct.com/sunshop/index.php?l=product_detail&p=9) and got a motor board (http://arduino-direct.com/sunshop/index.php?l=product_detail&p=127)

Struggling with creating libraries for Arduino


Documentation of my efforts will be continued in my blog: Building a new controller - fun and games

Thanks to the help of my fellow LMR members I now have a working library. I have attached the initial library created as a result of this forum. A big thanks to cr0c0, Maus and Mogule who put a lot of effort into helping me with my code. The attached library is not the final product, I need to add more functions and examples yet (I may also need more help).

This is my first robot project. I've had an interest in electronics for as long as I can remember and began playing with PICAXE about 5 years ago, but never really … Read more
Simple kit robot platform to start learning about robotics.
Using a
Our goal is to learn about robotics and programming as part of our homeschool lessons.  We decided to use kits to help get us up and running faster and get into … Read more
Navigate by sudden deceleration (collision sensing)
Using a
This is a prototype of a robot car I am designing for the classroom. The idea is to create a kit, cheap and simple enough for the classroom with enough … Read more

Our First Robot - Build Day 2


Well after some sleep we got back to work on what we thought we could accomplish without getting a headache.



Screw Shield


Arduino millis() function doesn't seem to work properly

Yes, this is another of these "Help me with my code" posts. I understand that they are annoying but I have to say I'm seriously stuck on this one. All the code works except for the latest addition which is a timer (sort of). So basically, the robot turns right wile comparing Ir readings. When it detects a decrease in the IR level, it turns left until it achieves relatively the biggest IR readings (meaning that the IR source is right in front as there is more radiation detected when facing it).

Our First Robot - Build Day 1


Ever since we purchased our Arduino and tinkered around with a few simple electronics projects, we been itching to make a real robot.  Well the time has come where we had a few extra dollars to spend and we splurged and purchased the following to help us along:

drawing by placing nuts on a surface
Using a
Hello, Firstly, my apologies for my english. I'm french. The purpose of this machine is to make automatically stop-motion. I give it a video and it draw each … Read more
Pick up objects, knows it's position. Can remember and repeat.
Using a
Hello, I've found many great ideas on LMR and thought about posting a robot arm I worked on. This robot arm is controlled by an Arduino Mega based controller called … Read more

Number up to 180 from C# serial print mapped to servo movement

Okay, I'm thinking the title probably isn't very descriptive but it's late and it's the best I can do. Basically, I've written a program in C# (I shall unveil this on here in a few days) that ouputs a value between 0 and 180 based on certain conditions. I want to be able to take this value and print it over the serial and read it at the Arduino end as an integer, so i can just have myServo.write(int).

At the moment, in C# I'm using sp.Write(int.ToString()); but I can use the same command to write a byte array and a char array.

Robot that can be controlled via bluetooth
Using a
So I build my first wheeled robot. For now it has no special functions or sensors, but I'm planning to add those features later. Robot can be controlled with PC, … Read more

Arduino Blutooth

Hi I have an android phone and i want to be able to send my text messages, emails, and other stuff to my arduino by using bluetooth. Is that possible? How would you get the phone to send that?