Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Control IR Transmitter with Apple II
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Control IR Transmitter with Apple II [message #384799] Sun, 07 July 2019 09:22 Go to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

I want to control an IR transmitter with the Apple II via the game connector.

John Blankenship shows in his book "The Apple House" how to do this with an Ultrasonic Transmitter. He connected it to PIN 1 (to get 5V) and PIN 12 (to send the signals).

I found a way how to decode the IR remote control signals of my remotes I want to control with the Apple II.

I bought the Iduino ST1087 IR-Transmitter.

Now I have to write the program to send the needed signals - but there is my problem: I have no idea how to do that. The program has to be written in INTEGER BASIC as I want it to be a part of the program I wrote for the Heuristics SpeechLab. This can activate/deactivate my Netto power strip via voice commands.

Any hints are very welcome!
Re: Control IR Transmitter with Apple II [message #384800 is a reply to message #384799] Sun, 07 July 2019 12:05 Go to previous messageGo to next message
David Schmenk is currently offline  David Schmenk
Messages: 374
Registered: December 2012
Karma: 0
Senior Member
On Sunday, 7 July 2019 06:22:49 UTC-7, 6502en...@gmail.com wrote:
> I want to control an IR transmitter with the Apple II via the game connector.
>
> John Blankenship shows in his book "The Apple House" how to do this with an Ultrasonic Transmitter. He connected it to PIN 1 (to get 5V) and PIN 12 (to send the signals).
>
> I found a way how to decode the IR remote control signals of my remotes I want to control with the Apple II.
>
> I bought the Iduino ST1087 IR-Transmitter.
>
> Now I have to write the program to send the needed signals - but there is my problem: I have no idea how to do that. The program has to be written in INTEGER BASIC as I want it to be a part of the program I wrote for the Heuristics SpeechLab. This can activate/deactivate my Netto power strip via voice commands.
>
> Any hints are very welcome!

IR signals usually ride along a carrier frequency around the 38 KHz range, depending on your receiving device (27 KHz - 56 KHz). You will need to know what frequency to transmit and the codes to control your power strip. A Google search can usually get you some useful results.

For the low-level transmit routine, you will probably have to resort to machine code to toggle the IR transmitter close to the carrier frequency. Devices I've played with seem to be pretty forgiving of the carrier frequency, +- a few KHz. But you will want the timing close, so a hand coded routine is in your future.

Here is a link to an Arduino project I wrote for a "smart switch" to control a Benq projector, just FYI: https://github.com/dschmenk/Arduino/blob/master/ProjectorCon trol/ProjectorControl.ino
Re: Control IR Transmitter with Apple II [message #384801 is a reply to message #384800] Sun, 07 July 2019 13:49 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Am Sonntag, 7. Juli 2019 18:05:50 UTC+2 schrieb David Schmenk:
> On Sunday, 7 July 2019 06:22:49 UTC-7, 6502en...@gmail.com wrote:
>> I want to control an IR transmitter with the Apple II via the game connector.
>>
>> John Blankenship shows in his book "The Apple House" how to do this with an Ultrasonic Transmitter. He connected it to PIN 1 (to get 5V) and PIN 12 (to send the signals).
>>
>> I found a way how to decode the IR remote control signals of my remotes I want to control with the Apple II.
>>
>> I bought the Iduino ST1087 IR-Transmitter.
>>
>> Now I have to write the program to send the needed signals - but there is my problem: I have no idea how to do that. The program has to be written in INTEGER BASIC as I want it to be a part of the program I wrote for the Heuristics SpeechLab. This can activate/deactivate my Netto power strip via voice commands.
>>
>> Any hints are very welcome!
>
> IR signals usually ride along a carrier frequency around the 38 KHz range, depending on your receiving device (27 KHz - 56 KHz). You will need to know what frequency to transmit and the codes to control your power strip. A Google search can usually get you some useful results.
>
> For the low-level transmit routine, you will probably have to resort to machine code to toggle the IR transmitter close to the carrier frequency. Devices I've played with seem to be pretty forgiving of the carrier frequency, +- a few KHz. But you will want the timing close, so a hand coded routine is in your future.
>
> Here is a link to an Arduino project I wrote for a "smart switch" to control a Benq projector, just FYI: https://github.com/dschmenk/Arduino/blob/master/ProjectorCon trol/ProjectorControl.ino

Thanks for your explanation! Very cool project you have there!

To get the needed codes I will use this Arduino concept (just ordered the parts): https://electronicsprojectshub.com/make-ir-remote-decoder/

I also have a Benq projector and also want to activate electric canvas and AppleTV/ Sat receiver.

Do you know the PEEKS/POOKS I have to program in INTEGER to send the code via the game connector PIN 12 which is connected to the Iduino ST1087 IR-Transmitter?

Machine code is hard - I never done that. Can I make a separate machine code program that is "activated" by the INTEGER BASIC program?

Thanks!
Re: Control IR Transmitter with Apple II [message #384802 is a reply to message #384801] Sun, 07 July 2019 20:30 Go to previous messageGo to next message
Michael J. Mahon is currently offline  Michael J. Mahon
Messages: 1770
Registered: October 2012
Karma: 0
Senior Member
<6502enhanced@gmail.com> wrote:
> Am Sonntag, 7. Juli 2019 18:05:50 UTC+2 schrieb David Schmenk:
>> On Sunday, 7 July 2019 06:22:49 UTC-7, 6502en...@gmail.com wrote:
>>> I want to control an IR transmitter with the Apple II via the game connector.
>>>
>>> John Blankenship shows in his book "The Apple House" how to do this
>>> with an Ultrasonic Transmitter. He connected it to PIN 1 (to get 5V)
>>> and PIN 12 (to send the signals).
>>>
>>> I found a way how to decode the IR remote control signals of my remotes
>>> I want to control with the Apple II.
>>>
>>> I bought the Iduino ST1087 IR-Transmitter.
>>>
>>> Now I have to write the program to send the needed signals - but there
>>> is my problem: I have no idea how to do that. The program has to be
>>> written in INTEGER BASIC as I want it to be a part of the program I
>>> wrote for the Heuristics SpeechLab. This can activate/deactivate my
>>> Netto power strip via voice commands.
>>>
>>> Any hints are very welcome!
>>
>> IR signals usually ride along a carrier frequency around the 38 KHz
>> range, depending on your receiving device (27 KHz - 56 KHz). You will
>> need to know what frequency to transmit and the codes to control your
>> power strip. A Google search can usually get you some useful results.
>>
>> For the low-level transmit routine, you will probably have to resort to
>> machine code to toggle the IR transmitter close to the carrier
>> frequency. Devices I've played with seem to be pretty forgiving of the
>> carrier frequency, +- a few KHz. But you will want the timing close, so
>> a hand coded routine is in your future.
>>
>> Here is a link to an Arduino project I wrote for a "smart switch" to
>> control a Benq projector, just FYI:
>> https://github.com/dschmenk/Arduino/blob/master/ProjectorCon trol/ProjectorControl.ino
>
> Thanks for your explanation! Very cool project you have there!
>
> To get the needed codes I will use this Arduino concept (just ordered the
> parts): https://electronicsprojectshub.com/make-ir-remote-decoder/
>
> I also have a Benq projector and also want to activate electric canvas
> and AppleTV/ Sat receiver.
>
> Do you know the PEEKS/POOKS I have to program in INTEGER to send the code
> via the game connector PIN 12 which is connected to the Iduino ST1087 IR-Transmitter?
>
> Machine code is hard - I never done that. Can I make a separate machine
> code program that is "activated" by the INTEGER BASIC program?
>
> Thanks!
>

PEEKs and POKEs won’t do it by themselves. POKEs can be used to pass
parameters to an assembly language “IR send” routine, but only the
low-level routine can toggle the IR LED fast enough to send the codes.

Take a closer look at David’s send routine for ideas.

BTW, sending ultrasonic codes involves almost exactly the same problem,
only the LED is replaced by an ultrasonic transducer.

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com
Re: Control IR Transmitter with Apple II [message #385290 is a reply to message #384802] Sun, 21 July 2019 09:10 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: 6502enhanced

Thanks a lot for your help!

Meanwhile I recognized that my Benq projector can be set via its menu to power on if it gets electricity. The tuner, sat receiver and Apple TV also. The only part left was the canvas. There I had the idea to add a relay that turns the "lower the canvas" button on. So I soldered the relay to the circuit board. Now all can be commanded with the Apple II via speech with the Heuristics SpeechLab, the Microdmodem II, the WiModem232 and the Netio 230B power strip.

Here is a little video:

https://twitter.com/ReEstInv/status/1152559619732119552?s=20
Re: Control IR Transmitter with Apple II [message #385352 is a reply to message #385290] Mon, 22 July 2019 21:55 Go to previous message
David Schmenk is currently offline  David Schmenk
Messages: 374
Registered: December 2012
Karma: 0
Senior Member
That's great!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 6502bench SourceGen 1.1 released
Next Topic: Apple 5.25 Drive Alignment A9M0107
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue May 14 15:50:39 EDT 2024

Total time taken to generate the page: 0.07192 seconds