Today’s Ride

July 2, 2009

I finally got back on my bike for a short ride today.  I’ve been pretty busy and there has been a strong breeze making it less attractive to ride.  Today I finally found a block of time to ride.  I chose a route that I had almost forgotten about.  Overall the route is pretty flat except for the valley about a mile from town.  Having not rode any hills for a while it was a good challenge.  Normally I get a good deal of momentum from the downward portion but today the wind slowed me down.  On the way back I was with the wind and managed to go 47mph without any problem.  To add to the speed rush a car came out of nowhere and passed me.  They must have been going pretty fast since it seemed like they were passing me when I wasn’t flying down a hill.  I averaged 15.2 mph which is better than what I’ve been doing but still isn’t where I’d like to be for a ride that was mainly flatland.


Handlebar Tape

June 6, 2009

As I was riding back home from playing disc golf yesterday I dropped my sun glasses.  It seemed like no big deal.  Just put the kick stand down and go back and find them.   I set the bike on the kick stand and when I spotted the sunglasses I heard the bike crash.  The extra weight from the discs and the soft ground must have caused it to fall.  I picked up the bike and I immediately noticed that the handlebars weren’t right.  At first I though that It had somehow bent the handlebars but that wasn’t the case.  The brake and shifting assembly had shifted inward.It made it hard to ride back the rest of the way home but it was an easy fix.

Today was a good day to work on the bike.  After about a month of dry weather we finally got some rain.  It wasnt untill After I removed the handlebar tape until I realized it wasn’t nessisary to remove it.  I just had to flip down the rubber piece to expose the screw.  Rather than trying to reuse the tape I just got some new bar tape at scheels.  It seems like I finally got hang of wrapping the bars with tape.  This time It looks much more even and covered more of the bar than last time.


Disc Golf Target Basket Update

May 26, 2009

I’ve been using my disc golf target for about a week now and I’ve found the weaknesses of it.  I’ve been working on some simple fixes to these problems.

From Disc golf target

The first thing I noticed was that a single ring of chain worked for most puts but a few that should have been caught got through.  The simple fix to this was to add a second ring of chains.  I added six more chains halfway between the center and the outer ring.  Very few discs actually make it through the chains.

The second problem was that discs can roll on their side out of the basket.  It didn’t seem like it should happen too often because the disc had to be on its side rolling at an angle.  The solution to this would be to either add more dowels so the disc cant fit through or to add a second plywood ring onto the dowels.  I found that after I added more chain the problem happened less often.

The third thing I noticed was a few of my dowels were not actually hardwood.   They were some lighter weight wood that looked the same.  When the disc hit these dowels they cracked where the screws went in.  I added some glue and a few zip ties to strengthen them.  The best solution would be to make sure all the dowels are some type of hardwood.

Lastly, the extra part of the u bolts that sticks up can really eat away at your discs.   Cutting the excess bolt off and smoothing it with a file helped a lot.


Disc Golf Target Basket

May 19, 2009

I’ve been playing disc golf occasionally for the last few years and I always thought the target / basket would be something I could make.  I did a little research on the internet thinking I would run across some good plans.  There weren’t any that I liked so I made my own.  My design needed to be semi portable and require no welding.

From Disc golf target

Tools required

  • drill & drill bits
  • string & pencil
  • jig saw

Supplies

  • 3/4″ Ply wood
  • 1 in pipe
  • 12 U bolts
  • chain
  • Large (3″) key ring (can substitute with wire)
  • nuts and bolts
    • 12 nuts, bolts, and washers for attaching the Galv Floor Flanges
    • 24 nuts to fit U bolts (2 extra for each)
  • dowels 3/4″ or 1″
  • 2 – 1″ Galv Floor Flange
  • 1- 1 1/4″ Galv FLR Flange
  • 1- 1 1/4″ Galv nipple

I tried to make my disc golf target fairly close to the ones at my local course which uses the Innova DISCatcher® PRO Disc Golf Target. Most of the dimensions for that target can be found by following the link above.  The only dimension I couldn’t find was the depth of the basket which I measured to be 9 inches

