Archive for Python

History repeats itself

Posted in Blog with tags , , , , , , , , , , on March 17, 2014 by sethkoberg

As I could have predicted, I have been putting off writing in my blog and working on my projects for a while now. Both have been in the back of my mind, but for one reason or another, I have been neglecting to do anything about them. I have been running into a few problems with the Anemometer, and those things need to be ironed out – issues with the RTC not updating or storing the time correctly, issues with having the anemometer write data to an SD card while simultaneously outputting to the serial monitor – things that I never imagined I would have to take into account. The DS1337 is purportedly hot swappable with the more common DS1307, at least, that is what I figured when comparing registers between the two and the DS1307 worked fine when I was testing code, but when I switched to the DS1337, I started getting the wrong data.

Continue reading

Checkout Registers

Posted in Blog, Gadgets with tags , , , , , , , , , , on February 23, 2014 by sethkoberg

After wiring up the DS1337 RTC with its respective crystal to my Arduino, I needed to learn how to communicate with slave devices over I2C – which is a serial bus designed by Phillips to allow a master device (Arduino) to communicate with a multitude of slave devices with only two wires. The benefit of this protocol is the preservation of I/O pins, both analogue and digital, to communicate with up to 100+ devices while only occupying two pins on the master device, either the Arduino or other micro controller. Another added benefit to the I2C protocol is the ability to a) hot swap devices, and b) add in more components without having to re-wire or change the code already being used.

Continue reading

It’s Just a Matter of Time…

Posted in Blog, Gadgets with tags , , , , , , , , , , on February 15, 2014 by sethkoberg

Last time I wrote a post, I had gotten to the point where my anemometer reads pulses from the Hall Effect sensor, calculates the wind speed, and prints that data to a serial monitor (either the built-in monitor in the Arduino IDE, or a third party monitor like PuTTy). Since then, I’ve finished the next hurdle in the programming which is storing that data to a MicroSD card.

Wiring up the MicroSD card is relatively straight forward, and writing to the card is as simple as writing to the Serial monitor, so it wasn’t a difficult hurdle to overcome, but getting one of the necessary steps taken care of gives me that warm, fuzzy feeling inside. I’ve also included in the Arduino Code a rudimentary checking system to verify if the Arduino can communicate with the MicroSD card, and if not, skip writing to it and just print the data to the Serial Monitor. This way, if the end user isn’t worried about historical wind speed data, they don’t need to stick one in and they can just hook it up with a USB cable to view the data.

Maybe I need to think about integrating some sort of monitor to the Arduino, like an LCD screen, so a computer isn’t needed if you don’t want to store the data.

Continue reading

New Parts, New Problems

Posted in Blog with tags , , , on January 26, 2014 by sethkoberg

This past Thursday, UPS delivered the 3D printed parts for the updated design of my anemometer. Like a little kid on Christmas morning, I tore into the packaging with a vengeance.

I’m still amazed at the world we live in where someone can wirelessly transmit what equates to a text file, and a little over a week later, receive a real copy of something that, until days before, only existed in the digital world of 1’s and 0’s.

Gathering all the necessary extra parts, I test fit the 13mm bearing onto the clip that sits comfortably inside the rotor – a perfect fit. Now it was only a matter of whether or not the stator design would accept the bearing as comfortably as the rotor.

Continue reading

Almost a year

Posted in Blog with tags , , , , , , , , , , , , , on January 18, 2014 by sethkoberg

It’s been almost a full year since my last post and I can’t say I’m surprised.

2013 was the year of ideas. Most of which were never touched, some were started and left to sit, and only one I can think of that was actually finished – an entertainment center for our new T.V – something that had to be completed in order for us to enjoy our new investment.

This year, however, is going to be the year of creation. I know it has been said before, even in this blog, but I’ve made a deal with The Husband that I can not purchase any more camera related equipment until I finish my list of to-do’s. That being said, I’ve run head first into my first project of the year; something that I had started years ago which has been itching to get finished.

Continue reading