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
en:iot:examples:encoder [2021/03/04 23:56] heiko.pikneren:iot:examples:encoder [2021/03/05 10:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Encoder example ====== ====== Encoder example ======
  
-The encoder sensor device has to be connected to the sensor module. Encoder sensor device has a two 3,5 mm plugs what has to be connected to the sensor module 3,5 mm input jackets. The controller and sensor modules must be connected. <fc #ff0000>Do not use this example to configure the IoT module. +The encoder sensor device has to be connected to the sensor module. Encoder sensor device has a two 3,5 mm plugs what has to be connected to the sensor module 3,5 mm input jackets. The controller and sensor modules must be connected.
-</fc>+
  
 {{:en:iot:examples:encoderpicture1.jpg?200|}} {{:en:iot:examples:encoderpicture1.jpg?200|}}
Line 15: Line 14:
 <code>lib_deps = ITTIoT, ClickEncoder</code> <code>lib_deps = ITTIoT, ClickEncoder</code>
  
-The example code will print out encoder current position value+The example code will print out and send to the broker encoder’s current position value. The value increases when rotating in one direction and decreases when rotating in another direction. Additionally, the encoder wheel has a switch, and if it is pushed, then the message will be sent to the serial port. 
 <code c> <code c>
 #include <Arduino.h> #include <Arduino.h>
en/iot/examples/encoder.1614902198.txt.gz · Last modified: 2021/03/04 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0