Laser Annoyance Device

April 25th, 2008

The other day I was working on a final project with some friends at school when we had a brilliant idea.  We used a laser pointer from one of the projector remotes to mess with people in the commons at school from a small window in an upstairs classroom.  When the student we were messing with started looking around to see where the source of the light was coming from, we would quickly duck out of site.  A few people would watch the students react on the UAT webcam.  When we could see that the students stopped looking around to see who was shining the laser, we would pop out again and shine it.  They could NOT figure out where the laser was coming from.  Hilarity ensued.

This lead to a project idea.  Recently I procured an RC car with a video camera and headset.  This thing is really quiet and really cool.  I’m thinking I should be able to re-mount the camera on dual-axis servo rig.  This would let me aim the camera in any direction I want.  Also, I want to mount a laser on top of the camera so I can remotely shine it at people from this little car.  It would be so much harder for people to spot this quiet little black car than a giggling college student.  Yes, I know this project is ridiculous but I think it would be fun.  It also gives me another reason to learn a microcontroller other than a BS2.  I’ll just call it a social experiment.  I’ve added this project to the Ideas section.

Graduation Hacks Updated

April 25th, 2008

Ok so, I’ve graduated already and I completed this project. I was so caught up with getting this project ready that I didn’t even bother to take photos of it or document anything until now. I also had lots of homework and final projects to finish. I still do, actually. But I have some more time to update so I am going to update the graduation hacks section right now. Also, I realized that what was previously written in that section should have been posted as a blog post instead, so I’ve removed it from that section and included it below so I would still have all of that documented. Time to go update!

Also, expect to see the VU meter tie project updated very soon as well.  I’ve decided to use my Tech Ninja shirt instead of a tie, but the idea is similar.  I will use red surface mountable LEDs on each button of the shirt.  Those buttons will act as the VU meter.  I will wear this shirt way more than I would ever wear a tie.   Plus, since I’m looking into learning a new microcontroller, perhaps I can update the circuit and make it smaller as well.  We’ll find out…

——Below is what used to be written in the graduation hack section.——–

I graduate on April 17, 2008 and today is April 3rd. I just received my cap and gown in the mail about 2 days ago. My teacher, Ryan, made me realize that I should modify my cap and/or gown in some way to make it my own. I’m inclined to agree. I’m not really sure what I want to do with it yet. I can’t quite come up with an idea I feel is good enough. A friend of mine is going to put a matrix of LEDs on his cap. So far the Ideas I have are:

1) A motor in the middle of the cap to make the tassels spin around.
2) LEDs in the tassels.

It’s not much right now, but I’ll keep working on this. I only have two weeks until graduation.

Small Update

April 23rd, 2008

I’m still really busy with trying to get all of my homework and final papers complete, but I wanted to throw up a few more links that helped me out with the VU Meter project. I don’t want to lose them forever. I should have time in a day or two to actually put some real updates on here. Until then, here are the links:

How to power electret microphones

LM3914 Datasheet

Op-Amp basics

Once I get some more time I will try to actually put these up on my own server instead of just linking to other sites. Until next time…

Oh, and one more thing.  I’ve started working on a new project that I haven’t even posted anywhere on the site yet.  It’s basically a script that will watch for an e-mail and then jump onto The Edge 103.9’s web page to see what song is playing.  This way, when I’m driving my car, I can just text message my server and have it save a list of all the songs I like.  Then I can go find them later without having to write them down or try to remember them.  I’ll post up my progress on that later as well.  Ok, NOW I’m out.

VU Meter Tie / Graduation Hacks Almost Complete!

April 14th, 2008

So,  I ended up decided to build the VU Meter Tie circuit and use it on my graduation gown, thus killing two birds with one stone.  I have been so completely busy this week with homework and trying to get this project finished before my family arrives on Wednesday that I haven’t posted any updates at all.  Also, I have an interview in the morning.  Hope that goes well.  Anyways, back to the topic at hand.  Hopefully tomorrow night I can post a video and some photos to show how truly awesome this thing is.  Until then…

VU Tie Updates

April 11th, 2008

I’ve been working on this project since I woke up this morning… about 1.5 hours ago.  But I now have it successfully working with a piezo speaker as a microphone.  I had to run the speaker output through an op-amp in order to get it working, but it does work.  The only problem I’m having with it is that it only picks up noise that is RIGHT next to it.  It’s probably just the crappy speaker, but I might be able to help it out by bumping up th amplification again.  Also, I am using a quad op-amp because it’s all that I had laying around.  I’m only using one of the op-amps on the IC so I’ll have to go pick up something smaller.  I DO want to wear this eventually so size is key.

Here are some of the helpful references I have used so far:

Datasheet for the LM386N quad op-amp I’m using.

Instructable someone created about how to build a VU meter.

4/11/08 – 5:51 PM

I have completed the vu meter tie circuit – or so I believe anyway.  After purchasing two new microphones from RadioShack for this project, it turns out that one I had lying around here isn’t broken as I had originally thought.  In fact, it works WAY better than the other mics I just bought.  This one is much more sensitive to my voice.  I think I finally have the correct resistor ratios for the amplifier circuit as well.  It’s all coming along quite nicely.  I will try to post up some pictures and get schematics drawn up later, but for now I’m off to Target to hopefully purchase some stamps.  Does Target even sell stamps?

VU Meter Tie

April 10th, 2008

I just started working on the VU meter tie.  Today has been a productive day.  I got the main meter circuit up and running in no time.  Now I just need to get it working with a microphone.  Once I have that running, all I’ll need to do is assemble it on a PCB and stick it in a tie.

Check it out in the Works in Progress section.

E-mail Harvest

April 10th, 2008

I’m starting to work on the E-mail harvesting program now. The other day I went to myspace and took a look around. Guess what? No e-mail addresses are visible anywhere. There’s no specific place to pull e-mail addresses from. That’s when I decided to go check out facebook. These guys are crafty. They include your e-mail address but they include it as an image. That way you can’t just copy and paste the text. Well I think to think that I am craftier. I started doing a little Google research on linux-based OCR software. For those that don’t already know OCR stands for optical character recognition. This software will read an image and turn the text located within it into an actual editable text document.

I found this awesome article comparing many different OCR engines designed for linux. I’ve decided that gocr is the simplest solution that should do everything I need it too. I just need a program I can send an image too and have that program send me back text. That is exactly how gocr works. Now i just have to get it installed on CentOS.

I found the source for gocr at http://jocr.sourceforge.net. I just run the command:

wget http://prdownloads.sourceforge.net/jocr/gocr-0.45.tar.gz

Then I extract the file:

tar -xzvf gocr-0.45.tar.gz

configure, make, and install:

./configure
make
sudo make install

The image files on facebook are png images. gocr uses a utility called pngtopnm to convert the image to a format it can understand. This utility is included in the netpbm package.

sudo yum install netpbm
sudo yum install netpbm-progs

Now that everything is installed I can just try running the program with a downloaded facebook email image.

gocr -i test.png

The image I gave it contained my email address “ricosgoo@uat.edu”. The result: “ricgoouat.edu”. It seems as though gocr didn’t pick it up correctly. I’m pretty sure the reason is that the ‘o’ and the ’s’ in the image are touching each other. gocr probably thinks it is one character and cannot recognize it so it is just leaving it out. Also, it missed the @ symbol. I tried a different facebook image and the @ sign was missing from that as well. It would seem as though gocr does not support the @ sign in its dictionary. I might need to try a different OCR program.

Doing some more google research, I found that many people feel that HP’s tesseracr-ocr is one of the best open-source OCRs there is. That was my next logical step. I followed this guide again to get the software up and running.

wget http://tesseract-ocr.googlecode.com/files/tesseract-2.01.tar.gz
tar -xzvf tesseract-2.01.tar.gz
cd tesseract-2.01
./configure
make
sudo make install

Now I have to install the English language dictionary files for tesseract.

wget http://tesseract-ocr.googlecode.com/files/tesseract-2.00.eng.tar.gz
tar -xzvf tesseract-2.00.eng.tar.gz
cd tesseract-2.00.eng
sudo cp * /usr/local/share/tessdata/

I also needed to install ImageMagick so that I can convert the facebook images to tiff files. I have to do this because tesseract-ocr only supports tiff images right now.

