::: Pro-Business :::
Wednesday, September 08, 2010
You are here: Home
   
 
Author: Rembrandt Created: 8/23/2006 4:12 PM
Mindless rantings of a dizzy geek.

The Walk for Mark Whittier (no pun intended.)
By Rembrandt on 4/27/2007 7:07 PM

Mom-Mark-Dancing.jpgFirst off, here is the link : http://www.firstgiving.com/markwhittier

If you are so inclined, please go there and chip in a few bucks.

Mark Whittier was a great guy. He made me laugh, he had a horrible beard, we played stupid role playing games together with other friends. He was there for me with support and love when one of those friends died. Ironic, that soon afterwards, I would get a call from my sister asking if I was going to Mark's wake. [Long and very weird story made short - she knows his uncle very well.]

He loved Hall and Oats, Rush and Yes. He sat behind me during the SATs, even though we didn't go to the same high school. On holidays, everyone would get together at Mark's house after we did the obligatory family stuff and just hang out. He was THAT kind of guy - where you could just do that. He was a passionate man, he loved life, he loved people, and he could convince a rock that it was actually a bird given enough time. Charismatic is not the word. He had a peaceful way of talking - even when he was disagreeing with you. Sometimes to this day, I catch myself emulating it when I want to really get my point across to someone.

He wrote me a letter once, while I was in college, addressed to Steven Walk M.D. with the M.D. circled and crossed out ala Ghost Busters. Four pages of messy cursive, with ink blots. I lost that letter after he died, and haven't forgiven myself yet.

More than anything, as a true example of who Mark was, he convinced me to date his sister. She was mischievous, beautiful, and younger than me. I loved her very much (still do, always will.) and even when our relationship got as 'intense' and 'crazy' as every teenager's will, he never once told me he regretted suggesting it.

Mark Whittier was a man who died early, from a stupid assed disease that people just didn't know about. It was treatable even then, just hard to diagnose. He was good people. He *IS* still missed, and worth honoring. Take a min and look at the above website, even if you don't care or can not afford to donate funds, maybe you finding out about Wilson's disease might see you mention it to someone, who mentions it to someone, who mentions it to a doctor who find it in a patient and saves their life.

That is really all he would have wanted you to do anyway.

Comments (0)

