Pages: [1]   Go Down
Author Topic: Arduino Mini + Infrared - help an MIT student :]  (Read 631 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
IR_Buddy_Reset:
  LOW IRbSIO                                    // for Arduino use digitalWrite(IRbSIO, LOW) instead
  PAUSE 5                                          // for Arudino use delay(5) intstead...


and so on...


D


« Last Edit: July 30, 2007, 08:41:16 pm by Daniel » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Logged

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: