Jump to content



Photo
* * * * * 1 votes

Pinscape TV ON/ IR sensor


  • Please log in to reply
73 replies to this topic

#21 STV

STV

    Enthusiast

  • Members
  • PipPipPip
  • 436 posts

  • Flag: United States of America

  • Favorite Pinball: Varies. 140 in the list ATM.

Posted 15 August 2018 - 02:43 AM

I did that magicW 38khz thing from amazon too and it's working.  Here's a shot of the config bits.   that first "test" button next to the "Enabled" checkbox doesn't do anything of course bc I didn't install anything on those bits.  But I think you need to have it enabled there anyway.   in the IR remote control section, the test is the little reddish icon just to the left of TV ON icon.  Which you also need to click to enable.    Hope it helps

 

pinscapeir01_t.jpg



#22 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 15 August 2018 - 04:09 AM

I bought the premade units. Reciever seemed to work and captured the code but when I progemaned the pinscape and tried the test button..the transmitter flashed with the test button but the tv did not turn off as it was on already.

 

You might try turning the TV off manually and then doing another test send.  The code you captured might be a POWER ON code that doesn't do anything when the TV is already on.  I guess you could determine that using the original remote control and pressing the same button to see if it toggles.

 

You might also try moving the transmitter closer to the TV's IR receiver.  It might need to be closer to the TV than the regular remote needs to be.  Test with it a few inches away from the receiver and pointing straight at it if possible, just to rule out that it's not a simple matter of distance.



#23 solrac21

solrac21

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: Family Guy

Posted 19 August 2018 - 10:56 PM

sorry for the long delay.  I moved the transmitter next to the the sensor and still not working.  weird thing is that when i set the transmitter to any pins, i get an red excalamtion point in pinscape software.  its on PTA1 and the error says "This pin is assigned to multiple functions (IR LED transmitter output pin and Output Port 1).  im using the pinscape to emulate a joystick and not sure if that is the issue.   I only need the tv on, buttons and nudge.



#24 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 20 August 2018 - 04:20 AM

sorry for the long delay.  I moved the transmitter next to the the sensor and still not working.  weird thing is that when i set the transmitter to any pins, i get an red excalamtion point in pinscape software.  its on PTA1 and the error says "This pin is assigned to multiple functions (IR LED transmitter output pin and Output Port 1).  im using the pinscape to emulate a joystick and not sure if that is the issue.   I only need the tv on, buttons and nudge.

 

Aha!  The "multiple function" error is probably the problem.  Any given GPIO pin can only be assigned to one function because the assignment controls its electrical connections inside the KL25Z.

 

Here's how you clear up the conflict.  Open up the Pinscape Config Tool, to to the Settings page, and scroll down all the way to the bottom, to the "Feedback device outputs" section.  Find port #1 in the list - it's probably showing as assigned to PTA1 given that's what the error is saying.  Click somewhere in the row, which should bring up a dialog box with other GPIO pins you can assign to the port.  Click the "Virtual Out" icon in the panel on the right side (you might have to scroll down to see it).  Another "Virtual" icon should appear in the middle of the dialog box now - click that to assign the port to "virtual".  That will remove the GPIO pin from the port, which will free it up for the IR transmitter.

 

"Virtual" means that the output port will still exist as far as the PC software is concerned, but isn't connected to anything electrically.  ("Virtual" in the sense of "imaginary".)  Since you're not using the output controller features, you don't need the output ports connected to anything, so you can free up the physical GPIO pins by un-assigning them like this.  If you need any other GPIO pins in the future that are currently claimed for other output ports, you can free them up the same way.


Edited by mjr, 20 August 2018 - 04:22 AM.


#25 solrac21

solrac21

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: Family Guy

Posted 20 August 2018 - 10:50 PM

Awesome, I'll give this a shot later tonight. Thanks for the quick reply.

#26 solrac21

solrac21

    Neophyte

  • Members
  • Pip
  • 5 posts

  • Flag: ---------

  • Favorite Pinball: Family Guy

Posted 21 August 2018 - 02:37 AM

That was it!  working great.  Thank you so much for the help on this.



#27 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 21 August 2018 - 04:58 AM

That was it!  working great.  Thank you so much for the help on this.

 

Great!  Glad to hear it's working.



#28 Spider228

Spider228

    Hobbyist

  • Members
  • PipPip
  • 11 posts

  • Flag: United States of America

  • Favorite Pinball: Stranger Things

Posted 10 September 2018 - 03:44 AM

Glad to see the amazon parts that I found are working great for others also. Very simple to setup once you understand it. 



#29 Sku11digger

Sku11digger

    Neophyte

  • Members
  • Pip
  • 3 posts

  • Flag: ---------

  • Favorite Pinball: terminator

Posted 17 January 2019 - 07:58 PM

Glad to see the amazon parts that I found are working great for others also. Very simple to setup once you understand it. 

I just hooked up amazon parts and works great in my setup.  Thx so much for the recommendation.  I was wondering if there is a way to hook up two emitters to a single pinscape?  I'd hate to build another pinscape just for ir emitting to my backglass tv...



#30 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 January 2019 - 08:45 PM

 

Glad to see the amazon parts that I found are working great for others also. Very simple to setup once you understand it. 

 

I just hooked up amazon parts and works great in my setup.  Thx so much for the recommendation.  I was wondering if there is a way to hook up two emitters to a single pinscape?  I'd hate to build another pinscape just for ir emitting to my backglass tv...

 

