Posted by admin

New AlpineCave.com logo

I still don't know what I'm doing with AlpineCave.com, It was too good of a domain name to pass up so I just had to get it.  however I was never really happy with the current logo.  It was clever, but the "A" didn't translate too well. It read more like alpinecave without the "A".

Tagged , ,

Arduino + Winamp vu meter

This is one of the pieces of code that I've delayed posting for a long time. For those that wanted it I'm deeply sorry that it has taken me this long.

This is a Script that really only works is you have all the pieces.

So first you need the plugin for winamp that Maceger provided to me.

http://www.macetech.com/wa502_sdk.zip

also my version is available on my download page

** for this to work you need to download and open the project in visual studio and do a search for "COM" and change it to your COM port of your computer. Then compile the dll, and put it into the  C:\Program Files\Winamp\Plugins folder ***

second you need softPWM (optional)

http://arduino.cc/forum/index.php/topic,19451.0.html

if you chose not to use it you will need to change SoftPWMSet to digitalWrite, and remove all SoftPWM code.

support topics on my project can be found at the fallowing links.

http://arduino.cc/forum/index.php/topic,40078.msg293360.html#msg293360

http://arduino.cc/forum/index.php/topic,27482.msg203610.html#msg203610

UPDATE:: source code.zip

~~~~ {lang="cpp" line="1"} /################################################# ### --- Winamp + arduio vu meter ---- ### ### --- Copyright 2010 - Dave Johnson --- ### ###--- Dave@SilverCG.com - www.SilverCG.com --- ### ###_________### ### --- this code includes a vu meter based off ### ### data from winamp and converts it to 3 rows ### ### of multiplexed leds. ---- ### #################################################/

include

define DELAY 80

int colpins[] = {2,3,4,5,6,7,8,9,10}; int rowpins[] = {11,12,13}; int power = 1; //--------------------------------------------- long timer; const long muxInterval = 10; int mux = 0; int full[27]; float lvl;

void setup() { Serial.begin(57600); // for (int pin=0; pin<9; pin++) { // pinMode( colpins[pin], OUTPUT ); // } for (int pin=0; pin<3; pin++) { pinMode( rowpins[pin], OUTPUT ); } timer = millis();

SoftPWMBegin();

for (int i = 0; i < 9; i++){ SoftPWMSet(colpins[i], 0); } } void loop(){

int divide = 5; //------------------------------------------------------------ float total; // for calculations below. <> int data[9]; // raw serial data <>

if (Serial.available() >10) { byte i = Serial.read(); if (int(i) == 255) { for (int c = 0; c < 9; c++){ data[c] = int(Serial.read());

} } } // some math -------------

lvl = (data[0] + data[1] + data[2] + data[3] + data[4] + data[5] + data[6] + data[7] + data[8]) / 9; //lvl = (data[1] + data[2] + data[3]) / divide; //lvl2 = (data[0] + data[7] + data[8]) / divide; //lvl3 = (data[4] + data[5] + data[6]) / divide; // math end -----------------

// reset leds --------------- for (int i = 0; i < 27; i++){ full[i] = 0; }

int length = 5; // sets how long the tail is, so as the meter goes up there is 9 or less leds on at a times... // feel free to change this to what you like. // ------------------------------- int mapvalue2; int mapvalue = map(lvl, 0, 255, 0, 27); if (mapvalue >= length){ mapvalue2 = mapvalue - length + 1; } if (mapvalue < length) { mapvalue2 = 0; } for (int x = mapvalue2; x <= mapvalue; x++){ full[x] = 1; } // set leds end--------------

// patterns feel free to change these to what ever you want the posiblities are endless. 0 - 26 is equel to 27 leds..

// int meterlist[9]= {full[0], full[1], full[2], full[13], full[14], full[15], full[16], full[17], full[26]}; // int meterlist2[9] = {full[5], full[4], full[3], full[12], full[11], full[20], full[19], full[18], full[25]}; // int meterlist3[9] = {full[6], full[7], full[8], full[9], full[10], full[21], full[22], full[23], full[24]}; // //int meterlist[9]= {full[0], full[1], full[2], full[3], full[4], full[5], full[6], full[7], full[8]}; //int meterlist2[9] = {full[17], full[16], full[15], full[14], full[13], full[12], full[11], full[10], full[9]}; //int meterlist3[9] = {full[18], full[19], full[20], full[21], full[22], full[23], full[24], full[25], full[26]};

int meterlist[9]= {full[2], full[3], full[8], full[9], full[14], full[15], full[20], full[21], full[26]}; int meterlist2[9] = {full[1], full[4], full[7], full[10], full[13], full[16], full[19], full[22], full[25]}; int meterlist3[9] = {full[0], full[5], full[6], full[11], full[12], full[17], full[18], full[23], full[24]};

//int meterlist[9]= {full[0], full[6], full[12], full[18], full[5], full[11], full[17], full[23], full[26]}; //int meterlist2[9] = {full[1], full[7], full[13], full[19], full[4], full[10], full[16], full[22], full[26]}; //int meterlist3[9] = {full[2], full[8], full[14], full[20], full[3], full[9], full[15], full[21], full[26]};

//map to 9 //int meterlist[9]= {full[0], full[1], full[2], full[3], full[4], full[5], full[6], full[7], full[8]}; //int meterlist2[9]= {full[0], full[1], full[2], full[3], full[4], full[5], full[6], full[7], full[8]}; //int meterlist3[9]= {full[0], full[1], full[2], full[3], full[4], full[5], full[6], full[7], full[8]};

//int meterlist[9]= {full[26], full[16], full[14], full[4], full[2], full[8], full[10], full[20], full[22]}; //int meterlist2[9] = {full[24], full[18], full[12], full[6], full[0], full[6], full[12], full[18], full[24]}; //int meterlist3[9] = {full[22], full[20], full[10], full[8], full[2], full[4], full[14], full[16], full[26]};

//multiplex drawing. if (millis() - timer < muxInterval) { timer = millis(); mux++; if (mux > 2){ mux = 0; } for (int i = 0; i <=8; i++){ SoftPWMSet(colpins[i], 0); } digitalWrite(rowpins[0], LOW); digitalWrite(rowpins[1], LOW); digitalWrite(rowpins[2], LOW); if (mux == 0) { for (int i = 8; i >= 0; i--) { if (meterlist[i] == 1){ SoftPWMSet(colpins[i], power, true); digitalWrite(rowpins[0], HIGH); }

} } if (mux == 1) {

for (int i = 8; i >= 0; i--) { if (meterlist2[i] == 1){ SoftPWMSet(colpins[i], power, true); digitalWrite(rowpins[1], HIGH); }

} } if (mux == 2) {

for (int i = 8; i >= 0; i--) { if (meterlist3[i] == 1){ SoftPWMSet(colpins[i], power, true); digitalWrite(rowpins[2], HIGH); }

} }

}

} ~~~~