Almost Blinking ...
Project: Adventurers' Club Masks By Rembrandt on 4/3/2007 1:20 PM
With a little more tinkering, I got the code fairly close to a 'double blink' with the servo. [With the beginnings of serial out as well, I might take a little stab at a windows program to read what the pic is sending out and update an image on the screen or something .. the beginnings of a controll program.

Since I have done a lot of talking about stuff, with out much concrete examples, I decided the otherday to start pasting up code. That way I can not only show others, but have some place to go find it if i lose my project :P

So, here is the 'blink' routine, which is written for the PIC 16F874-A

'****************************************************************
'*  Name    : Futaba s3003 RC Servo Test 'Blink-Blink
'*  Author  : Steven Ivan Walk                                     
'*  Notice  : Freely given from www.Code-Geek.com  
'*          :                                                                     
'*  Date    : 4/3/2007                                                   
'*  Version : 1.1                                                          
'*  Notes   : PIC 16F874-A,                                       
'*          : Pin 20 = Servo Control Out                          
'*          : Pin 21 = LED indicator Out                          
'*          : Pin 40 = Serial Communication Out              
'*          : 4.00 hz Crystal                                             
'****************************************************************
DEFINE OSC 4
start:
    high portd.2
    pulseWidth var byte
    ' set up constants with the minimum and maximum pulsewidths
    minPulse CON 50
    maxPulse CON 100
    ' set up a constant with the time between pulses:
    refreshPeriod CON 20
    looper var word
    outerlooper var word
    ' set an initial pulsewidth:
    pulseWidth = minPulse

main:
for outerlooper = 1 to 2
    'take the output pin low so we can pulse it high
    Low PORTd.1
    ' pulse the pin
    for looper = 1 to 12
        PulsOut PORTd.1, pulseWidth
        ' pause for as long as needed:
        Serout2 portb.7, 16468, [DEC pulsewidth,10,13]
        Pause refreshPeriod
    next

    Low PORTd.1
    ' pulse the pin
    for looper = 1 to 12
        PulsOut PORTd.1, maxpulse
        ' pause for as long as needed:
        Serout2 portb.7, 16468, [DEC maxpulse,10,13]
        Pause refreshPeriod
    Next
    pause 250
Next   
pause 2000
Serout2 portb.7, 16468, ["looping",10,13]
GoTo main

Da-Da-Da-da-DA do the servo shuffle.
Project: Adventurers' Club Masks By Rembrandt on 4/3/2007 12:15 AM
My breadboard isn't playing nicely. Something is wierd with it. Either they are warped, or there is some strange loose connection inside, or who knows what. They were originally mounted to a metal sheet with clips: two for power and one ground. Maybe the sheet metal was warped and it slowly bent the plastic as they sat there for years on a shelf. Who knows. All I know is that its a pain in the ass sometimes. Not only do my PIC chips loose power randomly, But I have actually fried one of the 627-a's :( Free or not, its still a chip. Regardless, off of the metal backing they came, and they are more reliable now. Not 100%, but at least i know what to expect.

Since last time, I managed to get serial communication back to my PC working, So I had chips talking to hyperterminal on my pc. I started messing around with PNP transistors as digital switchs, and this weekend I bought a RC servo from the local hobbyworks.

I have managed to make the server quickly go about 30 degrees. ALMOST fast enough for a blink. I am only using a 4mhz crystal .. which only lets you manage 10ms signals. A 20mhz crystal will allow as low as 2ms signals. So one of them will go on my next parts order from digikey. With the 'registered' version of Picbasic Pro, I could write a number of 'blink routines', like single blink, double blink, eyelids 1/2 closed etc .. and fire them off from a serial program or whatever to the mask.

I also noticed that if the servo loses power, it will 'hold' position. I am not sure if its got predefined stops, but that could be very use for certain applications, pulsing power into the servo to hold it in place isnt very efficient. Thats where the transistors come in. I have been turning the servo on and off via a pnp transistor acting as a switch - there is no reason i couldn't send a 'halt' command to the servo to 'freeze' it with eyes in a certain position or whatever. I just don't know how it will react when getting power the next time.

These servos (the cheap ones) are pretty big, so i definatly can see a 'housing box' for electronics that might hide behind the mask with only linkages or speakers etc coming out. Probably will need to be recessed into the wall or something. But cheap servo's definatly open up a lot of interesting things. Now I have to figure out how to make mechanical linkages etc.

Trees Suck.
By Rembrandt on 3/30/2007 10:26 PM
Yeay ! It is allergy season! Growing up in the apparently barren desert that is New England, I had never suffered from this malady. Trees were non-existent in this fantasy land. [Government regulation was a lot harder to find too .. cause you know, you could maybe .. smoke in your car there, if you wanted.]

Not so in wonderful Maryland, land of incredibly mutated toxic pollen. Toxic pollen that swarms around your head like locusts amongst .. well .. anything green. Toxic pollen that makes your lungs weep fluid back up into your throat, fluid that is secretly battery acid.

Great stuff.

The crappy part is Vincent apparently is affected by this as well. Every time I cough, he coughs, horrible phlegm filled coughs because he does not understand yet to spit it out. Coughs that wake him, and thus .. US, up in the middle of the night.

Trees suck sometimes.
Comments (0)

Who is John Galt ?
By Rembrandt on 3/18/2007 10:54 PM

Tonight, after being encouraged by my wife, and shamed by my closest sister's "Who is John Galt?" bumper sticker [Or horrified should it be my brother-in-law's], I brewed myself a cup of tea, grabbed a cigar out of my humidor, and retired to the garage.

With the pellet stove churning out heat, and the cigar being a bit stronger than I expected, I started reading the first book published by a Soviet Union refugee. The forward states that Ayn Rand wrote "We the Living" first because at 25 it was something she was familiar with; The collapse of Russia into the Soviet Union.

Consuming a potent toro while drinking tea, my Russian heritage felt a little bourgeoisie twinge as I began my road to literary recovery. For a brief moment in time, I remembered who I used to be, how I used to think, and debated about how much the old me might like the 'new' me.

Its been so long since I was a literary man, you see ... 0's and 1's don't have the same texture.

Comments (0)

Even two year olds understand ...
By Rembrandt on 3/18/2007 9:21 PM
Today I was wearing a shirt I bought from www.Threadless.com called 'Planetary Status'.

Sometime around 10:30 in the morning my two year old pointed at my shirt and asked : "Whats that ?"

I told him that (what he was pointing to) was the sun, and the sun and all the other planets in the sky were all happy, but Pluto (and I pointed to Pluto) was sad because people decided he was not a planet anymore. He laughed and said "The sun is smiling." and that was that ..

Until about 9:00 at night, just before he went to bed. He pointed at my shirt and said in a quiet voice : "Mom, Pluto is sad because he is no longer a planet." Those words exactly. This isn't the first time he has done something like that. But its the first time he had a response that he had obviously thought about for a while.

Man, science rocks !
Comments (0)

Oh .. the ideas just keep coming.
Project: Fireworks Control Panel By Rembrandt on 3/17/2007 9:49 PM
Oh I had a cool idea this morning.

Every forth of July we shoot off fire works, and each year we get better at it. We make better choices for the pyrotechnics, we are faster with setup and tear down, and we are safer.

But i never get to sit back and RELAX and watch them.

This year, that will change, as I think it would be easy to build a device that will allow me to use a laptop to set the things off, in series even !

I did a search on www.patentmonkey.com for electric firework ignitors and this is all I came up with.

I figure using some of the stuff I cooked up with my mask ideas, I could easily rig up something that would let me sit in relative comfort on our (hopefully new) deck in the yard with everyone else, and fire off the things from 80 ish feet away.

Part of the design would be having a webcam out there to monitor stuff to make sure nothing goes horribly wrong.

I'll let you know more as I come up with it.

Video Games .. Video Checklists
By Rembrandt on 3/13/2007 10:35 AM
Dead rising is almost 80% done, and Marvel Ultimate Alliance is holding at 80% as well. After I finish this mission against the Zombies, I will go back to fighting crime again, in attempt to clear the 6 or so awards I have left in superhero land.

Its no secret that I both love and hate Microsoft's Achievements Lists for their games. On one hand, they push me to totally FINISH a game, even if its frustrating and difficult. They also give me a visual checklist of thngs to accomplish. "O.K. I rescued 50 people from the Zombie horde, cool." [check]

However, sometimes, the achievements are totally unfair. I don't mind hard, hard is ok. Getting 100% of Lego Starwars II was HARD. Getting all the gaps in Tony Hawk American Wasteland, also very hard. Those are worth it to do, just for the 'I did it' factor. I don't like acheivements like 'Score Kingpin in Online Play' (Saints Row) or 'Win 25 arcade mode games with 3 other people' (Marvel Ultimate Alliance). While these achievements are 'do-able' they are certainly dependant upon other factors, and if you don't really LIKE online play, or none of your friends have the game, its gonna take a LOT longer. I don't want to be forced to play Saint's Row online for 4 weeks to get an award.

But my REAL beef here .. Is games like Chromehounds. Where 80% of the awards are for online play. Things like 'Be the highest rank in your country's standings at wars end.' Basically, have the highest score over anyone playing.

THAT .. is absurd. Sure, the people who get that achievement can brag. They can brag about the WEEKS a war lasts, and how they played all the time. Chromehounds is FULL of stupid awards like this :( And the real kicker is, if the game was AWESOME - like counter-strike AWESOME, they might have been justified putting those awards in. However, the game sucks ass. Its slow, ponderous, and not exciting. Tactics are very important, but most of the people there are NOT casual gamers, so joining a squad just to play with people who are not singles - not gonna happen.

I Blame it all on Jerry (Tycho) from Penny-Arcade, he was the one who sang so highly of its praises. Normally I agree on most of his game choices .. aside from the crafting soup obsession he tends to have, which saddly, I believe Chromehounds falls into.
Comments (0)

Step One .. Don't Panic
Project: Adventurers' Club Masks By Rembrandt on 3/12/2007 10:41 PM
Well, I finally got a working PICKit 2 from Microchip. It took me a few days to understand how the PICBASIC compiler works with the programming environment. Microchip's IDE environment was confusing as hell, and, of course, came with almost NO documentation.

Following one of the books I have, I started using MicroCode Studio [Free] with PicBasic Pro Compiler from melabs.com [Free]. I had to wait a few days for my free samples to come in from Microchip, as none of the chips I had bought for my programmer worked with the free compiler. The registered version of the compiler that works with everything runs about $230.00 .. So free chips it is, until my code demands more lines or better chips.

After about 2 days I *FINALLY* got a helloworld ... a blinking LED. WOOT.

That rapidly turned into a blinking light on a second chip when a pin on the first chip was +5v. Which soon turned into the second chip getting power, and the +5v pin reading via a cat-5 cable. *cool*.

Tonight while waiting for the USPTO to update .. I played around with serial communication between two chips. [sending only numbers, no ascii chars yet.]
As I don't have a usb <-> serial cable yet [but will soon $4.00 off ebay] I had to do all my debugging with LED's. 1/2 way though the project some wierdness occoured. My circut spontaniously loses power ? or something wierd. if I move the .1uf capacater i have across Vdd and Vss on the first chip [or totally remove and put it back] the circut starts going again. Sometimes if i touch the metal housing the breadboards are attached to, that will reset it too. Either the breadboards are cheap [I hope not, it was like $40.00] or I might have hurt one of the chips somehow .. regardless ..

Tonight's final result was that I have a PIC16f627A talking to a PIC16f876A via Serial communications. The 876A [chip two] will flash a green LED if it receives a value of 8, with a double flash for a value of 7. It flashes a red LED for any other value.

Chip A can send 7,8, or 125, determined by the presence or lack of +5v on two pins, over the serial communications pin.

Works pretty good.

What does this get me ? one might ask :

I know I can send Power [+5v], Pin voltages, and Serial Communication over Cat-5.
I know I can, using jumpers or a DIP switch array, set the address on a PIC, and then communicate that address to another chip.
I know that, on another chip, I can do something depending on the value of an address.

What this gets me bigger picture wise, is the ability to make a 'routing' circutboard with multiple cat-5 jacks. These jacks can be connected to child boards - which can be set with an address via dip switches. When a command is sent to the main chip on the router board, I can compare the 'target address' of the command with any of the child boards attached to the router board, and send the command accordingly.

Depending on how I truncate the command string, I can even have programmable sub circuts on the child board, to fire off selected events .. so I'm thinking via serial communication my commands might look like this :

[address of child].[address of child target].[command values]*

Where command values are whatever I need for the sub circut. [analog voltage, pin on .. whatever]

This might let me standardize commands .. for example maybe a command of 'blink eye' might have a command value of 57. [regardless of if a mask has that ability] so if I wanted all masks who COULD blink, TO blink, I wouldn't have to program each one, I would just send the command out to ALL masks, ALL Targets with command 57.

The ones that could blink, would.

I havent really gotten to far in thinking the language behind all this out quite yet. :P I need talking circuts first.

Then .. I need masks - but I have been thinking of ways to make them efficiently. Probably casting with Bondo and plaster molds - as they would be neigh-unbreakable - and I could saw and cut them into 'moving' parts without losing integrety easily.

Besides, 1 gallon of bondo is like $15 .. thats 1-2 good sized masks.

So .. I ordered a few books and a Microcontroller Programmer
Project: Adventurers' Club Masks By Rembrandt on 2/19/2007 1:48 PM
I ordered a few books :

Physical Computing,
Programming PIC Microcontrollers with PICBasic, and
Designing Embedded Hardware

[Found a good use for those Barnes & Noble Gift cards I had laying around.]

And a PICkit 2 Microcontroller programmer from Microchip.com .. Which promptly broke 20 mins after arriving. [They are mailing me a replacement]

So experiment halted for now :)






 Blog History Minimize


    

Privacy Statement | Terms Of Use
Copyright 2005 by My Website