# UE4Duino - Arduino to UE4 plugin Release!

**URL:** <https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 1, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963 "2015-05-01T15:03:23Z")\
**Posts on this page:** 20\
**Page:** 13

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 5, 2016, 4:06am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/254 "2016-05-05T04:06:35Z")

</div>

Oh yeah, the 4.9 win 10 version works in 4.11

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_720fc78a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_720fc78a](https://forums.unrealengine.com/u/anonymous_user_720fc78a)\
**Post date:** [May 6, 2016, 10:48pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/255 "2016-05-06T22:48:01Z")

</div>

@dabulina  
Can you provide the link for that?

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 7, 2016, 3:10am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/256 "2016-05-07T03:10:46Z")

</div>

@sidhants On the first page: ://drive.google.com/file/d/0B5YmlRw-1rCrM0dfRXRzVG13dDg/view

---

<div class="post-metadata">

**Author:** ![dabulina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabulina](https://forums.unrealengine.com/u/dabulina)\
**Post date:** [May 7, 2016, 4:33am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/257 "2016-05-07T04:33:56Z")

</div>

> [@sidhants;525794](#):
>
> @dabulina  
> Can you provide the link for that?

://drive.google.com/file/d/0B5Y…RzVG13dDg/view

---

<div class="post-metadata">

**Author:** ![dabulina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabulina](https://forums.unrealengine.com/u/dabulina)\
**Post date:** [May 7, 2016, 4:35am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/258 "2016-05-07T04:35:21Z")

</div>

Yes, this is the one witch **works** very well for me :))

---

<div class="post-metadata">

**Author:** ![dabulina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabulina](https://forums.unrealengine.com/u/dabulina)\
**Post date:** [May 7, 2016, 4:38am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/259 "2016-05-07T04:38:47Z")

</div>

Is it possible, that plugin will be available for mac os?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7ddb46db1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7ddb46db1](https://forums.unrealengine.com/u/anonymous_user_7ddb46db1)\
**Post date:** [May 10, 2016, 11:14am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/260 "2016-05-10T11:14:38Z")

</div>

> [@dabulina;524314](#):
>
> **Windows 10 version works on 4.11 engine. Juhuuuuuuu SOLVED 🙂**

I have tried all versions of a plug-in. Not one doesn’t work at 4.11

---

<div class="post-metadata">

**Author:** ![dabulina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabulina](https://forums.unrealengine.com/u/dabulina)\
**Post date:** [May 10, 2016, 12:06pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/261 "2016-05-10T12:06:28Z")

</div>

> [@serman33;527538](#):
>
> I have tried all versions of a plug-in. Not one doesn’t work at 4.11

on win 10 this version ://drive.google.com/file/d/0B5Y…RzVG13dDg/view works on 4.11 for me.  
Create new document, c++ project, lunch it. close it. Next to project create folder Plugins, copy plugin in to this folder. Lunch project and editor will compile new plugin.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [May 10, 2016, 6:23pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/262 "2016-05-10T18:23:35Z")

</div>

Has anyone tried controlling a 120V AC Fan with an Arduino before? If you would would you be willing to share your circuit and sketch?

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 11, 2016, 1:30pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/263 "2016-05-11T13:30:27Z")

</div>

> [@;527744](#):
>
> Has anyone tried controlling a 120V AC Fan with an Arduino before? If you would would you be willing to share your circuit and sketch?

Can you specify the fan? i can make a sketch for the circuit for you.

Or just look for Relay Shields but take care with the inrush current, i almost burned my arduino last year because of it. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [May 11, 2016, 3:57pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/264 "2016-05-11T15:57:53Z")

</div>

[MENTION=41593][/MENTION]

I suppose just your run of the mill box fan. Say this one: [http://www.target.com/p/holmes-box-fan-20-black-hbf2001d-b/-/A-15024768](http://www.target.com/p/holmes-box-fan-20-black-hbf2001d-b/-/A-15024768) . I’m not all that familiar with PWM, but from what I understand it is what you need to use to control something like this.

-

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 11, 2016, 6:40pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/265 "2016-05-11T18:40:12Z")

</div>

Do you wanna turn it on and off or control the speed?

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 11, 2016, 7:08pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/266 "2016-05-11T19:08:59Z")

</div>

[] [/MENTION]

You gave me a really good idea, you dont really need pwm if it is just turn on and off, you can use [this,](http://www.instructables.com/id/Controlling-AC-light-using-Arduino-with-relay-modu/?ALLSTEPS) and change the light to whatever you want since the current required does not exceed the maximum relay current(10Amps on the instructable)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [May 11, 2016, 7:16pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/267 "2016-05-11T19:16:21Z")

</div>

[MENTION=41593][/MENTION]

I’d like to be able to control the RPMs as a function of the maximum speed of my ATV simulator.

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 11, 2016, 7:22pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/268 "2016-05-11T19:22:03Z")

</div>

That’s my idea but instead of a ATV it’s a plane simulator(to feel the propeller blowing at your face) i’m going to school now, when i get back i’ll make a sketch of the circuit and share with you

---

<div class="post-metadata">

**Author:** ![Gabriel\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabriel\_Lima](https://forums.unrealengine.com/u/Gabriel_Lima)\
**Post date:** [May 13, 2016, 6:26pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/269 "2016-05-13T18:26:51Z")

</div>

[] [/MENTION]

AC motors’ speed is controlled by placing different value capacitors in series with the winding, what you can do is setup few relays and transistors and use them to switch in different capacitors to vary the speed.

---

<div class="post-metadata">

**Author:** ![3dmauro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dmauro](https://forums.unrealengine.com/u/3dmauro)\
**Post date:** [May 16, 2016, 11:23pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/270 "2016-05-16T23:23:02Z")

</div>

Hello

Thank you for this great contribution,

I have not been able to use this plugin, I’m using UE4.11

I can know a date when you release the version for UE4.11 ?

We would all be very grateful

---

<div class="post-metadata">

**Author:** ![joeycampbell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeycampbell](https://forums.unrealengine.com/u/joeycampbell)\
**Post date:** [May 18, 2016, 1:19pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/271 "2016-05-18T13:19:30Z")

</div>

Hi I am bringing in a heart rate reading from a polar heart monitor via arduino into unreal.  
I would like to establish an average heart-rate over a 60 second duration.  
I am using a baud rate of 9600 with 1000ms between readings.  
Is there anyway to have a constant ‘average heart rate per minute’ being generated ?

The arduino code I am using is:

> [@](#):
>
> #define HR\_PIN 7  
> long hr = 0;  
> long last\_hr\_ts = 0;  
> long last\_report\_ts = 0;  
> int report\_delay = 1000; //Must be \> 1000 miliseconds
> 
> long samples[8] = {0}; //size was chosen since it’s optimized in division and modulus  
> byte last\_sample = 0;  
> long joeys\_avg = 0;  
> long joeys\_hr\_accumulation = 0;  
> void setup()  
> {  
> pinMode(HR\_PIN, INPUT);  
> Serial.begin(9600);  
> }  
> void loop()  
> {  
> long current\_time = millis();  
> if (digitalRead(HR\_PIN) == HIGH) {  
> //First sample will be garbage, since last\_hr\_ts = 0  
> //dt \< 10 means the same sample. Otherwise it means hr of 6000bpm…  
> //That’s fast even for a colibri  
> if (current\_time - last\_hr\_ts \> 10) {  
> byte next\_sample = ((last\_sample + 1) % 8);  
> samples[next\_sample] = current\_time - last\_hr\_ts;  
> last\_sample = next\_sample;  
> }  
> last\_hr\_ts = current\_time;  
> }
> 
> if (current\_time - last\_report\_ts \> report\_delay) {  
> if (current\_time - last\_hr\_ts \< report\_delay) {  
> {  
> long sum\_samples = 0;  
> byte i;  
> for (i = 1; i \< 9; ++i) {  
> sum\_samples += samples((last\_sample + i) % 8)]; //optimizes to (last\_sample + 1)&7  
> }  
> sum\_samples /= 8; //optimizes to sum\_samples \>\>= 3  
> /\*To be accurate (2 digits), we multiply the sample by 100, and finally divide result \*/  
> //hr = ((100000/(sum\_samples))\*60)/100;  
> hr = (6000000/(sum\_samples))/100;  
> Serial.println(hr);  
> }  
> } else {  
> Serial.println(“Out of range”);  
> }  
> last\_report\_ts = current\_time;  
> }  
> }

---

<div class="post-metadata">

**Author:** ![theo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theo/32/715190_2.png) [@theo](https://forums.unrealengine.com/u/theo)\
**Post date:** [May 23, 2016, 8:02pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/272 "2016-05-23T20:02:21Z")

</div>

> [@dabulina;527561](#):
>
> on win 10 this version ://drive.google.com/file/d/0B5Y…RzVG13dDg/view works on 4.11 for me.  
> Create new document, c++ project, lunch it. close it. Next to project create folder Plugins, copy plugin in to this folder. Lunch project and editor will compile new plugin.

Link appears to be down - any of a reupload?

edit: here is the link ://drive.google.com/file/d/0B5YmlRw-1rCrM0dfRXRzVG13dDg/view

---

<div class="post-metadata">

**Author:** ![KernelCrumpet](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KernelCrumpet](https://forums.unrealengine.com/u/KernelCrumpet)\
**Post date:** [May 30, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/273 "2016-05-30T17:29:35Z")

</div>

rewrote the plugin to work when packaged(it’s a project atm) the serial read works haven’t tested the serial write.You have to set up your gameinstance to my custom one,if anyone wants to make it a plugin again(shouldn’t be hard).  
://drive.google.com/file/d/0B6rcQtk0gsuoMTZhQVpyR1FEMDA/view?usp=sharing

[Previous page](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963.md?page=12)

[Next page](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963.md?page=14)
