====== Insoleuse Cyanotype ======
* Porteur du projet : Fenshu & Sophie [[:user:resonance|resonance]]
* Date : 08/02/2022/ - ...
* Licence : [[http://creativecommons.org/licenses/by-sa/3.0/legalcode|CC-by-sa-3.0]]
* Description : Led UV 370nm + valise + minuteur arduino
* Fichiers sources : //mettre un lien//
* Lien : //mettre un lien//
{{tag>led, uv, arduino, cyanotype}}
===== Description =====
Led UV 370nm + valise + minuteur arduino
{{projets:insoleuse_cyanotype:accueil:1_ksdzntl2qtbkpmiwxeayva.jpeg?800|Insoleuse Cyanotype}}
===== Matériaux =====
Liste de matériel et composants nécessaires.
===== Tutoriel =====
* fixer led 370nm sur couvercle valise
* faire un montage arduino + relay + potentiometre + button push + (interrupteur principal qui coupe la source du courant..)
int buttonState = 0;
long minuteur = 0;
void setup()
{
pinMode(2, INPUT);
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
}
void loop()
{
// read the state of the pushbutton value
buttonState = digitalRead(2);
minuteur = analogRead(A0); //analoge (0-1023 : 1minute = 58,65 A0*58.65*10
// 1minute :
minuteur = map(minuteur, 0, 1023, 0, 600); //120:2min 600:10minute
Serial.println(minuteur); //temps en seconde 300= 5minute environ
if (buttonState == HIGH) {
// turn LED/relay on
digitalWrite(LED_BUILTIN, HIGH);
Serial.println(minuteur*1000);
delay (minuteur*1000);
digitalWrite(LED_BUILTIN, LOW);
}
delay(100); // Delay a little bit to improve simulation performance
}
===== Photos =====
Code pour afficher les images du projet :
{{gallery>?&crop&lightbox}}