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

**URL:** <https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255>\
**Category:** General Guidance\
**Created:** [June 6, 2025, 7:58pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255 "2025-06-06T19:58:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![flasher53](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/flasher53/32/1126393_2.png) [@flasher53](https://forum.arduino.cc/u/flasher53)\
**Post date:** [June 6, 2025, 7:58pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/1 "2025-06-06T19:58:32Z")

</div>

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

```arduino

```

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [June 6, 2025, 8:11pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/2 "2025-06-06T20:11:54Z")

</div>

> [@flasher53](#):
>
> RC receiver I BUS

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.

> [@flasher53](#):
>
> always have to find examples from people smarter than me

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

Practice will give you experience which will give you knowledge.

---

<div class="post-metadata">

**Author:** ![kmin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kmin/32/1147370_2.png) [@kmin](https://forum.arduino.cc/u/kmin)\
**Post date:** [June 6, 2025, 8:25pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/3 "2025-06-06T20:25:34Z")

</div>

> [@flasher53](#):
>
> I BUS

Some proprietary bus from Apple?

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [June 6, 2025, 9:18pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/4 "2025-06-06T21:18:15Z")

</div>

> [@flasher53](#):
>
> I am trying to find a sketch

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.

---

<div class="post-metadata">

**Author:** ![flasher53](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/flasher53/32/1126393_2.png) [@flasher53](https://forum.arduino.cc/u/flasher53)\
**Post date:** [June 6, 2025, 9:42pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/5 "2025-06-06T21:42:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![flasher53](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/flasher53/32/1126393_2.png) [@flasher53](https://forum.arduino.cc/u/flasher53)\
**Post date:** [June 6, 2025, 10:14pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/6 "2025-06-06T22:14:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [June 6, 2025, 10:14pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/7 "2025-06-06T22:14:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alto777](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/alto777/32/317385_2.png) [@alto777](https://forum.arduino.cc/u/alto777)\
**Post date:** [June 6, 2025, 10:15pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/8 "2025-06-06T22:15:13Z")

</div>

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.

> [@flasher53](#):
>
> but the code for controlling the relays in the same sketch I can not find.

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.

> [@flasher53](#):
>
> I am trying to find a sketch to read the RC receiver I BUS to control a 4 Channel 5V Relay Module with Optocoupler .

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 3, 2025, 10:15pm UTC](https://forum.arduino.cc/t/using-arduino-to-read-rc-receiver-to-control2pcs-4-channel-5v-relay-module-with-optocoupler-control/1387255/9 "2025-12-03T22:15:52Z")

</div>

Closed on December 3, 2025, 10:15pm UTC

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