NodeMCU enclosure (neoPixel project)

()

This is a compact NodeMCU enclosure for a neopixel project. Use this as a template for you own NodeMCU projects.

You need:

  • 3mm acrylic
  • 4 3mx16 Nuts and bolts.
  • nodeMCU.
  • MicroUSB cable with a compact connector.

Download code and pdf from here

The project was made to make a compact neoPixel case that could run from a USB power bank (e.g. to hang on a backpack etc.)

Processing code:

  {
    int m = 3;
    for (int i = 0; i < 4; i++)
    {
      mfab piece = canvas.addSolidRect(0, 10+i*canvas.toGrid(40), canvas.toGrid(62+7), canvas.toGrid(30), 1);
      piece.convertToPiece("element: " + i);
      piece.addCircle(1,1,canvas.toGrid(m));
      piece.addCircle(piece.width-1,1,canvas.toGrid(m));
      piece.addCircle(piece.width-1,piece.height-1,canvas.toGrid(m));
      piece.addCircle(1,piece.height-1,canvas.toGrid(m));

      if(i > 0 && i < 3)
      {
       piece.addSolidRect(2,0.7,canvas.toGrid(49),canvas.toGrid(26));
       piece.addSolidRect(0,0.7+canvas.toGrid(26)/2-canvas.toGrid(10)/2,canvas.toGrid(8),canvas.toGrid(10));
      }
      if(i==2)
      {
        piece.addSolidRect(piece.width-canvas.toGrid(8+7),0.7+canvas.toGrid(26)/2-canvas.toGrid(12.4)/2,canvas.toGrid(8+8),canvas.toGrid(12.4));  
      }
    }
Share on : Twitter, Facebook or Google+