Difference between revisions of "Spike Prime - Entrance Lock"

From RoboWiki
Jump to: navigation, search
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:spike_lock_analyze_senzor_prg.png|Program for analyzing gaps in sensor readings]]
+
[[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:spike_lock_analyze_senzor_prg.png|Main program for entrance lock]]
+
[[Image:spike_lock_unlock_prg.png|Main program for entrance lock]]
  
 
Download:  
 
Download:  

Latest revision as of 17:21, 26 June 2022

(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