User Tools

Site Tools


rtes:topics:arduino:states

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rtes:topics:arduino:states [2017/10/18 10:52] – [Youtube] adminrtes:topics:arduino:states [2018/10/25 06:58] (current) – [UML State Machine] admin
Line 8: Line 8:
  
 Additional Information:  Additional Information: 
 +  * :!: https://en.wikipedia.org/wiki/UML_state_machine
   * Finite State Machine: https://en.wikipedia.org/wiki/Finite-state_machine   * Finite State Machine: https://en.wikipedia.org/wiki/Finite-state_machine
   * State Diagram: https://en.wikipedia.org/wiki/State_diagram   * State Diagram: https://en.wikipedia.org/wiki/State_diagram
Line 13: Line 14:
 {{https://upload.wikimedia.org/wikipedia/commons/2/20/UML_state_machine_Fig5.png?600}} {{https://upload.wikimedia.org/wikipedia/commons/2/20/UML_state_machine_Fig5.png?600}}
  
 +
 +===== Presentation =====
 +
 +  * 
  
 ===== Youtube ===== ===== Youtube =====
Line 18: Line 23:
   * Dũng Trần Đăng: [[https://www.youtube.com/watch?v=A_W8scZTM9Y&t=398s|Building a State Machine to Multitask with Arduino!]]   * Dũng Trần Đăng: [[https://www.youtube.com/watch?v=A_W8scZTM9Y&t=398s|Building a State Machine to Multitask with Arduino!]]
   * ItKindaWorks: [[https://www.youtube.com/watch?v=zhWV_D_9OCY|How to multi-task on an Arduino]]   * ItKindaWorks: [[https://www.youtube.com/watch?v=zhWV_D_9OCY|How to multi-task on an Arduino]]
 +
 +===== Exercise =====
 +
 +==== 1. Bank Safe ====
 +
 +=== Step ===
 +
 +Connect a potentiometer to A0. Use the function //valRange = map(...)// to map the raw potentiometer values to the integer numbers 0..9 . The variable //varRange// can acquire these 10 different values.
 +
 +Print the current value of //valRange// to the terminal, but only, if the value changes.
 +
 + 
 +
 +
 +
rtes/topics/arduino/states.1508323933.txt.gz · Last modified: 2017/10/18 10:52 by admin