Help bring more traffic! Stumble This!

HTML hit counter - Quick-counter.net

Wednesday, June 29, 2011

We've moved!

I just moved the blog over to
http://thegeekbucketlist.wordpress.com/

The site is a lot smoother, and hopefully a bit more open.

Thanks a lot.  Hope to see you there!

Tuesday, June 21, 2011

Update

For the few of you who read this,
I finished the solar tracker!  I'm busy at the moment, but I'll eventually get a video showing you what it can do.  Until then, you'll just have to wait.

Furthermore, I'm also planning on replacing my Arch partition with Xubuntu.  I'm also most likely going to reorganize my computer boot sequence as well.  I currently have my boot partition doing nothing but booting, which seems kinda silly.

On the hardware side, I just upgraded my RAM from the 2x1 Gb Crucial 1033 Mhz to a 2x2 Gb Corsair 1600 Mhz.  So far I've noticed a slight improvement in Windows (which is 64bit) and I haven't tried it in Arch yet.

Also, if you haven't already, check out This Week in Linux with Jordan Keyes.  He recently lost his adsense account due to some strange DDoS/Misuse  and showing all of his videos either through Blip.tv or through his website.  I highly suggest everyone watch his videos, he's a wealth of knowledge!

Wednesday, May 18, 2011

I'm Back Again!

Well hello everyone!

It's really been a long time since I've last updated.
For the past few weeks I've been busy working, while on the weekends helping build the Solar team's new car Celeritas.

Finishing the car was a real time crunch. The race was in Houston, Texas on April 14-16 and believe me when I say it was close. We literally finished coding major components of the car on the trip down there. Luckily the 22 hour trip gave us a lot of time to focus.

We managed to get the code to a working condition once we got to the paddock area, but there was still plenty to do. We had a few major body adjustments to the car, and some minor brake spacing issues to work out. but in the end it all came together. We finished the race with 1st in our class. We also managed to get 2,200 MPG equivalent!

You might have noticed I said equivalent. Well in reality, our solar car runs off of electricity using an electric hub motor. So we have to manually monitor the amount of energy flowing from our batteries to our motor to calculate the energy consumption versus a gasoline powered car.
Thankfully, in the past year, due to the increase in electric vehicles on the market, the SAE determined that there are officially 33.7 kilowatt hours (kWh) worth of energy in one gallon of gasoline. You can run some numbers backwards and see that we consumed about 65 kWh of energy, and in the total run, we calculated our motor to be about 80% efficient. That's impressive, considering internal combustion engines run at less than 50% efficiency.

You can read more at our website at purduesolar.org
and you can also read plenty of great articles by googling Purdue Solar Racing.


Well it was a blast, but what am I doing now?

Its currently the summer for me, and I'm not taking a break anytime soon. I have classes through August, then its back to work again. Luckily though, I have a bit more free time in the near future, and I plan on bringing back some old projects and knocking a few off my list.

Earlier today I dusted off the Arduino board and started working on my solar tracker again.
I uploaded the code to the board and started debugging. First thing I noticed is a slight mistake in the code. because of the slight variations in the components, the two voltage readings from photoresistors will almost never be equal for an extended amount of time. I had to add a tolerance value into the selection statement in order to get the servo to sit still long enough to be useful. I can always show you the code. Let me know if you want to see it!

Next step is to package it all together. I started a rough CAD model of how I'm going to fit everything onto the servo. I decided I want to have the Arduino board spin with the solar cells. This will (I think) minimize the amount of wiring required to connect everything. Because most of the components will then be spinning, that also lessens the number of wires getting wrapped around the servo spindle.
That last statement might be irrelevant though. Either way I'm going to have wires getting wrapped up, and one wire could be as bad as 10.


Soon I'll upload a video of the project so far. I may also make a video showing how to calibrate a continuous servo.


And on a side note, when I moved into my apartment in Lafayette, I was a bit cramped on space and I wasn't able to pack the Bucket. The linux adventures are going to have to be put off until I make a second trip to get my stuff. I guess that leaves more time for the Arduino!

How 'bout you guys? Do you have any projects you've started recently? Any ideas? Or have you been doing anything interesting the past few months?

Wednesday, January 19, 2011

Spoke Too Soon

Well all is not as it seems.
Though the Arduino software installed easier than I thought, it turns out a few more extra steps are needed to get to work.

At first I couldn't select any of the serial ports. After giving up for a while, I came across this webpage on the arch wiki. I'm pretty sure I looked before and couldn't find it, oh well.
Turns out it was a permission issue, but giving the user the correct permissions didn't seem to help either.

So what I did was create a launcher that runs the command sudo arduino from the terminal. I have it set to keep the terminal open while the program runs so I can see what TX and RX versions are uploaded. It sometimes comes in handy.

Now there's just one issue I can't seem to get across.
When I upload the program to the board, it blinks as usual, but it doesn't loop for some weird reason.

Well even though I couldn't correctly upload the program, I did finish the program needed for the solar tracker. It's surprisingly easier than I had anticipated.

And here it is.
Note it is copyrighted.


/*
Solar Tracker
This program controls a servo to allow solar cells to always face the source of light
Created 1/18/11
Ian Bohannon
Copyright 2011
*/

#include <*servo.h>

int ServoOut = 9;
int photoPinLeft = 0;
int photoPinRight = 1;
int LeftReading;
int RightReading;
int pos;

Servo myservo;

void setup()
{
myservo.attach(ServoOut);
Serial.begin(9600);
}

void loop()
{
LeftReading = analogRead(photoPinLeft);
RightReading = analogRead(photoPinRight);

Serial.print("Left Reading = ");
Serial.println(LeftReading);
Serial.print("Right Reading = ");
Serial.println(RightReading);

if(LeftReading > RightReading)
{
pos = 65;
}
else if(LeftReading < RightReading)
{
pos = 45;
}
else
{
pos = 55;
}

myservo.write(pos);
delay(120);
}"


What it does is compare the light shining on each sensor, then through the If statement, adjusts the servo speed and direction accordingly. Through experimenting I know the servo sits still at position 55, spins one direction when higher than 55, and the other when lower than 55.

Because I can't upload it from this computer yet, I haven't gotten around to testing it and debugging it. The values may need to change a tad bit.

Saturday, January 15, 2011

Arduino on Arch? I think so!

Thank you Yaourt, for giving me the ability to download anything in a heartbeat. Well... when you work.

This time it did. I downloaded the Arduino-0022 front end in a flash. Started it up, copied over my files with a flash drive, worked like a charm.
Before I upload any files to the board, I'm going to get some fresh air. Maybe go to the store and pick up some sharpies and food.