mirror of
https://github.com/xodio/xod.git
synced 2026-03-04 16:04:03 +01:00
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
---
|
||
title: Clock Node
|
||
---
|
||
|
||
# #22. Clock Node
|
||
|
||
<div class="ui segment note">
|
||
<span class="ui ribbon label">Note</span>
|
||
This is a web-version of a tutorial chapter embedded right into the XOD IDE.
|
||
To get a better learning experience we recommend to install the
|
||
<a href="/downloads/">desktop IDE</a> or start the
|
||
<a href="/ide/">browser-based IDE</a>, and you’ll see the same tutorial there.
|
||
</div>
|
||
|
||
Many tasks require you to set a specific frequency for the pulse generation.
|
||
|
||
For this, we need a new node `clock`. It can produce pulse signals at time
|
||
intervals specified by the `IVAL` pin. This way, we can control the frequency
|
||
of data collection from our sensors.
|
||
|
||

|
||
|
||
Try to set the `IVAL` pin in the `clock` node to `2`. This means that it will
|
||
send a pulse every two seconds.
|
||
|
||
## Test circuit
|
||
|
||
<div class="ui segment note">
|
||
<span class="ui ribbon label">Note</span>
|
||
The circuit is the same as for the previous lesson.
|
||
</div>
|
||
|
||

|
||
|
||
[↓ Download as a Fritzing project](./circuit.fzz)
|
||
|
||
Slowly turn the potentiometer knob. You will see that the readings are being
|
||
taken and the servo reacts to them every two seconds.
|
||
|
||
[Next lesson →](../23-count/)
|