Sending text over infrared: Difference between revisions
(→Tools) |
No edit summary |
||
| Line 36: | Line 36: | ||
'''the code [9600 Baud]''' | '''the code [9600 Baud]''' | ||
#include <PS2Keyboard.h> | |||
#include <IRremote.hpp> | |||
const int DataPin = 3; | |||
const int ClockPin = 2; | |||
const int IR_SEND_PIN = 9; | |||
const int SendLEDPin = 8; // NEW LED pin | |||
PS2Keyboard keyboard; | |||
void setup() { | |||
Serial.begin(9600); | |||
keyboard.begin(DataPin, ClockPin); | |||
IrSender.begin(IR_SEND_PIN); | |||
pinMode(SendLEDPin, OUTPUT); | |||
digitalWrite(SendLEDPin, LOW); | |||
Serial.println("Keyboard to IR Sender Ready"); | |||
} | |||
void loop() { | |||
if (keyboard.available()) { | |||
char c = keyboard.read(); | |||
Serial.print("Sending character: "); | |||
Serial.println(c); | |||
// Turn LED ON | |||
digitalWrite(SendLEDPin, HIGH); | |||
// Send via IR | |||
IrSender.sendNEC(0x00, (uint8_t)c, 0); | |||
delay(60); // short visible flash | |||
// Turn LED OFF | |||
digitalWrite(SendLEDPin, LOW); | |||
delay(20); // small spacing delay | |||
} | |||
} | |||
==== IR receiver ==== | ==== IR receiver ==== | ||
Revision as of 23:42, 12 February 2026
Project by Soda & Ema
The idea
to send text messages in real time over infrared waves, and to see what happens when the signal gets disturbed.
The intention is to set up this project in a public space, so people can use it both passively and actively. Passively: by walking in between the IR sender and receiver - Actively: by typing a message and reading what gets delivered.
People that passively walks across the IR signal will disturb the transmission of the message, letting who's on the other side interpret what the original message was. With that, we'd like to shine an interest in the materiality of forms of communication, which usually happens without being aware of their infrastructure. The ethereal "immateriality" of the IR waves becomes tangible and something simple as like sending a simple text message becomes questioned.
The process
Components
2 Arduino UNO boards (provided by Soda)
Wires and 2 wiring boards (provided by Soda & from the XML)
A keyboard that uses the PS2 protocol [not USB] (from the XML)
1602A display (from the XML)
IR receiver TSOP38238 (bought off from here)
IR sender (from the interaction station)
Various resistors (from the XML)
LED light (from the XML)
Tools
Soldering wand
IR sender
abc
the code [9600 Baud]
#include <PS2Keyboard.h>
- include <IRremote.hpp>
const int DataPin = 3; const int ClockPin = 2; const int IR_SEND_PIN = 9; const int SendLEDPin = 8; // NEW LED pin
PS2Keyboard keyboard;
void setup() {
Serial.begin(9600);
keyboard.begin(DataPin, ClockPin); IrSender.begin(IR_SEND_PIN);
pinMode(SendLEDPin, OUTPUT); digitalWrite(SendLEDPin, LOW);
Serial.println("Keyboard to IR Sender Ready");
}
void loop() {
if (keyboard.available()) {
char c = keyboard.read();
Serial.print("Sending character: ");
Serial.println(c);
// Turn LED ON digitalWrite(SendLEDPin, HIGH);
// Send via IR IrSender.sendNEC(0x00, (uint8_t)c, 0);
delay(60); // short visible flash
// Turn LED OFF digitalWrite(SendLEDPin, LOW);
delay(20); // small spacing delay }
}
IR receiver
the code [9600 Baud]