# Instructions for uploading sketch to Arduino Nano

**URL:** <https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207>\
**Category:** Request Help\
**Created:** [29 September 2020 18:26 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207 "2020-09-29T18:26:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosZL](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@CarlosZL](https://openflexure.discourse.group/u/CarlosZL)\
**Post date:** [29 September 2020 18:26 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207/1 "2020-09-29T18:26:17Z")

</div>

Hello I just added this question as a reply to someone else’s issue but I wanted to make sure I added this on the correct platform.  
I am having a hard time uploading the Sangaboard sketch onto the Arduino Nano with Processor ATMega328P. I have the latest arduino firmware and I am using an Arduino Nano with individual driver boards on a breadboard with a separate 5V power supply for the stepper motors. However, when I upload the Sangaboard sketch onto the Nano I get an error that says “StepperF\_alt.h: No such file or directory”. I understand that this is a library that must be included manually in order for the sketch to work. I am on a Mac but I have access to a windows machine. Does anybody know if there is anything I can do?  
thanks

 ![Screen Shot 2020-09-29 at 1.41.15 PM](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/acf5107d954642d1a1bb7910ec3a47a44bfa5bf4.png)

---

<div class="post-metadata">

**Author:** ![vthyng](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/vthyng/32/160_2.png) [@vthyng](https://openflexure.discourse.group/u/vthyng)\
**Post date:** [30 September 2020 03:04 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207/2 "2020-09-30T03:04:27Z")

</div>

Hi Carlos, yes I had some trouble with that too in that I had to make sure the header file was named correctly, to be found. I think I had downloaded the files individually, which named them horribly and I needed to rename them.

Taking a look at this today, I think you want to download the files from here:

> **[arduino\_code/sangaboard · master · Bath Open Instrumentation Group / Sangaboard](https://gitlab.com/bath_open_instrumentation_group/sangaboard/-/tree/master/arduino_code/sangaboard)**
>
> The Sangaboard is a motor controller for unipolar stepper motors such as the cheap 28BYJ-48 motors. The custom board (v0.3) can be programmed and an Arduino Leonardo in the Arduino...

![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/64b90885bf5ba7c8b52c3e6a92cdef873eb48eb1.png)

I unzip the file and navigate to sangaboard-master\arduino\_code\sangaboard  
Verify that you see the 3 needed files:  
 ![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/8f191cced7b1aaf3c85b1a64bbd2583957d119aa.png)

Then open the sangaboard.ino file  
And load that to your nano.

If these are the steps you followed already, can you show what you see in your sangaboard/ folder?

Vince

---

<div class="post-metadata">

**Author:** ![CarlosZL](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@CarlosZL](https://openflexure.discourse.group/u/CarlosZL)\
**Post date:** [2 October 2020 03:06 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207/3 "2020-10-02T03:06:42Z")

</div>

Hello Vince,  
thank you for the reply. I followed these steps and for some reason the sketch won’t upload to the Arduino Nano. I have two Arduino Nanos and I have tried them on both and I get the same result. The sketch starts uploading and it just gets stuck uploading. I have tried uploading a simpler sketch like the Blink LED example and it works just fine but when I tried the Sangaboard one it just doesn’t.  
I have included the screenshot of the Sangaboard folder.

 ![Screen Shot 2020-10-01 at 11.01.53 PM](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/358f8775186f6f3335b288c76a1feb50c0329b7d.png)

---

<div class="post-metadata">

**Author:** ![vthyng](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/vthyng/32/160_2.png) [@vthyng](https://openflexure.discourse.group/u/vthyng)\
**Post date:** [2 October 2020 04:27 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207/4 "2020-10-02T04:27:03Z")

</div>

ok, I just tried it again to be sure I wasn’t missing something and it still works for me. Although the problem seems like the Arduino IDE can’t find the file, let me add some pictures of my specific settings in case it is one of these.  
I am using IDE v1.8.13

 ![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/8a262c7387570436d20ca24471cde480b27cd437.png)

Setting the device to Nano

 ![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/ab090de90e8156a816b7204eca7f8d089e023683.png)

And have the programmer set to AVRISP mkII

 ![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/cc1e2ed80ab34f15d4972ade3616560af7ba5f8b.png)

---

<div class="post-metadata">

**Author:** ![vthyng](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/vthyng/32/160_2.png) [@vthyng](https://openflexure.discourse.group/u/vthyng)\
**Post date:** [2 October 2020 04:29 UTC](https://openflexure.discourse.group/t/instructions-for-uploading-sketch-to-arduino-nano/207/5 "2020-10-02T04:29:29Z")

</div>

I suspect it has something to do with opening this file instead of the sangaboard.ino:  
 ![image](https://global.discourse-cdn.com/free1/uploads/openflexure/original/1X/61600168f4d73271ef6d597d21530323e650ea0e.png)
