slimplynth
Senior Member
Hello all
Was hoping to get some advice on generating non sirc signals.
I've breadboarded IR transmitter and receiver circuits, using Virtins sound card oscilloscope to capture infra red signals from my Daewoo telly remote.
Capturing the signals was the easy part, generating them was slightly more taxing - getting the TV set to respond is proving impossible.
Using the code below to capture then measure then tweak each variable for timing until the profile for the picaxe generated IR sequence is almost identical to the 'volume-up' signal given by the remote control.
Is this method doomed to fail?
I knew that timing would be critical so I used a 20X2 set to warp speed Setfreq M64. I make the max difference on the 'Squelch high time' (for the header section to be 0.0319 ms
The next thing I was going to try was take more readings from the remote, make more measurements then aim for the average... any thoughts?
The sound card oscilloscope was very easy to use; tried to do this a couple of years ago without an SCOsc and the code would never have done what it needed to do.
It's nice to see on screen what is actually (using that term loosely in case there are any philosophy students reading) happening. I was put off back then by the idea of plugging anything into my tower's mic socket that wasn't a mic... really glad I took the risk this time.
Cheers
Was hoping to get some advice on generating non sirc signals.
I've breadboarded IR transmitter and receiver circuits, using Virtins sound card oscilloscope to capture infra red signals from my Daewoo telly remote.
Capturing the signals was the easy part, generating them was slightly more taxing - getting the TV set to respond is proving impossible.
Using the code below to capture then measure then tweak each variable for timing until the profile for the picaxe generated IR sequence is almost identical to the 'volume-up' signal given by the remote control.
Is this method doomed to fail?
I knew that timing would be critical so I used a 20X2 set to warp speed Setfreq M64. I make the max difference on the 'Squelch high time' (for the header section to be 0.0319 ms
The next thing I was going to try was take more readings from the remote, make more measurements then aim for the average... any thoughts?
The sound card oscilloscope was very easy to use; tried to do this a couple of years ago without an SCOsc and the code would never have done what it needed to do.
It's nice to see on screen what is actually (using that term loosely in case there are any philosophy students reading) happening. I was put off back then by the idea of plugging anything into my tower's mic socket that wasn't a mic... really glad I took the risk this time.
Cheers
Code:
setfreq m64
symbol Squelch_Hi = b0 'This is the high section of the header
symbol Squelch_Lo = b1 'This is the Low section of the header
symbol Zero_Lo = b2
symbol Zero_Hi = b3
symbol One_Lo = b4
symbol One_Hi = b5
symbol Address_Lo = b6
symbol Gap_Lo = b7
Squelch_Hi = 528/10
Squelch_Lo = 29
Zero_Hi = 49/10
Zero_Lo = 19/10
One_Hi = 48/10
One_Lo = 990/100
Address_Lo = 30
Gap_Lo = 950
main:
' This section generates the header
pwmout pwmdiv4, C.5, 104, 211
pause Squelch_Hi
pwmout pwmdiv4, C.5, 00,00
pause Squelch_Lo
pwmout pwmdiv4, C.5, 104, 211
' This section generates the Adress Code
Gosub Zero
Gosub Zero
Gosub One
Gosub Zero
Gosub One
Gosub Zero
Gosub Zero
Gosub Zero
Gosub Address
' This section generates the function code
Gosub One
Gosub One
Gosub Zero
Gosub Zero
Gosub One
Gosub Zero
Gosub Zero
Gosub Zero
Gosub Zero
' This section generates the gap between repeat signals
Pause Gap_Lo
Goto main
Zero:
pwmout pwmdiv4, C.5, 104, 211
pause Zero_Hi
pwmout pwmdiv4, C.5, 00,00
pause Zero_Lo
Return
One:
pwmout pwmdiv4, C.5, 104, 211
pause One_Hi
pwmout pwmdiv4, C.5, 00,00
pause One_Lo
Return
Address:
pwmout pwmdiv4, C.5, 104, 211
pause One_Hi
pwmout pwmdiv4, C.5, 00,00
pause Address_Lo
Return
Attachments
-
167.2 KB Views: 41
-
167.2 KB Views: 32