giriş: esp8266 ve visuino: servo motoru wifi üzerinden döner … · 2018. 8. 31. · giriş:...

19
Giriş: ESP8266 ve Visuino: Servo motoru WiFi üzerinden Döner Kodlayıcı ile Kumandalı kontrol etme ESP8266 modülleri gömülü Wi-Fi özelliğiyle harika düşük maliyetli tek duran controller lardır. Bu Instructable da size Servo motoru Wi-Fi üzerinden bir Döner Kodlayıcı ile nasıl kontrol edebileceğinizi göstereceğim. Instructable "Arduino Nano ve Visuino: Döner Kodlayıcı ile Servo Motoru Kontrol Etme " Instructable ının benzeri ama daha ileri seviye versiyonudur. Instructable da 2 tane NodeMCU modülü kullanacağım. Biri 0.9 ve diğeri 1.0 versiyonudur. NodeMCU modülleri ESP8266 controller ları ile programlamanın ve deneme yapmanın en kolay yoludur. Ama bu Instructable diğer modüllerle de kolayca yapılabilir ve hatta Servo modülü Servo motora bağlanmak için sadece bir tane GPIO pini gerektiğinde ESP-01 modülü kullanabilirsiniz. Please note that the annotation on some of the pictures in this Instructable will work correctly on some browsers only after you click on the image to expand it. Please make sure you click on the image to see the annotation showing the correct spot on the image! Adım 1: Bileşenler 1. 2 adet NodeMCU ESP8266 boards (I used both NodeMCU 0.9, and NodeMCU 1.0 versions, but any other combination, or even stand alone ESP-12 will work) 2. Bir adet Rotary Encoder(Döner kodlayıcı) modül I got from this cheap 37 sensors set . 3. 1 küçük Servo 4. 8 Dişi-Dişi jumper kablo 5. 3 Erkek-Dişi jumper kablo http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

Upload: others

