📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 3 Day orders by 11am ET Friday December 13 📬❄️📦
0

ColorCam FLORA Progress in @element14 “Get Closer” Challenge!

Screen Shot 2013 09 25 at 1 20 49 AM

lindaandson

Linda Kaspers in The Netherlands writes:

I made quite some progress last week. And I’m pretty happy with the results so far. What you see in the pictures below is my (seemingly never-ending) struggle to try and make sure the colors picked up by the colorsensor are close enough to be recognised when they show up in the pixels.

When first I tried to make this work, the colors were all off. Green was yellow, blue was orange.. weird! In the Google+hangout, Becky came up with the idea of having the colorsensor take multiple readings and then taking the average as the color. It worked, it made the colors more similar to the color of the different objects I used, but still.. not close enough. In the pictures below you can see the difference.

If you could ignore the green pixel, it’s a preprogrammed color for one of the pixels that eventually gets a random color. Yeah yeah, it’s on my to-do-list!

In every picture the pixel on the left shows the color after taking 5 measurements and then picking the average. It’s not very bright as you can see.

And then every picture has one pixel that’s bright and has a color similar to the Legobrick next to it. Hurray! This is the fruit of hard work and a lot of nights of trial and error!

What we did: take the average of 5 measurements, convert it to HSV, pump up the saturation to maximum and convert back to RGB. Victor found the converter on: www.stackoverflow.com. We came up with the idea of HSV when we were thinking about a way to pick ‘random’ colors that aren’t too much like the original color (the one the sensor picked up) and each other (you can read about this here). And when we were thinking of ways to make the colors brighter, this is what we came up with.

The colors aren’t perfect, but they’re certainly better than they were! We’re still experimenting with the dark colors and white, those are the toughest!

Aside from playing with the colors from the color sensor, I also had a bit of fun coming up with ideas for the actual game! It had to involve at least some colors of course First I made sure that the buttons made from conductive fabric worked. And I must say they work excellent! It’s such fun to include those in my project! And real easy too. So the game works.. You can touch the button that corresponds with the same color as the viewfinder pixel and you’ll see a very nice green 4-pixel-lightshow (I had so much fun writing the code for this bit, it’s so nice to know what you’re doing and immediately see it in the pixels!). If you’d touch one of the other buttons, you’d see 4 red pixels. I asked my 5 year-old to play the game and this is what happened when he touched the wrong button! He also got it right, but I’ll have to make a video to show you later on.


Flora get closer challenge adafruit element14 150x150 Every Wednesday is Wearable Wednesday here at Adafruit! We’re bringing you the blinkiest, most fashionable, innovative, and useful wearables from around the web and in our own original projects featuring our wearable Arduino-compatible platform, FLORA. Be sure to post up your wearables projects in the forums or send us a link and you might be featured here on Wearable Wednesday! 

Eight makers are on a mission to create wearables projects that help you “Get Closer” to others with FLORA, in collaboration with element14. Follow along as they build their projects, posting updates in the element14 Arduino community, and see how their final projects turn out, right here on the Adafruit blog!


Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 15,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython 2019!

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — Patreon: 4 million patrons, $1 billion in payouts

Wearables — Shake it off

Electronics — Switch Mode Power

Biohacking — Vitamin-C + Gelatin for Accelerated Recovery

Python for Microcontrollers — 200 CircuitPython Libraries, Binho, BLE, and more! #Python #Adafruit #CircuitPython #PythonHardware @circuitpython @micropython @ThePSF @Adafruit

Adafruit IoT Monthly — Machine Learning 101, PWNing the ESP32, and more!

Microsoft MakeCode — Deep Breathing Encouragement with Circuit Playground Express!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.