Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "mcu"
-
A bug is never just a mistake. It represents something bigger. An error of thinking. That makes you who you are.
-ElliotAlderson: -
FFUUUuucccckkk me sideways. So I decided to look into USB type-c's power delivery and alt modes. Cause I kinda want to make an adapter card to run my displays over a single cable. TLDR of the rest: USB-C has some huge capabilities which noone is interested in using since its way to complex to handle for what its worth in the end.
Now PD alone is kinda ok to deal with since a lot of powerbanks use it and some hobby guys documented how to work with it. I find it really odd thou that you NEED to use a dedicated IC for using the configuration chanel to negotiate how much power you can draw. Why the USB standard didnt use some simple 5V low speed signalling? Also the standard says that you only have to implement 5v 0.6A with every other power level being optional. (This is also true for cables. Most manufacturers use only the USB 2.0 standard for them and brag about how fast type-C is. ლ(ಠ益ಠლ) )
Now to the alt modes. These motherfuckers are a real shitshow to deal with. First you need a Mux to deal with USB-C's two way insertion, so your signals wont get flipped. Next thing is that you have four lanes at your disposal in alt mode. Which you can either use for four Display Port Lanes or two DP lanes and two USB 3.0 lanes. (You always get USB 2.0) Now you may think that there would be one simple chip to do it all? Nope you need atleast two at the price of 6$ each. One for PD and one for Alt modes. Both are very hard to solder (QFN, 0.5 mm pitch 40+ pins) TI ended up being the only one with a decent offering of IC's that do what I need. As for working with them, you would think that you just slap a simple MCU on there that communicates over I2C or SPI to configure the chips? Nope! You program the chips memory from which it configures itsself. And the programming is done with some TI tool which gives me no idea as to how you can handle everything whith no control logic behind it.
Looking into alternative IC's leaves me with cypress semi. And their documentation is basically a total mess. I wanna know what that chip is good for and what I need to do to make it work. I dont care about technical details mixed with marketing jargon nobody understands. And I really despise that I have to register just to download a datasheet. Especially since there is no info about it on the main page.
And this whole rant hasnt even touched the topic that USB-C only uses DP and nothing else. So you better hope that you have DP++ so you can use a passive conversion.
This was my Ted Talk about USB-C. Some info in it may be subject to my stupidity and errors as it currently is 02:15 in the morning and I need some sleep.14 -
I haven't started yet, but I will start with a small and simple operating system for microcontrollers written in C++.5
-
After catching up on the mcu movies, i finna watch infinity war, but honestly, am i the only one who thinks they need to start working on other things than the origin story of every damn being in the unuverse?5
-
The worst type of debugging: Programming an MCU without a Serial Monitor.
Some Context: I've spendt today about 3h+ on getting an attiny 45 to read 3 digital values on 3 pins. So for every test I wanted to make, I needed to put the MCU inside a socket put this socket on a arduino and flash it. Then extract it from the socket and put it on a breadboard for testing.
After getting headaches for nothing making any goddamn sense, I ended up noticing that one input pin is a multiplexed reset pin with the reset having top priority and no way to change it. So whenever this pin should have read a low signal, it got held in reset! FML -
Coding for MCUs gets more and more surreal every day.. On one hand we're cooding oldschool heavy metal C or C++, but on the other hand they tell you to use PuTTY to check if there is a working serial connection - what the fuck?
Also the IDEs they suggest you. VSCode or Eclipse. Both are so unbelievable unusable for this, even with plugins, I would compile this shit via CLI myself before using them.
It just feels so contrary - they act like professionals and just spit out 200 uncommented lines of C to start WiFi on the ESP32 - not explaining a single fucking thing, but on the other hand, they checked the connection via PuTTY after writing some uwu kawaii shit into Eclipse.
Not to mention Arduino with their FUCKING SKETCHES.5 -
I'm working on a firmware for 3d printers. I had to send a lot of data to another microcontroller and I was making a very sophisticated protocol. When finished I was so proud of my work but in that moment I remember that there is a thing called JSON but I didn't care. Now I have to send the same data to a webserver and need to move from my own protocol to JSON.
Fuck me. -
So my MCU teacher said I should use a long ass ternary to determine which pins should be set high for a given number on a seven segment display. Cause the display was on a single 8-bit port on the mcu I decided to generate a bitmask with a switch statement and set the port directly.3
-
When the program exactly fit on the MCU, using up every available byte of flash. It was just a small display unit, but it felt nice that I had chosen the smallest possible controller for the job.
-
Hello ratnters,
I'm new around here and I'm part of the niche of embedded software developer.
Is there any fellow MCU programmer around here?
Have a great night everyone!5 -
Someone knows about delta printers? I build one with a 8 bit mcu and I'm planning to upgrade to 32 bit. What do you think about it?6
-
Looking for the most overblown fictional universe in any media which takes itself serious. XD
Warhammer 40.000 seems to take the cake. Any other recommendations? No reboots AND excluding MCU, DC3 -
Help:
Differences between Arduino Nanos.
Hey guys
I have 3 Nanos, 2 MCU, and 1 AU and I can't find information about the differences...
Arduino store only sells one nano, but I know that MCU and AU are different packages.
Besides the different architecture and look, I can't find information or something that I could see the difference...
For visual view: https://aliexpress.com/item/...3 -
!rant Just letting it out !
From my childhood days I never used to make it a habit to remember our house address as we used to change it often.
My father was the eldest in our family and he took care of his siblings. One younger brother got a nice job and was financially sound to own a house, and we were still a joint family for some time. After a year or so my father was insulted and he moved out in a fit of rage and for ~20 years we have hopped around from one place to another.
This week I will be moving in to my new house along with my parents. Hope I will remember this address forever. -
Lately I am working using icestorm!
I know very few people know it, mainly beacuse not a lot of us works with FPGAs.
It is foundamental for the open source scene because is the only FOSS that gives you the ability to "compile" for FPGAs, otherwise you would have to use some proprietary tool.
People are building lot of things on top of that, and I hope more people start workin with FPGAs: dealing with them is still quite hard, especially if compared with MCU programming.
I am sure that in very few years we will see something very interesting in that field.4 -
I ask here because ya’ll are smart people and this is outside my normal scope.
What do you think of ML on MCU?
https://petewarden.com/2018/06/...1 -
Wtf is this ESP32 shit and it's hype?
I bought one because I thought JS on a microcontroller? That's gotta be fun!
I'm a hobbiest when it comes to MCUs and I do JS as a job, so I tought I'm made for this and I know at least as much as all the kids on the internet doing it.
Nothing makes sense with this shit. You have to flash wildly compiled modules of WHATEVERTHEFUCK with fucken python development-kits which have something to do with Lua to give you some kind of node-REPL which answers you with a bunch of strangely-looking errors starting with "stdin:x:".
If this NODE-MCU shit is made for JS why is there stuff about Lua everywhere you go with this, I don't get a single thing. Now I'm sitting on about 3 different git repos of sdks or what do I know and know less than before.
Oh and there is actually not a single tutorial really targetting the esp32. it's all about that 82xx-model.
Then I start googling around a bit more - It's not even ES6, it's just some ES3/5 shit. Why would you even do this. That's actually harder to manage than classic C/C++. You get no gain with it. Fuck me.
Wtf bro.23 -
Just turned myself inside out why parsing data from serial didn't work. A full day, and 20 minutes before going home I realize the uart interrupt function was too slow. I just didn't get all chars...
-
I don't wanna get bored self studying and learning. Looking for a companion.
Anyone is planning on learning React.js? Or learning algorithms and data structures using any language?
Let's start together at the moment. -
!tech
i am a fan of everything mcu but recent ms marvel feels so cringy and awkward as an Indian. the main actress is okay, but almost all of the casting is from non Indian/pakistani descent. thankfully those guys don't try to speak hindi/urdu otherwise i would have snorted while watching 😂. the blend of languages feels so weird i neither like their hindi nor English.
imo squid game like adaptation would have been better , having everyone from same descent and speaking the same language while having everything dubbed by professionals for other languages.
and what's with the colors? mann that's too much color for even the most colourful countries of the world.
and songs? wow. when i was growing up, the movies at that time had dialogues like "when you are in love , you hear background music" , but even those movies didn't had any background music so cringy as this.
also from what i know pakistani culture is way more punjabi than indian culture in general. but here , pwople are speaking perfect hindi even in a mosque!
makes me wonder how the world sees these 2 countries. every 5 minutes i felt that this is more Indian adaptation of a story than pakistan. they just blended the countries' culture brutally. i bet the conversation between director and scriptwriter must be like:
d :hi there
s : hello
d: so you have a movie for me
s : yes sir i do . it's called miss marvel
d : oh so it's about carol denvers? i thought that wasn't until 2024
s : no sir it's about a Pakistani girl with superpowers
d : oh okay. wait did you say Pakistani?
s : yes sir. a pakistani girl born in n-
d : yeh yeh yeh. listen we need to add lots of colors
s : why-?? ok sure sir.
d : and elephants. and borses. also , everyone must occasionally.
s : bur sie those are all the cuisines of an indian wedding . and why we want horses?
d: doesn't matter, i want horses.
s: buf s-? ok fine1