Introduction: Lampe Pentagonale (à L'arrache). Pentagonal Lamp (the Rought Way).

Français : Inspirée par cet instructable : https://www.instructables.com/id/Porus-Lamp/ j'ai réalisé un petit modèle éclairé par un chemin de led neopixel d'adafruit. Cette lampe tourne également sur son pied d'un quart de tour aller et retour.

J'ai fait ce truc inutile (mais néanmoins joli) pour apprendre à utiliser les leds néopixel, l'arduino, les petits moteurs.

Allonzy allonzo.

English (kind of) : Inspired by this instructable : https://www.instructables.com/id/Porus-Lamp , I realized a small model lighed by a neopixel ribbon from adafruit. This lamp is turning on his feet back and forth a quater of circle.

I made this useless (yet nice) thing to learn using neopixel leds, arduino and driving littles engines.

So let's learn deeper together.

Step 1: Liste Des Composants Et Outils. BOM and Tools

Français

Nous aurons besoin de :

  1. Carton.
  2. Colle à carton.
  3. Arduino (n'importe lequel).
  4. Ruban Néopixel http://www.adafruit.com/products/1461
  5. Un servo, j'utilise tower pro 9
  6. Cutter, règle, crayon
  7. Un breadboard
  8. Du jus (une alim atx c'est parfait)
  9. Wires

English

We will need :

  1. Carboard
  2. Glue
  3. Arduino (either)
  4. Néopixel ribbon http://www.adafruit.com/products/1461
  5. A servo, I used a tower pro 9
  6. Cutter, ruler, pencil
  7. A breadboard
  8. Juice (atx alim will do)
  9. Des fils.

Step 2: Draw, Cut and Glue Cardboard to Make a Face. Tracer, Couper, Coller Le Carton Pour Faire Une Face

English first :

Now we are going to cut the cardboard. Slices 1.5 cm large, plenty of, don't worry about lenght because we are going to leave holes later.

So mesure, draw and cut (slowly) be carefull as it is quite long to get plenty slices, be patient and mind your fingers !

Then we glue them together on a flat surface to obtain one side with (at least) a nice plane face.

You've got to make 5 of these faces to obtain a pentagon !

Français second :

Maintenant on coupe le carton en tranches d'1,5 cm, on en coupe beaucoup. Ne vous préoccupez pas de la longueur, nous allons laisser des trous plus tard.

Donc, on mesure, on trace, et on coupe tranquillou , comme il en faut des wagons, il faut rester patient afin de ne pas se blesser.

Ensuite on les colle ensemble sur une surface plate pour faire un coté avec (au moins) une jolie face plane.

Il faut en fabriquer 5 pour faire un pentagone !

Step 3: Making the Pentagone, Square, Triangle or Whatever. Contruire Le Pentagone Ou ?

Français :

Il nous faut maintenant coller les 5 faces. D'abord, ajuster les angles sur toute la longueur avec un cutter. Puis, on utilise des gabarits, un (ou 2) à l'intérieur et un à l'extérieur et de la ficelle ou des fils électriques pour faire faire tenir l'ensemble le temps du séchage.

English:

We now are going to glue the 5 faces. First, adjust the angles all lenght long with a cutter. Then we will use cardboard templates inside and outside and wire to make it stand all together during drying of the glue.

Step 4: Pied De Lampe. Lamp Stand.

Français :

N'importe quoi qui peut tenir un axe vertical fait l'affaire. J'ai utilisé un support métallique, un axe fileté, 2 ou 3 écrous, 2 roulements, un morceau d'acrylique coupé en léger arrondi afin de s'ajuster au cercle de plastique (trouvé dans un meuble de bureau). Le morceau d'acrylique est fendu (à la scie à métaux) sur une longueur de 2 à 3 cm et permet au moteur de faire tourner l'ensemble.

Le moteur est fixé en appui sur les écrous et serré avec des colliers de cable (rilsan). Un tube de carton, sur lequel viendra s'enrouler le ruban néopixel est découpé à sa base .

English :

Anything holding a vertical axis will do. I used an iron support, a rod, 2 or 3 nuts, 2 bearings, a piece of acrylic has been cut rounded to adjust to the plastic circle. The acrylic piece is cut (with an hacksaw) 2 or 3 cm long and permits the engine to make everything turn.

The engine is leand on the nuts and tighten with Rilsan collar clamp. A cardboard tube, on which will roll up the neopixel ribbon, is cut at his base.

Step 5: Arduino & Neopixel.

English :

You have got to read this before using neopixel : https://learn.adafruit.com/adafruit-neopixel-uberguide/overview and you should follow the guide if you're using néopixel for the first time. You'll have to download and install the library too (as explained in the above url). You can even use the sample to light on your neopixel (that's what I did).

To power everything I used an old atx power where I shunt green and black wire on the big connector. Then you have 5 v between Red & Black to power your neopixel. You will be able to power the little servo too and even the arduino with 12v between blue & Black.

As explained in adafruit's neopixel tuto, you'll have to had a capacitor (1000 µF) between +5v and ground and a little resistor (470 ohm)

Français :

Vous devez absolument lire ceci avant d'utiliser le ruban neopixel : https://learn.adafruit.com/adafruit-neopixel-uberguide/overview , ainsi que suivre le guide si vous utilisez les neopixel pour la première fois. Vous devrez installer les librairies arduino pour neopixel (tel que décrit dans l'url ci-dessus). J'ai, pour ma part, utilisé le sample pour allumer les neopixel.

Pour alimenter le tout, j'ai utilisé un vieux boitier d'alim atx en shuntant les fils vert et noir du gros connecteur. Il y a ensuite 5v entre les fils rouges et noir pour alimenter le ruban neopixel et le servo-moteur ainsi que l'arduino en 12 v entre les fils bleus et noir.

Comme l'explique le tuto d'adafruit, vous devez mettre un condensateur (1000 µF) sur l'alim des neopixels ainsi qu'une résistance (470 ohm) en série sur le fil data du ruban.

Step 6: Conclusion.

English :

As I am a bit lazy (and not at ease with coding), I used 2 arduinos ! One to make light in the ribbon and the other to make the engine work. If someone can mix the 2 codes, he's welcome...

Sorry for my poor English too.

And, yes, it was my first instructable !

Français :

Comme je suis un peu fainéant (et pas très doué pour le code), j'ai utilisé 2 arduinos, un pour le ruban neopixel et un pour le moteur. Si quelqu'un sait mixer les 2, il est le bienvenu..

Et, oui, c'est mon premier instructable !

The code to make the engine turn :

#include
Servo myservo;
int pos = 0;
void setup()
{
myservo.attach(9);
myservo.write(90 );
}
void loop()
{
for(pos = 0; pos < 90; pos += 1) // goes from 0 degrees to 90 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(40); // waits 15ms for the servo to reach the position
}
for(pos = 90; pos>=1; pos-=1) // goes from 90 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(40); // waits 40ms for the servo to reach the position
}
}

Regards,

Christophe.