5173

I was looking for a small additional light for nighttime travel, not connected to the electrical network, providing animated lighting. I made it and propose the publication of this fun object

Working principle

When you turn the object on its lid, the tilt ball powers the assembly, the lantern lights up, the CPU unfolds the uploaded code, the LED plays the requested sequences.
If the object ends up in the lid-up position, the lantern turns off.
The code LampiOneLed_RGB.ino is associated with a common RGB Anode LED

You can use a common cathode RGB LED by adjusting the definition:
#define LED_ANODE_COM (1) // Select 0 for Led Cathode Com, select 1 for Led Anode com

Lien vidéo

Lampion One Led RGB - Youtube

//FR

Principe de fonctionnement  : 

Lorsqu'on retourne l'objet sur son couvercle, le tilt ball alimente le montage, le lampion s'allume, l'UC déroule le code téléversé, la Led joue les séquences demandées.
Si l'objet se retrouve en position couvercle en haut, le lampion se coupe. See PDF  EN or FR
Le code LampiOneLed_RGB.ino est associé à une led RGB Anode commune

Vous pouvez utiliser une led RGB cathode commune en ajustant la définition : 
#define LED_ANODE_COM (1)   // Select 0 for Led Cathode Com, select 1 for Led Anode com