joaomonteiro
Published © Apache-2.0

Inteligent cans bin

This project is for my school cafeteria. It was developed to help meet the goals of a school recycling report; you can follow the project on

IntermediateShowcase (no instructions)30
Inteligent cans bin

Things used in this project

Story

Read more

Code

Cabo v arduino

C/C++
#include <Servo.h>
Servo myservo;
void setup() {
  // put your setup code here, to run once:
myservo.attach(3);
pinMode(6, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
int z=analogRead(A0);
int h=z/5.68333333333;
myservo.write(h);
}

Credits

joaomonteiro
9 projects • 0 followers

Comments