Monday, January 21, 2013

Using a Radiator to generate electricity

So I little while ago I came up with the idea of connecting a bunch of thermoelectric peltier devices together and putting them on top of a radiator and using it to generate enough electricity that I can plug things into this device.

Pretty simple actually. Find a DC to AC converter, they use these in cars for making 12v DC into 120v AC. So basically now all I need to do is be able to generate 12v DC from these peltier devices.

If you are not familiar with peltier devices, they are actually super cool. They use the Seebeck effect to generate eletricity. Basically it is that when there is a temperature difference charge carriers will diffuse from the hot to the cold and likewise. Using semiconductors if we can make the diffusion of the carriers occur at different rates and gain charge separation we can create a voltage.

So I bought a couple peltier devices from eBay, from China and tested them out just by touching them to the radiator. Now the peltier works by temperature difference I know but it was just tests. I found I could measure about 0.3v DC from a TEC1 12706 without any fans or any help creating a better temperature differential. So if I need 3 units per volt and and 12 volts, that's 36 units at about $3 each which is more than I want to spend. Basically, I am hoping I can create a large enough temperature differential that I can make due with 12 or 20 or something.

I currently have 12x TEC1 12706 and 2x TEC1 12710.
I also bought an emergency thermal blanket so I can just drape something over the radiator.





I tested the peltiers in series and they seem to work fine now I just need to solder them all together and duct tape? them to the blanket. Updates coming soon.


Sunday, January 20, 2013

Weekends

I haven't been updating much on weekends and not because I haven't been doing much. I guess I am just not motivated enough to post stuff. Also, probably because I am slightly hungover.

I have not been able to sleep well lately so I decided that from now on I am not going to sleep until I am extremely tired. It works kind of well I guess...

Been studying alot about Stochastic equations in game theory and population dynamics. Trying to piece together Modern Game Theory. I am finding too many differential equations mixed with linear algebra and I am just like daahhhh, Why can't we just do simulations?

Oh yeah, when I was talking about units moving in gaussian distributions that is basically diffusion, HAH.

I love diffusion and Maxwell's Ratchet I want to build something based off of diffusion/brownian motion. I want to build a calculator (this is kind of a joke I was just day dreaming today). You have a solution and it contains different sized magnetic particles. That are all connected to an electromagnet. When you try and do a calculation it drops the particles and then allows them to diffuse. Based on the mean squared distance different size beads diffuse over say 1 hour you have your answer. The calculator works by changing the temperature to increase or decrease diffusion rates. Ratios of different sized beads at different distances can be mapped back to an actual integer value. That would be fun to build haha. Then to restart you activate the electromagnet so they all have the same initial start position.


Friday, January 18, 2013

Game Theory

Games of Life are really interesting and very simple but it seems to be a field somewhat lacking. With the computational power and the minds we have today why are people stuck on things such as Conway's Game of Life?

Yesterday, i spent lots of time reading on game theory and thinking of different ways to invite new games. The most cool thought experiment game I found was The Pirate Game . I really like the logic and reasoning behind the results.

Ok so what to do.. I was thinking about applying Statistical Mechanics to decision making processes and seeing how that led to self-organization or equilibrium behaviour. Simulated actions would be described by probability distribution. The problem is I keep thinking that I am just coming back to molecular dynamics.

Strategies is also an interesting part of Game Theory. As in finding optimal strategies for simple games.

I am more inclined towards the simulation part though. I just have not been able to figure out how to distill things down to a simple simulation.

Conway's Game of Life was interesting to people because it only had 4 rules even though they were completely arbitrary:

  1. Any live cell with fewer than two live neighbours dies, as if caused by under-population.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overcrowding.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
I guess it would be interesting to find out how many rules are needed for self-organization. I guess the problem with these games is that there is really no probabilities or random variables. There are sets of defined variables and that is it.
How much randomness or stochasticity would it take to ruin a self-organized system?
 What does it take for a self-organized system to stay self-organized even with X amount of noise or stochasticity?

I need more time to think and maybe more time to drink. It's Friday and almost time for graduate student seminar. 

Thursday, January 17, 2013

