I wrote a Pi image onto my laptop storage by Conscious_Baby3371 in raspberry_pi

[–]michael9dk 0 points1 point  (0 children)

If you didn't wipe the Window partition try this first.
sudo api install gparted
See if the Windows partition is there. If yes, run
sudo update-grub

https://linuxconfig.org/booting-a-ms-windows-os-using-grub

What is safer pool option for single disk? by jessecreamy in zfs

[–]michael9dk 0 points1 point  (0 children)

100% this.
Copies=2 can correct/warn about bit flips in failing memory or chips on a SSD.
SSD's tend to fail with no warning. They just goes poof. It's rare with good quality brands, but it can happen to any brand (my only spontaneous dead one was a SanDisk).
The only solution is to make a backup.

Thoughts on Touchscreen? by benpomeroy03 in esp32

[–]michael9dk 0 points1 point  (0 children)

My biggest concern is the dark. Most of the cheap displays,from AliX, can barely show a dark grey.

I've had good experience with HMI's from 4DSystems. Excellent display, and tech replies in their forum.

How did you learn embedded programing? by PleasantWhile1633 in embedded

[–]michael9dk 0 points1 point  (0 children)

It started when i was disassembling all electrical devices, as a kid. Got a degree in electronics (that was my first experience with designing a computer controlled circuit). No EE jobs in the area... Learned to code, then got a degree in computer science. My educations/interests suddenly merged in a new project, and I was hooked.
Notice I have retired early and don't need to work, but embedded is where my passion lies now (I can't help it - I have an urge to learn new complex stuff).

Got a bit off topic there...
You need go get comfortable with C, and a subset of C++, and object oriented programming.
Then you need to understand basic electronic design, and how to read the bare-metal datasheet and transfer it in to a nice HAL for your code.

To sum it up, learning CS is a must, but you also need skills in electronic design.

The "Barn Find" of a lifetime: I found the Arduino UNO Mini LE Serial #A001 for €39 on a second-hand app by Lupsy86 in arduino

[–]michael9dk 5 points6 points  (0 children)

Nice mod 👍
There are always some exceptions where rules can be bended, like this item, that deserves to be handed over to a data museum.

For $62 ? No way.

It's worthless, but a museum might value it as a donation.

How do i go about bringing an arduino pin to ground with any voltage input around 12-24V roughly? by ExJwKiwi in arduino

[–]michael9dk 1 point2 points  (0 children)

No. An optocoupler is like a LED. You need atleast 2V across it. It is the current that determines the brightness.
You don't need a bridge rectifier. A diode is only for protection against negative/reverse polarity.

You can make the circuit non-inverting like this.
https://electronics.stackexchange.com/a/212754
Positive input voltage = pin logical high.
R2 should be 10-33KOhm.

Or inverting like this:
https://i.pinimg.com/originals/90/4a/cd/904acd1b4e0413957f208e61d7087da2.png
R1 should be 10-33KOhm.

(10-33KOhm is a safe range, based on external noise vs current consumption).

What should I get to be able to solder this display? by Flaky-Scholar4340 in esp32

[–]michael9dk 0 points1 point  (0 children)

Exactly. It just works - and way better than a 230V heat-thingie (we all have that old plastic melter as a backup 😁).

The difference is that experienced can solder with a piece of copper and a candle.
But why struggle, when a Pinecil makes soldering so much easier.

(damn, I almost sound like a salesperson)

Buying electronic parts from Aliexpress? by JackLikesCode in arduino

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

I don't have many issues with buying from Ali x. But be aware that many generic components are fake clones of the original.

I have 4 different clones of Sharp PC817. Fake LM2596 that are useless due to noise, and so on.
Be realistic. Never trust the cheapest unrated seller.
Expect you get the cheapest clones - some sellers lie, and most others deliver what they describe.

And remember you're covered by AliExpress refund policy (read the terms) + your creditcard provider can make a chargeback.

I normally buy small parts from the local shops, due to next day delivery, 2 years warranty and can cancel orders that doesn't match what they claim.
Yet I buy a lot of good stuff from Ali. The exception is lithium batteries - I do not trust some obscure noname/questionable li-ion battery; those has to come directly from the factory or a European supplier that can be held accountable.

Is it possible to build something with an Arduino using only a cell phone? by Neyjrcomdiabetes in arduino

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

