0% found this document useful (0 votes)
198 views4 pages

BIPES Project: MicroPython Setup Guide

This document provides instructions for creating and running a Python script on a microcontroller board without connecting to a PC. It involves: 1. Creating a main.py file and copying the Python script code into it. 2. Saving the main.py file to the microcontroller board through the BIPES interface. 3. Disconnecting the board from the PC and powering it up independently, which will cause the main.py script to run automatically.

Uploaded by

mubarag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
198 views4 pages

BIPES Project: MicroPython Setup Guide

This document provides instructions for creating and running a Python script on a microcontroller board without connecting to a PC. It involves: 1. Creating a main.py file and copying the Python script code into it. 2. Saving the main.py file to the microcontroller board through the BIPES interface. 3. Disconnecting the board from the PC and powering it up independently, which will cause the main.py script to run automatically.

Uploaded by

mubarag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Simple Guide on BIPES

1
Create a project

Change your project name

Type project name here

Write your script


Or
Upload the .xml file
Save & Upload to the microcontroller
1. Create a python file named [main.py]

2. Copy your main script to [main.py]

Explanation:

boot.py – This file is run first on power up/reset and should contain low-level code that
sets up the board to finish booting.
main.py – If this file exists it’s run after boot.py and should contain any main script that
you want to run when the board is powered up or reset.
The main.py script is what you can use to have your own code run whenever a MicroPython
board powers up. Just like how an Arduino sketch runs whenever the Arduino board has
power, writing a main.py to a MicroPython board will run that code whenever the
MicroPython board has power.

3. Click Files > Select the file of your code > Save as copy > Refresh device file list
1

3
4

- And you will notice that your file is saved to the board and appear at On device file
list

4. Copy your script to the [main.py] file or rename your file to [main.py].

5. Then, click Save.


Run your script without connect to PC
1. Disconnect the microB USB with PC
2. Power up Maker Pi RP2040 using power bank or battery
3. Once power up, your python program inside [main,py] will start to run automatically

You might also like