Analyzing The Arduino Developer Community

John Bentley
Posted on Nov 15, 2018

The Idea

Arduino makes open source hardware and software (especially microcontrollers) for educational and prototyping purposes. Most people who know me know that I love playing with my Arduinos and Raspberry Pi. I've never really wanted to be an electrical engineer - I'm in it more for the coding and the artistic factor, but the tactile element of building something and the satisfaction of seeing your code come to life can hardly be overstated.

Arduino has a website where developers can host their code and designs. Other users can comments and pay "respects". It's called the Arduino Project Hub.

I have always been a little scared to post my projects to the official project hub, opting instead to leave the code on github and post about my favorite projects here. Most projects on the Arduino hub seem very well-built and garner many "views" and "respects" (equivalent to "likes"). In addition, many are published by veteran creators with many followers.

I wanted to hone my web-scraping skills, so I created a program to pull data on every project on the hub. I then tried to analyze the data I pulled to see if I could use any of the data to predict how well a project would do, defined as the ratio of how many people "respect" the project to how many people viewed it in total. I pulled each project's "tags" as well.

The Project

I used scrapy to scrape the entire site. Scrapy is very easy to use for simple sites like this. First, you identify the html tags associated with the element you are trying to pull from each project page. The tag ordered list is called the xpath. You can tell scrapy to pull a similar xpath (they may not be exactly identical so regular expressions come in handy) from each project page. It was very easy to use Chrome developer tools to find the xpath of the elements I wanted to pull, and the site design allowed me to quickly access all of the project pages sequentially thanks to an intuitive page-numering schema.

Check out the code repo.

For fun, I built a simple linear regression to help me to determine if how many followers a creator has affects the amount of respects per view that their projects receive. I made a shiny app that takes the user through the process of a multiple linear regression:

  • from data exploration,

  • to feature selection using variance inflation factor analysis (to help reduce multicolinearity),

  • and prediction using the model you just built.

I found little relationship between the ratio of respects per view of a project and its creator status, though veteran creators did receive more views. Check out the shiny app for yourself. Of course, there are other ML tecquniques we could try besides regression, but the data exploration stage does not lead me to have high hopes that there is much of a relationship to be found.

Given these results, I may decide to post some of my projects after all! It seems like the community is very welcoming to newcomers, since I am not able to reject the null hypothesis that there is no correlation between how experienced a developer you are and your project's "respect ratio".

 

About Author

John Bentley

John Bentley

I'm a data scientist with a wide suite of interests. I am skilled in machine learning, financial and scientific modeling, statistical analysis, leadership, and communication with team members and clients. I've worked for the Yale Department of Political...
View all posts by John Bentley >

Leave a Comment

Your email address will not be published. Required fields are marked *

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags