codable remote lock for treasure chest

It is a codable four-digit lock that can be activated remotely. The default code is 1234 but can be modified by editing the program.

It uses :
-2 micro:bit cards ;
-a servo motor sg90 ;
-a 5V battery (like powerbank) to power the servo motor.
-a USB cable to power the servo motor like this one for example: https://www.amazon.fr/gp/product/B00M552AE2/ref=ppx_yo_dt_b_asin_title_o07__o00_s00?ie=UTF8&psc=1 ;
-2 springs.

The pieces are based on the Taiwantoni lock and his idea of using a BBC micro: bit card:
https://www.thingiverse.com/thing:3210023

The other models used are:
https://www.thingiverse.com/thing:2225904
https://www.thingiverse.com/thing:2225896
https://www.thingiverse.com/thing:2968545

The program for the remote BBC micro:bit card :

https://makecode.microbit.org/_eiRakVFD6b5h

the program for the card that controls the opening of the lock

https://makecode.microbit.org/_P87eXeffwFw9


C'est une serrure codable à quatre 4 chiffre activable à distance. Le code par défaut est 1234 mais est modifiable en éditant le programme.
Le décodage se fait sur la télécommande. En réalité, la carte commandant la serrure reçoit le chiffre 0 ou 1 pour déverrouiller ou verrouiller le coffre.
On peut très bien adapter le programme de la télécommande pour commander l'ouverture du coffre par d'autres actions sur la carte microbit (appui sur boutons A et B, orienter la carte de manière différente grâce à son accéléromètre intégré, éclairer la carte d'une certaine manière, etc).

Elle utilise :
-2 cartes micro:bit ,
-un servo-moteur sg90
-une batterie 5V (type powerbank) pour alimenter le servo-moteur.
-un cable USB pour alimenter le servo moteur comme celui-là par exemple : https://www.amazon.fr/gp/product/B00M552AE2/ref=ppx_yo_dt_b_asin_title_o07__o00_s00?ie=UTF8&psc=1
-2 ressorts (achetés en magasin de bricolage)

Les pièces sont basées sur la serrure de Taiwantoni et son idée d'utiliser une carte BBC micro:bit :
https://www.thingiverse.com/thing:3210023
Les autres modèles utilisés sont :
https://www.thingiverse.com/thing:2225904
https://www.thingiverse.com/thing:2225896
https://www.thingiverse.com/thing:2968545

Le programme pour la carte micro:bit faisant office de télécommande :

https://makecode.microbit.org/_eiRakVFD6b5h

Le programme pour la carte micro:bit qui contrôle la serrure :

https://makecode.microbit.org/_P87eXeffwFw9