Random Projects and Comments

Home Articles posted by RyanMSutton (Page 2)

Sanguino Dev Enviroment

Published on March 4, 2012, by in Arduino, Software.

Should have posted about this earlier. I have been updating the Sanguino project over on Google Code with the changes I have made to support the atmega1284P and support up to arduino 0023.  If you have issues with the HEX files I posted here earlier check out the new versions.  If you still have problems open an issue on google code, I try to go through the issues reported ever week or two.

 

New Datalogger User Interface

Published on February 4, 2012, by in Hardware.


Previously I have used this interface sewn into a glove to start new tracks in the GPX file and also give me a visual indication that the device is logging data.  The main problem with this system is I can not come up with a good way of disconnecting the glove from the wire to the base unit making taking the jacket and gloves on and off a challenge.   It happens that Sparkfun has a nice ‘wearable keypad’ that I decided to use.  The keypad has a 4-way directional switch, a center switch, and a LED which lights it up.  All the switches and LED reference a single ground pin which is the same method I used for the glove interface so this was a drop in replacement.

Rather then attaching the keypad to the glove again I opted to attach it to the jacket, which should take care of the issue around removing and putting on the jacket.  I also did not want to sew it onto the jacket just yet, so I just pushed some wire through the excess rubber around the keypad making some loops that the strap in the jacket can pass through.

Hoping to try this setup out tomorrow, and collect some more data.

 

Finally Some Good SNOW!

Summit of Cannon Mountain, NH

Summit of Cannon Mountain, NH

We finally had some good snow move in, in the last 3 days around 12″ fell making for some good skiing. I logged today with the Skiing GPS Logger in it brand new case and got a TON of data.   In previous runs the datalogger would periodicity reset, I’m guessing due to a short in its old case or need to be manually reset for what ever reason.  After moving to this new case, it did not need to be reset all day! Also all of the data was written in a single file indicating that it did not reset it self all day.

Cannon - 2012-01-22

The days data.

 

I managed to cover a good part of the mountain today.  The image above was generated by Merkaartor.  There are a couple bugs in my software right now where it doesn’t close some tags, but the idea is that the files generated should be able to be opened directly by anything that can read GPX format, so I have some things to look at there.  After running a quick sed script to close the tags the data imported nicely.  I believe this is the first run I have done since upping the sampling rate to 5hz and it makes a huge difference. (more…)

 

GPS Logger Hardware v4.2

DSCN0923

I didn’t change anything with the electronic parts, but did get a new case for the data logger.  I tried long and hard but could not find a way to fit the GPS antenna inside the case.  The Molex connector goes to the  status LED and switch shown earlier.  The switch I changed from being a run/stop switch to just switching power, which allows me to get everything packaged up the night before. The usual status LEDs are inside the case, but are not visible during operation, which seems to be ok.
DSCN0929

The board doesn’t line up with any of the mounting holes, even REV:B which I added mounting holes do not line up, I am pretty sure I can modify the board to fit these mounting holes though.  Over all this case it larger then I would like, hopefully with some other modifications I can get the size down a bit.  Putting it into this case did stabilize the device quite a bit, I had a good run which I will talk about in another post where it did not reset all day and churned out some very nice data.
 

 

STOP SOPA

While it looks like congress is back peddeling pretty quickly, they are still going forward with SOPA/PIPA which could fundamentally break the internet. Messing with the distributed nature of the internet will but the United States on par with some of the most aggressive censorship countries.  In an open letter signed by the 83 high profile internet engineers including Vint Cerf a co-designer of TCP/IP explained their concerns that such legislation would damage the internet.

Below is a while a little outdated a very good explination of what SOPA/PIPA is:

PROTECT IP / SOPA Breaks The Internet from Fight for the Future on Vimeo.

 

No More Flying Wires!

No more flying wires!

Finished board, I don't think the date is correct should be 11/19. Least the rev code is right.

Now on REV: C finally no flying mod wires on my accelerometer / gyro board. Only the accelerometer is populated as I left off the RC filter for gyroscope, so the board is only half working. With the micro, xbee, and accelerometer it draws 57.4ma. Since the xbee claims to take 50mA, 7.4mA for micro and accelerometer seems pretty good.
DSCN0905

 

Skiing Data

FullTrack-121211
The first trip I took the data logger proved that for some reason there is an error that stops it from logging after about an hour and a half. Since I powered it up before leaving home it had stopped before getting to the mountain. Went out again yesterday and this time powered up the logger in the parking lot and actually got some data! It did stop again after about an hour and a half so I only captured the first three runs. I did reset the main processor at lunch, but it did not start back up so I am guessing it is something on the sensor processor which does narrow down the issue at least.
ZoomTrack-121211
The detail was good, especially after the initial run, I’m guessing it locked some additional satellites once I reached the top of the mountain, as the initial chair lift up track has about 20ft error the west. The one of the tracks does show crossing the trail to stop show above. I want to get the timestamps and speed working next, and hopefully figure out why it stops after an hour and a half.

 

GPS Logger Hardware v4.1

DSC_0079
I’m now back to the same functionality I had on the version I built on proto boards though now much smaller. I added a run/stop switch on the side. Each transition from stop to run will result in a new file being started. Two lights on the top, the green one is lit when the uC is in a ‘RUN’ state, the red one flashes after each track point is written to the SD card.
DSC_0071
Since the plan is to use this while skiing I used a LilyPad wearable switch and LED sewn into a glove for status and control. The LED is just a duplication of the SD write led on the case. As long as it is blinking, there should be data being written to the card. Each push of the switch will result in a new track segment started ( and the old one closed ).  I couldn’t find any of my LED LilyPad stuff so I de-soldered one of the switches and mounted a 1206 LED across the pins. The glove is connected back to the main box with a three conductor ribbon.
Hopefully will be trying this setup out tomorrow, interested to see if it actually works.

 

More Data!

DSC_0043
Was able to get everything working enough to record some tracks today. The box I used was a bit larger then I would like but it’s the only thing I could find. The tracks came out pretty good as far as accuracy, and it does not appear that it dropped any points.  Still do not have the timestamps working so I can’t be 100% sure on that last part.   It did create three different files indicating that the main uC reset for some reason, though it did recover.
2011-12-03-161550_1366x768_scrot
There is some issue with my GPX library, I think strings have some additional overhead in the new version of arduino which is causing problems.  I was working on converting things to using pgmprint and char*s anyways so I will keep moving forward with that.  I’m going to add some switches, secure the box some more and try again tomorrow.

 

Dev Environment r2

Just a quick update to the Sanguino enviroment I’m working with.  Fixed an issue in boards.txt where only one of the 1284 boards would show up. Also changed some pin definitions so that hardware SPI works. Full details here.

Sanguino-0023r2.zip

 
credit
© Ryan M Sutton, 2015