Go to Post Success is making a difference. - SlamminSammy [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-02-2008, 23:42
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
MAJOR IR PROBLEMS RESOLVED

Training method has been revised

I spent part of the afternoon at Microchip in Chandler with a couple super FAE's resurrecting our IR board. It was like being at the Mayo Clinic for uControllers.

We had had very little sucess training our board. We thought the code may be corrupted and figured we needed to reprogram. We were likely wrong on this point.

TEam 39 had tried the WinPIC freeware and the serial cable with resistors scheme and managed to erase the chip and then successfully program all but 3 memory locations correctly (many times). We basically rendered the chip totally non responsive. This serial cable bit banging programmer scheme may have worked for some teams with success but among other things, it depends a lot on the RS232 voltages from the PC being "just right". These voltages vary from 5 to 12V from Lap top to Desktops and everywhere in between.

At Microchip We used MPLAB IDE and an IDC2 type programmer that is part of the PICkit II progrmming kit. Very easy to do. Nice because it uses the familiar MPlab. MPlab will show you the assembly languge code that correspondes to the hex code for the IR. You could tweak the code if you like!!!

http://www.newark.com/jsp/search/pro...FC-GB100000001

After reprogramming, we found that the IR board perfomed just as unreliably as it did prior to the first reprogramming with the freeware. We could not get through the training of all 4 LED's without an error. After much trial and error we discovered that it trains real well if you hold down the key on the remote untill the 3rd flash of the error light. Wow , what a difference. I wish we knew this little detail at the start of all of this. REVISION: it turns out that this taining method is still in error. Our universal remote had lost it's identity. Yes it trained, but likely the frequency was incorrect. When universal remote was reprogrammed, it programmed without any error lights. Every key still needs to be pressed twice.

If you are getting the error light to blink on power up but have not been able to train, I suggest that you try the "realase on 3rd blink" method above. The error light blinks at power up because the chip is working and the code is executing.

FYI, we used an RCA RCR4558 universal remote ($10 from Walmart) and programmed with code 1001 which is a Sony remote. Don't throw away the paper with the code listings on it!!!!! Also note that this remote will loose its identity if you remove the batteries and press a key. The identity is held by a supercap (not FLASH). Not a big deal if you do not remove bateries. It is super easy to reprogram by holding down the TV key and putting in 4 digit code.
http://www.ambientweather.com/ptrcarcr4258.html

As some background, when we were still in the desparate mode, we had built an IR detector (phototransitor) and actually verified that the IR remote we were using was producing 38kHz pulses. With a box full of remotes collected from households, only a few were 38 kHz. Note that 36 and 40kHz remotes will train the unit but range will be limmited. Several web sites list the frequencies. Sony is mostly 38 kHz but there are exceptions. Universal remotes are your best bet. Good resource here: http://winlirc.sourceforge.net/

Alternate IR's are mostly DIY circuit diagrams. In my searching for over an hour, I found no USA source.

Note that you can replace the PIC chip if you are careful. Use tweezers and a heat gun if you do not have a surface mount rework station. Have the heat gun dead center and directly over the part at ~ 1 inch. Use low fan speed. Use a directing nozzle if you have it. It will only take a few seconds. Kill the heat as soon as the chip is free. Let it cool for a couple minutes if you have made an usucessfull attempt and then retry. Use one person to hold the gun and another to pull the chip . Hold the board in a vise. If that heat gun is waving around while heating, you are not being precise enough and will likley enjoy the outcome. REPLACEMENT: It is not a fine pitch part so a thin tip soldering iron can be used to solder in the new part. Lay the flat part of the iron on the row of leads and slide it down the line. You will NOT likely need to add solder. I recommend just using the residue on the pads. Heat gun will work too .... but do so only if you have done this before. You could melt the part. It is a 2 person operation.

Get the PIC16LS87 chip here for $5. Get one to go and one to blow (..or melt).

http://parts.digikey.com/1/parts/561...lf87-i-so.html

The L means that it can operate 2.5 to 5VDC. This makes it more brown out resistant...but not immune. We did turn on the brown out protection bit before reprogramming. This will cause the processor to halt and preven errant execution or a freeze if the voltage drops too much. It will reset/restart when voltage is back within spec. What a deal ... 5 Mips for $5 !!!

Team 39 will bring a programmer to AZ and Vegas in case a team wants to reprogram their chip. We are in Gilbert if you want to do so before the regionals.

This ends a frustrating chapter for Team 39.

Bottom line is that if the error light still blinks once on power up, you have not likely fried or even corrupted the IR board. Each button needs to be pressed TWICE. You should not get the error light when training. Try multiple remotes if you do not have a universal remote. If you have a universal remote, set it to emulate a remote that is 38 kHz.

Last edited by Frank Neuperger : 23-02-2008 at 23:41. Reason: corrected the 3 blinks method of programming
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2008, 08:11
Mike Martus's Avatar Unsung FIRST Hero
Mike Martus Mike Martus is offline
Registered User
FRC #0051 (Wings of Fire)
Team Role: Coach
 
Join Date: May 2001
Rookie Year: 1996
Location: Pontiac Michigan
Posts: 1,187
Mike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond reputeMike Martus has a reputation beyond repute
Re: MAJOR IR PROBLEMS RESOLVED

Are you in violation of the Fix-it-window?

Just asking as this is somewhat of a grey area.
__________________
Mike Martus
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2008, 18:19
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: MAJOR IR PROBLEMS RESOLVED

We were just trying to figure out how to fix it.

We will do everything from scratch during the week1 fix it window again.
__________________
-Borna Emami
Team 0x27
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2008, 00:03
Pavan Dave's Avatar
Pavan Dave Pavan Dave is offline
Busy in College
AKA: I am John Gault.
FRC #1745 (P-51 Mustangs) FRC #118 (Robonauts)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Richardson, Texas
Posts: 1,387
Pavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond repute
Send a message via AIM to Pavan Dave
Re: MAJOR IR PROBLEMS RESOLVED

Quote:
Originally Posted by Mike Martus View Post
Are you in violation of the Fix-it-window?

Just asking as this is somewhat of a grey area.
Not that this question pertains to this specific thread but just an idea:

Is there a difference between learning for yourself and going open source (public) with that knowledge as opposed to finding out for your team and keeping it private (or even sharing it)???




.
__________________
Times change. People change. Teams change.
---
2008-Present: FRC1745, P51-Mustangs - Mentor
2005-2008: FRC118, Robonauts - Alumni
National Director of Philanthropy - Delta Epsilon Psi Fraternity, Inc.
1745 - 118 - ΔΕΨ

Last edited by Pavan Dave : 24-02-2008 at 00:06.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2008, 01:27
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: MAJOR IR PROBLEMS RESOLVED

Quote:
Originally Posted by Mike Martus View Post
Are you in violation of the Fix-it-window?

Just asking as this is somewhat of a grey area.
Talk about "grey" areas! A fellow TARDEC engineer and I were the only Fix-it window participants. We spent 1:15 cutting replacments for another team, and 15 minutes cutting a stencil for 2612. Do we charge 1:30 to each team, split the time, or count the stencil as tool making and exclude it?

Greyer yet, is that I figured I had at least 8:30 left to program autonomous modes. But that requires a lot of coffee, and I ran out of FloMax two days ago. I didn't know whether I could close the window each time, or let the time keep going and going too.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Major problems transfering code to RC agrahimi Programming 7 19-01-2007 23:08
Major Robot Controller problems Bharat Nain Control System 3 21-02-2006 17:01
Major problems with tank tread drive Lord Nerdlinger Technical Discussion 13 23-02-2004 21:15
Major mechanical problems.... quickie25 Technical Discussion 29 23-02-2004 15:31


All times are GMT -5. The time now is 07:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi