help Help
book LEARNING
emoji_events COMPETITIONS
people_alt Projects
shopping_basket MARKETPLACE
English
arrow_drop_down
English
中文
arrow_drop_down
Chinese Yuan (¥)
US Dollar ($)
Indian Rupee (₹)
Nigerian Naira(₦)
Euro (€)
Hong Kong Dollars(HK$)

Need to access a workshop / class ?

Enter your classcode

fingerprint


My Account

My Billing

SETTINGS

Invite A Friend


01/17/2021 010:29 PM
SIGN IN
REGISTER
SIGN IN
REGISTER

English
arrow_drop_down
English
中文
arrow_drop_down
Chinese Yuan (¥)
US Dollar ($)
Indian Rupee (₹)
Nigerian Naira(₦)
Euro (€)
Hong Kong Dollars(HK$)

book LEARNING

emoji_events COMPETITIONS

people_alt Projects

shopping_basket MARKETPLACE

help Help

01/17/2021 010:29 PM
Back to Posts

SMART ROOF SOLAR GRID CLEANER

AshishChinnari
query_builder Nov 15 2020
favorite_border 10 likes Log in to like this post
info
This project is submitted for the Robociti competition, Life After COVID-19: The New Normal with Robotics & AI

In the traditional way of cleaning solar panels involves risk, more time to clean and cost to clean. So, our solution which is a four-wheeled automated vehicle powered by solar that skims on the grid.

Mechanical simulations: for wheel assembly bracket.

For 1.5mm stainless steel plate

For 1mm thick stainless steel plate

For 1.5mm stainless steel

By comparing the factor of safeties 1.5 mm plate is sufficient for the application.

Circuit Diagram:

ARDUINO Code:

#include <Servo.h>

#define lmf 3

#define lmb 5

#define rmf 6

#define rmb 11

const int s1 = A0;

const int s2 = A1;

Servo s, t;

int d,s1v,s2v,r=1;

void setup() {

 pinMode(lmf, OUTPUT);

 pinMode(lmb, OUTPUT);

 pinMode(rmf, OUTPUT);

 pinMode(rmb, OUTPUT);

 pinMode(s1, INPUT);

 pinMode(s2, INPUT);

 s.attach(9);

 t.attach(10);

 Serial.begin(9600);

}

void loop() {

Read();

if(s1v>300 && s2v<300 && r%2!=0)

 {

 while(true)

 {

  right();

  delay(10);

  Read();

  if(s1v>300 && s2v>300){

   stp();

  break;}

  }

 }

 if(s1v>300 && s2v>300)

 {

  if(r%2!=0)

  {right();

  delay(250);}

  if(r%2==0)

  {left();

  delay(250);

   }  

while(true)

  {

   foreward();

delay(10);

  Read();

  if(s1v>300 && s2v<300){

   foreward();

   delay(100);

  stp();

  r=r+1;

  break;}

  }

 }

if(s1v>300 && s2v<300 && r%2==0)

  {

  while(true)

 {

  left();

  delay(10);

  Read();

  if(s1v>300 && s2v>300){

   stp();

  break;}

  }

  } 

   }

void foreward()

{

 s.write(0);

 t.write(180);

 delay(500);

 digitalWrite(lmf, HIGH);

 digitalWrite(rmf, HIGH);

 digitalWrite(lmb, LOW);

 digitalWrite(rmb, LOW);

 Serial.println("foreward");

}

void right()

{

 s.write(90);

 t.write(90);

 delay(1000);

 digitalWrite(lmf, HIGH);

 digitalWrite(rmf, LOW);

 digitalWrite(lmb, LOW);

 digitalWrite(rmb, HIGH);

 Serial.println("right");

}

void left()

{

 s.write(90);

 t.write(90);

 delay(1000);

 digitalWrite(lmf, LOW);

 digitalWrite(rmf, HIGH);

 digitalWrite(lmb, HIGH);

 digitalWrite(rmb, LOW);

 Serial.println("left");

}

void stp()

{

 digitalWrite(lmf,LOW);

 digitalWrite(rmf, LOW);

 digitalWrite(lmb, LOW);

 digitalWrite(rmb, LOW);

 Serial.println("stop");

}

void Read(){

 s1v=analogRead(s1);

 s2v=analogRead(s2);

 Serial.print("s1=");

 Serial.print(s1v);

 Serial.print(" s2=");

 Serial.print(s2v);

 Serial.print("dist is");

 Serial.print(d);

 Serial.println();

}

working video:

"https://drive.google.com/file/d/1JzpjektmzkNhA9jZ9zHVrbcd5np5-kgN/view?usp=sharing"

Post Credits

AshishChinnari

210robocoins 210 Robocoins
View Profile

Write a Comment

G

Guest


Supercharge your Career - drone image

Supercharge your Robotics & AI Career by joining Robociti today

Join Robociti

Suggested Course

access_time label

star_borderstar_borderstar_borderstar_borderstar_border

Subscribe to the Robociti newsletter

Get exclusive discounts, offers and robotics news by subscribing to our newsletter.

check_box_outline_blank

No. 1 AI & Robotics learning community

English
arrow_drop_down
English
中文

About Us

Our Company

Legal

Privacy Policy

Refund Policy

Careers

Products and Services

Courses

Competitions

Marketplace

Projects

Blog

Free Resources


Support

Help

FAQs

Contact Us


Go Social


@ 2021 Popular Robotics Inc. 博普乐科技(北京)有限公司

business 北京市海淀区上地信息路26号1层0106-201室

京ICP备19029546号-1