Tagged , , ,

Bearclaw Poppy with Bogley.com

[singlepic id=337 w=500 h= float=]

Tagged , , , ,

Zen Trail with Bogley.com

Well back again today with the Bogley gang today we hit up Zen Trail and Bearclaw right after. we spent most of the day playing on the rocks, and a few of them with the DH bikes were praying for the climbing to end and the down hill to start.  what usually happens is when you first ride this trail you hate it, but when your crazy enough to come back for seconds is when you realize it's really not that bad of a trail.  Justin McFarland  got some  great videos and pictures, so enjoy.

[singlepic id=330 w=500 h= float=]

[singlepic id=331 w=500 h= float=]

[singlepic id=332 w=500 h= float=]

[singlepic id=333 w=500 h= float=]

[singlepic id=334 w=500 h= float=]

[singlepic id=335 w=500 h= float=]

Tagged , , ,

JEM Trail with Bogley.com

I meet up with a few friends from bogley today and rode the JEM Trail. not much has changed since the last visit. the corners have hardened up quite a bit and was easy to keep traction. we stopped in a few parts to do some drops.. I chose not to do it because i have a hardtail with 3 inches of travel in the front, now if i was ridding a full DH bike like they were I probably would have given it a go.

[singlepic id=324 w=500 h= float=]

[singlepic id=325 w=500 h= float=]

[singlepic id=326 w=500 h= float=]

[singlepic id=327 w=500 h= float=]

Tagged , , ,

Zen Trail winter break

I figured today was the day to try Zen trail again. I invited a bunch of people but they were all busy.  this made it nice for a solo ride.  everything seemed to go a lot smoother than the first time. I didn't even need to pull out my gps.   it took me about 2 hours to ride it, which is a significant improvement on my first time back in may.

not much to say so i'll let the pictures do the talking.

[singlepic id=312 w=500 h= float=]

[singlepic id=313 w=500 h= float=]

[singlepic id=314 w=500 h= float=]

[singlepic id=315 w=500 h= float=]

[singlepic id=316 w=500 h= float=]

[singlepic id=317 w=500 h= float=]

[singlepic id=318 w=500 h= float=]

[singlepic id=319 w=500 h= float=]

[singlepic id=320 w=500 h= float=]

[singlepic id=321 w=500 h= float=]

[singlepic id=322 w=500 h= float=]

[singlepic id=323 w=500 h= float=]

Tagged , , ,