To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
gears inter 3 v2.stlStandard Tesselated Geometry - 91.20 kB - 06/13/2023 at 12:46 |
|
|
gears inter 2 v1.stlStandard Tesselated Geometry - 89.54 kB - 06/13/2023 at 12:46 |
|
|
maintiens des engrenages v1.stlStandard Tesselated Geometry - 4.77 kB - 06/13/2023 at 12:46 |
|
|
maintiens 3D .stlStandard Tesselated Geometry - 3.21 kB - 06/13/2023 at 12:46 |
|
|
couvercle.svgsvg+xml - 1.96 kB - 06/13/2023 at 12:46 |
|
|
The gears responsible for opening the petals were designed using a gear simulator, which we modified to suit our project requirements. Some modifications included removing certain teeth and adding a hole in the center. Throughout the process, we encountered challenges with the dimensions and had to make multiple attempts to achieve the desired outcome.
CODE :
//Define LED RGB
int rougePin = 9;
int vertPin = 10;
int bleuPin = 11;
//Define light sensor
int capteurLumiere = A0;
//variable initialisationto stock the value reading by the light sensor
int valeurLumiere = 0;
#include "Servo.h"
Servo servo; // creation of the object "servo"
void setup() {
pinMode(rougePin, OUTPUT);
pinMode(vertPin, OUTPUT);
pinMode(bleuPin, OUTPUT);
Serial.begin(9600);
servo.attach(12); // attache le servo au pin spécifié
}
void loop() {
//to read the value of the light sensor
valeurLumiere = analogRead(capteurLumiere);
//to show the value lof the light in the "moniteur série"
Serial.print("Valeur de lumière : ");
Serial.println(valeurLumiere);
//if the value of the light is lower than 500, then turn on the LED RGB
if (valeurLumiere < 500) {
digitalWrite(rougePin, HIGH);
delay(500);
digitalWrite(rougePin, LOW);
digitalWrite(vertPin, HIGH);
delay(500);
digitalWrite(vertPin, LOW);
digitalWrite(bleuPin, HIGH);
delay(500);
digitalWrite(bleuPin, LOW);
servo.write(90); // demande au servo de se déplacer à cette position
}
//if the value of the light is greater than or equal to 500, then turn off the LED RGB
else {
digitalWrite(rougePin, LOW);
digitalWrite(vertPin, LOW);
digitalWrite(bleuPin, LOW);
servo.write(0);
}
}
On Tinkercad to test before doing it in real.
Making two different gears, to have a translation with the motor.
Making a screw with five gears that will be link to the 5 petals.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
Thanks its amazing.. https://www.krowddarden.net/