Go Down

Topic: Arduino Mini + Infrared - help an MIT student :] (Read 855 times) previous topic - next topic

shumby

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

Daniel

#1
Jul 31, 2007, 03:36 am Last Edit: Jul 31, 2007, 03:41 am by Daniel Reason: 1
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



shumby

Does anyone know what the equivalent command for SEROUT in pBasic would be in Arduino?  Thanks!
-Ari :]



Digger450

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.

Go Up