CSCI 345: Lab 10

Arduino to Computer
Due: 10PM on Monday, May 4th

In this lab, you should learn:

  • How to use information from the internet in an arduino project.

To complete this lab, you will need:

  • A computer.
  • An arduino.
  • A USB cable to connect your arduino to your computer.

Part 0 - Github

Click here to create your github repo for this lab.

Part 1 - Pick an internet API

You can access all sorts of information on the internet. For example weather, public transportation, and much more. Pick a topic that you are interested in, and that you think you coud use to display information on your arduino.

Part 2 - Use Python to Read From an API

Use this tutorial to write a python program that gets data from an API. Then adapt it to get data from the API of your choice.

Part 3 - Send Commands from Python to your Arduino

Now that you have python reading from your API, use the information you learned in the last lab to send data from the API to your arduino. Write an arduino program that changes its output based on your API. Some ideas: Display data on your LCD screen, change the color of RGB LEDs, have a motor go faster or slower, etc.

Handin

You will submit your assignment by posting a comment on the piazza thread for lab 10. Your post should include a link to a video demo of your program, and a link to a github repository that contains your arduino code.


C. Taylor