What ISO actually produces in Picture Quality

I finally found it:
http://www.dpreview.com/reviews/nikon-d3200/12

For my spectrophotography I wanted to find out what ISO and different values actually mean for picture quality and I found a website that has it!
I am stuck between the Nikon D3200 ~$600 and the Nikon D3100 ~$300. I guess I could test them out and if they don't work well just return them but then I can't buy them off of eBay and eBay saves some money. Well D3100 is like $300 on eBay and about $475 on Amazon! The D3200 is about the same on both unless I troll eBay seriously.

Hmmm tough choice...

A Heated Hoody? Hoodie?

Hoody sounds like a hoodlum but I will go with it.

For Christmas I built my brother a heated hoody it ended up costing around $100 but it is pretty badass.


4x 5x15cm Heating Pad  @ $4.95 = $19.80
https://www.sparkfun.com/products/11289

1x Wearable Keypad @ $12.95
https://www.sparkfun.com/products/10411

8x 2500 mAh NiMH Battery - AA @ $2.95 each = $23.60
https://www.sparkfun.com/products/335

1x NiMH Battery Charger @ $7.95
https://www.sparkfun.com/products/10052

2x Battery Holder - 4xAA Square @ $1.95 = $3.90
https://www.sparkfun.com/products/552

1x N-Channel MOSFET 60V 30A @ $0.95
https://www.sparkfun.com/products/10213

1x Arduino off of eBay from China or something @$13

1x Hoody @ $25

I generally prefer buying stuff on eBay or Digikey because the prices are much cheaper than SparkFun but they had that wearable keypad and I wanted shipping in a reasonable amount of time so I went for it. Also could have separated the ATMega from the Arduino and used it as a standalone but didn't feel like spending the time to do that to save $10.

Basically the way the jacket works is that there are two pads in front and two pads in back. The wearable keypad controls the temperature through the PWM output and the MOSFET. The MOSFET is for switching the control voltage/current to the heat pads. This is needed because the Arduino I/O has a 40mA max current and we need alot more, the Heat pads draw ~700mA at 5v.

Schematic:



Arduino code:
http://pastebin.com/hDat8LC0





Github

I wanted a place to store all my code in an easy readable format so I thought I would checkout out Github... HAH

It is a complex subversioning system that I could fucking care less about. I just want to upload code not add, init, commit. Seriously...

I found this and yeah that is how complicated it is...


Wednesday, January 16, 2013

In Memory of Aaron Swartz I found this on Pastebin

http://pastebin.com/Q3AzAZ0Q

Steganalysis

I found this sketchy looking posting:
http://chicago.craigslist.org/nwc/zip/3542750346.html

It has to be some kind of code or somebody who wants to murder someone? Anyways, I was looking for a decent Steganalysis program online, let me rephrase that. I was looking for a functional steganalysis program online and could not find one.

Am I bored enough to write one? Hmmm

Really, the person who is trying to give away expired coffee in their freezer is sketching me out.

Tuesday, January 15, 2013

Units

A friend has queued me in on cellular automata.
https://scimusing.wordpress.com/2013/01/14/sunday-project-one-dimensional-cellular-automata/

I don't like to call them cells because these "cells" can actually represent anything so I guess I will refer to them as "units". The first interesting hurdle I have come to is how do two of these units interact. They have a basic function i.e. moving around an xy plane and then happen to try and occupy a space that either another unit occupies or the same space another unit is trying to occupy at the same time. What to do?

There is a simple answer. The interaction either causes something to happen or it does not. Simple. But the interaction can be slightly more complex than that. Say we are talking about proteins then we can say, the interact either effects the Boltzmann distributed state of the protein or not. How much? Do I really want to give each unit a distribution of states akin to the partition function?

What about ion diffusion? Can I recapitulate ion diffusion to the extent that I can make a self-organizing system? I guess that is basically what molecular dynamics tries to do but I guess I am trying on a simpler level.

I think I need to setup a goal for these units and then give them choices and figure out how simple systems solve problems. How they communicate.. &c.

I know everyone hates Perl but go cry to your mommy here is the basic outline code I am thinking about:


