Spike Prime - Entrance Lock
From RoboWiki
Let's begin
Learning...
Build
Model:
Pictures:
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:
Then run the following program to analyze the gaps of your line pattern on entrance card:
Finally, this is the main program for the entrance lock:
Download:
- lock_analyze_sensor.llsp - analyze sensor
- lock_analyze_gaps.llsp - analyze gaps
- lock_unlock.llsp - main program
...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
- Download: Entrance lock - all media files