with Abbie Henshaw

What is the challenge this Week

This week we want to connect an API to our RP2040 and have it do something based on that API. Whether it be displaying a live score board, showing the weather, or pulling from some online data and representing it in the real life, through motors, lights or some physical item. We also need to get something from our school store Nolop.

What did we decide to go with?

After evaluating several API options, we finally settled on Agify API. This particular API utilizes a database to predict the age of a person based on their name, assigning them an average age based on the data available.

https://agify.io/

Now build time

Alright, let's dive into the details and start working on our challenge for this week. As a quick recap, we aim to connect an API to our RP2040 and have it perform a certain action based on the API's data.

So, without further ado, let's get started and make this project a success!

Main Code

Github Code Link

We had to connect to the Agify api and we made our code take in two ages from two peoples name.We wrote a code to compare the two ages. Once this comparison was made, the code would trigger a servo to rotate between 0 and 180 degrees.

Screenshot 2023-02-23 at 12.20.03 AM.png

Screenshot 2023-02-23 at 12.21.38 AM.png

Screenshot 2023-02-23 at 12.21.50 AM.png

IMG_1124.jpeg

IMG_1126.jpeg

IMG_1141.jpeg

IMG_1143.jpeg

IMG_1137 2.jpeg

What went wrong?

We got this really cool 7 segment display from Brandon at Nolop. We looked up the display and found the required connection, but it is not truly meant for our chip. There are not a lot of instructions on the compatibility and protocol of this display.

IMG_1136.jpeg

IMG_1134.jpeg

IMG_1135.jpeg