retrointerfacing
  • DIY
    • Arduino
    • fablab
    • fabrication
    • blinky
    • home improvement
    • imaging
    • Processing
    • rapid prototyping
    • recycling
    • repair
  • design
  • robotics
  • retrointerfaces
  • creative technology
  • expo
  • music
  • Home
  • / Arduino /
  • home improvement
  • /
  • Beamer autostart

Beamer autostart

May 26, 2010Arduino, home improvementbeamer autostart

For a public display a beautiful LG HS200G LED beamer has been used which can play from USB data sources. However, no autoplay – autostart function was included. The beamer has been connected to a power source with timer switch. However, somebody still needs to push the on-off button, go trough the menu etc..

The projector is used for back-projection in a window, using standard LEE 216 filters ‘White Diffusion’ as projection foil.

A simple solution has been made using an Arduino Nano (any Arduino or Atmel AVR will do) and the Arduino IRremote library Using the example sketches and one TSOP17xx IR receiver chip, the codes used by the remote for powering on/off, starting USB, left, right, menu, ok etc.. were located. (In this case an NEC protocol). After that a simple Arduino sketch was made using IRsend commands and delay’s (for example a delay of 15 seconds between powering on and going to the USB menu). See wiki for full code and documentation.

[sourcecode language=”c”]
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
IRsend irsend;
decode_results results;
// remote control definitions
#define on 0x20DFB54A
#define usb 0x20DF3EC1
#define ok 0x20DF22DD
#define down 0x20DF827D
#define left 0x20DF609F
// sequence to get the beamer playing:
typedef struct {
unsigned long time;
long code;
} remoteAction;

remoteAction beamerShow[17]={
{5,on},{20,usb},{23,ok},{24,ok},{25,down},
{26,ok},{27,down},{28,ok},{29,ok},{30,ok},
{31,down},{32,ok},{33,left},{34,left},{35,left},
{26,ok},{1000,on}};

int pointer=0;
void setup(){
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(BUTTON_PIN, INPUT);
pinMode(STATUS_PIN, OUTPUT);
}
// and somewhere as play function:

void loop() {
unsigned long timer=millis()/1000;
if (timer>beamerShow[pointer].time {
digitalWrite(STATUS_PIN, HIGH);
irsend.sendNEC(beamerShow[pointer].code, 32); //on-off-left-right-usb
digitalWrite(STATUS_PIN, LOW);
pointer++;
}
}
// rest of IR remote example has been left out – see wiki for full code
[/sourcecode]

The timer switch turns on both the arduino power supply and beamer power supply. On startup the Arduino sends out the required codes to start a slide show from USB disk. After three hours, the arduino sends the power off command.. a little after that the timer switch switches off power completely.

beamer

Comments

Kaela September 23, 2011 at 5:10 am - Reply

Hey,
I have the exact same projector, and a arduino nano chip. I admit I know basically nothing about this kind of thing- learning on the go here.

After looking at your picture, and uploading your coding sketch. I am still having issues. I have power to the arduino board, and an LED attached, but the LED doesn’t seem to be doing anything. Am i missing a vital step in here? The code says it uploaded successfully onto the chip. Got the IR remote library installed on my computer. Do I need to do anything else with it?

Thank you soo much for your time. I extremely appreciate it!

    edwin October 12, 2011 at 5:59 pm - Reply

    I think I answered you offline (trough mail). You can use a camera to check whether the LED is blinking codes. Might be you are using a bad LED, an incorrect series resistor (use 100R or 220R or something in that range). Is your board powered trough USB or an external source?

Write a Reply or Comment Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Archives

  • November 2017
  • July 2016
  • June 2016
  • July 2015
  • August 2014
  • March 2013
  • December 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • February 2012
  • January 2012
  • October 2011
  • September 2011
  • May 2011
  • March 2011
  • February 2011
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • September 2009
  • August 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • November 2005

Calendar

March 2023
M T W T F S S
« Nov    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

  • Arduino
  • blinky
  • Creative Technology
  • design
  • DIY
  • expo
  • fablab
  • fabrication
  • home improvement
  • imaging
  • music
  • Processing
  • rapid prototyping
  • Raspberry Pi
  • recycling
  • repair
  • retrointerfaces
  • Robotics
  • Uncategorized

Copyright retrointerfacing 2023 | Theme by Theme in Progress | Proudly powered by WordPress