EXPERIMENT 9: Let's talk about Processing Yo! Build and control your own video games.
In this experiment we will be using an open source coding enviroment called Processing that started in 2001. The Arduino IDE came out of Processing so they are related. Processing was created to make computer graphics for students and makers. So enjoy the games, your imagination of how far you take them is your only limit!
We will use a combination of Arduino programs and Processing programs. The IDEs are similar. Processing will take care of graphics and sound while Arduino will take care of the inputs and outputs hardware values. For the experiments all I have is a potentiometer connected to port A0 and an HC-SR04 sonar connected. Read Arduino code for pin numbers. Those are the only two sensors connected.
Download the latest Processing here: https://processing.org/download
Note: Main thing to look out for is having your COM port correct in the code, baaudrate speed and that the COM port is not opened or used by another serial program before running the Processing sample. Some samples require you to import libraries and is simple in Processing just to the Sketch menu and import library - you can look for it or download it from original sources. Example library you will need to import is import ddf.minim.
We will use a combination of Arduino programs and Processing programs. The IDEs are similar. Processing will take care of graphics and sound while Arduino will take care of the inputs and outputs hardware values. For the experiments all I have is a potentiometer connected to port A0 and an HC-SR04 sonar connected. Read Arduino code for pin numbers. Those are the only two sensors connected.
Download the latest Processing here: https://processing.org/download
Note: Main thing to look out for is having your COM port correct in the code, baaudrate speed and that the COM port is not opened or used by another serial program before running the Processing sample. Some samples require you to import libraries and is simple in Processing just to the Sketch menu and import library - you can look for it or download it from original sources. Example library you will need to import is import ddf.minim.
Experiment instructions and files

pong_one_player.zip |

two_player_pong.zip |

radar.zip |

flappy_bird.zip |

plane.zip |

forward_kinematic.zip |