# Collecting tutorials about basic functionalities

**URL:** <https://forum.arduino.cc/t/collecting-tutorials-about-basic-functionalities/1098853>\
**Category:** General Discussion\
**Created:** [March 7, 2023, 11:17am UTC](https://forum.arduino.cc/t/collecting-tutorials-about-basic-functionalities/1098853 "2023-03-07T11:17:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dougp](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dougp/32/238908_2.png) [@dougp](https://forum.arduino.cc/u/dougp)\
**Post date:** [March 7, 2023, 3:17pm UTC](https://forum.arduino.cc/t/collecting-tutorials-about-basic-functionalities/1098853/2 "2023-03-07T15:17:50Z")

</div>

For whatever value you may find in them:

> [@State machines, a short tutorial](https://forum.arduino.cc/t/state-machines/580593/3):
>
> It’s time for a safety enhancement. Add the second switch to the circuit and make any necessary changes in your sketch to be able to read the switch. I used pin 11. The next sketch utilizes the second switch as an obstruction detector. If the obstruction switch is pressed while the door is going closed – because somebody’s bike, or the dog, didn’t get out of the way, the code changes direction and jumps to the opening state and returns the door to the open position. Real doors have various ways …

> [@Timer counter state change toggle FSM - all at once](https://forum.arduino.cc/t/timer-counter-state-change-toggle-fsm-all-at-once/694596):
>
> There is a recurring theme of people new to Arduino and/or [microcontrollers](https://www.tutorialspoint.com/microprocessor/microcontrollers_overview.htm) not grasping the concept of putting what I call ‘building blocks’ of code together to achieve some goal. These short sketches are an attempt to offer some examples showing how small pieces can be used in concert to build up larger, more complex sketches. Thanks to @PerryBebbington and @ballscrewbob for support and input. You made it better. The examples will illustrate: • Doing ‘[several things at once](https://forum.arduino.cc/index.php?topic=223286.0)’ • pitfalls of …

---

_[View the full topic](https://forum.arduino.cc/t/collecting-tutorials-about-basic-functionalities/1098853)._
