turbo-resin
embassy
turbo-resin | embassy | |
---|---|---|
13 | 70 | |
193 | 4,499 | |
- | 6.9% | |
0.0 | 9.9 | |
over 1 year ago | 3 days ago | |
Rust | Rust | |
GNU General Public License v3.0 only | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
turbo-resin
-
Asynchronous Rust on Cortex-M Microcontrollers
Async Rust does definitely work for non-toy use cases. As a data point, we use Embassy for all production firmware at my startup (https://akiles.app/en), using async tasks for everything: Bluetooth, TCP/IP networking, motor control, user interface (LEDs, keypad), a key-value database in flash, stats collection... Async helps with battery life too since it allows putting the core to sleep when no task has work to do, it allows us to build devices with 1-2 years of battery life.
There's other companies using Embassy in production. Sadly firmwares are usually not open source. There's a few non-toy open-source projects using Embassy though:
- https://github.com/nviennot/turbo-resin
-
ISO A Mobo..
I know this exists, https://github.com/nviennot/turbo-resin maybe they already have something documented?
-
Best ~9” screen printer that isn’t locked to Chitubox?
There has been some steady (but slow) progress on an open source firmware for a few popular printers, with one of the goals being to allow multiple file formats. I believe they're still targeting the Mono 4k and Saturn for their first release, but I haven't checked in on the project for awhile.
-
A fast STM32 embedded system emulator implemented in Rust
Yes!! Here's my Rust 3d printer software: https://github.com/nviennot/turbo-resin
-
How SoL am I? Can it be fixed?
There's a nice Photon Mono 4k reverse engineering project by Nicolas Viennot on GitHub where he fixes the crappy touch sensing in the firmware. The goal is to replace the firmware on a variety of chitu-based resin printers with much better open source firmware.
-
Emulating the original Elegoo Saturn firmware, unmodified
Backstory: I'm writing TurboResin, an open-source firmware for resin 3d printers. We want to support many printers, and one of the difficulty is to understand the electronic board layout and protocols of each printer.
-
What is the ender 3 of the resin gang?
It's coming https://github.com/nviennot/turbo-resin
-
Part9 of the Mono 4K reverse engineering: Driving the LCD Panel, displaying a print layer from USB
This is the last part of the reverse engineering series. At this point we are confident that we can finish the firmware to do a print. The firmware repository is here: https://github.com/nviennot/turbo-resin/
-
New to 3D printing had a few questions!
There is a project to produce an open source firmware for resin printers TurboResin - it's at a very early stage (not able to actually print yet, but making progress) In time, it should be able to do something similar to what the RERF does and use different exposure times within the same print to strengthen interior parts while leaving surfaces less exposed for maximum detail, which would be very cool!
-
Heated resin experiment (part 3)
That's it in a nutshell. I think the pump idea would work but resin is messy so changing resins would be a pain and you would have to clean the lines. Although if you had control of the printer which this project looks well on it's way to accomplishing: https://github.com/nviennot/turbo-resin then you could use the build plate to mix the resin which would simplify things a lot.
embassy
- Embassy 在 Blue Pill 上的点灯案例
-
Why choose async/await over threads?
thanks. looked that up. for the curious: https://embassy.dev/
-
Accessing the Pinecil UART with Picoprobe
Running the Embassy RP2040 USB CDC ACM serial example takes about 5 seconds on a Pico.
https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
-
Avoid Async Rust at All Cost
Async solves different problems, you can, for instance, have just a single-threaded CPU and still have a nice API if you have async-await. It might not be so cool at a higher level as Go's approach of channels and threads, but it's cool in embedded, read this:
https://github.com/embassy-rs/embassy?tab=readme-ov-file#rus...
"Rust's async/await allows for unprecedently easy and efficient multitasking in embedded systems. Tasks get transformed at compile time into state machines that get run cooperatively. It requires no dynamic memory allocation, and runs on a single stack, so no per-task stack size tuning is required. It obsoletes the need for a traditional RTOS with kernel context switching, and is faster and smaller than one!"
I'm just toying with Raspberry Pi Pico and it's pretty nice.
Go and Rust have different use cases, the async-await is nice at a low level.
-
Is anyone using coroutines seriously?
I have not yet dipped by toes in the Rust waters, but reading about the embassy project is actually what piqued my curiosity about using C++ coroutines in embedded. Are you familiar with the project or have you found it lacking?
-
The state of BLE and Rust (no_std)
I think I get the basics (shoutout to the Rust Embedded Working Group!), and I've started looking for the stack I'd be using. I think Embassy is really amazing, as well as the work of the ESP team -- hats off.
-
Rust newcomers are 70x less likely to create vulnerabilities than C++ newcomers [pdf]
> }
And this is how to do it using embassy, which is an async framework for embedded in rust:
https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
-
The State of Async Rust
> not good for embedded
embassy begs to differ
https://embassy.dev/
async/await is really just a syntax for building state machines in a way that resembles regular code. It's compiled down to the same code that you would write by hand anyway (early on it had some bloat in state size but I think it's all fixed now).
And embedded has a lot of state machines!
-
Asynchronous Rust on Cortex-M Microcontrollers
You can run multiple executors at different interrupt priority levels (with multiple tasks per executor), which allows tasks on the higher priority executor to interrupt other tasks. Here's an example https://github.com/embassy-rs/embassy/blob/main/examples/nrf...
- Espressif advances with Rust – 30-06-2023
What are some alternatives?
reversing-mono4k - Reverse engineering of the Anycubic Mono 4K
rtic - Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers
stm32-emulator
rusty-clock - An alarm clock with environment stats in pure bare metal embedded rust
UVtools - MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
smoltcp - a smol tcp/ip stack
gdbstub - An ergonomic, featureful, and easy-to-integrate implementation of the GDB Remote Serial Protocol in Rust (with no-compromises #![no_std] support)
rust-mos - Empowering everyone to build reliable and efficient software.
nrf-hal - A Rust HAL for the nRF family of devices
async-std - Async version of the Rust standard library
crates.io - The Rust package registry
cassette - A simple, single-future, non-blocking executor intended for building state machines. Designed to be no-std and embedded friendly.