Friday, May 25, 2018

EU Laws

European Union laws require you to give European Union visitors information about cookies used and data collected on your blog. In many cases, these laws also require you to obtain consent. 

Sunday, March 15, 2015

Automote Project

Zapmote version one got trashed.  I now have Automote!

This project has the following parts:

Arduino Uno
Arduino Ethernet Sheild
Relay Switch
A car remote

Stage 1 - Car Remote:

On the car remote solder a wire to the ground and power of the battery pins.  Next solder a wire to the button positive and negative.

 Stage 2 - Arduino:

Connect the Ethernet shield to the Arduino Uno.  Connect the battery wires of the car starter to the Arduino's power and ground.

Connect the car starter's button wires (right blue in photo) to the relay switch.  Then connect the relay ground, power, and data to the Arduino Uno.

Load the following code:

//Start of code
/*
  Web Server

 A simple web server that shows the value of the analog input pins.
 using an Arduino Wiznet Ethernet shield.

 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 * Analog inputs attached to pins A0 through A5 (optional)

 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe

 */

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,0,14);
int goPin = 3;
String readString;

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
  pinMode(goPin, OUTPUT);
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}


void loop() {
  // Create a client connection
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
   
        //read char by char HTTP request
        if (readString.length() < 100) {
          //store characters to string
          readString += c;
          //Serial.print(c);
         }

         //if HTTP request has ended
         if (c == '\n') {        
           Serial.println(readString); //print to serial monitor for debuging
   
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println("Connection: close");  // the connection will be closed after completion of the response
 //client.println("Refresh: 5");  // refresh the page automatically every 5 sec
          client.println();
          client.println("<!DOCTYPE HTML>");
          client.println("<html>");
          client.println("<head>");
          client.println("<meta name='viewport' content='width=device-width, initial-scale=1'>");
          client.println("<link rel='stylesheet' href='http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css'>");
          client.println("<script src='http://code.jquery.com/jquery-1.11.1.min.js'></script>");
          client.println("<script src='http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js'></script>");
          client.println("</head><body>");
          client.println("<div data-role='page' id='pageone'>");
          client.println("<div data-role='header'><h1>AutoRemote</h1></div>");
          client.println("<div data-role='main' class='ui-content'><a href=\"/?on\" class='ui-btn'>Start Car</a></div>");
          client.println("</div></body>");
          client.println("</html>");
       
          delay(1);
           //stopping client
           client.stop();
           //controls the Arduino if you press the buttons
           if (readString.indexOf("?on") >0){
               digitalWrite(goPin, HIGH);
               delay(1000);
               digitalWrite(goPin, LOW);
           }
            //clearing string for next read
            readString="";
         }
       }
    }
}
}
//***********************
//End Code
//***********************

You may need to change the IP address for your local network, and you can change the mac address as well.  Be warned if your IP or mac address is the same as anther device on your local network you will have problems.

Once you have this all done, go to your phone and load the webpage.  Once you click the button you should hear the relay go off!

Thursday, December 12, 2013

Zapmote - Router Remote Car Starter

So this idea of a computer router that could be wired up to my car starter has been floating around all summer, and now that it is winter I really want to get this done.  If you haven't hear what I'm talking about here it is.  I will be taking an old G router and wiring up my car starter to it.  Why?  So that I won't be fumbling around and misplacing my remote car stater for my car.  I will be able to use my phone to start my car, or if I want to start my car as I'm coming home.

Parts Required:
 - Remote Car Starter
 - Car
 - Computer Router
     - One that is supported by OpenWrt (WRT54G-RG)
 - Soldering Gun


Lets get a computer router.  The old Linksys G routers work great as they are cheap and are supported by OpenWrt.  Not all routers are supported by OpenWrt and this software will allow us to modify the router so that I can get what I want.


Once you get this setup with OpenWrt you can telnet into the router.  Once I got in I found that under the folder /proc/diag/led/ that there are 5 files for the lights:

dmz
power
ses_orange
ses_white
wlan

The power and wlan are in use by the OS, but the other leds are up for grabs.  With a little bit of code we can turn the leds on and off:

echo 1 > /proc/diag/led/ses_white
echo 0 > /proc/diag/led/ses_white

to be continued...

Wednesday, April 17, 2013



So I've been a little out of action with this blog, but for all good reasons.  I have been training a new board gamer, but all my efforts and all he can do is drool.  In time he will be ready.  I've also decided to stretch out my legs a bit more and I have acquire a new place of dwelling.  With all that going on I brought my whole collection of Warmachines/Hordes to work.     This always makes people stop and stare for a bit.  Hopefully once I get settled in I can start up building again.

Saturday, August 13, 2011

The Winter Waste Land Update #1

Well it has been a while since my last update, but I have been hard at work and enjoying my summer.  I knew the bridge was going to be the hardest thing to tackle.  I started with the rocks on either side and I was able to get them to a design I like.  I was also thinking about having the board able to do a bunch of combinations just so that I wouldn't get board of the same table.



Now when I placed the boards back to back I see that some of the rocks make a cliff, and I might add some a step or two so that the rocks don't become an impassible terrain feature.  I have the rocks done so that now I can work on the bridge.  I drew out all the stones first.  I then took a pen and just dug into the foam a bit deeper.  It gave you the effect that you see below.

Man! Did that ever take a long time.  I don't think I would want to do smaller stones than that for the top of the bridge.  I would like to get the board done a bit sooner than later. You might notice that on either side of the bridge that this is some dug out stones.  This is where I'm going to have some fallen stone so that essentially you can use it to get on and off the bridge.  It would suck if you had to go all the way to one side of the bridge to get off.  I can see that making a big mess.  As for the sides of the bridge I decided to go with a little bit smaller size of stone.

With those arches along the side I will be cutting those out so that it looks like water can pass under it.  This was my plan from the beginning. I think this project is coming along just nicely.  Next I will be adding in a small stream to go across the board and then fix up any loose ends.  Once that is all done I can then start on painting.  I can't wait to have this all done!


Here is my table in action.  This was the scenario were you had to hold the center of the bridge and also have a warcaster/warlock near a flag that was located off the side of the bridge.  I don't think anyone won by scenario, it all ended up as warcaster/warlock kill.



Friday, July 8, 2011

The Winter Waste Land


Well it is that time again.  I am ready to build a new project.  This one is going to be bigger than ever.  This project is going to be a full fledged terrain board. The board is going to be a winter theme as Khador live in the northern region.  My overall plan design is going to be mountains in opposite corners with a large stone bridge connecting them over a shallow creek.  I did put some thought into this and figured that if the battle took place on the bridge you would only be playing that part of the board.  I want the bridge to be the focal point, but I want the whole board to be playable.  So I will be adding a crumbling side to the bridge so that you can still play straight down the board.  I also want to have two guard towers in the middle of the bridge for some added detail and height.

So now that I have my plan all set out for me I did draw a blue print of what I wanted. [ picture will be added later].  I then took the blue print and added it to the table.  Modifying it a bit to handle the different model bases.  Once I got everything laid out I then started to cut up some foam.  I cut my large piece in half so that I would have two 4' X 2' foam boards to use as the base. The foam board is 1.5" thick.  I then used 2" thick foam for the mountain.  This allowed me to measure 1" for a step and I was able to cut it out.  Later i will be adding more detail to the hill, as I want to get a rough idea how all the large pieces are going to fit together.




So far this is as far as I got, but I'll be adding to this post as I move along with the progress.  

For more progress check out : Winter Waste Land Update #1

Monday, December 13, 2010

Tudor House

Hi,

Back again for my next project.  If I'm going to do a winter theme I should have a place for my people to stay in.  This idea came from one of the Quarter No magazines from Privateer Press.  I modified the house a bit so that it would fit my liking.  First of all you need to cut out 4 walls and glue them together.  This will make the base of the house.  Next I cut a rectangle floor/ceiling and glue that to the main floor.  Then I cut out 4 more walls, although this time I have a peak on two of them.  I cut out a cereal box for the roof.  I used a cereal box because when it has too much moisture from the paint and glue it warps, because who has a straight and perfect roof?  I then used some foam and cut out myself a chimney.




The shingles were cut out of cereal box as well.  I cut out every single square and glued them on.  This made the roof warp a bit.  Perfect!

Next came a bit of paint to get the shadowing, and a bit of Tudor style to make the house look a little extra nice.  Make sure you paint the house white before you put on the trim.  Otherwise you are going to have a fun time painting it later.  My wife pointed that out.  I even added some hinges to the windows and doors.



Once that was all dry I add the last bit of paint to the roof, chimney, and wood panels.


So there you have it.  Till next time!