Let's Make Robots!

error

infrared sensors

flare's picture

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.

Arduino IDE - what's wrong with versions 0019 onward?

OddBot's picture

Ever since the release of the new Arduino PCB's there have been at the time I wrote this 4 new versions of the IDE. As far as I can tell none of them work very well. All of my code is written on version 0018 and works fine. Open the same program in later versions such as version 0022 and you get an error when verifying the code.

Here is an example.

MacAxePad syntax error

Hi guys,

First post here.

I got the "How to make your first robot" 2.0 kit for my son and I am having problems.

I use an iMac 10.6 and MacAxePad software and I'm having this syntax error "s"

I cut and paste the following from the tutorial on this site, but it still doesn't work.

 

servo 0,

150 wait 2

 

 

I'm not normally working with gadgets like this, but I'm trying and it's slowly getting the best of me.

Intellibrain problems

AgentBurn's picture

Hello everybody. I'm trying to get my intellibrain bot to comunicate with arduino via I2C, but I get some errors which I don't know how to debug. Google doesn't help at all. Here is what I get on my display when I turn on the program:
"Code: 20&97b6 
8d57 8d24 839d"
and after it shows that very shortly it turns the program off. It happens both when arduino is on and when it's off.

Picaxe resetting or stuck in fatal loop

ignoblegnome's picture

 

I'm reprogramming Robot Leader, and I'd like to be able to use PWM to pulse his LED eyes. The only problem is, I also have to command a servo to turn his head, and the Picaxe28x1 does not allow you to use PWM while you are using the servo command. They both rely on the same timer.

Arduino Serial to Processing

electrictape22's picture

Ok, thanks for helping me with my last question, but now I have another one...

I am currently trying to make a robot with a tactile switch at the front. When that tactile switch is pushed down the robot reverses and turns around. Here is the cool part though, when the switch is pushed down it will also send data to processing, causing a face to jitter onscreen. So far I have been able to make the code for the face jitter (except on mouse over) Here is the code if anybody is curious:

RS232 Communication with MCU

drmitch's picture

So I am making my own CNC - PCB Miller. It is communicating with the computer using RS232 (UART), but in my testing, I find that I don't always get the correct characters, even at 1200baud. Does anyone have a method to suggest for error-checking an incoming data string over serial? I was thinking of doing something like this:

CPU sends data to MCU 4 times.

MCU checks to make sure the data is repeated exactly 4 times.

--If yes->send "OK" 4 times

--If no->send "NOT OK" 4 times

If CPU receives OK, queue up the next data to send

Ignoble Idiocy

ignoblegnome's picture

"Those who cannot remember the past are condemned to repeat it." - George Santayana

mistake_0.gif 

Nobody's perfect, least of all me.  Here I intend to record some of my roboting mistakes for my own good.  Perhaps you can learn from my errors, or even contribute your own.

Latest Update: 2010-02-04

problem with IR remote upgrade

PeterJacob's picture

i was trying to see if i could make sounds, LDR-test and ir remote test.

upgrade stuff here: http://www.rev-ed.co.uk/docs/axe040.pdf

but there is a syntax error :(

3803545020_97a5fdd508_o.jpg

3802729821_93593ed5cc_o.jpg
 

please help!

Is My Arduino Dead?

Nebster's picture

Is my arduino dead.
i have the Arduino deicimela or whatever.
i have my code and when i verify its say "yep she's good mate, upload er".
but when i go to upload er it sits there for ages the IDE freezes and then to me it says "look here mate lets get something right even though i said its all good, im just not in the mood so im not gonna upload it until you make me feel better". however to anyone else it would look like this:

Binary sketch size: 976 bytes (of a 14336 byte maximum)

what is wrong?! ..and what can i do!?

PeterJacob's picture

okay..         so i just finished my new robot(8 servo quadropod)and started makeing a test program.   when the test program was done i downloaded it to the picaxe and it worked! then i started to try out use the srf05 to see if it was plugged in the right way! so i made another program and tryed it and that worked too!