Let's Make Robots!

c

Getting started with C on the Raspberry Pi

Hi all,

This is a really simple question, but I can't seem to find an answer online. I'm just starting to learn C in order to programme my Raspberry Pi which will lead to my first robot. I've done a fair bit of programming in VB before, but C is completely new to me.

I'm literally starting at the beginning with the 'Hello World' text and my code is:

 

#include <stdio.h>

int main()

{

printf("Hello world!"\n);

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

Integrated Project at college!

i Want to direct a robot,s path using C language !

i have seen your basic robot which uses Sharp infrared system ! It will actually do my work but the problem lies here is that it is based on picaxe. now i wanna know taht if these codes for controlling the robot can be generated in Turbo C. or can these ic's and the servo motors with the programming cable will be able to work with C or do i need to just change everything in the line up accordingly ! m new here so ill be really glad if helped !

 

i know basic C programming ! also i know nothing about PICAXE !

beginer in electronics needs to program

hi, im a twelve year old boy who is not an expert  AT ALL, but knows the basics

i've made bristlebots, speaker tones, dc motor cars  and other stuff

BUT

when i have to program  in arduino UNO i just copy other codes from other people

cause...  I dont know how to program at all!!!! i think arduino's language is c,and i don't know  how to program

 

anybody knows how to program arduino

and can give me a little tutorial about key words and etcetera like setup, delay, control of dc motors sensor etc...

I REALLY like RobotC for the Arduino!

I have just had a chance to try the beta of RobotC (download it from their website: http://www.robotc.net/). You will get a 120 day trial (Nice!) It is still in Beta, but it looks really good.

So far, it downloads a chunk of code to the Arduino (I am usimg a Uno) that lets you debug (single step, etc) right on the Arduino!

There is supposed to be a simulator too, but I haven't tried it yet.

I would definitely call it "featue rich". The editor looks very nice too.

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

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

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"

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

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