Now that we’ve got most of the hardware components working now, we just needed to finalize and polish the code so the sign is better looking, and that the lights work well so our intention is clear.

lightsworking.mov

The wires are a bit finicky at times. I've been trying a couple of options to debug why the time of flight distance sensor doesn't work from time to time:

  1. Increase the delay in the while loop to wait for Serial to begin i.e. to delay(100)
  2. Add an address to lox.begin(0x30)
  3. Make sure all the wires are snug, the jumper wires that came with our kit are sometimes a bit loose
  4. Sometimes the distance sensor needs to be triggered with an example code, if my code had a bug in it, it would “crash” it and not run again until I upload a different working code
  5. Sometimes switching out USB ports help
  6. David offered this diagram (from this Sparkfun article) as a suggestion to maybe why our sensor is finicky, and to double-check that it is soldered correctly:

Untitled

Messy alligator clips situation

Messy alligator clips situation

The soldered ends kept snapping off

The soldered ends kept snapping off

Since the pieces are so finicky I've started reading the best practices guides for both the neopixels and sensors, and here's what I've learned:

  1. Bench power supplies can easily destroy neopixels bc it spikes in voltage on start
  2. A 300-500 ohm resistor should be added between the microcontroller and neopixels data input
  3. The white light operates differently from RGB-colored lights, and besides HSV you can also omit the SV numbers for a pure color with just the H

Debugging the NeoPixel:

Because we cut the LED strip in half to align it across the two words, we soldered it back together using wires. However the wires would snap off, so we shortened our wires, and had to cut off one of the LED light to solder onto a newer piece.

Measuring our lights with our laser cut sign before re-soldering

Measuring our lights with our laser cut sign before re-soldering

After our in-class review session, I tried to quickly mock-up what our sign could look like with a face of paint, in different colors.