This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| et:examples:motor:servo [2015/03/03 14:44] – raivo.sell | et:examples:motor:servo [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~PB~~ | + | < |
| ====== Servomootor ====== | ====== Servomootor ====== | ||
| Line 89: | Line 89: | ||
| <code c> | <code c> | ||
| - | // Kodulabori mootorite mooduli servomootori näidisprogramm. | + | // Kodulabori mootorite mooduli servomootori näidisprogramm |
| #include < | #include < | ||
| #include < | #include < | ||
| Line 107: | Line 107: | ||
| while (1) | while (1) | ||
| { | { | ||
| - | // Potentsiomeetrist positsiooni lugemine ja servo- | + | // Potentsiomeetrist positsiooni lugemine ja servomootori |
| - | // | + | // piirkonda teisendamine |
| // Kodulabor II puhul tuleb lugeda vastavat ADC kanalit ning kasutada | // Kodulabor II puhul tuleb lugeda vastavat ADC kanalit ning kasutada | ||
| // järgmist valemit: | // järgmist valemit: | ||