<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/</id><updated>2020-04-30T13:09:27.435000Z</updated><subtitle>Recent posts to I2CExamples.project funktioniert nicht</subtitle><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=250#8f4f/74a8" rel="alternate"/><published>2020-04-30T13:09:27.435000Z</published><updated>2020-04-30T13:09:27.435000Z</updated><author><name>bpalacio</name><uri>https://forge.codesys.com/u/bpalacio/</uri></author><id>https://forge.codesys.comcbc88e288186cc40df7d5575cd6393cd2f5d03e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello:&lt;br/&gt;
I'm doing a project with an adafruit pwm card to manipulate two DC motors with the L298N driver but I can't get it to work. Do you have an example where you can configure the PWM 0 output.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#54ce" rel="alternate"/><published>2020-02-28T02:42:52.148000Z</published><updated>2020-02-28T02:42:52.148000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.come9c999d3df986e8c9778fd1945b34924ade1857a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;/p&gt;
&lt;p&gt;jetzt scheint alles zu funktionieren. Noch einmal herzlichen Dank für Deine Unterstützung!&lt;/p&gt;
&lt;p&gt;Viele Grüße&lt;/p&gt;
&lt;p&gt;Joachim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#8f4f" rel="alternate"/><published>2020-02-28T02:42:50.189000Z</published><updated>2020-02-28T02:42:50.189000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd590236377228cfcfd1226b595ddba96346877e2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Joachim,&lt;/p&gt;
&lt;p&gt;versuch es mal so:&lt;/p&gt;
&lt;p&gt;Adafruit_PWM.axEnable&lt;span&gt;[4]&lt;/span&gt;:=TRUE;&lt;br/&gt;
Adafruit_PWM.axEnable&lt;span&gt;[5]&lt;/span&gt;:=TRUE;&lt;br/&gt;
Adafruit_PWM.axEnable&lt;span&gt;[6]&lt;/span&gt;:=TRUE;&lt;br/&gt;
Adafruit_PWM.axEnable&lt;span&gt;[7]&lt;/span&gt;:=TRUE;&lt;/p&gt;
&lt;p&gt;Adafruit_PWM.alrPWM&lt;span&gt;[0]&lt;/span&gt; := 1.5 + 0.5&lt;em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;&lt;span&gt;[1]&lt;/span&gt;&lt;/span&gt; := 1.5 + 0.5&lt;/em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;[2]&lt;/span&gt; := 1.5 + 0.5&lt;em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;&lt;span&gt;[3]&lt;/span&gt;&lt;/span&gt; := 1.5 + 0.5&lt;/em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;[4]&lt;/span&gt; := 1.5 + 0.5&lt;em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;&lt;span&gt;[5]&lt;/span&gt;&lt;/span&gt; := 1.5 + 0.5&lt;/em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;[6]&lt;/span&gt; := 1.5 + 0.5&lt;em&gt;SIN(t);&lt;br/&gt;
Adafruit_PWM.alrPWM&lt;span&gt;&lt;span&gt;[7]&lt;/span&gt;&lt;/span&gt; := 1.5 + 0.5&lt;/em&gt;SIN(t);&lt;/p&gt;
&lt;p&gt;die ersten 4 sind per Default "enabled" so wie es in der Lib aussieht,&lt;br/&gt;
die Lib ist ja ne "Library" d.h du kannst dir jederzeit den CODE anschauen entweder im BibliotheksManager direkt oder mit CODESYS die Bibliothek öffnen.&lt;br/&gt;
finden tut man die hier:&lt;br/&gt;
"c:\Users\&amp;lt;deinwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Libraries\I2C_AdafruitPWM.library" &amp;lt;/deinwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EnablePWM.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1338"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#20b9" rel="alternate"/><published>2020-02-28T02:42:44.932000Z</published><updated>2020-02-28T02:42:44.932000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.comf357942c6c8de96032f1e8983c5214aa747e4fe8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;br/&gt;
vielen Dank für die Antwort. Das Soft-Motion Beispiel funktioniert bei mir auch. Ich habe aber Probleme mit dem I2CExamples.project. Ich würde gern das Programm verwenden, um die Servos mit "Adafruit_PWM.alrPWM&lt;span&gt;[0]&lt;/span&gt; := 0.5;" einzeln ansprechen zu können. Es lassen sich aber leider nur die ersten vier Servos ansteuern. Danach rührt sich nichts mehr. Wie muss ich das Programm erweitern, um die restlichen Servos (4 ... 6) ansprechenzu können?&lt;/p&gt;
&lt;p&gt;Viele Grüße&lt;br/&gt;
Joachim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#af2d" rel="alternate"/><published>2020-02-28T02:42:43.022000Z</published><updated>2020-02-28T02:42:43.022000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comeeb6a9ee3c1abc4e394a3ac172374fcbaa3c82bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;wir hatten ne Applikation die 8 verwendet.. das muss gehen.&lt;/p&gt;
&lt;p&gt;Grüße&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Servos.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1335"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#9586" rel="alternate"/><published>2020-02-28T02:42:37.724000Z</published><updated>2020-02-28T02:42:37.724000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.com0800395825dcd7eba76916117d0ed0dcddedda8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;br/&gt;
man darf den Tag nicht vor dem Abend loben. Von meinen sieben Servos kann ich mit dem I2CExamples Programm nur 4 ansteuern. Die anderen bewegen sich nicht. Kann es sein, dass das Beispielsprojekt nur für 4 Servos angelegt ist? Wenn ja, was kann ich machen um die restlichen Seervos einzubinden?&lt;/p&gt;
&lt;p&gt;Viele Grüße&lt;br/&gt;
Joachim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#4c0b" rel="alternate"/><published>2020-02-28T02:42:35.790000Z</published><updated>2020-02-28T02:42:35.790000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.com7e59d2d185a46d8deef1e0d5d145daa77ff015cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;br/&gt;
Sie hatten Recht mit der Aussage "es muss funktionieren". Nachdem mir einen Oszi besorgt hatte sah ich, dass das PWM-Signal immer 1ms lang war, obwohl beim CoDeSys- Debugging Werte von 1.0 bis 2.0 angezeigt wurden, entsprechend der Programmzeile "Adafruit_PWM.alrPWM&lt;span&gt;[0]&lt;/span&gt; := 1.5 + 0.5*SIN(t);". Durch Zufall habe ich mir noch einmal die Beschreibung für alrPWM angesehen. Dort wurde klar angegeben, dass die Werte nur zwischen 0 und 1 (=1ms ... 2ms) liegen sollten. Ob diese Programmzeile nun im Originalbeispiel so gestanden hat, oder zufällig durch mich abgeändert wurde, kann ich nicht mehr beurteilen. Jedenfalls laufen meine Servos jetzt wie ich es mir wünsche.&lt;/p&gt;
&lt;p&gt;Vielen Dank noch einmal für Ihre Unterstützung.&lt;/p&gt;
&lt;p&gt;Joachim&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#4689" rel="alternate"/><published>2020-02-28T02:42:30.334000Z</published><updated>2020-02-28T02:42:30.334000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.com3cc89f506959ad6631b3c89e4b1a420ec8e9feda</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;PS: Welche Funktion hat axEnable im Function_Block AdafruitPwm??&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#82ad" rel="alternate"/><published>2020-02-28T02:42:28.446000Z</published><updated>2020-02-28T02:42:28.446000Z</updated><author><name>JJoe</name><uri>https://forge.codesys.com/u/jjoe/</uri></author><id>https://forge.codesys.com0a210fd428c279e520cbfb5fcb694af7fdb47f6e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Edwin,&lt;br/&gt;
vielen Dank für Deine Tips. Leider haben sie mich auch nicht weitergebracht.&lt;br/&gt;
Die Situation ist folgende:&lt;br/&gt;
1. Mit dem Python Programm und dem Adafruit Hat funktionieren alle 6 Servos so wie sie sollen. Das heißt für mich, dass die Hardware ok ist.&lt;br/&gt;
2. Das SoftMotion Servo Example funktioniert mit einem Servo in Port 0 auch. &lt;br/&gt;
3. Ich habe in das I2CExamples Programm noch einen MCP23017 eingefügt (siehe Anhang). Das Einlesen der Eingänge vom 23017 funktioniert auch. &lt;/p&gt;
&lt;p&gt;Leider weiß ich nicht mehr weiter. Hast Du vielleicht noch eine Idee, was ich noch probieren kann?&lt;/p&gt;
&lt;p&gt;Viele Grüße&lt;br/&gt;
Joachim&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PWM23017.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=1327"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>I2CExamples.project funktioniert nicht</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1ba53ece4c/?limit=25#e3bb" rel="alternate"/><published>2020-02-28T02:42:23.104000Z</published><updated>2020-02-28T02:42:23.104000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com4690aa66d6cbbc5125194d2fd1ff4220f0f97c1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
das muss gehen.&lt;br/&gt;
mit &lt;br/&gt;
&lt;strong&gt;sudo raspi-config&lt;/strong&gt;&lt;br/&gt;
device tree&lt;br/&gt;
i2C&lt;br/&gt;
SPI &lt;br/&gt;
enabled?&lt;br/&gt;
Dann muss das Beispielproject : "c:\Users\&amp;lt;deinwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Examples\SoftMotion Servo Example.project" &lt;br/&gt;
gehen wenn alles korrekt angeschlossen ist, wovon ich ausgehe.&lt;br/&gt;
(Im Gerätebaum alles grün)&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></feed>