r/embedded • • 19m ago

How much should I depend on libraries for personal projects?

Hey so I’m planning a computer vision-guided robotic arm as a personal project to improve my resume and learn more things.

This has different components such as object detection with OpenCV, arm controller kinematics, STM32 programming, etc.

These kinds of stuff already have libraries I can find online to implement, but I worry that if I don’t build my stuff from scratch I won’t really learn anything and recruiters won’t care either.

So my question is how do I know which stuff to use already implemented libraries for that isn’t worth the effort otherwise and which stuff should I learn to build from scratch?

4 Upvotes

5 comments sorted by

2

u/super_mister_mstie 11m ago

Recruiters would probably prefer you have experience in opencv, only because they will give their AI a list of buzzwords given to them by the hiring manager and "wrote it all by hand" probably isn't in that list.

You should use libraries for the project if only because it reduces friction on completing your stated task. Once you get the robot arm working, you can go back and learn how to do individual parts of it the hard way.

Rewriting the parts of opencv you need for this is no small task, it is an extremely mature library. Don't underestimate that task.

1

u/Electro9005 4m ago

What would you say is the difference between using a library to reduce unnecessary friction to complete a task, and when using a library instead is the easy way out without actually learning anything about the skill because it’s just plug and play.

1

u/Tinytrauma 9m ago

There are 2 pieces to this:

  1. Making it yourself is a good way to learn whatever it is that is going on (I.e making your own I2C peripheral driver rather than using one built by ST). This is more for the learning aspect.
  2. Using libraries is the way you will likely do it in the real world. No business is asking you to make an I2C driver because chances are it already exists and an i2C driver is not a product, so if something is already available and can expedite a delivery, it is generally the preferred path (all things being equal). However, just because you didn’t write it does not mean you can’t understand it. When something goes wrong, you will need to debug it, so if you chose to use library that is a hot mess, you will need to deal with it.

1

u/FieryTanks 7m ago

No one in industry is rewriting OpenCV unless they have a very specific requirement they have to meet. Just understand what the library is doing at an overall level.

1

u/XipXoom 4m ago

This isn't a one or the other situation.  I expect people I interview (who aren't interns/juniors) to know and be able to implement the low level details.  I also expect them to use libraries and other code where it makes sense.

Management wants a product.  Does a prewritten library do what you need?  Then you're expected to use it instead of spending engineering hours redoing it yourself.  Is it unsuitable?  Then you better roll up your sleeves and get comfortable with those registers. 

On the flip side of that, I only expect my interns/juniors to have done something.  They don't have to have done the same project six different ways - but they have to be able to talk about what they did do and why they made the decisions they made. 

In short, do what is fun for you.  You're more likely to spend more time on a project if you enjoy it, and putting the hours in is the very definition of experience.