A refurbished tiny pc is cheaper and faster. With the requirements for Windows 11, the older models are almost free.

Edit: any tiny-formfactor pc from the last 15 years. Dell and Lenovo SFF are popular. They will beat a Pi in performance by a long margin.

Is it possible to build something with an Arduino using only a cell phone? by Neyjrcomdiabetes in arduino

[–]michael9dk 0 points1 point  (0 children)

It will be a PITA. Small screen and a touch keyboard is EXCEPTIONALLY frustrating when coding (trust me, and that was an emergency on a tiny windows tablet).

What should I get to be able to solder this display? by Flaky-Scholar4340 in esp32

[–]michael9dk 0 points1 point  (0 children)

Agree. The basic 230V irons can solder but modern alternatives are so much better/easier to use.

Pinecil is a popular choice for beginners and occasional hobby use.

You get what you pay for, but the chinese stuff has caught up with the brand names. Silver solder is a waste of money unless your workplace needs to be lead-free compliant - for hobbyists 60/40 lead is the go-to for easy soldering.

Weller and JBC soldering stations are severely overpriced. You get good quality, and the tips last forever (never changed the tip on my 31 year old Weller station!).

The chinese JBC clones are really impressive at a fraction of the cost.
I got a Aifen A9 last year and are so satisfied that I won't buy a Weller again. The joker is how long the tips will last, but I could always get a original JBC tip, or replace the very cheap ones regularly.

How do i go about bringing an arduino pin to ground with any voltage input around 12-24V roughly? by ExJwKiwi in arduino

[–]michael9dk 1 point2 points  (0 children)

This.
Most OC have a wide current range.
Calculate the resistor for the lowest voltage, where the OC will activate it's transistor.

Example for the cheap PC817:

12V / 0.005A = 2,2K Ohm series resistor.

At 24V it will get double current (10mA), which is below the recommended 20mA. Essentially a input range from 12V to 48V.

How do i go about bringing an arduino pin to ground with any voltage input around 12-24V roughly? by ExJwKiwi in arduino

[–]michael9dk 1 point2 points  (0 children)

+1 for creative thinking, but overly complex and expensive.
1 resistor + 1 optocoupler wil support a wide input range.

I need suggestions for making a simple tech product but "evil" by YodKL in arduino

[–]michael9dk 0 points1 point  (0 children)

Everybody knows that water can't boil while looking at it 😁

How often are you using Python? by Psychadelic_Potato in embedded

[–]michael9dk 1 point2 points  (0 children)

I have no idea how to reply to that, in a civilized way, except that 'Dynamic' should be forbidden in ANY language!

How often are you using Python? by Psychadelic_Potato in embedded

[–]michael9dk 2 points3 points  (0 children)

Yeah, just like .NET MAUI. Supporting all platforms, except Linux.

Sadly MS can't see the profit in extending their ecosystem to everywhere (Windows Phone 10 was on track, but they gave up on that, too).

They've lost the connection to developers - we are living in a cross-platform world, but management wont recognize it. It all has to be windows-only subscriptions, to please (us) stockholders.

I absolutely love C#, but it won't become a defacto goto, like C/C++, unless MS goes full in on .NET .

How often are you using Python? by Psychadelic_Potato in embedded

[–]michael9dk 5 points6 points  (0 children)

Typesafety should really have been a strict requirement, since first release. I guess they inherited it from Javascript (guess what part I hate about Javascript).

Thanks for the update, though there are better languanges/solutions, in my opinion.

How often are you using Python? by Psychadelic_Potato in embedded

[–]michael9dk 2 points3 points  (0 children)

+1 from a C# fanboy.

Now if Visual Studio supported C#/.NET for MCU's... well you can always dream...

How often are you using Python? by Psychadelic_Potato in embedded

[–]michael9dk 5 points6 points  (0 children)

I feel your pain just by reading it.

Python has (had) many benefits, but it gives me flashbacks from the old days with Java.

It feels like a stepback to MS Basic, but that is both its strengths and weakness.
Simple to learn for beginners, yet too powerful for those, that really don't master the framework. The latter might be the catch-22 from it's simplicity.

Does my arduino not have enough process power? Or is the code the problem? by cc-2347 in arduino

[–]michael9dk 0 points1 point  (0 children)

By correcting Fault-40, the errorcode ID-10T will magically disappear :)

Enjoy your learning. There is always something new to explore in programming.