Hacker Newsnew | past | comments | ask | show | jobs | submit | more bArray's commentslogin

I think I might be building one of these... This is insanely cool.


I'm personally working on something like this for the ESP32, but written on top of micropython [1]. A few things are written in C such as the display driver, but otherwise most things are in micropython. We chose the T-Watch 2020 V3 microphone variant as the platform [2].

Our objective is to build a modern PDA device via a mostly stand-alone watch that can be synced across devices (initially the Linux desktop). We want to achieve tasks that you might typically do on your desktop, focussed towards productivity.

We did consider a custom OS, but decided against it for a few reasons:

1. Allowing somebody else to handle basic OS stuff allows us to concentrate on what really matters, the higher level stuff on top.

2. Having multiple threads in micropython is super simple and we are able to run many active apps at the same time, rather than having to kill them off [3]. Our background apps can continuously interact with the network in the background.

3. Code written for micropython can be easily run on other Python-capable devices.

[1] https://micropython.org/

[2] https://lilygo.cc/products/t-watch-2020-v3

[3] https://tactility.one/#/application-lifecycle


The thing with threading in micropython is that you'll have to either rely on task priorities and cooperative yielding, or GIL, and both of them can be easy to shoot yourself in a foot with.

The CCCamp23's flow3rbadge also used micropython to implement its app framework st3m: https://flow3r.garden/


We only have a few privileged tasks (scheduler, hardware, visible app). We ask that apps finish their processing within a certain time, otherwise we kill them [1]. Ideally we would have the ability to pause and restore them at will.

Our system is not all dis-similar from flow3r it seems [2].

[1] https://docs.micropython.org/en/latest/library/_thread.html

[2] https://docs.flow3r.garden/app/guide/basics.html


This kind of approach feels like the modern version of BASIC + Assembly from 8 and 16 bit days.


Exactly, but with more processing power than the BASIC + Assembly days, and more connectivity.


Definitely, I always compare the ESP32 to a modern version of the Amstrad PC 1215, and we could already do quite a lot with it.

Hence why unless we're doing some kind of PIC like development, it is about time to embrace more modern tooling. :)


I always thought Micropython deserved a C64-like computer (with some pins exposed on top).


I'd hate to be that poor little bastard, having to run 200 bullshit instructions for each useful one.

I'd probably just output a middle finger somewhere and halt forever.


This is really interesting.

Do you think the hardware would be a suitable platform for voice assistant type applications, with AI on server side, of course?


This is exactly what we are investigating, to record audio locally (minimal processing) and process it off-device. I think it's definitely possible.


Ok, I'll give it a try. Maybe I can get my daughter interested in programming with MicroPython on such a watch, as well.


You might be interested in the M5Stack Atom Echo. I believe you can flash them to work with Home Assistant (you could also just use the new HA Voice hardware).

[EDIT] Looks like the T-Watch 2020 also has HA support https://github.com/velijv/LILYGO-T-Watch-S3-ESPHome/tree/mai...


Thank you, that's even an integration, already.


Something like this?

https://tristam.ie/2024/1126/


Wow, even with local wake word. Looks like a nice retrofit for my Logitech Smart Radio.


Is the project available anywhere? I have that hardware, and am on the lookout for demo platforms for the ML/DSP library I am developing (https://github.com/emlearn/emlearn-micropython).


That's very interesting. I'd been thinking about getting a T-watch. Do you plan to have it work with the S3 series as well?


If your apps run continuously, how's the battery life?

If you freeze them to save the battery, how do you handle unfreezing?


We're still working out the exact process, but apps return a dictionary when they are put to 'sleep' to allow them to return to a previous state. The app state is stored in RAM currently, but could also be saved to disk. They can request that certain hardware is available for when they are woken, and they can request to be woken up at a certain frequency.

We can for example put the ESP32 into a light sleep for some time [1] and keep networking alive if apps require it. The idea is to just stretch the battery to the length of a day, shutting down the display gets a lot of the way already.

[1] https://randomnerdtutorials.com/micropython-esp32-deep-sleep...


I think the 'killer app' is missing here. If it was stand-alone tech, as a platform for something cool I would be considering inputs and outputs (HCI).

Personally I would be looking for a small microchip that could be charged externally and is able to interact with other devices. Potential applications:

* Some form of key storage where computation can be performed. Not just credit cards, passwords, but something more versatile and expandable.

* Connection to devices or hardware for personalisation, i.e. you could indicate to any car you drive your personal preferences, or where to query them. More day-to-day for tech people would be using a colleague's computer and having your mouse sensitivity preferences transferred, editor shortcuts available, etc.

* Constant health monitoring (movement, glucose, VO2, etc). We can get these things from watches and patches, but we ultimately have to take them off at some point to charge and to let our skin breath.

Ultimately, for most people the question that needs to be answered is "why would I, an otherwise healthy person, have a surgery with non-zero risk, to insert X? Why would I not just use X device?".

Some kind of low-risk and non-evasive interface to the brain would be a game changer. Some kind of interface to intended muscle actions could be big too, not just for the disabled but for exoskeleton functionality. I can definitely see an exoskeleton (of some kind) help older people remain more mobile (and economically productive) for longer. Normal jobs would have less wear and tear on the body (i.e. building trade, etc).


If it were me, i would get a tattoo above the location saying that there is removable material underneath, and get it added to you medical records. There probably should be a way to tattoo a universal message for the medical profession [1], i.e. 'do not resuscitate', 'allergic to X', 'metal under skin here', etc. There are relatively universal signs for magnets for example [2].

[1] https://www.health4you.co.za/directory/category/tattoos/medi...

[2] https://openclipart.org/detail/281487/magnets-warning-symbol


Be careful what air you breath in: "Twitter rival Mastodon rife with child-abuse material" [1] [2]. A lot of this was previously limited by X until a mass exodus to platforms such as Mastodon and BlueSky.

[1] https://www.washingtonpost.com/politics/2023/07/24/twitter-r...

[2] https://archive.is/SNYcK#selection-423.0-423.53


Actually this is a big reason why a lot of instance owners block replication of any posts from Japanese instances


Honestly, it's just about doing what is easier at the time. Re-compiling an application in debug can be a pain sometimes, or getting back to a specific state within the application to inspect what is going on. Some have mentioned about hardware (which marches on with or without software running), but similarly part of a system where you only really control one sub-system/interface.

My print statements normally come when "I have no idea why this is breaking", and I start sanity checking the basics to make sure that things I previously thought were true, remain so.

Just recently I was doing something in C after a long time, and had something like this (simplified):

    #include <stdio.h>
    int main(){
      int a = 0; // Input from elsewhere
      switch(a){
        case 0 :
          printf("0\n");
          break;
        defult :
          printf("?\n");
          break;
      }
      return 0;
    }
It was late at night, it compiled, so I knew it wasn't a grammar issue. But after testing with printf()'s I realised that the default case was never being hit and performing the core action. It turns out 'defult' highlights in my editor and compiles fine in GCC. Turns out that any word in that location compiles fine in GCC. Nasty!


Well, yes .. it is a label, and a label can be put almost anywhere. This is normal, expected C behavior and any standard conformant compiler would behave the same, not just GCC.


I think it should at least warn that it is not used by default, or recognise that unused labels within switch statements are likely to be a mistake.

Anyway, the point was, my tired eyes did not easily grep the spelling mistake, hence the print statements.


Spent a while trying to get (OpenJDK's) JShell to work, it seems like a buggy mess. I would currently not recommend using it for anything serious.


Going to take a look at integrating this later, along with nbagent [1]. I have a 'dark mode' open source project with a few collaborators, many tasks and no good way to currently organise them.

One change I think I'll need to make is prettify the export of .nbx (JSON) so that git diffs perform better. Hopefully nbagent can keep the data synced as the board is updated.

[1] https://github.com/luismedel/nbagent


Thank you for your work.

I occasionally use this browser for many years (maybe 10+ years) for a few scenarios, including if Firefox breaks (or gets snap'ed), or when I want to test how a website may work on a non-mainstream browser, i.e. reduced JS and CSS support. With it's very low list of dependencies, it has always been the backup.


Could probably get one of the many repos up and running pretty quickly [1].

Potentially what you could do is generate smaller versions of the images, test their hash matching under different conditions against multiple algorithms and then pick the parameters where you get fewest hash collisions.

[1] https://github.com/JohannesBuchner/imagehash


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: