Skip to content

MattiaIojica/IntroductionToRobotics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntroductionToRobotics

Homework #1

Task:

Use a separat potentiometer in controlling each of the color of the RGB led (Red, Green and Blue).
The control must be done with digital electronics.

Picture

hw1

Video

Link to the video!


Homework #2

Task:

Simulate the behaviour of traffic lights for a cross walk.

Picture

hw2

Video

Link to the video!


Homework #3

Task

The joystick will be used to control the position ofthe segment and draw on the display. The movement between segments should be natural.

The system has the following states:

  1. State 1 (default, but also initiated after a button press in State 2): Current position blinking. Can use the joystick to move from one position to neighbors. Short pressing the button toggles state 2. Long pressing the button in state 1 resets the entire display by turning all the segments OFF and moving the current position to the decimal point.
  2. State 2 (initiated after a button press in State 1): The current segment stops blinking, adopting the state of the segment before selection (ON or OFF). Toggling the Y axis should change the segment state from ON to OFF or from OFF to ON. Clicking the joystick should save the segment state and exit back to state 1.

Long pressing the button to reset should only be available in state 1.

Picture

hw3

Video

Link to the video!


Homework #4

Task

The joystick should be used to move through the 4 digit 7-segment displays digits; the button will be pressed in orded to lock in on the current digit the other axis should be used to increment or decrement the number. Holding button pressed should reset all the digit values and the current position to the first digit in the first state.

  1. State 1: a joystick axis can be used to cycle through the 4 digits; using the other axis does nothing. A blinking decimal point shows the current digit position. When pressing the button, the selected digit is locked in and the second state is entered.
  2. State 2: in this state, the decimal point stays always on, no longer blinking and the axis can not longer be used to cycle through the 4 digits. Instead, using the other axis, the number on the current digit IN HEX can be incremented or decremented. Pressing the button again return to the previous state. When changing the number, it can be incremented for each joystick movement - it does not increment continuosly if the joystick is kept in one position.
  3. Reset: toggled by long pressing the buttononly in the first state. When resetting, all the digits go back to 0 and the current position is set to the first (rightmost) digit, in the first state.

Picture

hw4

Video

Link to the video!


HomeWork #5

Create a menu for a game. The menu should include:

  • Start game
  • Highscore: Saving the top 5 scores
  • Settings: Name, difficulty, LCD brightness, matrix brightness
  • About: details about the creator
  • How to play
  • Task

    Picture

    hw5

    Video

    Link to the video!

    About

    Introduction to Robotics course repository

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published