As long as you don't mind them both repeating the same commands at the same time, I think you can hook up another transmitter by just connecting the DATA wire to each one in a daisy chain.  Those little Amazon boards (if I'm thinking of the right ones) have their own on-board amplifiers, so it should be safe hook up two of them, as long as they don't draw more than about 2 mA each from the GPIO pin.  If you have an ammeter you could check that with a 3.3V supply:

 

+ 3.3V supply ---- (+) ammeter (-) --------- IR board DATA input



#31 DarenHawes

DarenHawes

    Neophyte

  • Members
  • Pip
  • 9 posts

  • Flag: Australia

  • Favorite Pinball: ACDC

Posted 02 May 2019 - 06:53 AM

Hi MJR

 

I have a little issue around the IR firing on start up. I have the wiring done, works well in the Pinscape test section. It turns the TV on/Off fine by the app.

 

I have enabled TV ON feature and made the relay Not Connected.

 

I have no conflicts and all is well that end, however no matter what I set the start time (5,7,10,30) it wont seem to fire. I also have the toggle set to Turn on TV.

 

Any ideas or logs?



#32 DarenHawes

DarenHawes

    Neophyte

  • Members
  • Pip
  • 9 posts

  • Flag: Australia

  • Favorite Pinball: ACDC

Posted 02 May 2019 - 08:07 AM

I think I know why...

To use the Pinscape TV ON system without the expansion boards, it's necessary to build the same power sensing circuit used on the expansion boards. This is required whether you're using the IR solution or a hard-wired relay switch, because in either case, the software needs the circuit to tell it when to send whichever type of signal is required.

Sent from my SM-G960F using Tapatalk

#33 DarenHawes

DarenHawes

    Neophyte

  • Members
  • Pip
  • 9 posts

  • Flag: Australia

  • Favorite Pinball: ACDC

Posted 02 May 2019 - 08:30 AM

So I do have one question if I wish to build the power monitor circuit.

Can I use 12v instead of 5v as I have that rail closer to my pinscspe if you know what I mean..

Sent from my SM-G960F using Tapatalk

#34 DarenHawes

DarenHawes

    Neophyte

  • Members
  • Pip
  • 9 posts

  • Flag: Australia

  • Favorite Pinball: ACDC

Posted 02 May 2019 - 08:46 AM

So I worked it all out.

 

As I have a plug at the wall all my equipment is Off 100% and on 100%. No "soft" power on Pc. This means a monitor circuit is no use.

 

So as the IR function all works from the Config tool when I test all I needed to do was run "PinscapeCMD.exe SendIR=1" in a batch (.bat) at startup.

 

Awesome!!!


Edited by DarenHawes, 02 May 2019 - 11:31 AM.


#35 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 02 May 2019 - 05:39 PM

So as the IR function all works from the Config tool when I test all I needed to do was run "PinscapeCMD.exe SendIR=1" in a batch (.bat) at startup.

 

Glad you got it going with that.  It's definitely the easier option for standalone use, if you don't mind the extra few seconds waiting for windows to boot before the monitor gets powered up.

 

 

As I have a plug at the wall all my equipment is Off 100% and on 100%. No "soft" power on Pc. This means a monitor circuit is no use.

 

Actually, for what it's worth, the power monitor circuit does work in a hard-power situation as well as soft-power.  The function of the monitor circuit is to answer this question for the controller board: "has the 5V supply switched from off to on since last time I checked?"  

 

And in answer to your earlier question about using the 12V rail: no, the circuit as designed requires 5V.  It could probably be adapted to 12V with some part substitutions, but as outlined in the build guide it'll only work on 5V.



#36 Luckysprite

Luckysprite

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Fun House

Posted 19 July 2019 - 06:43 AM

Hello,

 

I need to get this topic up again because I don´t see the problem in my setup.

 

So i got the KL25Z board already working for an analog Plunger and I got the IR receiver and transmitter from Amazon already wired and solved to the board. The configuration is done in the "IR Remote Control Section" and when I hit the little reddish icon next to the TV On icon the TV goes on like it should, when I hit it again it goes off.

 

Now the problem is when I´m starting my computer the transmitter and the receivers are flashing red like they´re sending the IR code but nothing happens then.

 

Furthermore I need to say that I got the KL25Z board linked to internal USB ports, but that´s not the problem, isn´t it?



#37 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,278 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 19 July 2019 - 04:56 PM

Luckysprite - could it be a matter of timing?  Some TVs are unresponsive to IR commands for the first few seconds after they're plugged in.  You might try adjusting the timing so that the IR signal is delayed for a few seconds.  I'd try a really long delay initially, like 30 seconds, just to see if that's the issue.  If the TV works with a really long delay, you can experiment with shorter delays until you find the minimum reliable interval.



#38 Luckysprite

Luckysprite

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Fun House

Posted 21 July 2019 - 07:50 PM

Hi mjr,

 

thank you for your respons, but unfortunately I have to say that the problem is not solved with this. I tried several delays, 15s, 30s, 45s, even 100s nothing is working.  :hmm:

 

Spider228 said something like:"I'm using the cmd file to turn on tv at Startup."  Could this solve my problem, but I Do not really know what he mean with this.



#39 flstclasic

flstclasic

    Enthusiast

  • Members
  • PipPipPip
  • 182 posts

  • Flag: United States of America

  • Favorite Pinball: Attack from mars

Posted 21 July 2019 - 10:47 PM

Do you have the Power sensing circuit installed also?

#40 Luckysprite

Luckysprite

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Fun House

Posted 22 July 2019 - 06:16 AM

kl25zpinout.png

I did it like Spider228 told ous on page 1 from this topic.

Where to put the power sensing circuit?