<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/</id><updated>2020-02-28T03:03:22.244000Z</updated><subtitle>Recent posts to Servomotor mit Adafruit PCA9685 Servo-Shield</subtitle><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#62ef" rel="alternate"/><published>2020-02-28T03:03:22.244000Z</published><updated>2020-02-28T03:03:22.244000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.comb4eb51baefad5b83d9c0eafabcbf4146a579620b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ich habe das gleiche Problem gehabt. Mit dieser Änderung funktioniert mein Programm:&lt;/p&gt;
&lt;p&gt;Adafruit_PWM.alrPWM&lt;span&gt;[0]&lt;/span&gt; := 0.5 + 0.5*SIN(t);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#b0b5" rel="alternate"/><published>2020-02-28T03:03:16.830000Z</published><updated>2020-02-28T03:03:16.830000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3a41a0d88c8f732e83f1c7b6c7218987061b191b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=8801&amp;amp;x=21212&amp;amp;p=21212&amp;amp;lan=en" rel="nofollow"&gt;https://forum.codesys.com/viewtopic.php ... 212#p21212&lt;/a&gt;&lt;br/&gt;
hier ist ein Beispiel basierend auf dem I2C ohne SoftMotion.&lt;br/&gt;
Denke aber fast mit SoftMotion wäre zweckmäsig oder auch einfach weil du musst ja nur MC_Power aufrufen und dann&lt;br/&gt;
mit MC_MoveAbs oder Relativ auf deine Stellung fahren...&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#3dcd" rel="alternate"/><published>2020-02-28T03:03:14.906000Z</published><updated>2020-02-28T03:03:14.906000Z</updated><author><name>puma80801</name><uri>https://forge.codesys.com/u/puma80801/</uri></author><id>https://forge.codesys.com92687a9577ec2c0a293fb4e5401a067bf5a790dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;/p&gt;
&lt;p&gt;das Programm geht! &lt;br/&gt;
Jetzt habe ich nur ein Problem: das ist nicht strukturierter Text   und ich verstehe nicht was da gemacht wird!&lt;/p&gt;
&lt;p&gt;Kannst du bitte helfen?&lt;/p&gt;
&lt;p&gt;Lieben Dank &amp;amp; Grüße&lt;br/&gt;
Timo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#2307" rel="alternate"/><published>2020-02-28T03:03:09.492000Z</published><updated>2020-02-28T03:03:09.492000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0692c0da511e77512aa0acae041ff921c627a5b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
nimm bitte mal das andere Beispiel:&lt;/p&gt;
&lt;p&gt;"c:\Users\&amp;lt;deinwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.12.10\Examples\SoftMotion Servo Example.project" &amp;lt;/deinwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#ced3" rel="alternate"/><published>2020-02-28T03:03:07.555000Z</published><updated>2020-02-28T03:03:07.555000Z</updated><author><name>puma80801</name><uri>https://forge.codesys.com/u/puma80801/</uri></author><id>https://forge.codesys.comfd28319f4f437c3dd0476c62b6d4f1ba84f13712</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;/p&gt;
&lt;p&gt;noch einmal danke schön!&lt;br/&gt;
Es funktioniert leider immer noch nicht.&lt;/p&gt;
&lt;p&gt;Ich habe mich an das Tutorial bei Adafruit gehalten und das Beispiel zum testen der Library installiert und damit getestet&lt;/p&gt;
&lt;p&gt;Das Tutorial:&lt;br/&gt;
&lt;a class="" href="https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/using-the-adafruit-library" rel="nofollow"&gt;https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/using-the-adafruit-library&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Das Ergebnis: &lt;br/&gt;
&lt;a class="" href="https://www.youtube.com/watch?v=1IYbup0aC3E" rel="nofollow"&gt;https://www.youtube.com/watch?v=1IYbup0aC3E&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Der Servo macht exakt was er soll. Nämlich lenken. Da Python geht. Bin ich mir sicher, dass meine Verdrahtung richtig ist.&lt;/p&gt;
&lt;p&gt;Unter Codesys öffne ich einfach nur das Beispiel und übertrage es auf den Raspberry. Aber es passiert einfach nichts. Ich bin gerade echt etwas frustriert.   &lt;/p&gt;
&lt;p&gt;Als Adresse habe ich 0 eingetragen. Die Frequenz steht auf 50Hz. Im Gerätebaum ist alles Grün. Wenn ich den Servo auf einen anderen Kanal stecke bewegt er sich ein bisschen. Das war es aber auch schon.&lt;br/&gt;
Ich benutze das aktuellste Codesys 3.5.12 SP2 und einen Raspberry Model B (also schon etwas älter) kann es daran liegen?&lt;/p&gt;
&lt;p&gt;Hast nicht noch irgend einen Tipp den ich probieren könnte?&lt;/p&gt;
&lt;p&gt;Lieben Dank &amp;amp; Grüße&lt;br/&gt;
Timo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#a5d2" rel="alternate"/><published>2020-02-28T03:03:02.124000Z</published><updated>2020-02-28T03:03:02.124000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comc1a5fb91923f7937de6cff0caac14f6a9290d752</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
bei dem Adafruit Board Treiber wird wenn keine Adresse gesetzt wird der Default 16#40&lt;br/&gt;
genommen.&lt;br/&gt;
Sprich wenn du keine Adresse in dem Parameter setzt sind es die 0x40 und das muss dann mit deinem Board&lt;br/&gt;
funktionieren.&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: value.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1948"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 16#40.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1947"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#1689" rel="alternate"/><published>2020-02-28T03:03:00.199000Z</published><updated>2020-02-28T03:03:00.199000Z</updated><author><name>puma80801</name><uri>https://forge.codesys.com/u/puma80801/</uri></author><id>https://forge.codesys.comdd9c57cb1cdf15971a8d93253becdea1682b8e86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;/p&gt;
&lt;p&gt;vielen lieben Dank für die schnelle Antwort!&lt;br/&gt;
Leider klappt auch das nicht. Ich habe das i2cexample geladen und nichts verändert.&lt;br/&gt;
Ich konnte ohne Fehler compilieren und übertragen.&lt;/p&gt;
&lt;p&gt;Mein Servo bewegt sich leider trotz allem keinen Millimeter.&lt;/p&gt;
&lt;p&gt;Hast du vielleicht noch einen Tipp an was es liegen könnte oder was ich kontrollieren kann?&lt;/p&gt;
&lt;p&gt;Warum muss ich die Adresse nicht verändern, wenn mir mit i2cdetect Adresse 40 angezeigt wird? Das habe ich nicht verstanden.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 5.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1946"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 4.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1945"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#d345" rel="alternate"/><published>2020-02-28T03:02:58.250000Z</published><updated>2020-02-28T03:02:58.250000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7376e1c9833758e6c73fb135552e9d02814ca2b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
das muss gehen mit der Default Einstellung des Beispiel Projekts. (also 0)&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Servomotor mit Adafruit PCA9685 Servo-Shield</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/d4089cafac/?limit=25#a28c" rel="alternate"/><published>2020-02-28T03:02:52.860000Z</published><updated>2020-02-28T03:02:52.860000Z</updated><author><name>puma80801</name><uri>https://forge.codesys.com/u/puma80801/</uri></author><id>https://forge.codesys.com4de20a2655e1e6c4e534c1f1cf2322abf37c2d75</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo zusammen,&lt;/p&gt;
&lt;p&gt;ich habe eine hoffentlich einfache Frage zum i2c.example.&lt;/p&gt;
&lt;p&gt;Hab mir an meinen Raspy das PCA9685 Servo-Shield von Adafruit angebaut. Funktioniert soweit auch wenn ich auf der Konsole nach i2c-Geräten suche finde ich eines und wenn ich es in Codesys einhänge wird es auch grün.&lt;/p&gt;
&lt;p&gt;Problem an der ganzen Geschichte ist nur, dass sich mein Servo einfach nicht bewegen möchte. Den Code unten habe ich aus dem i2c-Beispiel entnommen und an meine Variablen angepasst. Die Adresse von meinem i2c-Gerät habe ich von 0 auf 40 geändert, da es mir so ja auf der Konsole angezeigt wird.&lt;/p&gt;
&lt;p&gt;Hier noch ein paar Screenshots.&lt;br/&gt;
Kann mir bitte jemand sagen, woran es liegt, dass sich mein Servo nicht drehen möchte?&lt;/p&gt;
&lt;p&gt;Vielen Dank &amp;amp; Grüße&lt;br/&gt;
Timo&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 3.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1944"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1943"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 1.JPG" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1942"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>