Naučil som sa angličtinu, programovanie, elektrotechniku, vedecké smery...

Na druhej strane sa tie veci dali naučiť za desatinu času keby človek chcel

Internet ma pripravil o sociálny život, spravil zo mna totálne nedospelého človeka, vypestoval závislosť a nulovú disciplínu, dal do hlavy absolútne irelevantné neistoty a pohľad na život.

Internet nie je reprezentácia reality, pár hlučných jedincov vie šíriť svoje agendy a potom sa to odráža na tých, čo internet len lurkujú, čize ľudia ako ja a ty. Na internet prispieva len veľmi málo luďí, väčšina len konzumuje.

A preto by som každému mladému človekovi odporučil nebyť okrem wikipedie na internete vôbec. Choď von, ľudia ti majú omnoho viac čo odovzdať ako obrazovka. Tvoje záľuby nájdeš aj v reálnych komunitách a nie medzi loosrami na reddite.

Keby môžem jednu vec zmeniť tak je to aby som nezačal používať mobil v 15. Moc skoro.

UK len kvoli Matfyzu popravde. Ale hej, uroven skol taka ako uroven vsetkeho ineho u nas.

If this makes you cry you should not use the internet.

fr. U nas su relevantne FIIT, FEI a UK. Ostatne maju uroven strednej skoly.

well it kind of wouldn't work with the rest of the modules but ill definitely use it in the future.

I made a few changes and settled for a P-Channel mosfet driven by a small NPN- this way I get a high side switch controlled by a high signal. Works flawlessly.

It's battery powered. Even a miliamp would be too much. Not sure if an Atmega even has a sleep mode like that. I'm also running a boostconverter. The whole thing is wired in such a way that a power button momentarily powers on the uC which then latches and sustains. A subsequent press of the same button is sensed by the uC and the sustain then disabled. It just so occured that not having a common ground caused a lot of floating voltages everywhere. A mosfet would be more fitting here but Im out of logic level ones so had to improvise

basically what u/Zouden said:

If the low side of the uC is disconnected from ground but the high side is still connected to Vcc, the GPIO pins will be at 0.7V. This is unavoidable.

This essentially created a local ground which from the battery's standpoint is at 0.7v. Issues occured as the emittor is connected to the global ground and the GPIO is only connected to the V+ and the base is therefore always slightly excited. The optoisolator for some reason didn't work but i suspect i've blown it up at some point because it no longer works.

I managed to somewhat solve this by omitting the optocoupler. Instead I measured the global voltage when the "sustain" pin is on, then off. Then I put a zener diode and a small resistor directly to the base and it seems to work. Now the grounding problem doesn't exist, because as soon as it's in off-state, the zener diode rejects any noise below the threshold.

haven't read that, but there was a passage from 1984 that describes this on point:

For, after all, how do we know that 2 + 2 make 4 ? Or that the force of gravity works ? Or that the past is immutable ? If both the past and the external world exist only in the mind, and the mind itself is controllable, what then ?

i made an edit to the post right now, i need to clarify that the microcontroller is self sustaining the base after the power-on. It does it trough an optocoupler, but it can apparently get activated even by a floating pin which i have no means of pulling down without connecting the "local groind" of the uC to the power ground. If i pull them down to the local reference it seems to make no difference and i have no idea why, because it should not conduct current even though it would still float relative to the power ground.

I see i ended up on the retarded side of reddit

Common emitter vs collector for switching on a microcontroller ?

My circuit (which for now is just a uC and a switching transistor) has a problem

if I connect the main transistor switch in a way that the load is on collector, and a digital pin goes to the base trough an optoisolator, so that upon initial turn-on, it can sustain itself until shutdown, I have problems with the + side (which is obviously always connected) floating on pins of the microcontroller.

The circuit will stay always on unless I put a very low pulldown on the base of the power transistor. This is why I have issues with off-state power consumption. I either have a power draw because the transistor is always slightly on, or I have too low of a pulldown resistance and the base never gets saturated fully, or the pulldown itself is slowly leaking.

Problem is that the "local" ground of the uC is always 0.7v higher than the power ground, meaning that there is always a signal on the transistor and pulling down pins to this local ground will only leave the potential to that arbitrary value. I cannot properly pull down the floating pins without introducing a path to the actual ground - because as it turns out the uC can somewhat receive power trough it's digital pins.

In the other case when I put the load on emitter, there is no voltage gain and the microcontroller won't even start. I put two of them in a darlington cascade but it's still not permeable enough.

What should i do if i want/need to have a common ground connected at all times ?

I know this is why MOSFETs exist but i don't have anything besides a z44, which i believe won't work with 3.7v

If people telling you it can kill you won't put you off (it didn't put me off when i started) I will just mention that I once touched a 400v power inverter and my heart literally stopped for a while. Then I blacked out and when i woke up I went on about my day. Still thinking about it time to time. Also the feeling is horrible, it's like hitting your elbow but it happens 50 times a second. Im grown now and HV AC still scares the shit out of me.

capitalism would actually be OK if companies were private instead of share-split and if there weren't patents

18M from Slovakia looking for a duo to go with on a more adventurous trip

I’d prefer to travel in mid to late August or very early September, but it doesn’t really matter all that much. As for where I’d go, I thought Italy, Slovenia, Croatia or even Greece would be interesting. Regardless, I am open to any destination, really. I am mostly looking forward to a more adventurous trip, not as keen on visiting large cities and landmarks (not exclusively tho) and staying over in hotels, but maybe doing some local activities in the lesser known locations and utilizing Airbnb and rentals, even camps. If you like hiking, swimming, camping, exploring, watching the stars [and ofc partying which is optional :) ] you are my kind of person, hit me up if you are interested.

Hi if you are still searching, hit me up in DMs we can chat on insta afterwards