Post on 03-Feb-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

  • Giriş: ESP8266 ve Visuino: Servo motoru WiFi üzerinden Döner Kodlayıcı ile Kumandalı kontrol etmeESP8266 modülleri gömülü Wi-Fi özelliğiyle harika düşük maliyetli tek duran controller lardır. Bu Instructable da size Servo motoru Wi-Fi üzerinden bir Döner Kodlayıcı ile nasıl kontrol edebileceğinizi göstereceğim. Instructable "Arduino Nano ve Visuino: Döner Kodlayıcı ile Servo Motoru Kontrol Etme" Instructable ının benzeri ama daha ileri seviye versiyonudur.

    Instructable da 2 tane NodeMCU modülü kullanacağım. Biri 0.9 ve diğeri 1.0 versiyonudur. NodeMCU modülleri ESP8266 controller ları ile programlamanın ve deneme yapmanın en kolay yoludur. Ama bu Instructable diğer modüllerle de kolayca yapılabilir ve hatta Servo modülü Servo motora bağlanmak için sadece bir taneGPIO pini gerektiğinde ESP-01 modülü kullanabilirsiniz.

    Please note that the annotation on some of the pictures in this Instructable will work correctly on some browsers only after you click on the image to expand it.Please make sure you click on the image to see the annotation showing the correct spot on the image!

    Adım 1: Bileşenler1. 2 adet NodeMCU ESP8266 boards (I used both NodeMCU 0.9, and NodeMCU 1.0 versions, but any other combination, or even stand alone ESP-12 will work)2. Bir adet Rotary Encoder(Döner kodlayıcı) modül I got from this cheap 37 sensors set.3. 1 küçük Servo4. 8 Dişi-Dişi jumper kablo5. 3 Erkek-Dişi jumper kablo

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=ESP8266&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=SG90+Servo&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=37+in+1+sensor+modules+kit&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=rotary+encoder&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=ESP-12&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://www.instructables.com/id/Arduino-Nano-and-Visuino-Control-Servo-With-Rotary/

  • Adım 2: Döner kodlayıcıyı ilk NodeMCU ESP8266 Modülüne bağlayın1. Ground (toprak)(siyah kablo), Power(güç kaynağı) (kırmızı kablo), Direction(yön) (yeşil kablo), Switch(anahtar)(beyaz kablo) ve Clock(süre-zaman)

    (beyaz kablo) kablolarını Rotary Encoder(Döner kodlayıcı) Modülüne bağlayın ( Picture 1)2. Ground(toprak) (siyah kablo) kablosunun diğer ucunu ESP8266 NodeMCU modülünün Ground pinine bağlayın (Picture 2)3. Power(güç kaynağı)(kırmızı kablo) kablosunun diğer ucunu ESP8266 NodeMCU modülünün 3.3V Power(Güç kaynağı) pinine bağlayın (Picture 2)4. Clock(zaman sayma) kablosunu(sarı kablo) ESP8266 NodeMCU modülünde Digital pin 2’ye bağlayın(Picture 3)5. Direction(yön) kablosunu(yeşil kablo) ESP8266 NodeMCU modülünde Digital pin 3’e bağlayın (Picture 3)6. Switch(anahtar-değiştirme) kablosunu(beyaz kablo) ESP8266 NodeMCU modülünde Digital pin 4’e bağlayın (Picture 3)7. Resim 4’te NodeMCU 1.0 ın Ground(toprak), 3.3V Power, Digital 2, Digital 3 ve Digital 4 pinleri gösterilir

    Adım 3: Servo motoru ikinci NodeMCU ESP8266 Modülüne bağlayın1. Ground(toprak) (siyah kablo), Power(güç kaynağı)(kırmızı kablo) ve Control(turuncu kablo) kablolarını Servo motora bağlayın (Picture 1)2. Power(güç kaynağı)(kırmızı kablo) kablosunun diğer ucunu ESP8266 NodeMCU modülünün 5V(NodeMCU 1.0 versiyonunda “Vin” olarak adlandırılır)

    Power(Güç kaynağı) pinine bağlayın (Picture 2)3. Ground(toprak) (siyah kablo) kablosunun diğer ucunu ESP8266 NodeMCU modülünün Ground pinine bağlayın (Picture 2)4. Control kablosunun(turuncu kablo) diğer ucunu ESP8266 NodeMCU modülünde Digital pin 2’ye bağlayın (Picture 3)5. Picture 4 NodeMCU 0.9 Resim 4’te NodeMCU 0.9 un Ground(toprak), 5V(Vin) Power ve Digital 2 pinleri gösterilir

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=NodeMCU&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lghttp://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5575122344&toolid=10001&campid=5337793773&customid=&icep_uq=rotary+encoder&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg

  • Step 4: Start Visuino, and select the ESP8266 Board typeTo start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc.

    Please be aware that there are some critical bugs in Arduino IDE 1.6.6.

    Make sure that you install 1.6.7 or 1.6.5, otherwise this Instructable will not work!

    If you have not done follow the steps in this Instructable to setup the Arduino IDE to program ESP 8266!

    The Visuino: https://www.visuino.com also needs to be installed.

    1. Start Visuinoas shown in the first picture2. Click on the "Tools" button on the Arduino component (Picture 1) in Visuino3. When the dialog appears, select "NodeMCU ESP-12" as shown on Picture 2

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    https://www.visuino.com/https://www.visuino.com/https://www.visuino.com/https://www.visuino.com/http://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/http://www.arduino.cc/.

  • Image Notes1. Click on this "Tools" button

    Adım 5: Visuino: Modülün Access Point(erişim noktası) olarak kurulumunu yapın1. Object Inspector da, "Modules" özelliğini, sonra "WiFi" alt özelliğini, en son "AccessPoint alt özelliğini genişletin (Picture 1)2. "AccessPoint" in "SSID" alt özelliğinin değerini “ServoRemote” olarak ayarlayın( Picture 1)

    Erişim noktasının(Access Point) 200.200.200.X alt ağı olması için sabit bir adres atamamız gerekir.

    1. Object Inspector da, "AccessPoint" özelliğinin "Config" alt özelliğini genişletin (Picture 2)2. Config(yapılandırma) in “Enabled” alt özelliğini “True” olarak ayarlayın( Picture 2)3. “IP” alt özelliğinin değerini " 200.200.200.100" olarak ayarlayın(Picture 3)

    Image Notes Image Notes1. Set this property 1. Set this property

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes1. Set this property

    Adım 6: Visuino: İletişim için bir UDP Soket ekleyinDaha sonra iletişim için bir UDP soketi eklememiz gerekir.

    1. Object Inspector da, "WiFi" özelliğinin "Sockets" alt özelliğinin değerinin yanındaki "..." butonuna tıklayın (Picture 1)2. Sockets editöründe “UDP Socket” i seçin ve sonra " +" butonuna tıklayın (Picture 2)3. Object Inspector da, “RemoteIPAddress” özelliğinin değerini “200.200.200.200” olarak atayın ( Picture 3) – bu daha sonra diğer modüle atayacağımız sabit

    IP adresidir4. Object Inspector da “RemotePort” un değerini “8888” olarak ayarlayın ( Picture 4)5. "Sockets" editörünü kapatın.

    Image Notes1. Click here

    Image Notes1. 2. Click here2. 2. Click here3. 1. Select this4. 1. Select this

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes Image Notes1. Set this property 1. Set this property

    Adım 7: Visuino: Rotary Encoder(döner kodlayıcı) bileşenini ekleyin ve bağlayın1. Component Toolbox(Bileşen Araç Çubuğu) ın Filter box içine " rotar " yazın,sonra " Rotary Encoder Sensor " bileşenini seçin (Picture 1) ve tasarım

    alanına bırakın2. "NodeMCU ESP-12" bileşeninin Digital[ 2 ] kanalının " Out " pinini RotaryEncoderSensor1 bileşeninin " Clock(A) " giriş pinine bağlayın (Picture 2)3. "NodeMCU ESP-12" bileşeninin Digital[ 3 ] kanalının " Out " pinini RotaryEncoderSensor1 bileşeninin " Direction(B) " giriş pinine bağlayın

    (Picture 3)

    Image Notes1. Select this component

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Adım 8: Visuino: Up/Down Counter(yukarı/aşağı sayıcı) bileşeni ekleme ve bağlantısı0 dan 100 e Yukarı/Aşağı dönüşleri saymak için bir sayıcı gerekir ve ortada 50’ye ayarlamamız gerekir:

    1. Component Toolbox(Bileşen Araç Çubuğu) ın Filter box içine " count " yazın,sonra " Up/Down Counter " bileşenini seçin (Picture 1) ve tasarım alanına bırakın

    2. Object Inspector da InitialValue özelliğinin değerini 50 olarak ayarlayın(Picture 2)3. Object Inspector da Counter(sayıcı) ın Min özelliğini genişletin4. Object Inspector da RollOver alt özelliğinin değerini False olarak ayarlayın(Picture 3)5. Object Inspector da Value alt özelliğinin değerini 0 olarak ayarlayın(Picture 3)

    6. Object Inspector da Counter(sayıcı) ın Max özelliğini genişletin (Picture 5)7. Object Inspector da RollOver alt özelliğinin değerini False olarak ayarlayın (Picture 5)

    8. Object Inspector da Value alt özelliğinin değerini 100 olarak ayarlayın (Picture 6)

    Image Notes Image Notes1. Select this component 1. Set this property

    Image Notes Image Notes1. Set this property 1. Set this property

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes Image Notes1. Set this property 1. Set this property

    Adım 9: Visuino: Up/Down Counter(Yukarı/Aşağı Sayıcı) bileşenini bağlayın1. RotaryEncoderSensor1 bileşeninin " Down " pinini UpDownCounter1 bileşeninin " Down " giriş pinine bağlayın (Picture 1)2. RotaryEncoderSensor1 bileşeninin " Up " pinini UpDownCounter1 bileşeninin " Up " giriş pinine bağlayın (Picture 2)3. "NodeMCU ESP-12" bileşeninin " Digital[ 4 ]" kanalının " Out " pinini UpDownCounter1 ın " Reset " giriş pinine bağlayın (Picture 3)

    Bende olan Döner kodlayıcı modül anahtarı çekme direncine sahip değildir. Ama ESP8266 pinler için gömülü opsiyonel çekiş direncine sahiptir. Digital pin 4 için çekiş direncini etkinleştirmek için:

    1. Object Inspector da "Digital" özelliğini, sonra "Digital[ 4 ]" alt özelliğini genişletin (Picture 4)2. Object Inspector da IsPullUp alt özelliğinin değerini True olarak ayarlayın(Picture 4)

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes1. Set this property

    Adım 10: Visuino: Integer To Analog(Tam sayıdan analoga) bileşenini ekleyin ve bağlantısını yapınServo motor 0 ile 1.0 aralığındaki bir Analog değere ihtiyaç duyar, bu yüzden sayıyı Analoga dönüştürmemiz gerekir ve 0-100 aralığından Analog 0-1.0 aralığına dönüştürmek için sayıyı 0.01 ile çarpmamız gerekir:

    1. Type "To Analo" in the Filter box of the Component Toolbox then select the "Integer To Analog" component (Picture 1), and drop it in the design area2. Object Inspector da Scale özelliğini 0.01 olarak atayın(Picture 2) . Bu sayıcı değerlerini 0’dan 100’e kadar olan tam sayı aralığından 0.0’dan 1.0’a kadar olan

    analog aralığına dönüştürecektir.3. UpDownCounter1 bileşeninin " Out " pinini IntegerToAnalog1 bileşeninin " In " giriş pinine bağlayın (Picture 3)

    Image Notes Image Notes1. Select this component 1. Set this property

    Adım 11: Visuino: Make Structure(yapı oluştur) bileşenini ekleyin ve bileşene Analog kanallar ekleyinUDP üzerinden analog değer göndermemiz gerekir. Bu yapmak için analog değerle bir yapı oluşturacağız ve UDP soketi üzerinden göndereceksiniz.

    1. Component Toolbox(Bileşen Araç Çubuğu) ın Filter box içine " make " yazın,sonra " Make Structure " bileşenini seçin (Picture 1) ve tasarım alanına bırakın2. "Elements" editörünü (Picture 3) açmak için "Tools" butonuna tıklayın(Picture 2)3. “Elements” editöründe "Analog " elementini(elemanını) seçin ve bir Analog element(eleman) (Picture 4) eklemek için "+" butonuna tıklayın (Picture 3)4. "Elements" editörünü kapatın.

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes Image Notes1. Select this component 1. Click here

    Image Notes1. 2. Click here2. 2. Click here3. 1. Select this4. 1. Select this

    Adım 12: Visuino: Make Structure(yapı oluşturma) bileşeninin bağlantısını yapın1. MakeStructure1 bileşeninin " Out " pinini “NodeMCU ESP-12” bileşeninin " Modules.WiFi.Sockets.UDPSocket1” in " In " pinine bağlayın (Picture 3)2. MakeStructure1 bileşeninin “Elements.Analog1” elementinin(elemanının) " In " pinini IntegerToAnalog1 bileşeninin " Out " pinine bağlayın (Picture 3)

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Adım 13: Döner Kodlayıcı Modül için ESP8266 kodunu üretin,derleyin ve yükleyin1. In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE2. Connect the first NodeMCU module (The one with the DHT11) with USB cable to the computer3. Select the board type and serial port as I have shown you in this Inctructable4. ESP desteğinin son evreleme versiyonunun yüklendiğinden emin olun! Sabit sürüm son özelliklerin bazılarına sahip değildir ve derlemeyi denediğinizde

    hatalarla karşılaşacaksınız!5. In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

    Image Notes1. Click here or press F9 to generate the code

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    http://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/https://www.visuino.com/

  • Image Notes1. Click here to compile and upload the code

    Adım 14: Visuino: ESP8266 Board türünü seçin ve Access Point(erişim noktası) e bağlamak için yapılandırınServo modülünü programlayalım.

    1. New Project(yeni proje) başlatın.2. Click on the "Tools" button on the Arduino component, and when the dialog appears, select "NodeMCU ESP-12" as you did in Step 4 for the Rotary

    Encoder module

    Thermometer(Termometre) modülünün Access Point(erişim noktası) ine bağlanmak için modülü yapılandırmamız ve sabit bir IP adresi(200.200.200.200) kullanmamız gerekir

    1. Object Inspector da, "Modules" özelliğini, sonra "WiFi" alt özelliğini, en son "AccessPoint alt özelliğini genişletin ve değerinin yanındaki " ..." butonuna tıklayın(Picture 1)

    2. "AccessPoins" editörde, “WiFi Access Point” i seçin ve sonra erişim noktası(Access point) eklemek için " +" butonuna tıklayın (Picture 2)3. Object Inspector da, "SSID" özelliğinin değerini “ServoRemote” olarak ayarlayın( Picture 3)4. Object Inspector da, “Config” özelliğini değiştirin ve “Enabled” alt özelliğinin değerini “True” olarak ayarlayın( Picture 4)5. Object Inspector da, “IP” alt özelliğinin değerini “200.200.200.200” olarak ayarlayın( Picture 5)

    Image Notes1. Click here

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Image Notes1. 2. Click here2. 1. Select this

    Image Notes Image Notes1. Set this property 1. Set this property

    Image Notes

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • 1. Set this property

    Adım 15: Visuino: İletişim için bir UDP Soketini ekleyinŞimdi iletişim için bir UDP soketi eklemeliyiz.

    1. Object Inspector da, WiFi ın Sockets alt özelliğinin değerinin yanındaki "..." butonuna tıklayın (Picture 1)2. Sockets editöründe “UDP Socket” i seçin ve sonra " +" butonuna tıklayın (Picture 2)3. Object Inspector da, “RemoteIPAddress” özelliğinin değerini “200.200.200.200” olarak ayarlayın ( Picture 3)4. Object Inspector da “RemotePort” ın değerini “8888” olarak ayarlayın ( Picture 4)

    Image Notes1. Click here

    Image Notes1. 2. Click here2. 2. Click here3. 1. Select this4. 1. Select this

    Image Notes1. Set this property2. Set this property

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Adım 16: Visuino: Split Structure(ayrık yapı) bileşeni ekleyin ve ona Analog kanallar ekleyinRemote Control(uzaktan Kontrol) modülü paket olarak ikili değişken nokta formunda servo pozisyonunu gönderir. Kodu düzgün bir şekilde çözmemiz gerekir. Bunun için içinde “Analog” elementiyle(elemanıyla) “Split Structure” bileşenine ihtiyacımız var.

    1. Component Toolbox(Bileşen Araç Çubuğu) ın Filter box içine " struct " yazın,sonra " Split Structure " bileşenini seçin (Picture 1) ve tasarım alanına bırakın

    2. "Elements" editörünü (Picture 3) açmak için "Tools" butonuna tıklayın(Picture 2)3. “Elements” editöründe "Analog " elementini(elemanını) seçin ve bir Analog element(eleman) (Picture 4) eklemek için "+" butonuna tıklayın (Picture 3)4. Elements editörünü kapatın.

    Image Notes Image Notes1. Select this component 1. Click here

    Image Notes1. 2. Click here2. 2. Click here3. 1. Select this4. 1. Select this

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • Adım 17: Visuino: Servo bileşenini ekleyin ve bağlayın1. Component Toolbox(Bileşen Araç Çubuğu) ın Filter box içine " servo " yazın,sonra " Servo " bileşenini seçin (Picture 1) ve tasarım alanına bırakın2. Servo1 bileşeninin " Out " pinini Arduino bileşeninin Digital[ 4 ] kanalının " Digital " giriş pinine bağlayın (Picture 2)3. Servo1 bileşeninin(Picture 3) " In " pinini SplitStructure1 bileşeninin "Elements.Analog1" in " Out " pinine bağlayın (Picture 4)

    Image Notes1. Select this component

    Step 18: Generate, Compile, and Upload the ESP8266 code for the Servo1. In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE2. Connect the second NodeMCU module (The one with the Servo) with USB cable to the computer3. Select the board type and serial port as I have shown you in this Inctructable4. In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

    Image Notes1. Click here or press F9 to generate the code

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    http://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/https://www.visuino.com/

  • Image Notes1. Click here to compile and upload the code

    Step 19: And play...Congratulations! You have completed the project.

    Picture 1 shows the connected and powered up project.

    Eğer Döner Kodlayıcıyı ileri ve geri hareket ettirirseniz, videoda görebildiğiniz üzere Servo aynı yönde hareket edecektir. Eğer Döner Kodlayıcı mil aşağısına basarsanız, Servo doğal merkez pozisyonuna hareket edecektir.

    On Picture 2 you can see the complete Visuino diagram for the Rotary Encoder Remote Control module.

    On Picture 3 you can see the complete Visuino diagram for the Servo module.

    Also attached are the Visuino projects, that I created for this Instructable. You can download and open them in Visuino: https://www.visuino.com

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    https://www.visuino.com/https://www.visuino.com/https://www.visuino.com/https://www.visuino.com/https://www.visuino.com/

  • http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

  • File Downloads

    ESP8266RemoteServoInstructable.zip (2 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'ESP8266RemoteServoInstructable.zip']

    İlgili Instructable

    Remote Wi-Fi MASLOW: an Setting up the wireless logger Get Started with ESP8266-1DHT11 Open WiFi Arduino IDE to ESP8266 ESP8266 Using Enabled RCTemperature an Detector with program NodeMCU v1.0 AT Commands, Turned Wifi CarHumidity I2C 2 ESP8266 by ESP8266 by with Arduino NodeMCU, or With BrowserX 16 LCD sabas1080 BoianM IDE by shinteo Arduino (ESP- ControlledDisplay With 12E) by acrobotic Direction. byTwo ESP8266 sumbasuand Visuino byBoianM

    http://www.instructables.com/id/ESP8266-and-Visuino-Control-Servo-Remotely-Over-Wi/

    http://www.instructables.com/member/BoianM/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/sumbasu/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/acrobotic/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/shinteo/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-NodeMCU-v10-ESP12-E-with-Arduino-IDE/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/BoianM/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/sabas1080/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-NodeMCU-v10-ESP12-E-with-Arduino-IDE/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/MASLOW-an-Open-WiFi-Detector-With-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-NodeMCU-v10-ESP12-E-with-Arduino-IDE/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/MASLOW-an-Open-WiFi-Detector-With-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-NodeMCU-v10-ESP12-E-with-Arduino-IDE/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/MASLOW-an-Open-WiFi-Detector-With-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-1-Enabled-RC-Turned-Wifi-Car-With-Browser-/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/ESP8266-NodeMCU-v10-ESP12-E-with-Arduino-IDE/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/MASLOW-an-Open-WiFi-Detector-With-ESP8266/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Remote-Wi-Fi-DHT11-Temperature-an-Humidity-I2C-2-X/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/files/orig/FAY/97ZB/IK028WKF/FAY97ZBIK028WKF.zip?utm_source=pdf&utm_campaign=fileshttp://www.instructables.com/files/orig/FAY/97ZB/IK028WKF/FAY97ZBIK028WKF.zip?utm_source=pdf&utm_campaign=files