SolderMonkey TripleSlider

Just wanted to give some feedback on the SolderMonkey TripleSlider module, which I just got today and have had a chance to play with a little bit.

Nice module, and easy to use. Plugs into any “A” socket, and provides ReadSliderProportion method from which you can read the position of any of the 3 sliders, by passing in the ID of desired slider (there’s an enumeration that makes this easy, too). The method returns a double value from 0 to 1.

I was able to hook it up to my blinkie project and use it to control the brightness of the red, green, and blue channels of one of my LPD8806 RGB LED strips. Works great for that. Looking forward to thinking up other scenarios for it.

Nice job, @ SolderMonkey!

1 Like

How about a quick video? I’m a fan of those blinkies, you know :slight_smile: Will be snagging a couple of those handy modules shortly. Thinking the octoslider would be great for the MeeBlip micro (w/LEDs :))

Ooh! Great idea for the slider. I like the TripleSlider because you can get readings off all 3 sliders at once. From the description of the Octoslider, you can’t read them all at the same time, so it’s a little more involved to use (not surprising, since it’s using a single A socket for 8 analog inputs).

As for a video…I’ll try to do something over the weekend. I’ve got 2 days of full-day work events tomorrow and Saturday, so I’ll see if I can’t get something posted by Monday.

The description was more of a warning. If you were to put the read into a while loop (remember: while loops are bad so dont do it if you want anything else to work right) you should get about 1/4 of the performance over reading the 3 analog pins dirrectly. This is becuase on the octoslide you are reading 2 pins changing the address, reading 2 pins change the address, reading 2 pins change the address…

But we shouldn’t really expect real time performance out of a netmf device to begin with.
I’ll try and get a fancy video out one of these days of the blinky widget I made with 3 mulitLEDs and the tripleslide.

Cool. Would be great to see a writeup on your blog on using the Octoslider. Definitely the most bang for the buck in terms of how many sliders it has. But it would be helpful to see it in action so I understand better what the code looks like.

How bout a fun and wacky video of it in use?
OctoSlideDemo - YouTube

and the code…

        void aTimer_Tick(GT.Timer timer)
        {
            saturation1 = octoSlide.GetSliderPosition(OctoSlide.sliderID.slider7);
            //saturation2 = octoSlide.GetSliderPosition(OctoSlide.sliderID.slider7);

            colors[3] = GT.Color.FromRGB((byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider0)),
                                            (byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider1)),
                                            (byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider2)));

            colors[4] = GT.Color.FromRGB((byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider3)),
                                            (byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider4)),
                                            (byte)(255 * octoSlide.GetSliderPosition(OctoSlide.sliderID.slider5)));

            colors[5] = GT.Color.FromRGB((byte)(255 * saturation1), (byte)(255 * saturation1), (byte)(255 * saturation1));

            if (colors[0] != colors[3])
            {
                colors[0] = colors[3];
                multicolorLed.TurnColor(colors[0]);
            }

            if (colors[1] != colors[4])
            {
                colors[1] = colors[4];
                multicolorLed1.TurnColor(colors[1]);
            }

            if (colors[2] != colors[5])
            {
                colors[2] = colors[5];
                multicolorLed2.TurnColor(colors[2]);
            }            
        }

Very nice!

@ soldermonkey - That looks very good. I like your module rig, for a moment I thought you had the Octoslide wired to an old full length ISA card (anyone remember those ISA slot modems or MFM HD Controllers)