Sunday, May 2, 2010

Arduino Infrared

OK-
Nothing from Sparkfun yet, but weekend delivery was not expected- They need time to respond. So the next best thing was to borrow an Arduino off another board and get moving again.

The current project is an optical board with Arduino. Starting with infrared which may not actually be classified as optical, but it will be for this board. Passive Infrared (PIR) coupled with an infrared rangefinder makes sort of a neat human detector (or dog, cat, rats, what-have-you). Currently, the two items operate independently, but the code will be changed to let the PIR drive. If a heat source is sensed, then the rangefinder will be engaged. Perhaps. There are other approaches.

For your viewing pleasure, here is a picture of the board so far. It's a little blurry, but you should be able to get the point.


The PIR is at the bottom right, the IR rangefinder is at the upper right with the cable pinned under the breadboard. The LEDs indicate the power is on for the PIR and it has sensed motion, and power is on for the IR rangefinder and it has not yet been engaged.

More news as it happens.

Friday, April 30, 2010

Another Sparkfun Response

OK- from the previous post, it would seem that Sparkfun made a boo-boo and is doing the right thing to fix it. Hurray for Sparkfun!

While I am composing the last post, this email comes in (I left off the email headerinformation because it was a pain to post as it kept gagging the HTML):

Hello Bruce,

Our returns department finished testing the ATmega328s you returned to us, and found that they had somehow made it out without the Arduino Bootloader having been loaded. I have placed a new order, # 21xxxx, which contains five ATmega328, DEV-09217.

Please let me know if I can help with anything else, and have a great day!

Best,

L (Sparkfun rep name)
Customer Service
SparkFun Electronics

Now- I have not yet returned anything, but they have tested them.  I think I will wait and see what comes in the mail. Sparkfun may be experiencing growing pains- that's OK; it happens. Let's see how they handle it. I believe they will make everything right, it just may take another pass at the problem to get there.

Sparkfun Response

Received from Sparkfun:

Subject: Re: [FWD: SparkFun Order 21xxxx]
From: Tech Support
Date: Fri, April 30, 2010 10:16 am
To: "Your Host"


Hi Bruce,


I talked to customer service, they should be sending you out 5 replacement ATMega328s with the bootloader and a return label for the 5 unprogrammed ones. Sorry for the inconvenience this has caused.


Thanks,


P (Sparkfun rep name)

Monday, April 26, 2010

Sent to Sparkfun

Subject: [FWD: SparkFun Order 2xxxxx]
Date: Mon, April 26, 2010 11:39 pm
To: customerservice@sparkfun.com

Good day.

I received my latest order from Sparkfun. I had some spark, but unfortunately, no fun.

On my previous order, I received Arduino 328 chips. All were marked with a red dot but one. I had my doubts, so I reserved it. When attempting a project with the unmarked chip, it would not load. OK, I still needed some more Arduino chips, so I ordered four more- Order 2xxxxx. I received the four chips I ordered, but none were marked. I removed one from the package and tested it- it would not load.

Here is what I did to test:

1) Took a known good circuit and removed the Arduino
2) Installed the unmarked Arduino
3) Recompiled the code
4) Attempted to download
5) Received the following error:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
6) Powered down
7) reinstalled the known good chip
8) Powered up, recompiled code
9) Downloaded code
10) Code executed as expected

I think none of these chips has the Arduino bootloader loaded on, even though my packing list has a certification of compliance signed by the Customer Service Manager. What do you think?

I am attempting to write a class using Arduino chips, but that is rather difficult when they are not the correctly configured chip and my deadlines are slipping. I now have 5 chips that are not what I purchased. What can you do to rectify this situation?

Sincerely,

Testing the Unknown

Not what I wanted to see:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
 
Looks like my backup chip really is not an Arduino.
Neither are the chips in the new order.
 
I took a known good circuit with a known good Arduino in it, removed the Arduino and replaced it with an unmarked chip. I recompiled the code and tried to download it. I received the error above. I powered down, swapped the known good chip back in, powered up, recompiled, loaded to the chip and the program ran as expected.
 
Time to contact Sparkfun.

Package from Sparkfun

The package from Sparkfun arrived today. I need to do some testing. On the last order, all the chips were marked with a red dot, except one. The unmarked chip does not appear to have the Arduino bootloader on it. I will run one more test on it. None of the chips that arrived today were marked. I hope they just forgot to mark them.

I am hopeful that I can start on the Arduino project again- I have ideas and need to implement them!

Slightly out-of-focus pictures below tell the story better.

Marked Arduino on left, Unmarked, probably not Arduino on right.

Unmarked chips. Hoping for bootloaders.

Since we are on the topic, it has been bbrought to my attention that one may construct an Arduino bootloader burner rather easily. This may be something to add to the end of the class. If I have an order of plain AtmelATMega 328 chips, then I may have to do this. Not without a call to Sparkfun first.


Saturday, April 24, 2010

Anticipation

Not much going on right now. Awaiting the delivery of new Arduinos from Sparkfun. My last adventure cost me an Arduino, if you remember. I will have A new Arduino as well as a few spares now. More posts as things move forward.