This was so cool, as well as the first step to my project. Since it was a vector job, I had to stand there and watch until it was completed. NO complaints from me though it was very mesmorizing!! <3 Watch the laser cutting gods made the most perfect eclipse for my base.
I wanted to build the integral parts of the garden first, so I used the laser cutter to cut the two pieces in my design; one with my desired vector pattern for the gate and one that is the foundation. However, because the gate was so thin, I had a lot of trouble making it stand upright with wood glue. I held the piece upright for 30 minutes like a human clamp before I finally gave up and opted for a horizontal glue down instead. Honestly speaking, in this moment I felt somewhat defeated, especially coupled with the light sensor not really working out for me as well.
LedPin was the culprit! digitalwrite() needed take in LedPin instead of LED_BUILTIN
#include <Adafruit_CircuitPlayground.h>
int value;
int ledPin = 9;
void setup() {
Serial.begin(9600);
CircuitPlayground.begin();
// initialize digital pin LED_BUILTIN as an output.
// IT's REALLY IMPORTANT THIS LINE IS AFTER THE CircuitPlayground.begin() line
// otherwise the LED will be extremely dim
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
value = CircuitPlayground.lightSensor();
Serial.print("Light Sensor: ");
Serial.println(value);
// if there is not enough light
if ( value < 400 )
// turn on the LED
digitalWrite( LED_BUILTIN, HIGH );}
else
// otherwise, turn it off
digitalWrite( LED_BUILTIN, LOW );
delay(100);
After figuring the light sensor situation out, my morale was boosted which made me want to try again. This time, I will make my gate stand up no matter what.
Jenny was super helpful in brainstorming easy ways to make the gate upright. I ended up gluing 2 pieces to the back so that there is extra support for the gate to stand on.
Jenny also suggested that I clamp them down while it dries. SUPER helpful.
Since the gate piece was too thin and long, it was hard to clamp it down.
However, if we added the clamps to the bottom and the newly glued support system, it allowed gravity to work in our favor.
This version was when the green and yellow lights alternated when depiciting low light.
Green and yellow lights activates and dims simultaneously. I liked this version better so this was my final version.