I ended up doing the Chameleon Scarf demo since I had sewn in the Flora color sensor. I added and sewed in another LED so it can register and show the color the sensor read. The connection was strong, and the light was able to pick up 2 out of the 5 test. Some of colors weren’t strong enough for the sensor to register and convert the colors into.
I will try to work on the accelerator, since it won’t register any data now. I’m trouble shooting.
here is the screen shot of code for the Chameleon scarf.
Here are the successful test from running the program. I did understand a bit more of the conversations. Like sum can be written like + .. we learned this during class, but it clicked more during this test run.
I didn’t get too fancy with the NeoPixels but I did try to get all of mine connected in series. Unfortunately I could only get the first one to work after hooking all that up. I double checked all the connections and everything seemed lined up correctly. + to + and – to – and all the arrows pointing in a row. I decided it must be a jumper wire so I unhooked the three additional NeoPix that I’d connected to the functioning one and began connecting them out one at a time (note to self this is probably a good practice for the future) and when I didn’t get that 2nd one to light up I began swapping jumpers.
I totally lucked out that the first one I tried seemed to be faulty. This is the second jumper wire I’ve discovered like this and I’m wondering if with the multimeter I could test the wires for continuity. (I set the jumpers aside but tied them in a loose knot so I know not to use them unless I figure out how to fix them.)
I began switching numbers around and was able to figure out what all the parameters did. First it displays each specified color at the brightness determined on the scale of 0 to 255 for a time determined by the 4th number in each series. When I made the number smaller the delay was a shorter time. (Not sure what unit of time this number represents. I assumed it was milliseconds but it seem longer than this.)
I was confused by the difference between rainbow and rainbow cycle. I changed the parameters and deleted one and then the other line. It seems like the cycle is a longer smoother thing. The number which follows seems to make it happen faster or slower.
I decided to try adding the switch to my device so I could turn it on and off while I was rewriting code without plugging and unplugging the USB cable. The switch worked but I got this error message on my computer.
I’m not sure why adding a switch would cause the whole system to draw more power. I noticed that in the Getting Started with Arduino book there’s a resister included in the switch circuit. Maybe that’s why? Need to find out more about this.
After the last class which I couldn’t work my arduino stuff on my laptop, we tried to figure out the problem with Borris. Having tried many different things we achieved to make a blink -without knowing what we did- Then I thought all the problems are solved with my laptop and arduino.. But they aren’t.. I think the main problem is about “strandtest” because I imported strandtest manually to my library and it doesn’t work properly.
Here is my trials and failures:
First I started the Arduino application, and then connected the cords with a single RGB LED. Then I ran floratest and played with colors and delays.. Here are pics and videos:
Then, when I tried to make some trials with strandtest I couldn’t achieve it. Although I learned how to import things to library (we are not supposed to import files to the arduino file in program files, we should import them into the documents/arduino/libraries) And the second rule is legal file name, we should avoid using “-” in file names, but “_” works.
Here is my first attempt, to simply figure out how to put them in order. I had a bad alligator clip, but found the bad one and continued.
Here is my second attempt. I was happy to figure out setting up the second LED pretty fast by taking a look at the tutorials. I messed around with the colors, but had trouble getting it to change speeds or intervals. Fun trying to figure out how to read this.
I have never considered myself much of a techie guy so this process has been a challenge for me.
I began the experimentation process by going through the examples in the Arduino program, however, I could not get a set of two LED’s to turn on.
Frustrated; after a couple of tries, I decided to read this blog and see if that would help me in one way or another. I read and compared almost every set of code most of my classmates had played with (except Jung’s, I don’t own a toy I am willing to cut open, yet). 😀
Two of my failed attempts:
That shade of orange might now be my least favorite color.
finally, after what seemed an eternity, I was able to learn from Julia’s code! With her post I was not only able to make my own crowded little rainbow, but also play around with the speed at which the lights would change colors! Thank you Julia!
Below you’ll find a link to my Instagram account where I posted the video of my little success.