Author: EI

macro functions cover

C: Macro Functions vs Regular Functions vs Inline Functions Part#2

So just to recap what we saw in part 1 of this blog Regular functions are better at Readability and Code size, Macro functions are better at code performance. In this part let’s have a look at inline functions and see how and where to use them and how good of a replacement to a macro function they are. Inline Functions This is the last piece of the puzzle. Inline functions originally came in C++ and later in c99 update, it was added to C programming language so now in C, we have the “inline”  keyword. What are inline functions?...

macro functions cover

C: Macro Function vs Regular Function vs Inline Functions

If you have some experience with C programming and you have had the opportunity to look at some library code then you must have seen something like this The above construct can be called as a macro function or a smart macro. If this code is executed we would get the same result as if ADD is a regular function like in the code listing below. When I was looking at these macro functions I had several questions pop up in my head. Are macros better than normal functions? If so why don’t we use macro functions everywhere? What is...

Are Comments Good or Bad?!

If you look up “Tips to comment code” in google you will find 2 types of answers with 2 different philosophies The first type of answer will say don’t use comments as it makes the entire source code look dirty and cluttered and the right way to write source code is to just make it readable by using good variable names and proper syntax. It is the duty of the reader to be proficient enough to make sense out of it. Only the “traps” in the source code need to be commented out. The second type of answer will say...

Where To Go After Arduino? 2 Paths For You To Pick From!

Arduino is a lovely little ecosystem where most of us have started our electronics journey. I still remember the moment I got my first LED blinking program working! Since then we have done several projects using Arduino. Some of those we by following some online tutorials while others were produced out of our own ideas with a little bit of online research. But there comes a point in every inventor’s journey where we have simply outgrown Arduino. If you are reading this post then you are at the same place where I was some years back. I wasn’t sure where...

Top 14 Alternatives to Raspberry Pi 4B

Everybody in the embedded world has played with the Raspberry pi board at one point or another. But not everyone is aware of these cool alternatives available in the market. In this post, I am have listed 14 alternatives to Raspberry Pi along with their pros and cons as compared to Raspberry pi. Whether you are just looking for a change, or you think Raspberry pi is an overkill for the project you have in mind, or you need an Embedded Linux board that has more processing power, or you need something more powerful than the Raspberry pi, there is...

Hardware, Software, Firmware, Middleware, Drivers, OS & Applications, The Difference?

We hear a lot of these “wares” terms all the time, some are hard, some are soft, some are firm and some are in the middle. But why some many types of wares? How do they all fit in? Let’s learn more about them in this article. Let’s start with the familiar term hardware. Hardware What is Hardware? Hardware is a system consisting of electronic devices, designed to work together as a single unit. It is the only tangible “ware” out of our list that you can physically interact with. Examples include PCBs like motherboard, RAM, Integrated Circuits, Processor, Microcontroller,...

Embedded Engineers Salaries in Europe

Embedded Engineers Salaries In Europe

I am working as an Embedded Engineer in Europe. In this article, I am writing the results of the research I did about embedded engineering jobs and salaries in various countries in Europe. Instead of giving you a misleading gross salary number, I have calculated the taxes and living expenses and I have given you the approximate savings you can expect to make each month. If you are a student wanting to learn Embedded Engineering or a student already learning it or if you are an experienced embedded engineer planning to move to Europe then this article is for you!...

Quad-SPI, Everything You Need To Know!

If you have just mastered this SPI interface, then looking at Dual and Quad SPI can be overwhelming. I had to read several pdfs to wrap my mind around this concept. In this article, I am presenting all the useful and interesting facts on Quad-SPI that I have learned through my research. What is Quad-SPI? It is a serial interface, where 4 data lines are used to read, write and erase flash chips. Quad-SPI Quad-SPI, also known as QSPI, is a peripheral that can be found in most modern microcontrollers. It has been specifically designed for talking to flash chips...

interview questions 7 cover image

200 Embedded and IoT Software Engineering Interview Questions – Part 7 Debugging Skills

So far in part-1 of this interview questions series, we saw about Questions about yourself Questions about the projects you have done and Questions from C programming language Then in part-2, we saw some questions about the Basics of electronics. In part-3 we same some questions about Microcontrollers and peripherals. Then in Part 4, we saw about operating systems and in the last part (part 5) we saw questions on Networking followed by Part 6 on Software Engineering and Design patterns. You can find parts 1, 2, 3, 4, 5 and 6 in the links below. 200 Embedded and IoT...

interview questions 6 cover image

200 Embedded and IoT Software Engineering Interview Questions – Part 6 Software Engineering & Design Patterns.

So far in part-1 of this interview questions series, we saw about Questions about yourself Questions about the projects you have done and Questions from C programming language Then in part-2, we saw some questions about the Basics of electronics. In part-3 we same some questions about Microcontrollers and peripherals. Then in Part 4, we saw about operating systems and in the last part (part 5) we saw questions on Networking You can find parts 1, 2, 3, 4 and 5 in the links below. 200 Embedded and IoT Software Engineering Interview Questions – Part 1 200 Embedded and IoT...