Spike Prime - Entrance Lock

From RoboWiki
Jump to: navigation, search

(back to list of projects)

Let's begin

Learning...

Build

Model:

model of lock

Pictures:

entrance lock entrance lock entrance lock entrance lock entrance lock entrance lock - analyze sensor output


Building instructions:

Download building instructions:

Download stud.io model:

...description...

Connections:

  • bottom motor - C
  • top motor - E
  • large motor D
  • light sensor - B

Programs

First run the following program to analyze the sensor readings in your light conditions:

Program for analyzing sensor readings


Then run the following program to analyze the gaps of your line pattern on entrance card:

Program for analyzing gaps in sensor readings

Finally, this is the main program for the entrance lock:

Main program for entrance lock

Download:

...description...

Measure, analyze, think

  • Make your own recording
  • Perform measurements with your model and discuss in your group what has happened.


Explore and modify

  • Number systems...


Present

  • How does robot encode the line pattern to the number shown?
  • Have you proposed another encoding?
  • Compare the efficiency of the encodings.
  • How difficult it is to decode each of them?
  • How big numbers could you encode into pattern if it had 10 lines?


Additional resources