| Electronics > Projects, Designs, and Technical Stuff |
| Borderlands style jewelry box research thread |
| << < (15/17) > >> |
| Youkai:
Hey guys. It's been forever but I'm back! Did a little soldering today to try and set up one of the NeoPixel units. Can some of you take a look at the attached image and see if you can confirm that I wired it properly. Mostly I'm worried that I misinterpreted the schematic and treated something as "all joining together" when they should be in sequence. Also there is the very real possibility that I put the diode's in backwards because I wasn't smart enough to figure that out correctly :) I have the images aligned so that the right edge is the same on both. So it's mirrored top/bottom. Please let me know if the images are insufficient and better pictures would help. |
| zitt:
I was going to do something similar for my Borderlands Pinball project... https://pinside.com/pinball/forum/topic/borderlands-the-pinball Sadily; I haven't gotten around to even starting the project. With Borderland3 "on the way" now would be a great opportunity to revisit. Good luck with your project … it'd have a great reuse capability for my project if I ever get back to it. |
| Ian.M:
Veroboard layout + visible component markings match the schematic. |
| Youkai:
--- Quote from: Ian.M on May 06, 2019, 08:14:58 am ---Veroboard layout + visible component markings match the schematic. --- End quote --- Awesome! Thanks. Now to wire it up to an Arduino and confirm it works. |
| Youkai:
No dice so far. I am using an Arduino Uno. I plugged the power (Yellow) into the 5v pin, Ground (Black) into the GND pin, and data (Green) into pin 6. Then I used the below code to run the strip. A simple cycle test of R, G, B, W. Getting no light at all. Does anybody see an issue with my code? If not then I think the next step is to wire up just some wire leads on a bare NeoPixel strip and see if I can get that working with none of the other stuff. Is that a good next step? Is it possible that I just damaged one of the components during soldering and the whole assembly is broken at some point? --- Code: ---#include <Adafruit_NeoPixel.h> #define neoPixelPin 6 #define neoPixelCount 8 Adafruit_NeoPixel lidPixel(neoPixelCount, neoPixelCount, NEO_RGBW + NEO_KHZ800); void setup() { lidPixel.begin(); lidPixel.show(); Serial.begin(9600); Serial.println("Starting"); } void loop() { for (int i = 0; i < lidPixel.numPixels(); i++) { lidPixel.setPixelColor(i, lidPixel.Color(255, 0, 0, 0)); } lidPixel.show(); Serial.println("Red"); delay(1000); for (int i = 0; i < lidPixel.numPixels(); i++) { lidPixel.setPixelColor(i, lidPixel.Color(0, 255, 0, 0)); } lidPixel.show(); Serial.println("Green"); delay(1000); for (int i = 0; i < lidPixel.numPixels(); i++) { lidPixel.setPixelColor(i, lidPixel.Color(0, 0, 255, 0)); } lidPixel.show(); Serial.println("Blue"); delay(1000); for (int i = 0; i < lidPixel.numPixels(); i++) { lidPixel.setPixelColor(i, lidPixel.Color(0, 0, 0, 255)); } lidPixel.show(); Serial.println("White"); delay(1000); } --- End code --- EDIT: I soldered wires on a second strip because I'm going to need it anyway. One of the leads was kind of a mess and I had to use some desoldering wire to clean it up. Anyway this strip with just the wires and nothing else didn't work either. So either I messed up the second pixel as well or there is something wrong with my code. I'm hoping for the latter. I certainly hope the NeoPixels aren't this fragile, I can't imagine how they could possibly be used in anything if they were. |
| Navigation |
| Message Index |
| Next page |
| Previous page |