Let's Make Robots!

c++

17 Year-old programs a robot to teach itself to walk!!

Hi everyone! 

My name is Gregory, but you can call me Greg. I am a 17 year-old high school student who is building a very interesting robot(I am also doing all of the designing and prototyping. I am building a six-legged robot, called a "hexapod", that is able to teach itself to walk.

OpenCV error - Xlib, libv4l2, VIDEOIO error

Hi, I tried 2 types of code, do you know how to solve that problem? :)

CODE

Modified RC obstacle avoidance Car
Very new to this site. Been playing with this project on and off for 6 months. Completed once then went back to and it wasn't working. Tried to troubleshoot and … Read more

Arduino Sketches are "Evolving" for Official Robot.

When programming my "Official Arduino Robot" I have noticed that routines that would work on my previous robots need modification (this is under Arduino Sketch ver 1.05.)

Example:

A Robot that is remotely controlled over the internet!
Using a
Introduction: I'm Mohammad Adib, I'm from the US, I'm 17, and this was my summer project. It's a vision I had in mind for a long time; To make a robot that I can … Read more
This is an idea I wanted to try for a while. Basically, it uses one servo to drive the main wheel and a connected (90 degree) servo to turn that servo for steering. … Read more

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?

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.

CURRENT PROJECT WORK (Most recent first)   August 19, 2011 More body work, cutting and filing...and thinking about where to place the boards... Cutting an … Read more
Throws oranges when it sees a certain color
This is a catapult/trebuchet made of canes, which controlled by a PC via an arduino and a servo connected to it using a USB cable. The computer runs the … Read more
Tracks human faces using a webcamera and two servo motors to pan and tilt
Using a
This is my first time using OpenCV, an open source computer vision library developed by Intel Corporation.  It wasn't too hard to get setup or use OpenCV in … Read more

Serial oscilloscope

Hi guys,

I'm currently programming a software oscilloscope based on C++ and DirectX, thus the performance is very good. It works directly off the serial/COM ports. I was just wondering..is anyone else interested in such a thing?

I'm programming it for my Arduino BUT it should be able to work with Picaxe(or anything else) too. It's not gonna be a fancy pro application, but it works pretty damn well :) For now it's rather limited since it only accepts 8 bit values...well for now...