uploading firmware with mega-isp and a seeeduino

so my needs are simple, apply a new firmware to a rainbowduino only, i dont have an isp programmer…or do i?

i have a seeeduino laying around, and came across mega-isp on google code

heres how i did it.

i edit my sketch in arduino ide to how i want it. make sure there is no .hex file in the applet folder and build it. this should create the hex for me to upload to the device.

I couldnt get arduino ide to upload to the rainbowduino with this isp method so i just used avrdude but i hit some snags.

I used the winavr toolchain to do the actual uploading rather than using the one that came with arduino ide. The issue i was having with the rainbowduino was that the m168 cannot have an f8 written to the efuse so i had to do the commands manually.

here are the commands:
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0x00:m
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 1 -V -D -U flash:w:rainbowduino.hex:i
avrdude -c avrisp -p m168 -P com7 -b 19200 -B 5 -V -U lock:w:0x0F:m


updates updates updates

man have I been busy. I have tons of ideas for stuff I want to do, just need to get more time in the day to do it. The marathon has come and gone so now I wont need to run, but I will still run just to keep in shape.

the latest project ideas and directions of study are the LED Touch Sensor demonstrated by Jeff Han of NYU http://bit.ly/Kbq2u
and I want to make an open source motor speed controller driven by pwm but thats going to require a little more research.
then there is a sweet project by some guy at MIT that uses static electricity for sensing where stuff is. http://bit.ly/lhF8B
then there are a few tiny things that pop into my head at random times but for now, i need to ensure work gets priority and then i can play.

Blogs will also be double posted between here and the work blog, since i guess we have a work blog now but I will try not to abandon (again) this one because its a good place for me to keep brain dumps, since no one reads it but me anyway.

the netflix algorithm

so upon adding some movies to my list, i came across an interesting suggestion by netflix.

which one doesnt seem right

can you guess which one doesnt match?

another one down

during the quiet afternoon i have had so far messing with my laptop, the doorbell rang today. some kid with a pitbull was on my porch and immediately I think “oh shit, how did this kid and dog get past Lelu?” but i answered. The kid was holding his dog and told my that my dog had gotten away.

there were only 2 possibilities. 1.) she broke the leash line, which has happened before. or 2.) she broke yet another choker.

it was 2. only this time there was nothing to photograph because the only thing on the leash line was the ring and a few links of the choker. the clothe had given out and went with the choker.

so now i have to find a better choker to keep her on, or just not let her go in the front yard, but that will break my heart because she will be pouting around the house all the time until she gets her way…

mac news

so last week i decided to update my iatkos dell precision m6300 to 10.5.6 and with that, came some more issues. the net card stopped working and the keyboard built in stopped working. I could still use usb but whats the point of a laptop if you require peripheral devices that are not integrated?

this weekend i was digging around and looking at a way to justify the hundred and some odd bucks i paid for osx. I found a new release of modified install and throught I would try it out. IPC is the name of this one and it interested me because a.) it was 10.5.6 and b.) it was a live dvd which meant i could test the waters before installing.

after getting it, i burnt the disc and plopped it in. Tried booting the way that is recommended but cannot seem to get the live disk portion to work on my laptop or my home made box. What I ended up doing was dumping my windows 7 partition and installed IPC next to iATKOS on different partitions to try it out.

After the millions of combination’s to choose from, i had a pretty good idea of what my hardware is so picking wasn’t too bad. the isntall took a while and then the required reboot with the -f and then i was golden…except…i still had no audio (which i didnt before) no keyboard and no network…

google to the rescue found some patches for my sigmatel 9205 and i noticed on dell there was a bios upgrade from my current A10 to A12. Now you may think its odd to have checked that, but in my first endeavor of getting osx on my laptop, i was unable to do so and noticed a bios upgrade so i grabbed it. then next thing i knew, all my distros were booting to the installer then, sweet!

after the up to A12, the wireless started working. nice! and the sigmatel kext i found worked after a few steps with applehda patcher. and last but not least i got a modded apple ps2 kext and threw it in, and now all is well. I have sound, network and integrated keyboard/mouse support! I can start writing iphone stuffs again.

more brewery code

so today I worked on the brewery code. This timeit was the web part of it. The web interface.

Asp.net is my main job but the technologies we use are far different than normal asp.net. like we use Spring.net and mvc and nhibernate and other crazyness which dilutes asp.net with ease and lazyness. I have never really made an asp.net site, not fully anyway, so it was an interesting trek.

I have learned on my way an made decisions based on current technologies, like the SOA architecture of the WCF service I made. It just seemed logical to do it that way. I used Linq a lot, and even used the Linq to SQL even though its not really being developed on anymore.

It has been an interesting ride but I now have a finished JQuery / ASP.net / WCF service product that does what i need it to and looks pretty good. I just need to make some modifications so make the app submit to it rather than the MYSQL db and host the portal. then it should be good for a while in the brewery. Unless they have changes anyway.

So I guess the long story short, if you use technologies on your project, understand why you use them, Don’t just use them and be done with it. It can help you learn a lot down the line.

new to boxee?

So its spring break. Its also st patricks day, well almost on both.

this week I have no spring break plans, as usual. and i have no time off. but i do have my little bo staying with me for the week. whats that mean? I gotta look like i do cool stuff all the time, or I gotta actually do cool stuff. I would rather do the second one but work awaits. I cant just this week say im out. that wouldnt be cool.

So i also dont have cable. what? i watch enough movies. I dont need cable. I do have netflix and blockbuster online. but thats another story. neither one really help out my brother other than movies i have at the house. A guy at work was telling me about boxee. I looked into it and downloaded the newest version and now he has access to hulu and all sorts of stuff.

If you have not used boxee, its pretty neat. Its got all sorts of channels and things. Hulu, youtube, make.tv and many more are all on your tv based on mac or linux or windows if your lucky. Its pretty neat though. I think that I have watched more make.tv than anything but it gives him something to do when hes not playing games during the day.

He also informed me that he is taking a web class next year. Its just high school but i think its good to have a start in web programming so this week i will give him things to do while im at work. that way he can be ahead of the curve, or at least on par with it.

so boxee is pretty neat, and it seems to get better with each version. I would rather have a smaller footprint for my tv app so mac.tv looks better than my media box but it will be an interesting thing to watch grow. if you have not seen boxee, i would recommend taking a look and see if it meets your needs for a media center. I think it seems to work better than my current one (a 360) but if it got on something like a ps3, i think that would be the most helpful and awesome solution.