Step 1

Cut 3, 26 inch diameter circles from a sheet of plywood.  Take one of the circles and cut out a 22 inch circle within in.  The resulting ring will be used as the rim of the basket portion of the target so be careful not to cut through it.  The 22 inch circle will be the top portion where the chain is attached.  The easiest way I’ve found to cut the circles is to use a nail, pencil, string and jigsaw.  Tie the pencil and nail together 13 inches appart pound the nail in the center and use it to draw a 26 inch diameter circle.  Cut out the circle with the jigsaw.

Step 2

On the 22 inch circle draw a line from the center every 30 degrees (12 lines)  to determine where the U bolts should go.  drill holes for your u bolts.  Each U bolt will require four nuts.  A nut will go on each side of the plywood.  washers are optional.

Note: The U bolts are are sort of optional although I highly recommend them.  You could stick a bolt through the last link of the chain and bolt it to the plywood.

Step 3

Cut your chain in approximately two foot lengths (for me this was 20 links).  Slip one end of the chain on each u bolt and attach them too the plywood circle.  Place the other end of each chain on a large key ring.  The key ring can be substituted with wire but wire will not hold the circular shape.

step 4

Cut 12, 8 inch long dowels and attach them to one of the 26 inch circles (again every 30 degrees).  Attach the ring to the the dowels as well.  now you should have a basket

step 5

Cut the pipe to 55 inches and thread each end.  Most hardware stores will be able to do this for you when you purchase the pipe.

step 6

Attach the 1″ Galv FLR Flanges to the top and base circles.  Drill a 1″ diameter hole through the center of the basket, screw the 1 1/4″ nipple into the 1 1/4″ Galv FLR Flange and attach it to the basket.

step 7

slide the basket onto the pipe and screw on the top and bottom.  Position the basket where it looks right and drill a hole through the nipple and then through the pipe.

step 8 (optional)
An inner ring of chins can be added to the target for better catching.  You will need 6 extra u bolts and some more chain.  the length of chain for the inner ring should be shorter approximately  16 inches (18 links of my chain).  The Innova targets at my local course have 3 rings of chains. for a total of 24 chains.  The single ring seems to work but occasionally lets the disc through.

please see my update on this disc golf target


Annoying Sound

May 13, 2009

Last fall I put my bike away for the winter with it making an annoying click/crack sound whenever I rode over a bump or shifted my weight.  I had taken it to the local bike shop and they made sure everything was tight but it didn’t really help anything.

This spring when I got my bike out again the sound seemed to be gone until today.  The sound started again after I fell on a wet slippery corner.  Last fall an oil sealant was applied to the bike paths and it evidently made it slippery when wet.  I wasn’t going very fast so I didn’t even get a scratch but it was enough to bring back that annoying sound.

The sound was bugging me so I started looking for the source again.  It seemed as if it was comming from either the seat post or the handlebars.  It was hard to tell since the sound vibrated throughout the frame.  Eventually I found a little play in the headset.  I tightened it up and the sound is goine.


Octave

May 5, 2009

I’ve been using Octave as an alternative to Matlab for about 4 months.  For my engineering analysis class, we have been using matlab programming to solve our problems.  Matlab is provided to us in a computer lab on campus but its really inconvenient to program there.  All on campus computer labs are always hot and the computers are always slow.  I didn’t want to buy a copy of Matlab to use at home so I decided to use Octave.

Octave is a free open source alternative to Matlab.  Nearly all the functions found in Matlab are the same in Octave.  So far the only function that I’ve not been able to use in Octave is xlsread.  Octave by itself is basically just a shell.  Where you can enter in commands and outputs are displayed.  By installing a front-end program such as QT Octave you get the whole environment that you would in Matlab.

At first I wasn’t confident that the two programs would be compatable so I always checked to make sure my program would work on Matlab.  After having all my projects work flawlessly between Octave and Matlab I’m confident that my code will execute on both programs.


Windy Hills

May 3, 2009

