Hi
Has anyone have experience of emulating the UM3750 encoder/decoder, I am more interested in encoding as I want to transmit into an existing scantronic receiver. A google search shows an Arduino sketch so it has been done but I have no idea about interpreting it! I have controlled a UM3750 directly from a pic but it takes up 12 ports and it would be great to use just one for the data stream.
The timing looks simple enough, I am just not sure on how to structure it. Attached is a screen grab of an existing transmitter with bits 2 & 8 on.
thanks
Ian
UM3750 Emulation
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: UM3750 Emulation
Hello,
Here's a very much simplified version to transmit a UM3750 signal using Flowcode v8. The output pin and delay period are set via properties.
Let us know how you get on.
Here's a very much simplified version to transmit a UM3750 signal using Flowcode v8. The output pin and delay period are set via properties.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: UM3750 Emulation
Wow! Thank you Ben, that will make a fab starting point. My aim is to make the low byte an address and the remaining 4 bits will be for control, ie on/off.
kind regards
Ian
kind regards
Ian
Re: UM3750 Emulation
Struggling with this as I cannot see where in the properties to set the output pin to C1 and a delay of 700uS as just not seeing the option.
Using a variable to set the output code is as far as I have got, any pointers would be great help, thanks
Ian
Using a variable to set the output code is as far as I have got, any pointers would be great help, thanks
Ian
- Attachments
-
- UM3750_Transmit2.fcfx
- (12.85 KiB) Downloaded 163 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: UM3750 Emulation
Hello,
I think you're after the properties window with Panel selected at the top.
I think you're after the properties window with Panel selected at the top.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: UM3750 Emulation
Thanks Ben, nowt like missing the obvious
I have been having a good play and can transmit a 2 channel receiver but have no control over individual channels. Turns out it is only sending the last 8 data bits anything before that gets sent as a 0. Also seems to be sending in reverse order as normally the 2 LSB would control the channels on a 2 channel receiver.
Learned loads about shifting and masking tho and when time permits I will have a crack at creating a flowcode from scratch based on this macro.
thanks
Ian
I have been having a good play and can transmit a 2 channel receiver but have no control over individual channels. Turns out it is only sending the last 8 data bits anything before that gets sent as a 0. Also seems to be sending in reverse order as normally the 2 LSB would control the channels on a 2 channel receiver.
Learned loads about shifting and masking tho and when time permits I will have a crack at creating a flowcode from scratch based on this macro.
thanks
Ian
- Attachments
-
- UM3750_Transmit2.fcfx
- (14.62 KiB) Downloaded 171 times
-
- 0b111111100001.pdf
- (521.85 KiB) Downloaded 150 times
-
- Valued Contributor
- Posts: 1200
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
- Contact:
Re: UM3750 Emulation
Just peeking - and I wonder if there should be an OutputPin = 0 in the 'Test Data Bit' - No branch?
Looking at the ESP32 library - each bit seems to be made of 3 transitions - where here a 1 bit is made up of 3, but 0 bit only 2.
Also 'repeats' does not much for not very long?
Martin
Looking at the ESP32 library - each bit seems to be made of 3 transitions - where here a 1 bit is made up of 3, but 0 bit only 2.
Also 'repeats' does not much for not very long?
Martin
Re: UM3750 Emulation
hi all
I had at go at bastardising the component macro to learn about it and build my version just a macro call and it is remarkably similar! I can now understand how it outputs the data in reverse order to what I want, so I reversed the data before sending it. It works although I have not fully tested the range of code numbers. As set up it just triggers the 2 relays on a scantronic receiver alternately for testing. I would be interested to hear if there are any other, more simple ways of doing it!
@Martin
Bit 0 is just a sync Bit.
The repeats have a wide range, I have found the minimum to be about 7 up to about 85 before a transmitter "low battery" alarm is triggered.
Thanks
Ian
I had at go at bastardising the component macro to learn about it and build my version just a macro call and it is remarkably similar! I can now understand how it outputs the data in reverse order to what I want, so I reversed the data before sending it. It works although I have not fully tested the range of code numbers. As set up it just triggers the 2 relays on a scantronic receiver alternately for testing. I would be interested to hear if there are any other, more simple ways of doing it!
@Martin
Bit 0 is just a sync Bit.
The repeats have a wide range, I have found the minimum to be about 7 up to about 85 before a transmitter "low battery" alarm is triggered.
Thanks
Ian
- Attachments
-
- ScantronicTx.fcfx
- (31.38 KiB) Downloaded 167 times