How can I to simulate a RC emitter input?
Quote from Vicent on November 25, 2023, 7:11 amHi all! I'm a new SimuluIDE user.
I use arduino for a boat RC project. I attempt to simulate the RC control to arduino, but without success.
How can I simulate the outputs of the RC station (PWM from 1ms to 2 ms), so that the Arduino can read them correctly?
I've tried it with a square wave generator, but it doesn't seem to work.
Thanks in advance.
Hi all! I'm a new SimuluIDE user.
I use arduino for a boat RC project. I attempt to simulate the RC control to arduino, but without success.
How can I simulate the outputs of the RC station (PWM from 1ms to 2 ms), so that the Arduino can read them correctly?
I've tried it with a square wave generator, but it doesn't seem to work.
Thanks in advance.
Quote from arcachofo on November 25, 2023, 7:34 amHi Vicent and welcome to the new forum.
You are the first user posting here.To create an RC station you have several options.
Not sure about what exactly you plan to do but one option would to use an scripted component:
Some information: https://simulide.com/p/scripted/
Video: https://youtu.be/vJLfuVwbvGEAnother option is to use another Microcontroller and add it to a subcircuit to create a new component:
Some information: https://simulide.com/p/subcircuits/To give you more detailed explanation I need to know more detailed information:
- What exactly you plan to do.
- Which frequencies would it generate (the carrier).
- Which kind of "commands" would it encode.
- Do you need a transmitter and a receiver?
- How would you interact with it?
- ...
Hi Vicent and welcome to the new forum.
You are the first user posting here.
To create an RC station you have several options.
Not sure about what exactly you plan to do but one option would to use an scripted component:
Some information: https://simulide.com/p/scripted/
Video: https://youtu.be/vJLfuVwbvGE
Another option is to use another Microcontroller and add it to a subcircuit to create a new component:
Some information: https://simulide.com/p/subcircuits/
To give you more detailed explanation I need to know more detailed information:
- What exactly you plan to do.
- Which frequencies would it generate (the carrier).
- Which kind of "commands" would it encode.
- Do you need a transmitter and a receiver?
- How would you interact with it?
- ...
Quote from Vicent on November 26, 2023, 7:37 amThanks for your answer.
The program works well, but it is in the simulator that it does not work correctly. T
he project is an RC hovercraft, which uses an arduino nano to control various functions. The main one, the orientation of some engines that are equipped in the bow, using RC servos. These are controlled with the right stick, reading channels 1 and 2 of the station's receiver.
This offers a PWM signal usually between 1 ms and 2 ms (0 - 100% or 1000 microseconds to 2000 microseconds), with the midpoint at 1.5 ms (1500 microsec.).
I am attaching the files to see if it can be resolved.
Congratulations on the simulator, I think it is a great tool.
Thanks for your answer.
The program works well, but it is in the simulator that it does not work correctly. T
he project is an RC hovercraft, which uses an arduino nano to control various functions. The main one, the orientation of some engines that are equipped in the bow, using RC servos. These are controlled with the right stick, reading channels 1 and 2 of the station's receiver.
This offers a PWM signal usually between 1 ms and 2 ms (0 - 100% or 1000 microseconds to 2000 microseconds), with the midpoint at 1.5 ms (1500 microsec.).
I am attaching the files to see if it can be resolved.
Congratulations on the simulator, I think it is a great tool.
Quote from Vicent on November 26, 2023, 7:39 amSorry, for some reason I can't to incorporate the file. zip.
I select it in "Upload files", and "Submit", but I can't see it in the forum.
Sorry, for some reason I can't to incorporate the file. zip.
I select it in "Upload files", and "Submit", but I can't see it in the forum.
Quote from Alex68 on November 26, 2023, 8:34 amI have the same situation on the old forum.
I post my projects to the forum via Yand-Disk.
I'm copying the link.
I have the same situation on the old forum.
I post my projects to the forum via Yand-Disk.
I'm copying the link.
Quote from arcachofo on November 26, 2023, 9:09 amQuote from Vicent on November 26, 2023, 7:39 amSorry, for some reason I can't to incorporate the file. zip.
I select it in "Upload files", and "Submit", but I can't see it in the forum.
Yes, seems that there is a problem with attachments.
I think it is solved, can you try again?
Quote from Vicent on November 26, 2023, 7:39 amSorry, for some reason I can't to incorporate the file. zip.
I select it in "Upload files", and "Submit", but I can't see it in the forum.
Yes, seems that there is a problem with attachments.
I think it is solved, can you try again?
Quote from arcachofo on November 27, 2023, 10:54 amI can't test the circuit because the hex file is not included and it needs a library Mapf to compile.
I can't test the circuit because the hex file is not included and it needs a library Mapf to compile.
Quote from Vicent on November 27, 2023, 4:33 pmI'm sorry!
The library Mapf it isn't in use in the program. you can delete the line #include.
I'm sorry!
The library Mapf it isn't in use in the program. you can delete the line #include.
Uploaded files:Quote from arcachofo on November 27, 2023, 9:29 pmThe circuit is working correctly for me.
But generating the signal using the duty of a square wave is quite difficult.
At some point you will need a better way to do it (refer to my first post).
The circuit is working correctly for me.
But generating the signal using the duty of a square wave is quite difficult.
At some point you will need a better way to do it (refer to my first post).