Difference between revisions of "Spike Prime - Entrance Lock"
From RoboWiki
m |
|||
Line 51: | Line 51: | ||
Then run the following program to analyze the gaps of your line pattern on entrance card: | Then run the following program to analyze the gaps of your line pattern on entrance card: | ||
− | [[Image: | + | [[Image:spike_lock_analyze_gaps_prg.png|Program for analyzing gaps in sensor readings]] |
Finally, this is the main program for the entrance lock: | Finally, this is the main program for the entrance lock: | ||
− | [[Image: | + | [[Image:spike_lock_unlock_prg.png|Main program for entrance lock]] |
Download: | Download: |
Latest revision as of 16:21, 26 June 2022
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