links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
1 - 1 of 1
 
First entry added on 2009-09-27 21:21. Last entry added on 2009-09-27 21:21.
Total entries: 1 (1 public, 0 private)
1
9/2009
1. Arduino minimal infrared serial wireless | http://tthheessiiss.wordpress.com/2009/08/05/dirt-cheap-wireless/
//dirt cheap wireless TX
//generates 38kHz carrier wave on pin 9 and 10
//sends data via TX every 500ms
void setup()
{
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);

  // Clear Timer on Compare Match (CTC) Mode
  bitWrite(TCCR1A, WGM10, 0);
  bitWrite(TCCR1A, WGM11, 0);
  bitWrite(TCCR1B, WGM12, 1);
  bitWrite(TCCR1B, WGM13, 0);

  // Toggle OC1A and OC1B on Compare Match.
  bitWrite(TCCR1A, COM1A0, 1);
  bitWrite(TCCR1A, COM1A1, 0);
  bitWrite(TCCR1A, COM1B0, 1);
  bitWrite(TCCR1A, COM1B1, 0);

  // No prescaling
  bitWrite(TCCR1B, CS10, 1);
  bitWrite(TCCR1B, CS11, 0);
  bitWrite(TCCR1B, CS12, 0);

  OCR1A = 210;
  OCR1B = 210;

  Serial.begin(2400);
}

void loop()
{
  Serial.println("testing testing testing");
  delay(500);
}


by mshook  on 2009-09-27 21:21 tags: arduino · avr · code · timer · ir · infrared · receiver · transmitter · serial · howto · circuitled · modulation · c
1 - 1 of 1
Link History Bookmarklet
Do you have your Link History Bookmarklet? No? Grab it, put it in your browser's toolbar, and use it to look up the history of any web page. The link history will show you who bookmarked the page you are viewing, how they tagged it, how popular that page has been in Simpy over time, etc.
  • Drag the following link and drop it onto your browser's toolbar: Link History