Arduino AM radio transmitter

update 6/2014: audio version of the AM transmitter: https://reactivemusic.net/?p=12263

original post

http://dangerousprototypes.com/2011/10/05/am-sofware-radio-using-arduino/

Forum thread which gives a sketch to generate Morse code at 1337khz, with no additional hardware.

http://arduino.cc/forum/index.php/topic,8456.0.html

Tried this sketch and it actually works – local version is:

morse_code_AM_1337_xmtr

Instructions

  • tune AM radio to around 1337 KHz
  • Plug antenna (random length piece of wire) into digital pin 8
  • open serial port set to 9600
  • type in some text and press <return> (but not too much text at once)

Here is a link to a circuit using a crystal oscillator component and a serial port from windows computer to turn it on and off to make cw, also a suggestion (below) to expand it to use audio modulation…

http://www.instructables.com/id/Build-a-computer-controlled-radio-transmitter/?ALLSTEPS

To those wanting to send audio (as in music/voice): You will need an audio transformer. The transformer has 5 leads: 3 on left, 2 on right. The 3 lead side: connect the audio jacks ground on bottom, input on top leaving the middle lead free. The right side: batteries + supply on bottom lead, the top lead connects to the oscillators input pin. What you used as the ground should be the same. Just plug it into the computers “audio out” plug. To transmit music, play it with whatever music player you like. Plug it into a mp3 player/ipod/cd player and take it with you where ever you go. To send voice, plug mic into pc “audio/mic/line in” plug.

More details on voice modulation…

http://www.instructables.com/id/Make-a-simple-AM-transmitter/

 

touchOsc plus Arduino

Notes

http://hackaday.com/2011/03/31/using-touchosc-with-your-projects/

Processing + Arduino + touchOSC

uses the p5 library in processing

http://dangerousprototypes.com/2012/01/28/processing-arduino-touchosc/

http://www.urimicrofluidics.com/index.php/arduino/56

This post was the key to making Arduino+EthernetShield work with touchOSC. Without using Processing as an intermediary.  Got it working  tonight and will update this post with details.

http://arduino.cc/forum/index.php?topic=137549.0

 

Other ideas for Arduino electric eye

notes

5/2014 – check out musical stairs project for eventual solution: https://reactivemusic.net/?p=12300

original post

Infrared reflectance sensor – no idea whether this can be focused to a beam

http://www.ebay.com/itm/Infrared-Reflectance-Sensor-Sensor-Shield-Arduino-compatible-/170842956075?pt=LH_DefaultDomain_0&hash=item27c708a12b

IR detector emitter data

http://www.me.umn.edu/courses/me2011/arduino/technotes/irbeam/irbeam.html

Tachometer circuit

http://www.pyroelectro.com/tutorials/tachometer_rpm_arduino/

Long range beam

http://pcbheaven.com/circuitpages/Long_Range_IR_Beam_Break_Detector/

 

 

Infrared Beam Sensors

Arduino Automated LED Stairway Lighting.

http://www2.cs.uidaho.edu/~lawrench/electrical_projects/stairway_lighting/stairway40.html

This project uses the Radio Shack emitter/detector LED pair 276-142 – There is no modulation of the ir signal. The project includes detailed descriptions plus photographs of the Arduino and breadboard configuration.

Here is some more information about the RS ir emitter/detector pair

http://www.societyofrobots.com/schematics_infraredemitdet.shtml

 

Detecting an IR Beam Break using the Arduino IR Library

A simple electric eye circuit

By Ken Shirriff

http://www.arcfn.com/2010/03/detecting-ir-beam-break-with-arduino-ir.html

update 5/2014 – For current information, see the musical stairs project – using this IR library with sensors from Adafruilt: https://reactivemusic.net/?p=12300

original post

I was able to build a version of this using some ir receivers from radio shack. The receivers were different – one received a relatively narrow angle beam, while the other one seemed to pick up everything in the room. So, although this method works, it will require some hardware tweaking.

Here’s my Arduino code for this… Note that the code runs 2 beams but the photos and videos only show one in the circuit.

#include <IRremote.h>
// tz 12/26/2012
/* This works with the basic IR beam layout of an
IR emitter and IR receiver from radio shack - when you break the 
beam, like with your hand the LED on D13 lights up.

*/
#define PIN_IR 3
#define PIN_DETECT 2
#define PIN_STATUS 13

#define PIN_DETECT_B 7
#define PIN_STATUS_B 8

int counter = 0;
int stat = 0;
int stat_B = 0;

IRsend irsend;
void setup()
{
   Serial.begin(9600); // open the serial port
  pinMode(PIN_DETECT, INPUT);
  pinMode(PIN_STATUS, OUTPUT);

    pinMode(PIN_DETECT_B, INPUT);
  pinMode(PIN_STATUS_B, OUTPUT);
  irsend.enableIROut(38);
  irsend.mark(0);
}

void loop() {
//  digitalWrite(PIN_STATUS, !digitalRead(PIN_DETECT));
irsend.space(0);
delay(1);
irsend.mark(0);
stat = digitalRead(PIN_DETECT);
digitalWrite(PIN_STATUS, stat);

stat_B = !digitalRead(PIN_DETECT_B);
digitalWrite(PIN_STATUS_B, stat_B);
delay(1);

counter++;
if(counter > 1000) {
  Serial.print("A: ");
  Serial.print(stat);
  Serial.print(" B: ");
  Serial.print(stat_B);
  Serial.println();
  counter = 0;
}
}