Getting started with Nim on attiny85

2023-02-07 Thread nasl
NordicSemi name comes up when battery operation is a requirement and it's used widely in commercial products but I don't know much about it. As you pointed out Pi Pico and especially Espressif SoC power consumption is not great. I love Pi Pico for ease of use with it's build in USB (MSC mode!)

Getting started with Nim on attiny85

2023-02-07 Thread cmc
I think a good thing to look at is power. Raspberry pi pico seems to draw 25mA if idle and 390uA dormant, compared to the attiny85's 2mA and 1µa dormant. So if you don't need the pi's features, you can run an attiny85 a lot longer on a coin cell. I made a similar comparison once when I was look

Getting started with Nim on attiny85

2023-02-06 Thread PMunch
"small" is the keyword here. Both of those chips are super capable with tons of features. If all you need to do is read some sensors and handle some outputs the Attiny85 is a great little chip.

Getting started with Nim on attiny85

2023-02-06 Thread cmc
It has a nice web site and a pleasing demo on the first page! That counts for something. Don't worry, I expect plenty of swearing and hair-pulling later.

Getting started with Nim on attiny85

2023-02-06 Thread cmc
The application requirement is 'just slightly more functional than soldering logic transistors'. At my current stage of learning, things like radio and encryption are still Alien technogy.

Getting started with Nim on attiny85

2023-02-06 Thread nasl
Is it really Attiny85? Probably depends on a project. At least for IoT the choice seems to be NordicSemi, Espressif ($3ea) as well as Pi Pico ($1ea).

Getting started with Nim on attiny85

2023-02-06 Thread PMunch
Polished might be a bit optimistic. Ratel is neat, but it should definitely improve. The idea behind it was simply to make a common interface for dealing with microcontrollers so that Nim could progress away from the "ugly shell script and lots of boilerplate" stage and into something a bit more

Getting started with Nim on attiny85

2023-02-06 Thread cmc
Oh wow I was expecting an ugly shell script and lots of boilerplate, not a polished project for writing idiomatic Nim code. I'm stoked.

Getting started with Nim on attiny85

2023-02-06 Thread PMunch
Hello! It's true that I've programmed the Attiny85 in Nim, but better yet I've written a library which helps with the process. [Ratel](https://ratel.peterme.net) runs on the Attiny85 (in the shape of a Digispark, but if you home-brew it the solution would be pretty much exactly the same). Simpl

Getting started with Nim on attiny85

2023-02-06 Thread cmc
Hello, everyone! I've been toying with some electronics lately, trying to reach more physical areas with my programming. I ruined a good few pieces of perfboard and some hapless parts in the process- it's funny how in hardware each of your learning experiences come with a size and weight attach