Following my introduction to Java through the AP Computer Science A course I examined the use of the Scanner class, which takes in user input and stores the data in a variety of ways. In this simple exercise I imported the scanner class, instantiated a new element of it by the name of “kb” and…
Tag: Programming
Otto Reacts to Signals From a TV Remote
The next step after testing out the walk cycle is to have it be controlled with a TV remote. In order to do this, Otto needed an infrared sensor, which will allow it to receive signals from the remote. Then, I used the infrared library for Arduino in order to convert the signals sent by…
Analog Input Blink
I used an example from Arduino.cc to practice receiving analog signals through the analog inputs. In this example, the wait time between the blinks of the embedded LED are going to be sent to the Arduino UNO board from the potentiometer. The potentiometer sends voltage to the analog input, which in turn converts it to…
Nice to Meet You, GitHub!
The next stop in my programming journey is GitHub. Its a website that allows programmers to store their code safely, while also giving them the ability to easily restore every saved version of it. I recently made and account on GitHub, and began learning the git commands for working with local and non-local repositories. Knowing…
Weather API: Pulling Resources from the Web
The goal of this script is to show a six day forecast from the command line. It would include the date, temperature, and one word summary. In order to pull up the necessary information, I used an API from https://openweathermap.org/api Formatting The output of the program should be formatted as the following: **Sample Output:** date, average temp, summaryNov 30 – 23 C, sunnyDes 1 – 30 C, cloudyDes…
Updatable Clipboard – Python Project
The goal of this project was to create a program that uses the shelf module in order for the user to be able to save copied text under a keyword, and then retrieve it by typing the keyword in the program – which then pastes the text in to the clipboard. As an an addition…
Regular Expression for Contact Information
This is yet another project using regular expressions that will help us find all phone numbers and emails on a page which is posted in the clipboard; the search result will be put in to the clipboard as a string. To start, we need to import the libraries that we need – in this case…
Regular Expressions – Date Detector
This python program used regular expressions to determine whether a given date is correct or not. Leap years and days in a month are calculated as well. First, we can import re, and any other library that might be useful. In order to check whether a date is correct, we need to know how many…
Arduino Blink
As one types in their first line of code with: print(“Hello World!”), when starting to work with Arduino the first program will be blink, which involves one of its many components – LED.