Need help uploading modules to hardware
Need help uploading modules to hardware
How to upload modules in micropython.
Re: micropython
Hello @Swetha and welcome to the forums.
There are a few ways to upload modules. Probably the most common is to copy files to your device over a serial connection with a tool like mpremote (pip install mpremote) or rshell.
It's also common for beginners to use a simple IDE. Two popular options are Thonny (tutorial for setup) and Mu, both of which allow copying of files to the device from within the application.
Even easier for beginners is that some devices - notably some of the STM32 micros - mount like a USB stick so you can just copy files to your device with your operating system.
Ports with wifi capabilities (ESP32 and Pyboard D) can also use upip to install packages hosted online. Care needs to be taken with this approach - it's currently easy to install incompatible packages - and I suggest avoiding this approach; I mention it only for completeness.
Let us know if you get stuck.
In the future, please use a more descriptive title so community members can see if the thread is relevant to them. For example, it would be best to change this thread to something like "Need help uploading modules".
There are a few ways to upload modules. Probably the most common is to copy files to your device over a serial connection with a tool like mpremote (pip install mpremote) or rshell.
It's also common for beginners to use a simple IDE. Two popular options are Thonny (tutorial for setup) and Mu, both of which allow copying of files to the device from within the application.
Even easier for beginners is that some devices - notably some of the STM32 micros - mount like a USB stick so you can just copy files to your device with your operating system.
Ports with wifi capabilities (ESP32 and Pyboard D) can also use upip to install packages hosted online. Care needs to be taken with this approach - it's currently easy to install incompatible packages - and I suggest avoiding this approach; I mention it only for completeness.
Let us know if you get stuck.
In the future, please use a more descriptive title so community members can see if the thread is relevant to them. For example, it would be best to change this thread to something like "Need help uploading modules".
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Need help uploading modules to hardware
Please create a new thread rather than changing the topic of old threads.
As your question is fairly open-ended, can you please include some information about what you've tried already and what MicroPython hardware you have. Also what is a "Things board"?
As a starting point maybe take a look at https://github.com/peterhinch/micropyth ... er/mqtt_as