FLORA ColorCam: it all about the colors @element14 #GetCloser




It’s exciting to see the element14 + Adafruit “Get Closer” challenge competitors work on their projects! In the Netherlands and on the element14 Arduino community, Linda Kaspers writes:

Holidays are over! So I finally have the time to work on my ColorCam again! I was getting kinda tired of having to set up my circuit with the alligatorclips over and over again. So I took some time to sew all my pieces to a bit of fabric. This saves me a lot of time setting up, and it gives me a nice prototype to work with!

I’m making pretty slow progress on writing the code. I never figured it would be this hard! I have a very good teacher, again thanks Victor, and he explains everything to me, so that I actually know what I’m doing. I take a lot of notes, and make drawings of things, it helps!

But luckily for me, I do make some progress! So far I can push the shutter button, the colorsensor picks up a color and the first pixel shows that color.

I’m happy with having come so far already, but there’s still a lot of work to be done! And there’s some pretty tough stuff coming up.. I think the hardest thing will be the colors. There are 4 neopixels involved on the back of the camera. First is the viewfinder pixel, I want the color of this pixel to look (as much as possible) like the color of the object held in front of the colorsensor. Second are the three pixels beneath the viewfinder. One of these three pixels (which pixel will be randomly picked in each new game) will have the some color as the viewfinder pixel. The other two pixels will have different colors. So there will be 4 pixels on the back, 2 of those will have the exact same color (viewfinder and random other pixel), and the other 2 will have different colors. And this is where it gets tough. There has to be a way to make sure that the two pixels have colors that don’t look too much like that of the first pixel, and don’t look too much like each other. During a nice night under the stars in front of our tent, we came up with an idea, actually a formula.

We had a couple ideas that were soon dismissed because they simply added predetermined numbers to the color values the sensor picked up. But that means that, for example, if you hold your camera in front of a blue object, the other two colors will always be, say green and purple. There is no randomness (is that a word? hmm) in the colorgame. And I want randomness.

Does this picture make any sense to you guys? I hope so.. I don’t know if I can explain it very well. But the point is that the new colors will always be at least 20 degrees from the essential color the sensor picked up, and 40 degrees from each other. And this way the three pixels will have three very different (but still sort of random) colors. And if you hold your camera in front of the samen object twice, only the the color picked up by the sensor will be the same, the other two colors can differ.

The idea comes from my Philips Living Colors lamp. It has this nice round remote with all the available colors in a circle. I’m working with two different systems in colors. Neopixels and color sensor work in RGB, but HSB (hue saturation brightness) works very well for picking the “random” colors. I found a rgb-hsb-rgb converter, so I’m hoping that won’t be a problem.

So this week I’m going to try and see if I can fit my color ideas in my project. I’m pretty nervous about this, it’s really difficult for me! And I’m hoping that if I can pull this off, the rest won’t be as hard.. Fingers crossed!!


Flora breadboard is 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!

Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

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.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm 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!

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

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org

Maker Business — “Packaging” chips in the US

Wearables — Enclosures help fight body humidity in costumes

Electronics — Transformers: More than meets the eye!

Python for Microcontrollers — Python on Microcontrollers Newsletter: Silicon Labs introduces CircuitPython support, and more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Guardian Robot, Weather-wise Umbrella Stand, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — #NewProds 7/19/23 Feat. Adafruit Matrix Portal S3 CircuitPython Powered Internet Display!

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.