obligatory obscure reference


self-deprecating yet still self-promotional witty comment

2008/09/18

preview — which Arduino is right for you?

Filed under: Arduino — jet @ 05:53

As part of figuring out which Arduino to use, I’m making a chart of the various characteristics of Arduino boards.

So far I have the obvious — # I/O pins, form factor, required power, etc. Anything in particular that you (collective) would find useful in such a chart that I might not think of? For example, do you care about weight? Physical dimensions without pins?

Let me know in email or in comments.

[tags]Arduino, survey[/tags]

2008/09/07

Tech Note: Apple OS X 10.5 and HP Business Inkjet 1200

Filed under: Hacking — jet @ 10:41

I’ve had a HP Business Inkjet 1200n for 4-5 years now and it’s been a great printer. For only $250 I got duplex, ethernet, color and dual trays.

Apple’s OSX, however has not played well with it. Starting with 10.4, there’s been a low-level problem in CUPS (the free software Apple uses for printing and has since “bought”) on OSX/Intel that I’ve never been able to diagnose and Apple hasn’t cared to fix it either. So, to print from our MacBooks we’ve had to use a G5 as a print server. Not the end of the world, but annoying.

I finally upgraded everything to 10.5. and whammo, I can no longer print from the G5. After a few hours of mucking around, I discovered what you could either call the “right way” or a “workaround”. It’s certainly not something you’d think to try, but it works for me:

  1. Go into Printer and Fax preferences and delete any existing HP printer using the “-” button.
  2. Start adding a printer using the “+” button.
  3. Pick “More Printers” and wait for it to grind.
  4. Pick “HP IP Printing” from the scoll bar.
  5. Pick “Manual”
  6. Enter the printer’s IP address and click “Add”.

That should bring up a dialog correctly identifying your HP printer.

[tags]HP Business Inkjet 1200, OSX, printer[/tags]

2008/08/04

PowerBook G4 15″ + Security Update = Vertical stripe?

Filed under: Hacking — jet @ 11:17

Wondering if this has happened to anyone else….

I applied the most recent Apple Security Update on a PowerBook G4 15″, and after reboot, there’s a pixel-wide vertical stripe on the display. I’ve tried resetting the PRAM, rebooting, booting from install discs, booting into 9.2, letting it cool off, etc. Nothing has made it go away.

I guess it could be a coincidence, but someone else had the same thing happen and posted about it on the Apple discussion forum. I can understand a software upgrade triggering a disk failure by trying to use parts of a hard drive that are damaged, but how could it manage to trash a graphics adapter or display?

[tags]powerbook, security update, vertical stripe[/tags]

2008/04/18

Arduino: Generating the Morse Code

Filed under: Amateur Radio,Arduino,Hacking — jet @ 16:08

Ok, this was stupid fun and really easy. I’m relearning the Morse code — I originally learned it using the excellent ARRL CDs. As part of re-learning it, I thought it would be fun to see if I could learn it visually as well, by looking at a blinking LED. It kinda makes my brain hurt, but it actually might be doable.

So here it is, my simple Morse Code arduino sketch.

I think I might try parsing Morse next, it’s a much more interesting problem…

[tags]arduino, morse[/tags]

2008/04/11

Arduino: Reading the SHT15 temperature/humidity sensor

Filed under: Arduino,Hacking — jet @ 14:04

Ok, this was a bit more fun and geeky. The SHT15 is a temperature/humidity sensor made by Sensirion. I bought mine from Sparkfun, and at $42 it’s a bit pricey, but it’s pre-mounted on a breakout board saving me a nasty soldering job.

The SHT15 isn’t as fragile as a lot of other electrical components — you can get it wet, put it in the sun, etc. I’ll probably just mount it at the end of some very long leads and not bother putting any sort of protective case on it.

Being the rocket scientist that I am, I didn’t download the specs until I decided to actually write code. Turns out that the SHT15 uses a serial protocol developed by Sensirion; but they were kind enough to post some sample code for the 8051 so it wasn’t too hard to get working on the Arduino.

If you’re trying to get this working, take a look at my Arduino sketch. Writing code to read serial protocols using clock and data pins isn’t for the newcomer, but it isn’t terribly difficult if you know a bit of C, bit-wise operations, and have sample code to reference along with the timing diagrams.

[tags]arduino,hacking,sht15[/tags]

2008/03/15

Arduino: Reading the ADXL 3xx Accelerometer

Filed under: Arduino,Hacking — jet @ 17:08

Reading the ADXL 3xx is pretty straightforward — give it power, run lines from the x,y,z pins to three analog pins, and do analogRead()s on the pins.

