Let's Make Robots!

c

General Programming - Debug

Maus's picture

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

Servo coding (solved)

It is working now, thanks to everyone who helped me out!!!

 

 

I am trying to make my servo work,but if I start my arduino, with code and servo attached, it just goes to one position and stays there twitching. Can someone help me?

second try

Drive the remote controlled and webcam equipped robot at my attic
Using a
I have built this remote controlled robot to make it possible to "enter" my homepage. You can cruise around the stuff used for experiments described at my pages … Read more
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

Microcontroller Programmer

GranTotem's picture

Hello Everyone!

I am currently thinking on moving from Picaxe to microcontroller as Picaxe isnt available except by buying outside the country and microcontroller in that way seems to be a cheaper solution.

After some research I discovered i need C knowledge which i dont posses. So i found out of BASIC just like Picaxe is.

Problem is: which programmer to use... I dont really want to buy one so I was thinking on a free tool that could program BASIC and then I could slowly move onto C.

Does anyone know of any "good" software that could do this?

 

Navigate around via ultrasound, remote control via Xbee wireless
Using a
-> Video now added <- This robot, Huey, improves structurally on my previous design, providing a more finished look and a much more durable chassis, but the … Read more

AIML to C converter?

I know there are a few C to AIML converters out there, but are there any programs that do it the other way around?

Embedded: "Real men(and women) program in C"

voodoobot's picture
A great link on the use of c in the embedded technology world.

C Programming Software for Mac

Hello LMR. I have recently been introduced to programming in the C language. Do any of you know or reccommend any specific software for programming? I am using a Mac Leopard 10.5.7.....
Cuts shapes with better precision then me :D
Using a
Pictures:  - the front   - the back - left - right - the power unit Read more
For now it draws the shapes provided, eventually it should cut them too - actually does do cutting now :D
Using a
Hi all,  As OddBot suggested on my blog I have created a robot page for this thing. I will update this page with more pictures schematics, code and video as soon … Read more

Fun with timers and interrupts on Atmel Tiny26

jip's picture

A long time since my last post on this site... Anyway I've been experimenting a little with my Atmel Tiny26 uC today using AVR Studio 4 for development and the AVR ISP mkII programmer to program the uC.

Teaches you how to connect a Wii Nunchuck to Arduino
You may be asking to yourself, “Why would I want to connect my Wii Nunchuck to my Arduino board?” Good question. By attaching a Wii Nunchuck to your Arduino … Read more