Using Arduino to read RC receiver to control2PCS 4 Channel 5V Relay Module with Optocoupler control

I am trying to find a sketch to read the RC receiver I BUS to control a 4 Channel 5V Relay Module with Optocoupler . I find a lot of code for reading the IBus but the code for controlling the relays in the same sketch I can not find. I am very weak in programming and always have to find examples from people smarter than me.
I thought my be one of you might have a sketch I can use. I just need to but the reading the IBus and controlling the relays together.
Thank You
BOB

It appears your search engine is a bit on the light side. Try looking with this: RC receiver I BUS arduino " as the search term, I got a lot of hits and some pictures that looked to me to be what you want. With your very clear explanation It was easy to find them. Of course I would not know if these have the correct parts, they have your terms.

Does that go for meals as well, somebody hungry then you?

Practice will give you experience which will give you knowledge.

1 Like

Some proprietary bus from Apple?

That's a newbies common mistake, thinking there's a ready code to use.
Okey, similar project code might be used as a beginning but always calls for modifications that calls for programming knowledge.

Can you point out one of them because I think I have looked at them all.
Bob

Just because Im asking for a sketch does not mean i'm a newbie.
I'm 80 years old and when I was younger I was using Basic and Qbasic to program my robots and other things. I moved up to the Basic Stamp witch was fun to use but limited. I love the Arduino but do not have the time and memory to learn the programing.
All the sketches I have found that are using the IBus are controlling servos',motor speed controllers or something else. I just need to control a 4 relay module with HIGH or LOW control using 2 channels of the IBus receiver.
Bob

Find separate sketches, one that reads the I BUS and one that controls a four-channel relay. Now merge them. There is even a merge tutorial here for those who need help

That's an r/c serial protocol.

iBus is used by FlySky. It is similar to S.Bus, developed by Futaba and used by quite a few products.

Both run at relatively high speeds. S.Bus is inverted TTL serial, iBus is a bit friendlier and uses TTL serial.

So what? The one has absolutely nothing to do with the other until you write the code that makes them.

Work on decoding your iBus input. Work separately on how to control relays. When you can do each, combine them and do both.

It probably has been done, so either keep looking or learn how to write what will turn out to be a simple sketch, given the great starting point which will be the examples that you will find with any decent library.

a7

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.