---
title: How to upload coding program on Leanbot
description: "**To upload Leanbot, you need to perform the steps in the following order:** ##### Prepare At the [Leanbot IDE](https://ide.pythaverse.space/#/code) page, ready to upload coding the program into Leanbot ![](https://pythaverse.space/wp-content/uploads/2023/07/image-14.png) ##### Step 1. Turn on Leanbot **When Leanbot is turned on (1), you…"
url: "https://pythaverse.space/docs/how-to-upload-coding-program-on-leanbot/"
updated: "2023-08-21"
category: Leanbot Documentations / Guideline
tags:
  - Arduino Uno
  - Leanbot
  - Pythaverse
---

# How to upload coding program on Leanbot

**To upload Leanbot, you need to perform the steps in the following order:**

##### Prepare

At the [Leanbot IDE](https://ide.pythaverse.space/#/code) page, ready to upload coding the program into Leanbot

![](https://pythaverse.space/wp-content/uploads/2023/07/image-14.png)

##### Step 1. Turn on Leanbot

**When Leanbot is turned on (1), you will see the light on Leanbot glow red (2).**

![](https://pythaverse.space/wp-content/uploads/2023/07/image-15.png)

##### Step 2. Plug USB cable from computer into Leanbot

![](https://pythaverse.space/wp-content/uploads/2023/07/image-16.png)

##### Step 3. Click “Compile & Upload” button

**To load the program into Leanbot, press the “Compile & Upload” button.**

![](https://pythaverse.space/wp-content/uploads/2023/07/image-17.png)

##### Step 4. Select COM port

**4a.** If no window popup, go directly to **Step 5**.
(When upload was successful previously)

**4b.** If “wants to connect to a serial port” window popup:

1. Select the correct serial port
2. Then click “**Connect**”

![](https://pythaverse.space/wp-content/uploads/2023/07/image-20.png)

**4c.** If wants to connect to a serial port window popup but empty:

1. Plug in the USB cable again
2. Then go to **Step (4b)**

![](https://pythaverse.space/wp-content/uploads/2023/07/image-21.png)

##### Step 5. Wait until Upload done (100%)

**5a. Wait for the program to upload…**

- Uploading 25%…
- Uploading 50%…
- Please wait a few seconds until it’s done!

**5b. The code program is uploaded successfully**
On the web browser appears the icon (1) has successfully connected Leanbot with your computer.
The screen shows the message:**“100% – Done!”** (2)

![](https://pythaverse.space/wp-content/uploads/2023/07/image-24.png)

##### Step **6. Leanbot is now running the newly uploaded program**

After the code program is uploaded, **unplug **Leanbot from the computer.

![](https://pythaverse.space/wp-content/uploads/2023/07/image-23.png)

**Notes**:

- Do not need to Refresh / Reload page before Uploading code.
- Make sure BOARD is ARDUINO UNO or ARDUINO NANO.
- Leanbot is fully charged before loading the program.
