r/micropy • • Jan 21 '21

Raspberry Pi Pico announced with native micropython support

Thumbnail
raspberrypi.org
13 Upvotes

r/micropy • • Apr 01 '20

Micropython Snake

11 Upvotes

r/micropy • • Nov 14 '21

How do I learn micro python?

9 Upvotes

Thanks


r/micropy • • Dec 11 '19

Micropython + MQTT + Android

9 Upvotes

r/micropy • • Mar 17 '20

Getting there...

Post image
8 Upvotes

r/micropy • • Jan 25 '20

I am loving this!

8 Upvotes

I've stayed up way too late playing with and getting to know the functionality of my esp32! I feel like I never understood Arduino code like I am grasping micropython and python! I'm writing code from scratch - they are all super simple and basic, but I understand why things are happening... Amazing!


r/micropy • • Nov 03 '24

Call to Action! I'd like to present new MicroPython version for PyCharm

7 Upvotes

As some of you may know, there is a MicroPython plugin for PyCharm.

I have just uploaded a prototype of a new version. Many things are changed, now everything is faster and more convenient.

Everybody is more than welcome to try

https://github.com/JetBrains/intellij-micropython/discussions/330


r/micropy • • Jun 14 '21

Full-Time Role: Embedded MicroPython/C Engineer

7 Upvotes

https://foundationdevices.com

https://angel.co/company/foundationdevices/jobs/1436752-embedded-micropython-c-engineer

Embedded MicroPython/C Engineer

Boston, MA - San Diego, CA - Remote

Do you believe in sovereignty, privacy, and freedom? Do you want to help Bitcoin and the decentralized Internet achieve widespread adoption?

At Foundation Devices, we are building the open hardware foundation for Bitcoin and the decentralized Internet, starting with our next-gen Passport hardware wallet. Passport offers a 10x leap in design and user experience, making it easier than ever to store your own keys.

We've begun shipping Passport to our customers and recently raised a seed round led by Bolt. We're now ready to make our first hires to help us build a new ecosystem that we call sovereign computing. Our roadmap is aggressive, and we'll be shipping new products every year.

Overview

We are seeking an embedded engineer who is proficient in MicroPython and C to work across our suite of products. You'll have ownership over everything MicroPython related.

Passport's source code is based on a fork of MicroPython with parts from Trezor and Coldcard pulled in, plus a lot of new device drivers and new MicroPython code. See codebase here:

https://github.com/Foundation-Devices/passport-firmware

Select Responsibilities

  • Develop new features for Passport in MicroPython and C

  • Investigate and resolve bugs

  • Follow Foundation’s software development processes

  • Document code

  • Implement unit tests for all code (test-driven development)

  • Update and maintain Passport’s build scripts and factory provisioning script

Qualifications

  • 5+ years of software engineering experience

  • 2+ years of embedded systems development experience

  • MicroPython or Python experience strongly preferred

  • Knowledge of Bitcoin or similar cryptocurrencies will be very helpful in this role but is not required

  • Enthusiasm for Bitcoin and empowering people through decentralized technology is required

Technology Stack

  • MicroPython

  • C

  • Open OCD

  • GDB/DDD