According to the local news station today was supposed to be less windy than yesterday.  Thats not the way It felt when I decided to ride up out of the valley.   The wind was blowing directly down into the valey making it difficult to climb up and out.  I made the mistake of starting too strong so I had to stop in the middle to catch my breath.  After that it was difficult to continue going my normal hill pace.  The rest of the ride was still chanllangeing but was not as difficult.  When riding back into into the valley I let the wind and gravity do their work.


Ultrasonic Range Sensor

May 3, 2009

My second project using a Pic microcontroller was controlling the brightness of a LED using an ultrasonic range sensor.  when an object was close to the sensor the LED was dimly lit and as the object moved away the LED got brighter.

Link to code: Sensor

For this project I learned how pulse width modulation worked and how to operate the SRF05 ultrasonic range sensor.  I decided that since the pic18F1220 had a built in PWM module, I would learn how to use that.

In order to generate a pulse width modulation the pic microcontroller uses a timer and compares the timer value to two other registers.  One of the registers (PR2 in the 18F1220) is the value at which the timer resets.  This value is related to the period of the pwm waveform.  The other register (CCPR1L in the 18F1220) is the duty cycle.   When the timer is less than this value, the waveform is high.  Otherwise the waveform is low.  When CCPR1L is equal to PR2 the duty cycle is 100%.

The SRF05 creates a pulse who’s length is proportional to the distance an object is from the sensor.  In order to begin the distance measurement the SRF05 needs a 10us trigger pulse.  The SRF05 then measures the distance and outputs a pulse that is between 100us and 25ms.  Measuring the pulse can be done by waiting for the output line of the SRF05 to go high, then setting up a timer with an appropriate prescaler to run until the line goes low.  Once the pulse is over the timer value is read and can be mathematically manipulated  to get the distance. The SRF05 recommends waiting 50ms before getting another measurement so the previous ultrasonic pulse doesn’t interfere.  Documentation on the SRF05 can be found here

For this project I used a simple loop where I got the distance from the SRF05 then moved the timer value into CCPR1L.  I then waited for 50ms before getting the distance again.  The led was hooked up to the output of the pwm wave.  The pulse widht modulation controlled the brightness of the led.


7-Segment display

May 2, 2009

My first pic microcontroller project was counting on a 7 segment display. Technically I started with a flashing led but what kind of project is that? This was my first project that actually did something. I used a pic 16F84A, a 7 segment driver chip and a 7 segment display. The program was fairly simple. it needed to count to 9 then I could either have it count down or reset to zero. I also had to create some delay so that the number would actually be seen on the 7 segment display.

This program logically was not difficult but inexperience made the process slow. First I didn’t think of ordering an oscillator when I ordered the sample pic. After some reading in the data sheet I figured out there was an RC mode where I could use a resistor and capacitor. This seemed simple enough until I realized that I didn’t have the capacitor that I needed. I read online how someone used just a resistor and the stray capacitance from the breadboard. I decided to give this a try. This is the most unstable method you could use. It worked alright but sometimes the pic would be slow and other times it would fly through the program.

This was the project that I learned all the general information about programming a microcontroller. I learned how to configure ports for input and output and how to move and manipulate data in the microcontroller. The most valuable thing I learned was how to look up information in the data sheet. At first It was difficult to follow and understand how things were organized in the data sheet. After a while I got good at searching for key words.

Link to code:  7-segment


2009 Miles Goal

April 30, 2009

The weather is starting to get nice and my finals are approaching quickly.  This means only one thing, it is time to get back out on my bicycle.

Last year I didn’t set any specific goals for a total number of miles but rather tried to get about 100 miles a month.  That didn’t work out so well.  This year I’m setting a goal again and I’m writing it down as well.

The goal for the total distance this season is 1000 miles.  This works out to be roughly 165 miles a month or 40 miles per week.  I figure I should be able to ride 10 miles, 4 days a week over about a 6 month period.

I got my bike down two weeks ago but haven’t done much riding.  I usually count at least half of April in my “6 months of good riding”  so I’m about two weeks behind schedule.