Go to Post Cooling fans? Never had the need. Then again, we're talking New Jersey in March. Radiant heaters might be a better choice, or maybe snow boots. - DonRotolo [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-02-2008, 20:25
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 186
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
IR Board Problems

Once again an IR board has been fried. I do realize there are multiple threads like this. My question is what rule says that we have to use there ir board and we can't build our own. Seeing as how they won't sell a replacement and multiple teams have the problem can we build our own??? The board would read four commands and output 4 digital outputs. I'm not trying to do anything sneaky I just need an IR board.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2008, 21:08
pheadxdll pheadxdll is offline
Registered User
AKA: Alex
FRC #1225 (Amperage Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: North Carolina
Posts: 168
pheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud ofpheadxdll has much to be proud of
Re: IR Board Problems

There is nothing against the rules to make your own IR board. Go for it!
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2008, 22:48
dlavery's Avatar
dlavery dlavery is offline
Curmudgeon
FRC #0116 (Epsilon Delta)
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Herndon, VA
Posts: 3,176
dlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond repute
Re: IR Board Problems

You can build your own IR receiver board. You can also buy a different IR receiver board from any of a number of commercial sources (there are lots of them available with similar functionality). You can also use a completely different signaling technology. The IR boards provided in the Kit Of Parts are optional items - there is nothing that says you have to use them.

-dave



.
__________________
"I know what you're thinking, punk," hissed Wordy Harry to his new editor, "you're thinking, 'Did he use six superfluous adjectives or only five?' - and to tell the truth, I forgot myself in all this excitement; but being as this is English, the most powerful language in the world, whose subtle nuances will blow your head clean off, you've got to ask yourself one question: 'Do I feel loquacious?' - well do you, punk?"
- Stuart Vasepuru, 2006 Bulwer-Lytton Fiction Contest



My OTHER CAR is still on Mars!!!
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2008, 12:48
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: IR Board Problems

Dave, can you perhaps give us a nudge in the right direction for a commercially available board? I spent 30 minutes googling for programmable IR boards with digital outputs and didn't come up with anything even resembling what we're using.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2008, 14:05
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by Tom Line View Post
Dave, can you perhaps give us a nudge in the right direction for a commercially available board? I spent 30 minutes googling for programmable IR boards with digital outputs and didn't come up with anything even resembling what we're using.
Here are some random thoughts on this issue.

1) Doing a little reverse engineering on the IR board code, it looks like the brown out reset bit has not been set within the PIC16F87 design, which could be a problem. If there is interest, I could provide a modified hex file with this bit set. You'd need to buy or make a PIC programmer.

2) Back in 2004, I developed the infrared beacon system for FIRST. With a little bit of code and a $1 Vishay IR sensor, you could turn your robot controller into the IR receiver. The 2004 code and documentation can be found here. Of course, if teams want to standardize on one protocol, I'd be happy to provide some sample code.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2008, 14:08
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: IR Board Problems

Quote:
Originally Posted by Kevin Watson View Post
Here are some random thoughts on this issue.

1) Doing a little reverse engineering on the IR board code, it looks like the brown out reset bit has not been set within the PIC16F87 design, which could be a problem. If there is interest, I could provide a modified hex file with this bit set. You'd need to buy or make a PIC programmer.

-Kevin
Kevin,
If you make this available, and I figure out how to make a PIC progamming cable , (I have a new, Microchip ICD2 system), I will try the software in one of our IR boards.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #7   Spotlight this post!  
Unread 22-02-2008, 14:33
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,349
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by Kevin Watson View Post
Here are some random thoughts on this issue.

1) Doing a little reverse engineering on the IR board code, it looks like the brown out reset bit has not been set within the PIC16F87 design, which could be a problem. If there is interest, I could provide a modified hex file with this bit set. You'd need to buy or make a PIC programmer.

2) Back in 2004, I developed the infrared beacon system for FIRST. With a little bit of code and a $1 Vishay IR sensor, you could turn your robot controller into the IR receiver. The 2004 code and documentation can be found here. Of course, if teams want to standardize on one protocol, I'd be happy to provide some sample code.

-Kevin
Even if we don't use code like this for this years competition, I would love to put together a IR controlled Vex project. Please, feel free to build and/or modify code to make a controller into an IR receiver, I'm certain I can port it to Vex.
I will take a look at you 2004 code and see what I can come up with based on what you already have.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #8   Spotlight this post!  
Unread 22-02-2008, 17:26
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by marccenter View Post
Kevin,
If you make this available, and I figure out how to make a PIC progamming cable , (I have a new, Microchip ICD2 system), I will try the software in one of our IR boards.
The change looks to be pretty easy. Open up the hex file with a text editor like notepad, go to the end of the file and change this line:

:02400E00101F81

to look like this:

:02400E00501F41

As I don't have an IR board, can someone try this out and report back? Better yet, can someone with a programmer run both versions while lowering the input voltage slowly to zero volts and report the results?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Reply With Quote
  #9   Spotlight this post!  
Unread 22-02-2008, 23:21
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
Re: IR Board Problems

REvised to flag the 3 error blinks method of training as an error.

See more detailed post here: http://www.chiefdelphi.com/forums/sh...light=major+IR


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.

