Let's Make Robots!

programming

How to make a controlled Arduino Robot via Bluetooth by using an Android Device

JayGajudo's picture

Can you Please teach me How to make a controlled Arduino Robot via Bluetooth by using an Android Device :D 

 

I found some Application in Play Store about the Bluetooth controller, it is called Bluebots ,a Bluetooth remote control for robot. (see below)

https://play.google.com/store/apps/details?id=blue.bots.free.matt&feature=search_result#?t=W251bGwsMSwxLDEsImJsdWUuYm90cy5mcmVlLm1hdHQiXQ..

Picaxe, Windows 7 and 'Serial port'

Hi everyone,

A few days ago, I tried to programm a picaxe microcontroller via the serial cable on my windows 7 PC but it gave an error like 'no hardware found on comm port4 ' or the same with 'comm port3' etc.. when I changed the serial port settings in programming editor software. If you are facing the same problem then this may be the possible solution (well it worked in my case).

Easy Robotics opinion question.

Maxhirez's picture
While encouraging David C. To learn to program for something other than a robot, I realized I was being kind of a hypocrite. I enjoy building the hardware more than programming. Not that I don't enjoy programming, just that the initial thrill of seeing the the completed machine is kind of an experiential apex. Is that the norm? Is it kind of like that arty/techy thing we had a while ago?

Anyone here ever try a Netduino? (C#)

I am getting one dirt cheap (less than the price of a Arduino!) All I know so far is it has a ARM chip and you program it in C# (sharp).

Sounds interesting, and more than a bit scary (anyone know C# so I can get help when I need it?)

Try ArduBlocks

Don't want to learn C (or for that reason the Arduino IDE)?

Could you make a small flowchart/block diagram of the program you want? Then (want) to change it into a running script?

ArduBlocks will do that for you! Translate your flowchart/block into a Arduino program and then show it in the Arduino IDE! Not only is this a great way to "model and test" it could also make a great way to learn to program scripts (then you know C!!!)

What type blocks does it have? Almost any you can imagine. Makes a robot control program fairly easy to write.

mikroC vs BASCOM AVR

A few days ago I was going to try some programming in C using mikroC. So far I have been able to blink a LED...  mikroC is primarily designed to support the circuit boards MikroElectronica makes and does very little for the Arduino (and they plan on keeping it like that). It is still a great (but expensive!) C, just not one for the Arduino.

Programming an Arduino in C.

I know my new robot runs (and runs nicely) on a ZBasic chp, but I will always have a great fondness for the Arduino, the first microcontroller board I ever used. (I used the PICAXE for a while too.)

Right now I have been programming a Arduino Uno with C. I really like the MikroC AVR C from Mikroelectronika. I am using the free version (limited to like 4k, decent space for C programs!). The full version is kind of pricey.

I then use AVRdude (love that name) to send the resulting hex file to the Arduino non-volitile memory. Works great!

Building a line following robot Need help with programming

 

 

 

Below are the 6 sensors

s0        s1          s2             s3            s4             s5    

Will be writting an if  with if else statemnt for each condition

(0&&1), (1&&2), (2&&3), (3&&4), (4&&5)

(0), (1), (2), (3), (4), (5)

 

 

Embedded video: 
Sensibilizes about the delay() function
Whenever you use delays in your robot code your microcontroller is going to do nothing but wait until the delay is passed. Where on one hand this is a blessing it … Read more

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

 

Maus LearningBot - State Machine v2

Maus's picture

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?

Maus LearningBot - Family Challenge One (State Machine)

Maus's picture

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

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

Collect and crosspost my blog entries and discussions about programming topics.
Introduction I started blogging about various programming topics and the community has chimed in with some good information.  I plan on continuing to blog … Read more

Library Basics - Optimization

Maus's picture

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.

Library Basics - Baseline

Maus's picture

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

pic kit 2

antony's picture

ok i bought a pic kit 2 because i finally got some money 
i have the pic kit
mplab

what else do i need or can i plug it all in and try to program with it?
i only have one pic chip for now  soo i dont want to make any mistakes 

A Robot Operating System

RobotBASIC's picture

We at RobotBASIC are currently working on a RobotBASIC Robot Operating System (RROS).

The full RROS will manage almost any type of sensor allowing hobbyists
without an electronics background to build and program sophisticated
robots.  The RROS will probably be distributed Open-Source to allow
expansion and customization.  We will even allow users to share their
modifications through our web page.  The LIGHT version is requiring
sensitive coding that will not be appropriate for modification, so it will

Arduino biped code

SimpleBotics's picture
I'm building a 4 servo biped robot, but I barely know any arduino. I just need a code for this bit to walk and then I could learn off that code for future robots. Thanks if you can help.
Embedded video: 
Helps newbies to learn how to program
Here I will try to explain general idea behind variables, one of the essentials of programming. And I will try to use following analogy: a glass of water. Here … Read more

Arduino to processing

flare's picture

So I have a Sharp IR sensor connected to my Arduino, feeding to my pc the values of its analog input, via the Serial connection.

To do this, I'm using the Serial.write() command. I want to be able to read these values into processing, but when I use the Serial.read() command in Processing, the values it picks up are nothing like what the Arduino Serial monitor is giving me, and are unaffected by the IR sensor.

What am I doing wrong, and how can I get processing to read these values from the IR sensor?

Any help is appreciated.

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

Make Your Own PICAXE USB Program Cable

gecko's picture

Hi everyone!

I was just wondering if anyone else has made their own PICAXE program transfer cable?

I had all the equipment to make one, 2.5mm stereo jack, colour coded wire, a usb plug and soldering equipment; so I thought i'd give it a go!

The connections for the PICAXE cable seemed very simple (having only Serial in, Serial Out and Ground) and knowing that a usb's connections were quite similar (Ground, Data+, Data- and Vcc) so I tried to match them up.

Helps newbies to learn how to program
So, what are comments? They are exactly what they appear to be from their name. Comments or remarks are text that programmer put into code to improve readability of … Read more

Bluetooth control from your Android phone or tablet

Mintoris's picture

Hello, I am the author of Mintoris Basic for Android phones and tablets.  I recently added Bluetooth serial communications to the language with the intention of making it very easy to communicate and control robots.

Here is a short example program in Mintoris Basic which connects to a device then transmits data from the phones accelerometer.  So as you tilt the phone or tablet in any direction, the amount of tilt is sent to the Bluetooth device.

dim a$(0)
dim c(4)

' Get a string array of all the paired Bluetooth devices

a$()=BTGetPaired$()

Picaxe Serial Communication Through Prog. Socket??

Hey, I'm wondering: If I have 2 Picaxe 28X1's that both have their own programming sockets, after programming them, can I use a male to male audio cable and connect their sockets, and send information from one to the other with serout commands? One 28x1 sends info to the other, no data is sent back, so only on serial line is needed. Is it possible, and how would I implement it?

Helps newbies to learn how to program
Now it is Arduino’s turn to open the secret of “Blink a LED” to us. Arduino is heavily supported by a huge community, and is well documented. Read more

Picaxe questions

I started with an Arduinno because I read about it in Make Magazine (so very recently). I am considering trying Picaxe, because it seems as though the programming will be easier and I do not have a strong programming background (read: Basic in 1984).

Two quick questions: