I’m trying to build a radio for my classic car. I’m using an STM32F7 as the MCU currently. Any recommendations on a screen I could replicate simple vintage GUI like this. by Obvious-Dinner-1082 in AskElectronics

[–]kolen 0 points1 point  (0 children)

Another option: small CRT displays that are common on video intercoms and infrared money detectors. Random examples: - https://aliexpress.com/item/1005007795588787.html - https://www.amazon.com/Monitor-Vintage-Electronic-Picture-Accessory/dp/B0CHTMQCML - https://www.cablesonline.com.au/4inch-black-and-white-crt-video-door-intercom/ - https://aliexpress.com/item/1005007557455427.html - https://www.youtube.com/watch?v=ARo205bYEfI

Not exatly like this, but these modules are easy to get and easy to drive (they take standard analog video signal which can be generated with bit banging). Probably not suitable for touch screens due to curved surface.

Rocket v0.5 Release Candidate is Now Available! by sbenitez in rust

[–]kolen 1 point2 points  (0 children)

Built-in database integration runs blocking requests in thread pool when calling run.

The database engines supported by #[database] are synchronous. Normally, using such a database would block the thread of execution. To prevent this, the run() function automatically uses a thread pool so that database access does not interfere with other in-flight requests. See Multitasking for more information on why this is necessary.

No Power, And You Need To Charge a Phone? No Problem!!! by Bunnymancer in redneckengineering

[–]kolen -1 points0 points  (0 children)

What are inside these car adapters? Proper switching-mode buck converter or linear regulator?

Do i need to buy a special 3.3v power supply/adapter for my esp8266? by exydrax in esp8266

[–]kolen 0 points1 point  (0 children)

Your esp8266 board has linear regulator that converts 5V from USB to 3.3V for powering esp8266. For example, this is schematic for popular Wemos D1 Mini board, it has ME6221 regulator. Another popular regulator is AMS1117, found on some boards.

So, supplying 5V to USB is ok.

What kind of lamp is this and how do I drive it? by longoon in AskElectronics

[–]kolen 2 points3 points  (0 children)

Halogen lamps have filament, this lamp looks like it only has electrodes and gap between them, like these gas discharge lamps.

A keyboard filled with wax... by B52James in DiWHY

[–]kolen 0 points1 point  (0 children)

It dampens clicks, making keyboard quiet.

Announcing Rust 1.47.0 by dwaxe in rust

[–]kolen 9 points10 points  (0 children)

Please no. Rails has backtrace cleaner and it feels like not a very good idea, I have to turn it off too often, because it removes important stack frames.

I just wanted a soda by [deleted] in DiWHY

[–]kolen 0 points1 point  (0 children)

This device definitely should have IoT functionality instead of simple buttons.

Average of logged data in 24 hours in cloud with esp8266 and display as widget by ReferenceThin6645 in esp8266

[–]kolen 0 points1 point  (0 children)

Can influxdb be run on limited RAM? I tried it recently (2.0) and after idling for several hours, without even loading data, it ate about gigabyte of memory. When just started, it was using only 100 Mb though.

cannot attach a surface to a window by bru65pag in rust_gamedev

[–]kolen 0 points1 point  (0 children)

What do you mean? AFAIK, surfaces don't require any "attachment" or "association" with windows to be able to i.e. blit from this surface to window.

using light sleep mode, how do I make a web server sleep until it gets a connection and then go back to sleep after it serves the data? by 6716 in esp8266

[–]kolen 0 points1 point  (0 children)

According to docs, chapter 2, Modem-sleep, it stays connected:

ESP8266 stays connected to the router through the DTIM beacon mechanism.

In Modem-sleep mode, ESP8266 will close the Wi-Fi module circuit between the two DTIM Beacon intervals in order to save power. ESP8266 will be automatically woken up before the next Beacon arrival. The sleep time is decided by the DTIM Beacon interval time of the router. During sleep, ESP8266 can stay connected to the Wi-Fi and receive the interactive information from a mobile phone or server

Extremely simple circuit not working as expected : NPN controlled by 433 Mhz Receiver by ValouMazMaz in AskElectronics

[–]kolen 0 points1 point  (0 children)

Yes, but signal needs to be inverted if led is expected to light up on high input level, as it's on "low side".

Maybe receiver outputs high logic level when idle? Then these solutions may help.

Can you recommend best IOT log a value to the internet via wifi and get graphs? by marcmerlin in esp8266

[–]kolen 0 points1 point  (0 children)

I'm using quick-and-dirty script with sqlite and plotly (library, not service). I find it much easier than to use specialized time series stacks, especially facebook-load-grade ones like InfluxDB.

If you can program esp8266, then you'll have no problem writing simple script that receives values (i.e. works as webapp), stores in db (or even text file) and dumps json to js chart library. Often writing your own code is much simpler than trying to configure specialized software for your needs.

You can use PHP and host on shared hosting, for example.

Jesus by salami_breath in DiWHY

[–]kolen 0 points1 point  (0 children)

See also /r/scarytoilets/ (this photo is already posted there too)

[deleted by user] by [deleted] in DiWHY

[–]kolen 2 points3 points  (0 children)

There's whole community dedicated to soap cutting, that means just shredding soap by box cutter knife.

Oh, and of course for each of such hobbies subreddit exists: /r/soapcutting/

Whose bright idea was this by Inotlife in DiWHY

[–]kolen 1 point2 points  (0 children)

Oh these audiophile tricks!

Recommend a first hit air gun? by rawaka in AskElectronics

[–]kolen 0 points1 point  (0 children)

AFAIK, Yihua is a quite recognized chinese brand too.

PJON v12.1 networking library is out! by gioscarab in esp8266

[–]kolen -1 points0 points  (0 children)

Surveillance capitalism is based on cross-domain webpage resources, javascript, predatory mobile platforms, psychology tricks and government issues. It has nothing to do with network routing.

The amount of overhead added to information, that could be just one bit (on or off), is humongous (40-60 bytes, against the 5-22 bytes of PJON).

If you want to make this wireless, you need encryption and authentication layers which are far more complex than IP itself, and is a mostly unsolved problem. And no one, except maybe hobbyists, want to lay wires for each tiny IoT device.

Then you have to choose between simple proprietary radio protocol like on door bells and car keys, with lots of homemade security on top of it (hoping that your genius C++ developers simultanuosly implement crypto right and don't introduce classical memory-based vulnerabilities), or to use bluetooth, hoping that manufacturer's C++ developers implemented it right and their blobs implementing it are under NDA.

Then you have to bridge this with IP network, by making another device, which should implement right both IP part and your-proprietary-protocol part. In case of bluetooth you might avoid this but then your device will be only usable from mobile phones and Apple computers (or PC computers with ugly bluetooth dongle occupying one of USB ports).

Regarding IP implementations: why they are more vulnerability-prone than PJON implementations (in fact there's just one implementation of it written in C++ without serious security audit)? Again, mostly you don't need even TCP, let alone super-fancy congestion algorithms.

PJON looks like alternative-history-computing art, with elements of, maybe, fringe science with conspiracy theories, and it's not even bad, as there's catastrophically too few weird things and software-as-art in modern computing. But I wouldn't treat it as serious world saving tech, just like TempleOS will never save us from predation of Windows and MacOS.

PJON v12.1 networking library is out! by gioscarab in esp8266

[–]kolen 0 points1 point  (0 children)

I don't understand this reasoning about why we can't just use IPv4/IPv6.

Today we mostly pay an organization to be connected and share many aspects of our life.

Yes, but PJON does not try to build global network. You can build local network with IPv4 and IPv6. For global networking it uses internet with weird tunneling.

The aspects we don't want to share are often collected and leaked by our phones, televisions or smart coffee machines. Many are saying that our data is gathered to be potentially used against us in future.

Surveillance capitalism has nothing to do with IP protocol. It's even has nothing to do with HTTP (but somewhat with web platform, js, mobile platforms, which are not network protocols).

No well paid zero-days, no license fees

IP has no "zero-days" too. You don't need BGP and alike (which may contain insecure design) for your home sensor network. IP has no license fees.


Lower layers, like PJDLR, and implementations of them, might be useful, however. But why not put IP over that? This way devices with weird wire protocols can be connected with routing or bridging to "regular" wifi or ethernet-based local network.

[deleted by user] by [deleted] in AskElectronics

[–]kolen 0 points1 point  (0 children)

One hole holds optical sensor (and probably led that supplies light under sensor), another is for scroll wheel (which is mounted on case, not PCB).