What’s a bit trickier is dealing with the sensor values. Resting flat on my desk, the x, y, and z values all vary on each read. It’s only by one or two steps, but it’s still noisy and could introduce a lot of jitter into your code. One way of eliminating/reducing noise is to take a running average of sensor readings, then use those to make your decisions.

Here’s an example Arduino sketch that reads the sensors, computes a running average, then displays the previous average, average, and current raw value for each axis.

A couple of related notes:

  • The power you give the ADXL needs to be the same as the reference voltage on your Arduino. If you power the ADXL directly from the Arduino, then everything is fine. If you power it from another source, you might need to use the external power reference features on the Arduino.
  • While you put power to the ST pin, the ADXL will force all three outputs to the middle value. This is useful for calibrating the ADXL by reading what it things its middle values are for each axis. However, it’s not something the average person will probably care much about, I find it useful as a “is it really working” test while I’m debugging a circuit.

[tags]adxl,arduino[/tags]

2007/12/02

Arduino: Reading the Maxbotix Ultrasonic Rangefinder

Filed under: Arduino,Hacking — jet @ 18:32

This was so easy it wasn’t even funny. I think I spent more time discovering that I was trying to read the wrong pin than I did actually getting this to work. The main reason I’m posting it is so that people considering this rangefinder can see just how easy it is to use compared to some of the other rangefinders out there.

This reads the voltage from the AN (analog) pin on the Maxbotix LV-EZ1 Ultrasonic Range Finder (I got mine at SparkFun). Connect power and ground on the Maxbotix to a reference ground and power, then connect the AN pin to the analog input of your choice.

Here’s a simple program to read the sensor and report the range in inches on serial:


//-*-C-*-
// read values from a LV-MaxSonar-EZ1 sensor
// this is for the Arduino MINI -- change the pin values to suit your board.
// jet@flatline.net
// 1 Dec 2007

//Output
int statusLed = 13;

//intput
int ez1Analog = 0;

void setup() {
pinMode(statusLed,OUTPUT);
pinMode(ez1Analog,INPUT);

beginSerial(9600);
}

void loop() {
int val = analogRead(ez1Analog);
if (val > 0) {
// The Maxbotix reports 512 steps of information on AN
// but we read that as 1024. Each step is 1", so we need
// to divide by 2 to get the correct rough range in inches.
//
// this value should also be calibrated for your particular
// sensor and enclosure
val = val / 2;
Serial.println(val); // inches
}
blinkLed(statusLed,100);
}

void blinkLed(int pin, int ms) {
digitalWrite(pin,LOW); // turn it off it was on
digitalWrite(pin,HIGH);
delay(ms);
digitalWrite(pin,LOW);
delay(ms);
}

[tags]arduino,maxbotix[/tags]

2007/07/13

latest in phishing email — please use debit cards!

Filed under: Hacking — jet @ 20:54

Here’s a new one, email purporting to be from the US Internal Revenue Service. It even says to not American Express or other credit cards, but use cards directly linked to your checking account. I’m thinking that the credit card companies have developed new detection methods to catch cards used by phishers and shut them down quickly.

[tags]clever,phishing[/tags]


Return-Path:
Reply-To: <"irs."@irs.gov>
From: “IRS”
Subject: Internal Revenue Service – Tax Refund
Date: Fri, 13 Jul 2007 20:33:42 -0500


Good News,

After the last annual calculation of your fiscal activity we
have
determined that you are eligible to receive a tax refund of $93.82.
Please submit the tax refund request and allow us 2-4 days
in order
to process it.

A refund can be delayed for a variety of reason. For exemple (invalid
records or
applying after the deadline). The good news is that IRS
will make this refund directly to your visa and/or mastercard linked
to your
checking/savings account instead a check or a direct deposit.

To access the form for your tax refund, please continue to our
secure
form “
Tax Refund V-M“.

Important: Do not use credit and/or american express or discover cards.
Only cards that are linked to
your checking/savings account are accepted.

Regards,

Stephen Bronner
Internal Revenue Service – Tax Refund Specialist


2006/02/22

Mattel PowerGlove Hacking Resources

Filed under: Hacking,Reverse Engineering — jet @ 00:25

Hey kids, remember what life was like before the web? Remember when VR was the future of computing?

Experience life before the InterWeb bubble! See geeks reverse engineer $200 toys because they can’t afford $20,000 peripherals! Thrill to 68HC11 assembly, state-of-the-art 386 coding, and Amiga parallel port interfaces!

In other words, I found my PowerGlove list backups.

[tags]Virtual Reality,Nintendo,PowerGlove,hacking[/tags]

« Previous Page

Powered by WordPress