Let's Make Robots! | RobotShop

obstacle

raspberry pi arduino,

So im pretty newish to robotics and programming in general, but ive done some reading and have started down my own path.

my robot(including a picture, description, wiring diagram and code) is posted here https://www.robotshop.com/letsmakerobots/node/40350

The robot moves avoiding obstacles and choosing the best way to follow by ultrasound.
Using a
The programming code is attached here as a .txt file. Download it and paste the text on the Arduino compiler. Remember to add the IRremote library (also attached … Read more
Helps me learn AVR, Keeps me entertained, Avoids obstacles
Using a
UPDATE: attached code Hi, Meet the tintTableBot. It is called tiny because of 2 reasons- it uses an Attiny2313 and it is small. Although it is an obstacle … Read more
Avoids obstacles primarily but You'll have to watch the video to find out more
Using a
Continuing on with the robot revolution here on LMR, this here was my entry into the coasterbot competiton.As you can see.... Hey wait! What's going on?! Help! … Read more
So I'm new to LMR, and this is my first robot. For now, it's just an Arduino Uno, a motor driver circuit, and two motors. The motor driver circuit I got from here: … Read more

Avoiding obstacles code.

Hi all.

I have started making a small robot the RMOAR https://www.robotshop.com/letsmakerobots/node/20422

but im having some problems with the code i tried to made in order to get this thing working.

I dont know if that code will work and how can i improve it .

Here is the code:

Programming help, sharp IR mounted on servo

Hello

I am trying to control my bot using a sharp IR sensor mounted on hitec servo with arduino mega. The pseudocode i have so far is as follows:

1. Set servo at 90deg and read IR sensor value
2. If val > 200, then stop the bot for a second
  a. Turn servo 0 deg completely and read ir val
  b. if val < 200 then turn bot left
  c. else turn servo 180 deg and read ir val
  d. if val < 200 then turn bot right
  e. else if cant turn right or left, reverse a bit and then turn the bot 180 degree and go straight.