Introduction: Constellation-Scorpio

Constellation wall decoration

Most people believe in astrology because their constellation has some common traits of a person’s personality. Without spending time learning about other people, we can have a little insight and personality based on the constellation.

Step 1: Parts, Tools, Supplies

Step 2: Circuit Diagram and Test

Building a diagram that makes the Neopixel lights up gradually, putting a distance sensor and connects with these two.

First, we should test whether the diagram works or not, then to soldering all the wires we need.

Once it confirms, then we can move on the further soldering.

Here is the coding, copy and paste the below:

<p><br>/*</p><p>* Ultrasonic Sensor HC-SR04 and Arduino Tutorial * * by Dejan Nedelkovski, * * */ // NeoPixel Ring simple sketch (c) 2013 Shae Erisson // Released under the GPLv3 license to match the rest of the // Adafruit NeoPixel library</p><p>#include  #ifdef __AVR__  #include  // Required for 16 MHz Adafruit Trinket #endif</p><p>// Which pin on the Arduino is connected to the NeoPixels? #define PIN        8 // On Trinket or Gemma, suggest changing this to 1</p><p>// How many NeoPixels are attached to the Arduino? #define NUMPIXELS 18 // Popular NeoPixel ring size</p><p>// When setting up the NeoPixel library, we tell it how many pixels, // and which pin to use to send signals. Note that for older NeoPixel // strips you might need to change the third parameter -- see the // strandtest example for more information on possible values. Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);</p><p>#define DELAYVAL 500 // Time (in milliseconds) to pause between pixels</p><p>// defines pins numbers const int trigPin = 9; const int echoPin = 10; // defines variables long duration; int distance;</p><p>#include </p><p>#define BRIGHTNESS 50 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_RGB Pixels are wired for RGB bitstream // NEO_GRB Pixels are wired for GRB bitstream, correct if colors are swapped upon testing // NEO_RGBW Pixels are wired for RGBW bitstream // NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels) // NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick</p><p>void setup() { pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output pinMode(echoPin, INPUT); // Sets the echoPin as an Input Serial.begin(9600);  // These lines are specifically to support the Adafruit Trinket 5V 16 MHz.   // Any other board, you can remove this part (but no harm leaving it): #if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)   clock_prescale_set(clock_div_1); #endif   // END of Trinket-specific code.</p><p>  pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) }</p><p>void loop() { digitalWrite(trigPin, LOW); delayMicroseconds(2); // Sets the trigPin on HIGH state for 10 micro seconds digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Reads the echoPin, returns the sound wave travel time in microseconds duration = pulseIn(echoPin, HIGH); // Calculating the distance distance= duration*0.034/2; // Prints the distance on the Serial Monitor Serial.print("Distance: "); Serial.println(distance);</p><p>if(distance<30){ Serial.println("Colourful");   customFunction(pixels.Color(145, 51, 205),10);   delay(2000); } else{      //customFunction(strip.Color(255,179,191), 1000);  customFunction(pixels.Color(255, 255, 255),10);  delay(2000);  Serial.println("White");  //delay(5);   }</p><p>//customFunction(strip.Color(232,168,44), 100); //customFunction(strip.Color(255,71,61), 100); //customFunction(strip.Color(127,44,232), 100); //customFunction(strip.Color(66,206,255), 100);</p><p>}</p><p>void customFunction(uint32_t c, uint8_t wait){    //pixels.clear(); // Set all pixel colors to 'off'   // The first NeoPixel in a strand is #0, second is 1, all the way up   // to the count of pixels minus one.   for(int i=0; i</p><p>;   // Send the updated pixel colors to the hardware.</p><p>    delay(300); // Pause before next pass through loop   } //; }</p>

Step 3: Circuit Construction From Prototype to Soldered

It takes you a long time to soldering all the wires, which is a good time for training your patience! As for me, I have repeated these actions thousands of times.

Step 4: Working Process 1

You can cut some paper stickers to make sure of the positions where you want. Go to youtube to find some sky painting tutorials. After that, you can start to spray paint. Please make sure the place is suitable for painting.

You can prepare two canvas, one for testing, the other one for the final.

As the materials that I mentioned before, you can decide to put the transparent semi-plastic balls or not. I was not satisfied with what it looked like once I covered all the holes with these.

Step 5: Working Process 2

Now, make sure the circuit lights up and strong enough, then put it behinds the canvas. I am using the black tapes to stick the circuit and the canvas. Just remember to keep some space to install the breadboard.