Little Runt Rover Robot Project

Posted on 11/03/2018 by nschreiber0813
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

Description This is my robot so far. It is a Runt Rover I bought yesterday at a place in Mass. known as "You Do It Electronics" and I have assembled and soldered him under 2 hours. I even have programmed him a bit. The code is written below. This is a test code I have made to see if he can work and he does. I am hoping to turn this robot into a ledge avoiding and obstacle avoding robot. Wish me good luck!!! Test Code void setup() {  // put your setup code here, to run once:  pinMode(13, ...


Little Runt Rover Robot Project

Description

This is my robot so far. It is a Runt Rover I bought yesterday at a place in Mass. known as "You Do It Electronics" and I have assembled and soldered him under 2 hours. I even have programmed him a bit. The code is written below. This is a test code I have made to see if he can work and he does. I am hoping to turn this robot into a ledge avoiding and obstacle avoding robot. Wish me good luck!!!

Test Code

void setup() {
  // put your setup code here, to run once:
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(6, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  Forward(255);
  delay(1000);
  Stop();
  delay(500);
  Backward(255);
  delay(1000);
  Stop();
  delay(500);
  CCW(255);
  delay(1000);
  Stop();
  delay(500);
  CW(255);
  delay(1000);
  Stop();
  delay(500);
}
void Forward(int Speed)
{
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
  digitalWrite(13, HIGH);
  digitalWrite(12, HIGH);
  analogWrite(11, Speed);
  analogWrite(6, Speed);
}
void Backward(int Speed)
{
  digitalWrite(11, LOW);
  digitalWrite(6, LOW);
  digitalWrite(13, HIGH);
  digitalWrite(12, HIGH);
  analogWrite(9, Speed);
  analogWrite(10, Speed);
}
void CCW(int Speed)
{
  digitalWrite(9, LOW);
  digitalWrite(11, LOW);
  digitalWrite(13, HIGH);
  digitalWrite(12, HIGH);
  analogWrite(10, Speed);
  analogWrite(6, Speed);
}
void CW(int Speed)
{
  digitalWrite(6, LOW);
  digitalWrite(10, LOW);
  digitalWrite(13, HIGH);
  digitalWrite(12, HIGH);
  analogWrite(11, Speed);
  analogWrite(9, Speed);
}
void Stop()
{
  digitalWrite(13, LOW);
  digitalWrite(12, LOW);
}


  • Actuators / output devices: 4 motors
  • Control method: autonomous (very)
  • CPU: arduino uno
  • Operating system: none
  • Power source: 4 AA batteries
  • Programming language: Arduino
  • Target environment: indoors
LikedLike this to see more

Spread the word

Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post