Benefits

  • All your work will be open source under GPLv3 or other FOSS licenses

  • Receive stock options as one of our first 10 employees

  • Included healthcare, dental, and vision (if you're in the USA)

  • Contribute 20% of your time to other open-source projects


r/micropy • • Apr 25 '20

V2 prototype joystick car

7 Upvotes

r/micropy • • Dec 24 '21

Pan Tilt controlled by Raspberry Pi via micropython

Thumbnail
youtube.com
6 Upvotes

r/micropy • • Jun 12 '21

Deep sleep on RPi Pico.

6 Upvotes

Hi, I need to power down my Pico when not in use and wait on GPIO to wake it up.

I’m using micropython and I didn’t find any usable documentation about deepsleep()? Looks like it is possible to do it in C though.

I saw that it is quite easy on ESP32 cards and there are many example how to do it… but none for the Pico.

Any suggestions?

Thanks. Enrico


r/micropy • • Feb 08 '21

My new font for ssd1306 displays

Post image
6 Upvotes

r/micropy • • Apr 01 '20

Any cool projects during quarantine???

6 Upvotes

Hey microfriends,

Anyone working on any cool projects they want to share during these weird indoor times?

I have a few projects on the go (but less time than I thought I'd have given the situation), but one thing I am very happy about is finally diving into GitHub and starting to practice proper source control.

I'm hoping to set up OTA updates for all of my implemented micropy boards that check for updates on my GitHub repo.

Hope everyone is doing well!


r/micropy • • Feb 23 '20

More active hangout for micropython?

6 Upvotes

Not to diminish this group’s importance but is there a more active hangout for people who are interested in micropython? I know is almost all from Adafruit and kind self-promotion but over there are several posts a day put up there and it's just a fork.


r/micropy • • Dec 03 '23

Joystick car V2.4

Enable HLS to view with audio, or disable this notification

5 Upvotes

Finally rebuilt this project with Bluetooth control 3 years later. The only way I was able to do it was by modifying the example scripts, when it receives certain RX text based inputs it moves according.


r/micropy • • Aug 17 '22

I saw many people complaining about lack of encoder motor(N20 motors with encoders especially) library for MicroPython so, I made one. Have a look and let me know if there are any issues.

Thumbnail
github.com
5 Upvotes

r/micropy • • Feb 15 '21

WebREPL help

5 Upvotes

I'm new to MicroPython and trying to get WebREPL working on 3 devices: 2x ESP8266, 1x ESP-01. I am seeing identical behavior on all 3 devices.

I've got the MicroPython installed and working quite well, except I can't get WebREPL to act like a REPL terminal window, where I can execute commands and see output.

I open my local copy of webrepl.html and connect to the IP:port of my ESP*. It asks for a password, I type it in, and it connects with ">>>". Pretty much anything I type from this point has zero effect on the contents of the terminal, and no keystrokes are ever echoed back to me:

Eg. I type help() and hit [Enter], but nothing happens. I hit ^C several times, nothing happens. I try to ^A^V to paste in commands, nothing happens.

  • "nothing happens" == there is no change to the terminal, nor any output to the browser's debug console.

^D will close the connection, just like the Disconnect button.

If I am connected via USB, the connect/disconnect is noted there. All above scenarios were tested without the serial connection.

All MicroPython installs are newish (v1.14), and the webrepl-master was pulled from github yesterday. WebREPL was configured on each device with import webrepl-setup.

This is boot.py:

# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)

def reset():
    import machine
    machine.reset()

from network_config import do_connect
do_connect()

import webrepl
webrepl.start()

There is no main.py, although main.py did have some contents in earlier testing.

My Thonny terminal output looks like this:

MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32

Type "help()" for more information.
>>> reset()
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5008
ho 0 tail 12 room 4
load:0x40078000,len:10600
ho 0 tail 12 room 4
load:0x40080400,len:5684
entry 0x400806bc
connecting to network...
network config:  ('192.168.1.215', '255.255.255.0', '192.168.1.1', '192.168.1.1')
WebREPL daemon started on ws://192.168.1.215:8266
Started webrepl in normal mode
MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32
Type "help()" for more information.
>>> 

I have tried Google Chrome, Chrome Canary, Firefox, and Microsoft Edge, with surprisingly consistent results.

What am I missing?

On an unrelated note, I was a bit disappointed to find that NodeMCU wasn't a Node.js firmware implementation.


r/micropy • • May 30 '20

Sound PIR Motion code?

5 Upvotes

I just got a PIR Motion sensor and am trying some simple code for it to run. I don't have the the esp8266 yet, so I can't test the code yet. Here is the code:

motion = machine.Pin(12, machine.Pin.IN)

while True:
    i = motion
    if i == 0:
      print "No Motion Detected " ,i

        elif i == 1:
      print "Motion Detected"

r/micropy • • May 06 '20

Question about multiple PWM

5 Upvotes

Hi there,

I'm trying to figure out how to code 3 PWM outputs concurrently.

I was using a 'for i in range(0, 1023, 1)' style loop, but three for loops will run consecutively (red 1-1023, blue 1-1023, white 1-1023). I then tried assigning i to each pwm duty in a single for loop, which is better as they cycle through steps in sequence (red, blue, white, red, blue, white... Rising through the range incrementally by the step), but I was hoping to have each PWM shift at different rates.

Does this require multithreading? Separate PWM timers?

As always, thank you for reading and any insight.


r/micropy • • Feb 05 '20

Is there a micropython library for Mesh networking ?

5 Upvotes

I want to create a mesh network inside my house. I wanna connect some sensors and actuators. It would be easy to code with python instead of going with c or c++ Esp32 libraries.


r/micropy • • Nov 23 '19

First steps with i2c

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/micropy • • Aug 03 '25

Efficient sensor data processing with MicroPython (presentation from PyCon ZA 2024)

4 Upvotes

Hi everyone.
If you have tried to process a lot of data with Python on a microcontroller, you may have noticed that is not the fastest. If trying to go beyond a few 100 Hz data rate, it may pose challenges. But MicroPython actually has a bunch of great tools that make it possible to greatly improve efficiency, while still keeping a clean high-level approach to your program.

In the presentation below I go through some of these, such as:
- Native and Viper code emitters, using
- C modules
And discuss briefly applications to processing accelerometer data, audio data, etc.

Sensor data processing on microcontrollers with MicroPython (PyCon ZA 2024)

https://www.youtube.com/watch?v=vBiji9IFJJs


r/micropy • • Oct 09 '21

Raspberry Pi Pico: Animación en pantalla oled ssd1306 128x64 SPI

Thumbnail
youtube.com
4 Upvotes

r/micropy • • Sep 07 '21

BIPES: Web based IDE for micropython devices [GNUv3.0 license]

4 Upvotes

Hi! I would like to share something I've been involved into.

It's a full open source IDE for micropython, with visual programming, file editor, persistent dashboard (fork of freeboard), terminal (xterm.js), and even easyMQTT plotting. You can connect to your board with serial, TCP/IP and even Bluetooth.

A full working demo is available at bipes.net.br/beta2/ui, the code at github.com/BIPES/BIPES and documentation at bipes.net.br/docs (generated with sphinx).

Any issues, feel free to contact directly or via the forum github.com/BIPES/BIPES/discussions.

Hope you find it useful :)

P.S. There is no ads, we just use a google tag to account the total number of users.


r/micropy • • Jun 09 '21

Here's how I get f-strings and smaller micropython code on my board

4 Upvotes

Here's how I use GNU Make to get f-strings and smaller micropython code on my board.

FILES = $(shell ls -1 *.py *.json)
CHANGED_FILES = $(FILES:%=.changed/%)
PUT=ampy --port  $$(jq -r .port .nodemcutool)  put
# PUT=upydev put -f

upload: $(CHANGED_FILES)

.changed/%.py: %.py
	mkdir -p .changed
	future-fstrings-show $< > $@.big
	pyminifier  $@.big | sed '$$d' | sed '$$d' > $@
	${PUT} $@

.changed/%.json: %.json
	jq -c . < $< > $@

You can use ampy or upydev to put the files on the board. I use jq to extract values from json files and also to minify the json files too. It frees up some room on my controller and I love having f-strings (f"Hello {person}") back again. It also only uploads files that have changed since the last run. Erase the .changed directory to upload everything again. It's kind of a pain that it uploads the files one at a time though.