I spent a chunk of today implementing tools to capture and examine the data from a Trimble Copernicus GPS receiver chip. Unfortunately, even though it supports the output of "raw" measurements, the pseudorange (in meters) can't be derived easily (if at all), and the Doppler measurements appear to be an order of magnitude larger than they should be. The SNR measurements look appropriate (in dB*Hz), but I'm uncertain about the phase measurements. It may turn out to be totally useless for science, which would be disappointing.
I'll have to look into this further next week.
Saturday, August 20, 2011
Thursday, August 18, 2011
Damn, it's hot.
The American Coal Mining lobby says global warming is a hoax, and that's good enough for me. Now if you'll excuse me, I need to put on some spf 83 before going out to mow the charred remnants of my lawn.
The above is a lie, of course. It's actually 10pm and the sun has set. But it's still 96 degrees Fahrenheit according to intellicast, 101 according to my phone. That doesn't say anything about global warming. The extraordinarily long period of heat we've been experiencing doesn't say anything about global warming. At least, not by itself. It's the aggregation of weather conditions around the globe over longer periods of time. Those average temperatures are climbing, thus, "global warming".
Still, global warming or no, it's freaking hot outside and I'd very much like to get a break from it for a while.
The above is a lie, of course. It's actually 10pm and the sun has set. But it's still 96 degrees Fahrenheit according to intellicast, 101 according to my phone. That doesn't say anything about global warming. The extraordinarily long period of heat we've been experiencing doesn't say anything about global warming. At least, not by itself. It's the aggregation of weather conditions around the globe over longer periods of time. Those average temperatures are climbing, thus, "global warming".
Still, global warming or no, it's freaking hot outside and I'd very much like to get a break from it for a while.
Tuesday, August 16, 2011
AVR programming
Today marked a bit of progress on a couple of my microcontroller projects. First, I discovered the reason that my LED cube controller board wasn't working. It turned out to be because I had swapped two control lines on the schematic. Unfortunately, it's not something I can fix in software. The swapped lines are a clock pulse line and an output enable line, going to each of eight '574 8-bit flip-flop chips. The two lines work in completely different ways (clock pulse latches the flip-flop outputs on low-to-high transition, and output enable is active low), and are being driven in completely different ways (output enable is supposed to be a shared signal driven by a single pin from the microcontroller, while the clock pulse is supposed to be individually selected one at a time from a 3-to-8 multiplexer chip's output). So there really isn't a clean (or perhaps even viable) solution to fix this in software. As a result, I made a revision "C" of the board design and submitted it for manufacture. The LED cube is getting pretty expensive at this point.
The other bit of success I've had was in hooking up a Trimble Copernicus GPS receiver-on-a-chip that's mounted on a Sparkfun breakout board, through a logic level converter to an atmega8u2 breakout which is programmed to be a USB-to-serial device. It.. sort of worked, in that I could see bits of data being sent from the receiver, but the firmware on the atmega8u2 would only work at 9600 bps, while the Copernicus talks at 38400 bps or 4800 bps, depending on which interface you chose to use.
The bad news is that the tool chain provided by Ubuntu is way out of date and I can't really compile for the atmega8u2 with what's been provided. Newer versions of the tool chain can, in theory, be built, but the instructions as listed in that link don't actually work.
After much hair pulling, I managed to find this sticky thread on avrfreaks.net. I had to do a little bit of tweaking to get the scripts to download the source files to use a site that was actually up in a couple of instances, but the level of hassle to get that tool chain built and installed was far less than what I was going through with the others. I was able to build LUFA. I did not, however, install any of the LUFA bootloaders onto the sparkfun device, opting instead to reinstall the original sparkfun firmware to see if it was capable of switching baud rates. It was, and I was able to confirm NMEA messages coming out of the Trimble receiver chip. Progress.
I'm still 6 days away from having the Rev. C LED cube controller boards in my hands, but I'm hopeful that when I get that put together, I'll finally have that working as well.
The other bit of success I've had was in hooking up a Trimble Copernicus GPS receiver-on-a-chip that's mounted on a Sparkfun breakout board, through a logic level converter to an atmega8u2 breakout which is programmed to be a USB-to-serial device. It.. sort of worked, in that I could see bits of data being sent from the receiver, but the firmware on the atmega8u2 would only work at 9600 bps, while the Copernicus talks at 38400 bps or 4800 bps, depending on which interface you chose to use.
The bad news is that the tool chain provided by Ubuntu is way out of date and I can't really compile for the atmega8u2 with what's been provided. Newer versions of the tool chain can, in theory, be built, but the instructions as listed in that link don't actually work.
After much hair pulling, I managed to find this sticky thread on avrfreaks.net. I had to do a little bit of tweaking to get the scripts to download the source files to use a site that was actually up in a couple of instances, but the level of hassle to get that tool chain built and installed was far less than what I was going through with the others. I was able to build LUFA. I did not, however, install any of the LUFA bootloaders onto the sparkfun device, opting instead to reinstall the original sparkfun firmware to see if it was capable of switching baud rates. It was, and I was able to confirm NMEA messages coming out of the Trimble receiver chip. Progress.
I'm still 6 days away from having the Rev. C LED cube controller boards in my hands, but I'm hopeful that when I get that put together, I'll finally have that working as well.
Labels:
atmel,
avr,
electronics,
gps,
led,
led cube,
maker,
microcontroller,
pcb,
trimble
Thursday, August 11, 2011
Making Sense of it all
People who don't live in the US may not get it, but if you want a reasonably accurate depiction of evangelical Christianity in the US, have a look at Jake Busey's character in the movie "Contact" and that character's followers.
For those who don't live in Texas, that's also a pretty decent depiction of the Rick Perry approach to governing. If you're one of those Americans that believes that the country would be better off making evangelical Christianity the center of all things, then by all means, support Rick Perry in his presidential bid. If, on the other hand, you think children should be given the opportunity for education rather than indoctrination, that people should be allowed to determine their own faith, or lack thereof (insofar as it isn't at the expense of others), or that prayers for rain is not an effective governing strategy, you might want to look elsewhere.
Perry is right that the nation is in trouble, but I'm reasonably certain he hasn't the slightest clue how to "fix" any of it. But I'm sure that in his mind it'll involve a lot of prayer.
For those who don't live in Texas, that's also a pretty decent depiction of the Rick Perry approach to governing. If you're one of those Americans that believes that the country would be better off making evangelical Christianity the center of all things, then by all means, support Rick Perry in his presidential bid. If, on the other hand, you think children should be given the opportunity for education rather than indoctrination, that people should be allowed to determine their own faith, or lack thereof (insofar as it isn't at the expense of others), or that prayers for rain is not an effective governing strategy, you might want to look elsewhere.
Perry is right that the nation is in trouble, but I'm reasonably certain he hasn't the slightest clue how to "fix" any of it. But I'm sure that in his mind it'll involve a lot of prayer.
Subscribe to:
Posts (Atom)