Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on how to send OOK codes #2

Closed
probonopd opened this issue May 3, 2021 · 4 comments
Closed

Example on how to send OOK codes #2

probonopd opened this issue May 3, 2021 · 4 comments

Comments

@probonopd
Copy link

probonopd commented May 3, 2021

Hello, I am tryigng to find out whether Arduino-SI4012 could be used to control a 27.145 MHz BOSE Lifestyle system.

Would it be possible to send the following signal (the numbers are in microseconds, with "+" meaning "27.145 MHz on", and "-" meaning "27.145 MHz off"?

+9024 -4512 +564 -564 +564 -1692 +564 -564 +564 -1692 +564 -1692 +564 -1692 +564 -564 +564 -1692 +564 -1692 +564 -564 +564 -1692 +564 -564 +564 -1692 +564 -564 +564 -1692 +564 -564 +564 -1692 +564 -564 +564 -564 +564 -564 +564 -564 +564 -564 +564 -564 +564 -564 +564 -564 +564 -1692 +564 -1692 +564 -1692 +564 -1692 +564 -1692 +564 -1692 +564 -1692 +564 -38628

How would the code look for this?

@mrmx
Copy link
Owner

mrmx commented May 3, 2021

If you hack a routine to make such pulses to fill the fifo buffer for a matching baudrate (for OOK the smallest pulse is of 1/50000 sec) it could be done. :-)

@xromansx
Copy link

xromansx commented May 3, 2021

Sure this are not microseconds ?

@xromansx
Copy link

xromansx commented May 3, 2021

would it be possible to emulate something like this:
{
"name": "jsbr RC Car",
"description": "Ford Mustang, 40MHz, No. 23819",
"frequency": 40.0,
"synchronization_burst_us": 1200,
"synchronization_spacing_us": 500,
"total_synchronizations": 4,
"signal_burst_us": 400,
"signal_spacing_us": 400,

"forward": 11,
"left": 59,
"forward_left": 27,
"right": 64,
"forward_right": 33,
"reverse": 39,
"reverse_left": 51,
"reverse_right": 45

}

@probonopd
Copy link
Author

Microseconds, you are right :)

@mrmx mrmx closed this as completed Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants