Scène du crime:
- Windows peut parfois mettre des heures à s'arrêter ou démarrer.
- l'aide technique vocale (Jaws) n'est pas disponible pour suivre cette activité
- les machines les plus récentes, avec un disque dur statique et sans ventilateur sont absolument silencieuses.
Feuille de route:
pour le matériel, voir:
ArduinoWindowsAliveMatos
goodies: utilisable sans installation.
Soluce à 2 € assemblée à partir d'un
DigiSpark et d'un buzzer 5V actif.
Le buzzer est [assez mal, je sais, refait après photo!] soudé entre les trous GND et P2
Code pour
ArduinO
/*
Windows Alive by antiguide@free.fr, 20210419
following Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care
of use the correct LED pin whatever is the board used.
If you want to know what pin the on-board LED is connected to on your Arduino model, check
the Technical Specs of your board at
https://www.arduino.cc/en/Main/Products
This example code is in the public domain.
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
*/
#define LED_BUILTIN 1
#define ACTIVE_BUZZER 2 // don't use 3 nor 4 (conflict with usb)
#define MS_WAIT 5000 // times in milliseconds
#define MS_BEEP 1
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN and ACTIVE_BUZZER as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(ACTIVE_BUZZER, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(ACTIVE_BUZZER, HIGH); // start buzzer
delay(MS_BEEP); // wait for beep duration
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
digitalWrite(ACTIVE_BUZZER, LOW); // shut off buzzer
delay(MS_WAIT); // wait
}
notes du programmeur:
échec exécution sur
AcerM1641W7ArduinoDigispark, Ok sur
DellVostro1720W7
buzzer actif entre p0 et Grnd
repris
DigiSparkKickStarterDil Attiny85Nacked
programmé blink sur vostro
conso 20 mA
voir dessin
au dos sens lecture au bord de bas en haut P3, gnd, p0, 5V
au centre P4 p5 p2 p1
led_buitin 1 fait chicoter diode et P1
led_buitin 3 fait chicoter p3
ok aussi sur
DigisparkKickStarterUsbAMale (enfin sur celui qui n'était pas mort, avant que je ne le tue!)
fin de partie: tué aussi le deuxième (sans doute court-circuit 5V masse)