Arduino TV-B-Gone code

Hi, a week ago I received an Arduino UNO and I think that a great project to start and that I saw in the internet is the TV-B-Gone I found the “package” of this, thanks to Ken Shirriff , it includes main, world codes and TVB, I follow the schematic below, but what I dont understand is how to make all the code with the three documents can you help me please.

Shirriff, K. (2009). TV-B-Gone for the Arduino. Recovered 2 december 2011 from : http://www.arcfn.com/2009/12/tv-b-gone-for-arduino.html

TVB.pde (12.6 KB)

main.h (907 Bytes)

WORLDcodes.cpp (127 KB)

  1. Click the word that says "download here" at: Improved Arduino TV-B-Gone
  2. Unzip the file into a folder
  3. Double-click the TVB.pde to launch the Arduino IDE.
  4. Click Upload

Okay seems to work i will try thanks

The transistor can be replaced?

I upload the program, but i dont know if the transistor can be replaced, there are three tabs, i just need to upload it ? And the hardware is correct? Imean thee schematic of the other post.

Any NPN switching transistor that can take 0.5A collector current should do by the look of it...

For some reason, I'm getting this error when I verify the code in the IDE. Does anyone have an idea about what this means?

sketch_jun11a.ino:33:18: error: main.h: No such file or directory
sketch_jun11a.ino: In function 'void xmitCodeElement(uint16_t, uint16_t, uint8_t)':
sketch_jun11a:89: error: 'IRLED' was not declared in this scope
sketch_jun11a:98: error: 'IRLED' was not declared in this scope
sketch_jun11a:110: error: 'IRLED' was not declared in this scope
sketch_jun11a.ino: In function 'void setup()':
sketch_jun11a:194: error: 'LED' was not declared in this scope
sketch_jun11a:195: error: 'IRLED' was not declared in this scope
sketch_jun11a:196: error: 'DBG' was not declared in this scope
sketch_jun11a:200: error: 'REGIONSWITCH' was not declared in this scope
sketch_jun11a:201: error: 'TRIGGER' was not declared in this scope
sketch_jun11a:209: error: 'NA' was not declared in this scope
sketch_jun11a:210: error: 'DEBUGP' was not declared in this scope
sketch_jun11a:213: error: 'EU' was not declared in this scope
sketch_jun11a:214: error: 'DEBUGP' was not declared in this scope
sketch_jun11a:218: error: expected )' before ';' token sketch_jun11a:220: error: expected primary-expression before ')' token sketch_jun11a:220: error: expected ;' before ')' token
sketch_jun11a:221: error: expected )' before ';' token sketch_jun11a:223: error: expected primary-expression before ')' token sketch_jun11a:223: error: expected ;' before ')' token
sketch_jun11a:231: error: 'EU' was not declared in this scope
sketch_jun11a.ino: In function 'void sendAllCodes()':
sketch_jun11a:242: error: 'REGIONSWITCH' was not declared in this scope
sketch_jun11a:243: error: 'NA' was not declared in this scope
sketch_jun11a:247: error: 'EU' was not declared in this scope
sketch_jun11a:256: error: expected )' before ';' token sketch_jun11a:257: error: expected ;' before ')' token
sketch_jun11a:260: error: 'NA' was not declared in this scope
sketch_jun11a:268: error: expected )' before ';' token sketch_jun11a:269: error: expected ;' before ')' token
sketch_jun11a:278: error: expected )' before ';' token sketch_jun11a:280: error: expected primary-expression before ')' token sketch_jun11a:280: error: expected ;' before ')' token
sketch_jun11a:281: error: expected primary-expression before 'x'
sketch_jun11a:283: error: 'x' was not declared in this scope
sketch_jun11a:284: error: expected primary-expression before ')' token
sketch_jun11a:284: error: expected ;' before ')' token sketch_jun11a:288: error: expected )' before ';' token
sketch_jun11a:289: error: expected ;' before ')' token sketch_jun11a:294: error: expected )' before ';' token
sketch_jun11a:296: error: expected `;' before ')' token
sketch_jun11a:359: error: 'TRIGGER' was not declared in this scope
sketch_jun11a.ino: In function 'void loop()':
sketch_jun11a:378: error: 'TRIGGER' was not declared in this scope
sketch_jun11a.ino: In function 'void delay_ten_us(uint16_t)':
sketch_jun11a:399: error: 'DELAY_CNT' was not declared in this scope
sketch_jun11a:400: error: 'NOP' was not declared in this scope
sketch_jun11a:403: error: 'NOP' was not declared in this scope
sketch_jun11a.ino: In function 'void quickflashLED()':
sketch_jun11a:412: error: 'LED' was not declared in this scope
sketch_jun11a.ino: In function 'void sleepNow()':
sketch_jun11a:436: error: 'TRIGGER' was not declared in this scope

error: main.h: No such file or directory

Massive clue there.
Have you got a file called main.h?
Where is it?

Where is your code?

I am also having the same issue on Mac and cannot figure it out! Same exact error codes as the user above. HELP Please!

@JacobBR: you already told us you have the same problem, so simply quoting the whole of Rocker517's post and adding "me too" is pointless. Post deleted.

Where is your code, where is your "main.h"?

I have no idea. The code is in the Ide but it won’t compile. The main.h I couldn’t even download. I clicked on it on the instructables page but it opened in a new tab it didn’t download