sudo yum install ImageMagick.i386

Now I convert the image to a tiff file.

convert test.png test.tiff

Now I try out the OCR.

tesseract test.tiff test.txt

No good.  I get error messages.  Here is Tesseract’s output:

Tesseract Open Source OCR Engine
name_to_image_type:Error:Unrecognized image type:test.tiff
IMAGE::read_header:Error:Can’t read this image type:test.tiff
tesseract:Error:Read of file failed:test.tiff
Signal_exit 31 ABORT. LocCode: 3  AbortCode: 3

I have to take a break from all this now, so I’ll deal with these problems later.

Free Samples!

April 9th, 2008

I just ordered a whole bunch of MINITEC cases from www.okw.co.uk.  They’re these little project enclosures that you can strap to your wrist.  I think I might be able to think of a few project ideas for these.  I’ll probably have something new posted up in the ideas section sometime next week.  That is if I have time between my job interview and graduation.

Also I’ve been looking into how to go about making that VU meter tie.  I’m thinking that project might move to the works in progress section real soon.  As soon as I can pick myself up an LM3914N LED driver.  This thing should be perfect for what I need.

“Finished” Cantenna

April 9th, 2008

Well, I finished the cantenna today… sort of.  I say this because it appears to be working, but not very well.  At first it didn’t work at all.  It turns out I had made a fatal mistake when I mounted the “N” connector to the can.  The signal part of the antenna was touching the actual side of the can.  This caused a short.  The actual antenna signal was shorted directly to ground.  I had to take the mount off, wrap some tape around the antenna part, and then mount it back on.

The antenna seems to be working a little bit.  I can point it off into the distance and Kismet will show the signal strength increase or decrease for the surrounding networks depending on where I point it.  The signal change is usually only about 5-8db though.  I was really hoping for a better signal.  The trick here is that it’s difficult to tell where the problem is.  It could be the way I soldered the coat hanger piece to the connector.  It could be the way the connector is mounted to the can.  It could also be the way I soldered the small coax cable to the actual network card.  There are so many places this could be wrong.  Really the only way to figure this out would be for me to get a wireless card with an external connector and hook up the cantenna to it.  My guess is that I’m losing some signal in the solder connections I made on the wireless card itself.  For now, though, I’m done with this project.  I’ll fiddle with in on my wireless for some more testing but I don’t plan on trying to make it any better right now.  There are just too many variables.  Once I get some more money I’ll but a card with an external antenna connector and get back into this.

Another new idea and a cantenna update

April 8th, 2008

Today I only went to one class: Law370. Normally, I really hate the thought of going to the class, but it’s always a lot of fun. That professor really knows how to teach. I always learn something new from that class. Today, we were separated into groups and each group had to research a specific law regarding cyber-crime. This whole activity spawned a new project idea.

My group was assigned the CAN-SPAM act of 2003. This act basically has all these rules regulating how spam e-mail can be sent. I’m not going into that because it’s long, it’s complicated, and it really doesn’t matter for my project idea. My project basically will be a script that will crawl social networking sites like Facebook and MySpace to collect e-mail addresses. It gets more diabolical than that, though. The script will log onto someone’s MySpace account and get their e-mail. Then, the script will log onto each of that person’s “Top 8″ friends and get THEIR e-mail addresses. Now, the script can send a phishing e-mail to each of the friends on the “Top 8″ list and spoof the e-mail that it originates from to look like it is coming from the original person. I think this would be an awesome and fun proof of concept. I would never use actually use this for my own malicious purposes, although I would be interested to see how well it would actually work. I really just want to write this script just to do it. It would give me an excuse to brush up on my scripting and programming skills.

I think I’ll get started on this idea soon, seeing as it won’t cost me any money.

Another update here. I started working on the cantenna project some more. I bought the pigtail that I need, cut off one end and soldered it to the PCMCIA card. I’ve also soldered the piece of copper wire to the jack that attaches to the can. All I need now is a can to attach this thing too. The solder points on the PCB were so small, I’m not sure that the connections will be good enough. Hopefully I’ll find out tomorrow. I don’t have any class so I have the entire day off. I plan on getting a can either form the cafe at school or from the supermarket. I shall update the cantenna page as time permits.