|
Post by tkcc71 on Jun 24, 2016 18:38:53 GMT
I stumbled across this forum via the instructables and saw the amazing suit by Honus (Truly amazing). I am currently in the finishing stages of my Mark 46 suit but unfortunately my Achilles heal is the electronics. I was wondering if anyone would be interested in guiding me through the process. I have purchased an Ardriuno uno and 4 servos and would like to start with the sketch for back and chest. Any assistance/guidance that anyone could provide I would be extremely grateful. Bear in mind I have very little programming experience and this sounds really embarrassing but I can barley figure out ohms law.
|
|
|
Post by Honus on Jun 25, 2016 14:28:42 GMT
Hi and welcome!
That suit looks awesome! For the chest light and back flaps what have you got so far? Have you tried a simple servo sketch just getting the servos to move?
|
|
|
Post by tkcc71 on Jul 10, 2016 3:31:05 GMT
Thanks, I have been playing around with it and have gotten a servo to move using the standard servo template in examples in the interface and unfortunately that's about it. I cant seem to find one that would work with a push hold button switch.
I am really new at programming and electronics. I've watched a couple of tutorials on the Stan Winston School of arts but that is about it.
I've also started testing out the unibeam using the pro-mini and some neopixel rings as well using the sketch below. However, I cant seem to get it to do the standard start up that you would see in the unibeam lighting going from one LED at a time in a circular direction and then slowly getting brighter.
//Superhero Power Plant
//fades all pixels subtly
//code by Tony Sherwood for Adafruit Industries
#include <Adafruit_NeoPixel.h>
#define PIN 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(23, PIN, NEO_GRB + NEO_KHZ800);
int alpha; // Current value of the pixels
int dir = 1; // Direction of the pixels... 1 = getting brighter, 0 = getting dimmer
int flip; // Randomly flip the direction every once in a while
int minAlpha = 130; // Min value of brightness
int maxAlpha = 140; // Max value of brightness
int alphaDelta = 5; // Delta of brightness between times through the loop
void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
flip = random(32);
if(flip > 20) {
dir = 1 - dir;
}
// Some example procedures showing how to display to the pixels:
if (dir == 1) {
alpha += alphaDelta;
}
if (dir == 0) {
alpha -= alphaDelta;
}
if (alpha < minAlpha) {
alpha = minAlpha;
dir = 1;
}
if (alpha > maxAlpha) {
alpha = maxAlpha;
dir = 0;
}
// Change the line below to alter the color of the lights
// The numbers represent the Red, Green, and Blue values
// of the lights, as a value between 0(off) and 1(max brightness)
//
// EX:
// colorWipe(strip.Color(alpha, 0, alpha/2)); // Pink
colorWipe(strip.Color(15, 15, alpha)); // Blue
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
}
}
|
|
|
Post by Honus on Jul 12, 2016 6:22:00 GMT
Hmmm.... I haven't used any of the NeoPixels so I don't have any experience with them. Have you checked the Adafruit forum or Arduino forums?
|
|
|
Post by Honus on Jul 15, 2016 3:14:17 GMT
|
|
|
Post by propmaster2000 on Jan 17, 2017 16:58:02 GMT
Hey tkcc71,
I too am a bit new to Arduino and Neopixel LED rings but I was able to load your sketch from above into a Neopixel wrist display using 8 of the Neo-LEDs. I noticed that is does not do what you described in the details. The LEDs do not scan one at a time around its perimeter as you wish. I am not sure how the sketch needs to be improved to do this, but I will give it a shot when I get the time.
Below is a video of how the code reacts.
.
|
|