TEam 39 had tried the WinPIC freeware and the serial cable with resistors scheme yesterday 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 corresponds 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. REVISED: Even though thsi resulted in a tained IR board, it is likely we had the wroing frequency on the REMOTE. After reprogramming remote to a 38 kHz code, we did not see any error lights during training.

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 universal remote (from Walmart) and programmed with code 1001 which is a Sony remote. This is a 38 KHz code.

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 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.

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 chip if you are careful. Use tweezers and a heat gun if you do not have a surface mount rework station. Kill the heat as soon as the chip is free. Let it cool if you have made an usucessfull attempt and then retry. It is not a fine ptich part so a thin tip soldering iron can be used to solder in the new part. heat gun will work too ....if you have done this before.

Get the PIC16LS87 chip here for $5.

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. It will reset/restart when voltage is back withing spec. nice part ... 5 Mips for $5 !!!

Team 39 will bring a programmer to AZ and Vegas in case a team wants to try 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.

Will repost under separate thread for more visibility.

Last edited by Frank Neuperger : 23-02-2008 at 01:12. Reason: correct GE to RCA, corrected the 3 blinks method of training
Reply With Quote
  #10   Spotlight this post!  
Unread 23-02-2008, 00:27
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by Tom Line View Post
Dave, can you perhaps give us a nudge in the right direction for a commercially available board? I spent 30 minutes googling for programmable IR boards with digital outputs and didn't come up with anything even resembling what we're using.
Here's the source for components I used back in 2004: http://www.rentron.com

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Reply With Quote
  #11   Spotlight this post!  
Unread 23-02-2008, 01:05
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,560
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by Tom Line View Post
Dave, can you perhaps give us a nudge in the right direction for a commercially available board? I spent 30 minutes googling for programmable IR boards with digital outputs and didn't come up with anything even resembling what we're using.
Here is the board that the FIRST board is based off of: http://www.tauntek.com/tinyir2-learn...l-receiver.htm
Reply With Quote
  #12   Spotlight this post!  
Unread 23-02-2008, 08:18
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 84
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Re: IR Board Problems

Thanks for the great info - I guess I did just get lucky afterall with the serial cable option I threw together. . It worked for me, now I am wondering if there is anyone else out there it worked for. BTW - I used a Dell desktop to flash it - at least that one had the right voltages.

I certainly wanted to buy a reliable option, but we were at crunch time wanting to test autonomous modes and ship the robot ready to to.

The good news is there has been so much great information shared due to this problem that it is incentive for me to order a programmer and prototyping kit, and start playing with uControllers as a hobbiest.

I am sure it was not intentional, but the IR board problem has pushed some or many teams to dig much deeper into some technologies that would have otherwise been blackbox out of the KOPs.

I am so impressed by the FIRST "community" and the knowledge sharing.
Reply With Quote
  #13   Spotlight this post!  
Unread 23-02-2008, 13:16
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by billbo911 View Post
Even if we don't use code like this for this years competition, I would love to put together a IR controlled Vex project. Please, feel free to build and/or modify code to make a controller into an IR receiver, I'm certain I can port it to Vex.
I'm working on code that will work with the 12-bit Sony protocol.

Edit: Here's the FAQ that I started, but quickly forgot about: http://www.kevin.org/frc/2004/faq.htm

These photos showing how to quickly and cheaply build a sensor unit might be of interest: http://www.kevin.org/frc/2004/tracker

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 23-02-2008 at 13:26.
Reply With Quote
  #14   Spotlight this post!  
Unread 23-02-2008, 13:42
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,349
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: IR Board Problems

Quote:
Originally Posted by Kevin Watson View Post
I'm working on code that will work with the 12-bit Sony protocol.

Edit: Here's the FAQ that I started, but quickly forgot about: http://www.kevin.org/frc/2004/faq.htm

These photos showing how to quickly and cheaply build a sensor unit might be of interest: http://www.kevin.org/frc/2004/tracker

-Kevin
Kevin,
Thanks for the links. I actually looked at those documents yesterday directly on your webpage. My mind started racing with the possibilities. It looks like I have a new project that I will start working on once robotics season is over (does robotics ever and?). I am just hesitant to start a new project that will take my focus away from where it should be.
One of the simplest ideas I'd like to try is making a vex robot that follows around our big robot just for the fun of it, kind of like a little puppy dog.
Wherever the big robot goes, the little one follows, all by following the infrared beacons. I also considered using the IR beacon as a way to communicate PWM values to drive the slave (Vex) robot as well. Again my mind is racing with the possibilities.
Thanks again for all the work you have done so far and am looking forward to see what you have next.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #15   Spotlight this post!  
Unread 23-02-2008, 14:10
NOV8R's Avatar
NOV8R NOV8R is offline
Registered User
AKA: Chuck Brant
FRC #1583
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Centennial, Colorado
Posts: 209
NOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud of
Re: IR Board Problems

Dave Lavery in an earlier post stated

"You can build your own IR receiver board. You can also buy a different IR receiver board from any of a number of commercial sources (there are lots of them available with similar functionality). You can also use a completely different signaling technology. The IR boards provided in the Kit Of Parts are optional items - there is nothing that says you have to use them."

I've posted a Q&A question asking if he's correct " You can use a completely different signaling technology" If yes, I also asked if we can use 2.4 Ghz spread spectrum. I fly large scale radio controlled airplanes using this technolgy and it has none of the shortcoming of IR. We'll see what the Q&A folks have to say.
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
Problems with IR Board Mark McLeod Sensors 79 16-02-2008 20:57
Ir board problems SidneySalvo Sensors 4 05-02-2008 10:29
Perf Board = BS2-IC Carrier Board? indieFan Electrical 2 16-09-2004 08:28
School Board Problems Matthew_H General Forum 47 16-03-2004 18:32


All times are GMT -5. The time now is 02:35.

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