Provide a high-level summary of your project. What did you develop? How does it "solve" the challeng

High-Level Project Summary

The project works without interference and also works with jet engines, and it is the subject of intelligence and how to coexist and space in a single ring And it is also very easy to take samples and bring them to the planet Earth again, the idea here is to provide food and effort for the astronauts

Detailed Project Description

The project works with artificial intelligence and works with batteries. It is worth noting that it charges automatically, not its movement with the air that generates energy, and it also has solar panels that charge

Space Agency Data

In fact, all I needed was one of the programming languages, and I started working on this project, and it made a terrible difference with mechanics and electricity as well, and that he was fully prepared that he worked and occupied a place in NASA.

Hackathon Journey

It is our great passion to enter into this challenge and work on it with my team. We describe the experience as being the first experiences, but one of the most important experiences of the crisis in our lives. We took care of the project and worked hard on it.

References

#define speedL 10

#define IN1 9

#define IN2 8

#define IN3 7

#define IN4 6

#define speedR 5

char Reading; void setup()

{

 Serial.begin (9600);

 for(int i=5 ; i<=10 ; i++)

 {

  pinMode(i, OUTPUT);

 }

}

void forword()

{

 digitalWrite(IN1, HIGH);

 digitalWrite(IN2, LOW);

 digitalWrite(IN3, HIGH);

 digitalWrite(IN4, LOW);

 analogWrite(speedL,150); 

 analogWrite(speedR,150);

}

void backword()

{

 digitalWrite(IN1, LOW);

 digitalWrite(IN2, HIGH);

 digitalWrite(IN3, LOW);

 digitalWrite(IN4, HIGH); 

 analogWrite(speedL,150);

 analogWrite(speedR,150);

}

 void left()

 {

  digitalWrite(IN1, LOW);

  digitalWrite(IN2, LOW);

  digitalWrite(IN3, HIGH);

  digitalWrite(IN4, LOW);

  analogWrite(speedL,0);

  analogWrite(speedR,150);

 }

void right()

{

 digitalWrite(IN1, HIGH);

 digitalWrite(IN2, LOW);

 digitalWrite(IN3, LOW);

 digitalWrite(IN4, LOW);

 analogWrite(speedL,150);

 analogWrite(speedR,0);

}

void stopp() {

 digitalWrite(IN1, LOW);

 digitalWrite(IN2, LOW); 

 digitalWrite(IN3, LOW);

 digitalWrite(IN4, LOW);

 analogWrite(speedL,0); 

 analogWrite(speedR,0);

 }

 void loop() {

  if(Serial.available()>0){

   Reading=Serial.read();

   switch(Reading){

    case ‘F’:forword(); break;

    case ’B’:backword(); break;

    case ‘R’:right(); break;

    case ‘L’:left(); break;

    case ‘S’:stope(); break;

   }

  }

 }


another code


#define speedL 10

#define IN1 9

#define IN2 8

#define IN3 7

#define IN4 6

#define speedR 5

#define sensorL 4

#define sensorR 3

int sl=0;

int sr=0;

void setup() {

 for(int i=5;i<=10;i++)

 {

  pinMode(i, OUTPUT);

 }

 pinMode(sensorR, INPUT);

 pinMode(sensorL, INPUT);

}

void forword()

{

 digitalWrite(IN1, HIGH);

 digitalWrite(IN2, LOW); 

 digitalWrite(IN3, HIGH); 

 digitalWrite(IN4, LOW); 

 analogWrite(speedL,150); 

 analogWrite(speedR,150);

}

void backword()

{

 digitalWrite(IN1, LOW);

 digitalWrite(IN2, HIGH);

 digitalWrite(IN3, LOW); 

 digitalWrite(IN4, HIGH); 

 analogWrite(speedL,150); 

 analogWrite(speedR,150);

}

void left()

{

 digitalWrite(IN1, HIGH);

 digitalWrite(IN2, LOW); 

 digitalWrite(IN3, LOW); 

 digitalWrite(IN4, LOW); 

 analogWrite(speedL,0);

 analogWrite(speedR,150);

}

void right()

{

 digitalWrite(IN1, HIGH);

 digitalWrite(IN2, LOW);

 digitalWrite(IN3, LOW);

 digitalWrite(IN4, LOW);

 analogWrite(speedL,150);

 analogWrite(speedR,0);

}

void stopp(){

 digitalWrite(IN1, LOW);

 digitalWrite(IN2, LOW);

 digitalWrite(IN3, LOW);

 digitalWrite(IN4, LOW);

 analogWrite(speedL,0);

 analogWrite(speedR,0);

}

void loop(){

 sl=digitalRead(sensorL);

 sr=digitalRead(sensorR);

 if (sl==0&&sr==0)

 forword();

 else if (sl==0&&sr==1)

 right();

 else if (sl==1&&sr==0)

 left();

 else if (sl==1&&sr==1)

 stopp(); }



Tags

artificial intelligence ( hardware)