#!/usr/bin/perl


# $grid[256][256];

$grid[0][2] = 5;

print "$grid[0][2]";

for($a = 0;$a < $numcells;$a++)
{

  $x = int(rand(255));
  $y = int(rand(255));
  $grid[$x][$y] = 1;
}

for($b = 0;$b < $rounds;)
{
  for($gridx = 0;$gridx <= 255;$gridx++)
  {
    for($gridy = 0;$gridy <= 255; $gridy++)


    {
      if($grid[$gridx][$gridy] == 1)
      {
        $randx = int(rand(2));
        $randy = int(rand(2));
        $grid[$gridx][$gridy] = 0;

        switch($randx)
        {
           case 0:
           case 1:
           $gridx++;
           case 2:
           $gridx--;
        }

        switch($randy)
        {
           case 0;
           case 1:
           $gridy++;
           case 2:
           $gridy--;

        }
        if($grid[$gridx][$gridy] == 1)
        {
          #what to do if someone is already here?
        }
      }
    }
  }
}
 

LEDs and Windows

I just received some LEDs I ordered for eBay and wanted to test them out because the last batched I ordered flashing LEDs by mistake. I didn't have a power source close by besides a microUSB plug connected to my Windows laptop so I connected the LED to the proper pins and it glowed. But then windows freaked out and wouldn't recognize any of my USB devices so I had to restart.

Let this be a lesson.

Cool Picture


http://fc09.deviantart.net/fs21/f/2007/285/e/6/e61c252f7534511d.jpg

Found it from here:
http://www.youtube.com/watch?feature=endscreen&v=2XG_0iV2B40&NR=1

Been on this big dubsteb kick lately while writing papers or coding.


Monday, January 14, 2013

Superman

Me trying to order something from Walgreens online. Yes, I shop as much as possible from home, don't hate.
Please wait while we find an agent to assist you...
Hi! My name is Khadija G. How may I help you?
Customer:  When I try to order online it keeps saying "The United States Postal Service indicates your address has an incorrect apartment, suite, or unit number. Please enter it below to continue."
Customer:  no matter what I eneter
Khadija G:  I apologize for the inconvenience! Thank you for choosing Walgreens.com. I will be more than happy to assist you. May I please have the pleasure of knowing who I am chatting with today?
Customer:  Does it matter?
Khadija G:  Yes please I apologize but we do need to get your first and last name please.
Customer:  Clark Kent
Khadija G:  Thank you Clark are you entering the last 4 digits of your zip code?
Customer:  You mean the extended zip code?
Customer:  My zipcode is 60615
Customer:  Well normally I reside in Metropolis New York and Work for the Daily Planet but currently I am in Chicago
Khadija G:  Ok and where do you want the goods to be shipped too please?
Customer:  ********** Apt 3L
Customer:  Chicago, IL 60615
Customer:  but you can't tell anyone my address
Customer:  There is this guy Lex Luther who has been looking for me
Khadija G:  Thank you Clark I promise not to tell anyone. Do you have a Walgreens.com account already?
Customer:  No
Khadija G:  Ok I would recommend opening a Walgreens.com account first this will allow you to enter both of your addresses.
Khadija G:  I can send you the steps to register.
Customer:  That's ok
Customer:  I will do it myself
Customer:  Thanks for the help
Khadija G:  Thank you for chatting and please accept our apology for the inconvenience you experienced.
Customer:  and keeping my identity safe
Khadija G:  I understand Clark.
Customer:  *wink* of course you do. Goodbye.
Khadija G:  Goodbye Clark

Language Analysis

I have been working on a project for a while trying to analyze different modalities of the English language using Google Books, Twitter, IRC Chat and Phone conversations. The project is really quite interesting and has taught me a decent amount about statistics and linguistics. Lately I have been trying to create a confusion matrix with the different corpora in order to determine how different/similar these modalities of language we speak are. I am finally finishing up this project with what I consider respectable data and respectable results.

My goal now is to write up a nice little paper and send it off to some open access journal. I spent lots of yesterday coding and making some figures. I still love Perl despite its faults.