picostdlib
ThinkpadBattery
picostdlib | ThinkpadBattery | |
---|---|---|
4 | 6 | |
61 | 249 | |
- | - | |
2.1 | 0.0 | |
3 months ago | about 2 years ago | |
Nim | C++ | |
MIT License | MIT License |
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.
picostdlib
-
Introduction to Embedded Systems Programming (Ada)
Heres the rp2040 wrapper someone else did: https://github.com/EmbeddedNim/picostdlib
-
How to get clean simple C output?
As a workaround, you might be able to just get Nim to output the c sources (nim cc), and set up your own build system (make or whatever) to build and link it. This is the approach taken in https://github.com/EmbeddedNim/picostdlib. If you do this, you might want to pass in --cpu:m68k or some other supported 8-bit arch, though I'm not sure that --cpu is used for anything else than selection the C compiler exec and flags.
-
New embedded programming language with C as a host language
C++ has decent industry acceptance in embedded nowadays, or at least that has been my impression.
After C++, rust is likely the most popular, quite a lot of effort has been put into running rust on embedded, see eg https://github.com/rust-embedded. However, once again to my understanding, industry acceptance is still highly marginal.
After that, there's a bunch of toy-ish efforts to run other languages. Zig, nim, python and javascript variants, etc. Usually anything that has C ABI compatibility should be possible to get up and running (without writing a compiler backend from scratch). I've had fun with some toy projects using nim for ARM cortex-M targets (https://github.com/EmbeddedNim/svd2nim, https://github.com/auxym/nim-on-samd21, https://github.com/EmbeddedNim/picostdlib).
Using Nim (and eg svd2nim to generate the equivalent of CMSIS headers for register access in pure nim), it would be entirely possible to write even the low level stuff (SPI drivers and whatnot) in 100% nim, with the same performance as C and better safety (better static type system and compile-time checks, etc). Runtime (eg overflow) checks and garbage collection are available (at the cost of some performance) but optional. See eg. a pretty basic higher-level API for GPIO access, that provides native performance, since the abstraction is implemented as macros (compile-time abstraction): https://github.com/auxym/nim-on-samd21/blob/master/src/port....
-
Emulator of Original Dell Charger Using ATTINY85
To be clear: Ratel isn't my project, just something I'm following due to interest.
In the interest of shameless self promotion :), my own experimentations are :
https://github.com/EmbeddedNim/svd2nim
https://github.com/auxym/nim-on-samd21
And I've used and contributed to picostdlib (https://github.com/beef331/picostdlib), the rp2040 support library.
All just as a hobby, but it's interesting to learn that some companies are actually looking into Nim for firmware! Embedded seems like such a slow moving industry. I believe the author of Nesper and Nephyr also developed them for professional work.
ThinkpadBattery
-
New battery project for lenovo t420
But do you guys know if I can reuse the case of original battery? If yes, I will only need the bms of this third parts battery. There is also some 3D-printing files for new cases :https://github.com/iam4722202468/ThinkpadBattery
-
I cloned an IBM ThinkPad battery from scratch for the 701C and open-sourced everything; AMA.
It's very possible, I almost finished building a board based on the bq3060 charging IC but stopped because it could potentially be dangerous if I made a mistake and I'm not super knowledgeable in this field. Most of the work is done, someone who knows what they're doing could easily finish the design and get it manufactured https://github.com/iam4722202468/ThinkpadBattery/tree/master/KiCad/bq3060
-
Emulator of Original Dell Charger Using ATTINY85
See also the from-scratch Thinkpad battery with an ATTiny85: https://github.com/iam4722202468/ThinkpadBattery
- [HELP] Can't update capacity after recelling
-
Thinkpad t420
I recently came across a project on github for a thinkpad battery. however, the image he provided made the battery look rather bulky. I was wondering if I could redo this project qwith the same hardware, except using a more streamlined case. does anyone know of a mockup/3d model of the thinkpad t420 battery?
-
How hard is to use older thinkpads battery for custom projects?
Yes: https://github.com/iam4722202468/ThinkpadBattery
What are some alternatives?
dell-charger-emulator - Emulator of original Dell charger using ATTINY85
svd2nim - Convert CMSIS ARM SVD files to nim register memory mappings
Pi_Teensy_Laptop - Convert a Sony Vaio into a Portable Raspberry Pi and Teensy laptop
nim-on-samd21 - Template for programming Microchip SAM D21 MCUs with Nim
micronucleus - ATTiny usb bootloader with a strong emphasis on bootloader compactness.
nimOnAVR - Nim language test program for Arduino UNO/Nano or its compatibles
ThinkpadBattery - Open source Thinkpad T420 battery design
kcgi - minimal CGI and FastCGI library for C/C++
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).