# Microcomtroller programming with XOD

**URL:** <https://forum.xod.io/t/microcomtroller-programming-with-xod/3916>\
**Category:** XOD Programming Questions\
**Created:** [May 7, 2020, 12:31am UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916 "2020-05-07T00:31:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdurante](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gdurante](https://forum.xod.io/u/gdurante)\
**Post date:** [May 7, 2020, 12:31am UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/1 "2020-05-07T00:31:44Z")

</div>

I am sorry if I am asking this question. I just discovered Xod. I am not a great coder, Xod is great for a guy like me that does not want to spend all my time debugging code, I want to create a program and watch it run.  
My question is the following: Ounce I have created my project with XOD, I would like to be able to upload it to the Arduino IDE to program my microcontroller I.E ATTINY85.  
Basically, Is there a way to extract the C++ code of my project from XOD so that I can import it into the Arduino IDE?  
Thank you

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 7, 2020, 1:06am UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/2 "2020-05-07T01:06:14Z")

</div>

Select Deploy \> Show Code for Arduino, then copy the transpiled code and paste it into Arduino IDE. Judging from past discussion, this may not work since Tiny has limited data types & functions: [Github for ATTiny port of XOD](https://forum.xod.io/t/github-for-attiny-port-of-xod/382)

Note that even if you do get it to work, any graphical programming language like XOD is going to have additional overhead, so the final program is going to require additional memory and CPU cycles, so unless you have a very simple project, XOD on a Tiny may not be a viable option anyway.

---

<div class="post-metadata">

**Author:** ![gdurante](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gdurante](https://forum.xod.io/u/gdurante)\
**Post date:** [May 7, 2020, 8:56pm UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/3 "2020-05-07T20:56:37Z")

</div>

Which micro controllers are compatible with xod and the arduino IDE environment?  
Has anybody out there tried to program a xod project into an ATTINY85?

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 7, 2020, 9:21pm UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/4 "2020-05-07T21:21:43Z")

</div>

Once you select upload option, there is a drop-down for selecting the Arduino model to upload to. There are also other discusions on this forum about adding other models.

---

<div class="post-metadata">

**Author:** ![gdurante](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gdurante](https://forum.xod.io/u/gdurante)\
**Post date:** [May 7, 2020, 10:29pm UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/5 "2020-05-07T22:29:45Z")

</div>

I just uploaded my xod temperature controlled PWM fan control sketch onto an ATTIN85 with arduino as ISP, and it works great.  
Thank you all for your great input.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [June 6, 2020, 10:29pm UTC](https://forum.xod.io/t/microcomtroller-programming-with-xod/3916/6 "2020-06-06T22:29:50Z")

</div>

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