You need to log in to create posts and topics.

How can I to simulate a RC emitter input?

Page 1 of 2Next

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.

 

 

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?
  • ...

 

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.

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.

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 Vicent on November 26, 2023, 7:39 am

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.

Yes, seems that there is a problem with attachments.

I think it is solved, can you try again?

 

Trying...

It works!

Uploaded files:
santigoro has reacted to this post.
santigoro

I can't test the circuit because the hex file is not included and it needs a library Mapf to compile.

I'm sorry!

The library Mapf it isn't in use in the program. you can delete the line #include.

Uploaded files:
arcachofo has reacted to this post.
arcachofo

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).

 

Page 1 of 2Next