Custom Search

Monthly Archives: November 2009

One Step Closer to Finishing My Eye

0
Filed under arduino, electronics, Hardware
Tagged as , , ,

ready to test

ready to test



My IR eye is finally built and is ready to test, and see if my eye really works or not, my first readings were pretty good, by using a TV remote i tested each photo transistor to make sure it was working correctly before i attached it to the servo.
The whole assembly is partially made out of recycled materials, the x axis base is made from an old cd that i was going to toss, and the y axis mount was made from a shelf bracket (found it in one of my boxes), the main base is made out of an old cardboard box that was bound for the recycling.
Finished connections

Finished connections


I will have a build page up as soon as i finish some of the code.
With Video!
.

More parts comming

0
Filed under arduino, electronics, Hardware
Tagged as ,

1 x Arduino (Atmega328 – assembled) (Duemilanove w/Atmega328)
1 x Shield stacking headers
1 x Adafruit Proto Shield for Arduino Kit (v.5)
1 x Breadboarding wire bundle
1 x Mini Solder spool (100g)
1 x Solder sucker

IR eye

0
Filed under arduino, electronics, Hardware
Tagged as , , , ,

This project is the first step in my motion tracking. This Eye was built and adapted from an LRM post here .

DSCN0219DSCN0221please dont laugh at my soldering job, its what i can manage with that kind of board, I like the ones that mimic a breadboard setup. With very little trouble i finished soldering in about 2 hours but had to go back a desolder one transistor and replace it and resolder one wire. After that i tested each IR sensor by themselves to make sure they all worked, each one gave a little different reading off the same IR source but that can be fixed with a little calibration in the software. But for now my goal is to hook it up to 2 servos and control the x and y for the motion tracking, eventually i would like to put this into an enclosure that looks like an eye.
This is to make sure all 4 eyes are working
const int sensepin0 = 0;
const int sensepin1 = 1;
const int sensepin2 = 2;
const int sensepin3 = 3;
int sensorValue0 = 0;
int sensorValue1 = 0;
int sensorValue2 = 0;
int sensorValue3 = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorValue0 = analogRead(sensepin0);
sensorValue1 = analogRead(sensepin1);
sensorValue2 = analogRead(sensepin2);
sensorValue3 = analogRead(sensepin3);
Serial.print("sensor = ");
Serial.print(sensorValue0);
Serial.print(" ");
Serial.print(sensorValue1);
Serial.print(" ");
Serial.print(sensorValue2);
Serial.print(" ");
Serial.println(sensorValue3);
delay(10);
}

this will test all 4 sensors and print to the serial port.

also this code is written for the arduino but can be adapted to other microprossecors.

Here is a screenshot of the schematic as well

ScreenshotNext i will mount it to the servo and start writing the logic for 1 of the axis, but my question is how to mount this to a servo with stuff wround the garage. I will answer this question soo.

and this is why you should never place you MC on your keyboard…………..Screenshot-1that large stack to the left is about 30 print screen applications running. I placed my arduino on my print screen button for about 10 secs before I realized what was going on.

Parts:

  • 4x 2n 2222 NPN transistors (generic NPN)
  • 4x 220 Ohm 1/4w resistors
  • 4x NPN photo transistors
  • a bunch of wire
  • Arduino

I hate slow DBs

0
Filed under General, software
Tagged as , ,

Have you ever called a place that needs to look up your account or other info? ever notice how it takes about a some time for them to get that info?

I’m the guy on the other side of the line waiting to get that info so I can help fix what ever problem they had called in with, and the longer i work the more i notice that its taking longer and longer to for me to pull up any info about any account. So whats is the deal, why cant a multi billion dollar company fix a database?

We live in the Age of Information, where almost everything is instant, where people expect info or help to be provided to them that instant. My guess is everyone at my place of employment probably don’t even notice the long waits between DB queries through our ticketing system. So how long is long? well i decided to test this, for a basic customer id I queried takes about 20 seconds, ok thats acceptable but thats only to bring up there info, not there ticket history. So i click on there history, guess what another 30 seconds on the clock, so it starting to get bad, after that you can click on individual tickets, create a new one or use tabs to look at more info. Each tab when clicked on takes 5-25 seconds to open. And these are the fast times, other times i sit 30 secs to about 1 min to get anything useful, and there have been times that I started a query when I left for break , came back and still had 5 mins to wait till it finally showed some results. My querries where presise and dont pull alot of data, but this is getting ridicolous. So how does a database get this slow? traffic? Nope cant be traffic, I work 3 rd shift and have about 15 people who use it , during the day over 100 people use it. What about maitnence? not likely, thats run once a week for about 2 hours or so.

What else could it be? corrupted database? bad design for a large database? I  have never worked with a large database like that before so I don’t know the challenges of design or maintenance of such a large beast. But I have worked with smaller DBs that had similar slowdowns, but that was caused by too much data being pulled, like querying the entire DB or a few thousand rows. Or could the bandit be the vendor lock on the ticketing system in combo there DB, by the way the ticketing system looks very customized and even has features, custom built by other vendors, like the data being pulled from  an access database or integration into 2 other ticketing systems. My guess is Oracles Seibel, and DB work wonders out of the box and setup correctly even better when you use there system to input the data. I wonder who approved adding more plugins was a great idea?  This kind of bloat is inexcusable in a place where employees are timed. How do you fix something thats going to get screwed anyways, there policy just keep it chugging along, my solution would be to start gettting rid of or migrating 3yr+ old tickets and closed accounts to another DB, at least it would be a start, next would be to start removing the bloat from system, we do not need it to make our coffee and tell us were great. We need something light fast and simple, all we want to do is get the person what they want and move on. What will it take for these so called decision makers to realize that there all in one application dream doesn’t work in reality. Maybe this will become the next epic IT failure? not likely because its behind closed doors and if it failed i doubt that they would even tell the employees. So far i enjoy working for the smaller company, at least your voice is heard unlike here where your the bottom of the barrel.

Sorry about the long rant but some things at large companies are inexcusable that can throw money at situations. I thought customer service was supposed to be the focus of what we do. When will the people who call the shots going to learn to think logical instead of  using a magic 8 ball and some business lingo to make decisions about technology.