Arduino Forum

Forum 2005-2010 (read only) => General => Frequently-Asked Questions => Topic started by: shumby on Jul 31, 2007, 02:59 am

Title: Arduino Mini + Infrared - help an MIT student :]
Post by: shumby on Jul 31, 2007, 02:59 am
Soliciting help:

The project I'm working on is a two-way device that can be used to exchange information via infrared.  I have 2 Arduino mini's, and I purchased an IR buddy kit (http://www.parallax.com/detail.asp?product_id=28016).  

I need code that allows the IR buddy to send information, receive information from the other IR, then send the data to the pc.  

I've found excerpts of code online pertaining to the Arduino reading an infrared receiver, and code for sending data to a PC.  All of the code that came with the IR buddy kit was in pBasic, and mostly included programming remotes, and didn't really have any insight into IR-to-IR exchange.  

I was wondering if anyone had any insight into filling in the gaps.  Any input would be greatly appreciated!!

-Ari
Title: Re: Arduino Mini + Infrared - help an MIT student
Post by: Daniel on Jul 31, 2007, 03:36 am
hey

the IRbuddy manual has example code in PBasic. These should be really easy (especially for an MIT student, unless you're in the philosophy Department :o ) to change to Arduino. It just takes good old slogging through the lines of code. the Arduino site contains a command reference, and there is also a very good open-source book linked somewhere in the forum that explains each command.

An example:
Code: [Select]
IR_Buddy_Reset:
 LOW IRbSIO                                    // for Arduino use digitalWrite(IRbSIO, LOW) instead
 PAUSE 5                                          // for Arudino use delay(5) intstead...


and so on...


D


Title: Re: Arduino Mini + Infrared - help an MIT student
Post by: shumby on Aug 02, 2007, 12:18 am
Does anyone know what the equivalent command for SEROUT in pBasic would be in Arduino?  Thanks!
-Ari :]


Title: Re: Arduino Mini + Infrared - help an MIT student
Post by: Digger450 on Aug 02, 2007, 01:28 am
There is a lot of good information on the playground and the main site.  Search around and you will find lots of good info!

http://www.arduino.cc/en/Reference/HomePage

serial.Print would be the equivalent.