<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									esp32 - Introduce Yourself				            </title>
            <link>https://forum.dronebotworkshop.com/introductions/esp32-2/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 16 Oct 2026 15:43:01 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45663</link>
                        <pubDate>Sat, 03 Feb 2024 15:17:23 +0000</pubDate>
                        <description><![CDATA[@videogame95 Use the samples provided by the Library authors, they are correct and a lot smarter than ChatGPT as you have already discovered.]]></description>
                        <content:encoded><![CDATA[<p>@videogame95 Use the samples provided by the Library authors, they are correct and a lot smarter than ChatGPT as you have already discovered.</p>
8507]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45663</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45661</link>
                        <pubDate>Sat, 03 Feb 2024 15:03:08 +0000</pubDate>
                        <description><![CDATA[@zander thanks you ill give its ago know]]></description>
                        <content:encoded><![CDATA[@zander thanks you ill give its ago know]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>videogame95</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45661</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45660</link>
                        <pubDate>Sat, 03 Feb 2024 14:17:56 +0000</pubDate>
                        <description><![CDATA[@zander hi I&#039;m not coder but understand most of the code so I use gptchat to right my code for me 
Look up.]]></description>
                        <content:encoded><![CDATA[<p>@zander hi I'm not coder but understand most of the code so I use gptchat to right my code for me </p>
<p>Look up. </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>videogame95</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45660</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45658</link>
                        <pubDate>Sat, 03 Feb 2024 13:40:54 +0000</pubDate>
                        <description><![CDATA[@videogame95 You might also want to start with the sketch that Bill used in his video. Here is the code he published.
NOTE these comments

TB6612FNG Arduino Sketch
Since this replaces th...]]></description>
                        <content:encoded><![CDATA[<p>@videogame95 You might also want to start with the sketch that Bill used in his video. Here is the code he published.</p>
<p>NOTE these comments</p>
<blockquote>
<h4><span>TB6612FNG Arduino Sketch</span></h4>
<p><span>Since this replaces the L298N, we can use the same sketch to drive the module. </span></p>
<p><span>You can also use one of the many libraries available for the L298N, as any L298N code will work on this module.</span></p>
<p><span>The </span><a href="https://github.com/AndreaLombardo/L298N" target="_blank" rel="noopener"><span>L298N Library by Andrea Lombardo</span></a><span> is a well-documented library that you can install directly from your Arduino IDE.  It has several functions to make working with the L298N easier, and can also be used with the TB6612FNG.</span></p>
</blockquote>
<p> </p>
<pre contenteditable="false">/*
Author  : Andrea Lombardo
Site    : https://www.lombardoandrea.com
Source  : https://github.com/AndreaLombardo/L298N/

Here you can see how to work in a common configuration.

L298NX2 is not a new version of module or IC, 
but it stands for a double implementation of L298N library.

With L298NX2 is possible to initialize two motors at once.

Speed range go from 0 to 255, default is 100.
Use setSpeed(speed) to change speed for both motors,
setSpeedA(speed) or setSpeedB(speed) for individual changes.

Sometimes at lower speed motors seems not running.
It's normal, may depends by motor and power supply.

Wiring schema in file "L298NX2 - Schema_with_EN_pin.png"
*/

// Include the (new) library
#include &lt;L298NX2.h&gt;

// Pin definition
const unsigned int EN_A = 10;
const unsigned int IN1_A = 9;
const unsigned int IN2_A = 8;

const unsigned int IN1_B = 7;
const unsigned int IN2_B = 6;
const unsigned int EN_B = 5;

// Initialize both motors
L298NX2 motors(EN_A, IN1_A, IN2_A, EN_B, IN1_B, IN2_B);

// Wait for Serial Monitor to be opened
while (!Serial) {
  //do nothing
}

// Set initial speed for both motors
motors.setSpeed(80);
}

void loop() {
  // Tell both motors to go forward (may depend by your wiring)
  motors.forward();

  // Alternative method:
  // motors.run(L298N::FORWARD);

  //print the motor status in the serial monitor
  printSomeInfo();digitalWrite(IN1, HIGH);

  motors.stop();

  // Alternative method:
  // motors.run(L298N::STOP);

  printSomeInfo();

  delay(3000);

  // Change individual speeds
  motors.setSpeedA(255);
  motors.setSpeedB(90);

  // Tell motor A to go back (may depend by your wiring)
  motors.backwardA();

  // Alternative method:
  // motors.runA(L298N::BACKWARD);

  // Tell motor B to go forward (may depend by your wiring)
  motors.backwardB();

  // Alternative method:
  // motors.runB(L298N::FORWARD);

  printSomeInfo();

  delay(3000);

  // Stop
  motors.stop();

  printSomeInfo();

  // Change individual speeds
  motors.setSpeedA(90);
  motors.setSpeedB(255);

  delay(3000);
}

/*
Print some informations in Serial Monitor
*/
void printSomeInfo() {
  Serial.print("Motor A is moving = ");
  Serial.print(motors.isMovingA() ? "YES" : "NO");
  Serial.print(" at speed = ");
  Serial.println(motors.getSpeedA());
  Serial.print("Motor B is moving = ");
  Serial.print(motors.isMovingB() ? "YES" : "NO");
  Serial.print(" at speed = ");
  Serial.println(motors.getSpeedB());
}</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45658</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45657</link>
                        <pubDate>Sat, 03 Feb 2024 13:36:36 +0000</pubDate>
                        <description><![CDATA[@videogame95 Sorry, I am not an expert in these motors, but what might be tripping you up is the sample code that you built off is &#039;object oriented&#039; code, NOT procedural. You appear to be th...]]></description>
                        <content:encoded><![CDATA[<p>@videogame95 Sorry, I am not an expert in these motors, but what might be tripping you up is the sample code that you built off is 'object oriented' code, NOT procedural. You appear to be thinking procedurally (like I do) and that won't work.</p>
<p>Just start with the sample and slowly use archive and modify, if it breaks go back one archive and try again.</p>
<p>Good luck.</p>
<p>p.s. Archive is in the Tools menu, see pic.</p>
8506]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45657</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45656</link>
                        <pubDate>Sat, 03 Feb 2024 13:29:56 +0000</pubDate>
                        <description><![CDATA[@videogame95 One part you left out is important, it will tell you if you connected all the wires correctly, this is the missing code in setup, I think you can figure out where it goes.
  if...]]></description>
                        <content:encoded><![CDATA[<p>@videogame95 One part you left out is important, it will tell you if you connected all the wires correctly, this is the missing code in setup, I think you can figure out where it goes.</p>
<pre contenteditable="false">  if (!AFMS.begin()) {         // create with the default frequency 1.6KHz
  // if (!AFMS.begin(1000)) {  // OR with a different frequency, say 1KHz
    Serial.println("Could not find Motor Shield. Check wiring.");
    while (1);
  }
  Serial.println("Motor Shield found.");</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45656</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45655</link>
                        <pubDate>Sat, 03 Feb 2024 13:27:25 +0000</pubDate>
                        <description><![CDATA[@videogame95 Ok, found the V2 library. It appears you have modified the sample sketch. Try the manufacturers sample UNCHANGED first. Once that works then VERY SLOWLY make changes to do what ...]]></description>
                        <content:encoded><![CDATA[<p>@videogame95 Ok, found the V2 library. It appears you have modified the sample sketch. Try the manufacturers sample UNCHANGED first. Once that works then VERY SLOWLY make changes to do what you want.</p>
<pre contenteditable="false">/*
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2
It won't work with v1.x motor shields! Only for the v2's with built in PWM
control

For use with the Adafruit Motor Shield v2
----&gt;	http://www.adafruit.com/products/1438
*/

#include &lt;Adafruit_MotorShield.h&gt;

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
// Or, create it with a different I2C address (say for stacking)
// Adafruit_MotorShield AFMS = Adafruit_MotorShield(0x61);

// Select which 'port' M1, M2, M3 or M4. In this case, M1
Adafruit_DCMotor *myMotor = AFMS.getMotor(1);
// You can also make another motor on port M2
//Adafruit_DCMotor *myOtherMotor = AFMS.getMotor(2);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Adafruit Motorshield v2 - DC Motor test!");

  if (!AFMS.begin()) {         // create with the default frequency 1.6KHz
  // if (!AFMS.begin(1000)) {  // OR with a different frequency, say 1KHz
    Serial.println("Could not find Motor Shield. Check wiring.");
    while (1);
  }
  Serial.println("Motor Shield found.");

  // Set the speed to start, from 0 (off) to 255 (max speed)
  myMotor-&gt;setSpeed(150);
  myMotor-&gt;run(FORWARD);
  // turn on motor
  myMotor-&gt;run(RELEASE);
}

void loop() {
  uint8_t i;

  Serial.print("tick");

  myMotor-&gt;run(FORWARD);
  for (i=0; i&lt;255; i++) {
    myMotor-&gt;setSpeed(i);
    delay(10);
  }
  for (i=255; i!=0; i--) {
    myMotor-&gt;setSpeed(i);
    delay(10);
  }

  Serial.print("tock");

  myMotor-&gt;run(BACKWARD);
  for (i=0; i&lt;255; i++) {
    myMotor-&gt;setSpeed(i);
    delay(10);
  }
  for (i=255; i!=0; i--) {
    myMotor-&gt;setSpeed(i);
    delay(10);
  }

  Serial.print("tech");
  myMotor-&gt;run(RELEASE);
  delay(1000);
}</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45655</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45653</link>
                        <pubDate>Sat, 03 Feb 2024 12:52:51 +0000</pubDate>
                        <description><![CDATA[@videogame95 I can&#039;t compile it since Adafruit_Motorshield does not appear in my library list.]]></description>
                        <content:encoded><![CDATA[@videogame95 I can't compile it since Adafruit_Motorshield does not appear in my library list.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45653</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45652</link>
                        <pubDate>Sat, 03 Feb 2024 11:55:17 +0000</pubDate>
                        <description><![CDATA[hi so#include &lt;Wire.h&gt;
#include &lt;Adafruit_MotorShield.h&gt;

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
...]]></description>
                        <content:encoded><![CDATA[<pre contenteditable="false">hi so#include &lt;Wire.h&gt;
#include &lt;Adafruit_MotorShield.h&gt;

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();

// Connect motor(s) to M1 and M2
Adafruit_DCMotor *motor1 = AFMS.getMotor(1);
Adafruit_DCMotor *motor2 = AFMS.getMotor(2);

void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Adafruit Motorshield v2 - Motor test!");

AFMS.begin(); // create with the default frequency 1.6KHz

Serial.println("Motor test!");

motor1-&gt;setSpeed(255);
motor2-&gt;setSpeed(255);
}

void loop() {
Serial.println("Forward");
motor1-&gt;run(FORWARD);
motor2-&gt;run(FORWARD);
delay(2000);

Serial.println("Backward");
motor1-&gt;run(BACKWARD);
motor2-&gt;run(BACKWARD);
delay(2000);

Serial.println("Release");
motor1-&gt;run(RELEASE);
motor2-&gt;run(RELEASE);
delay(1000);
}</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>videogame95</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45652</guid>
                    </item>
				                    <item>
                        <title>RE: esp32</title>
                        <link>https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45651</link>
                        <pubDate>Sat, 03 Feb 2024 11:47:41 +0000</pubDate>
                        <description><![CDATA[Hi thank for you help this the code i am using I just add adafruit Library but just waits  hard resetting via RTS pin
#include &lt;Wire.h&gt;
#include &lt;Adafruit_MotorShield.h&gt;

// ...]]></description>
                        <content:encoded><![CDATA[<p>Hi thank for you help this the code i am using I just add adafruit Library but just waits  hard resetting via RTS pin</p>
<pre contenteditable="false">#include &lt;Wire.h&gt;
#include &lt;Adafruit_MotorShield.h&gt;

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();

// Connect motor(s) to M1 and M2
Adafruit_DCMotor *motor1 = AFMS.getMotor(1);
Adafruit_DCMotor *motor2 = AFMS.getMotor(2);

void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Adafruit Motorshield v2 - Motor test!");

AFMS.begin(); // create with the default frequency 1.6KHz

Serial.println("Motor test!");

motor1-&gt;setSpeed(255);
motor2-&gt;setSpeed(255);
}

void loop() {
Serial.println("Forward");
motor1-&gt;run(FORWARD);
motor2-&gt;run(FORWARD);
delay(2000);

Serial.println("Backward");
motor1-&gt;run(BACKWARD);
motor2-&gt;run(BACKWARD);
delay(2000);

Serial.println("Release");
motor1-&gt;run(RELEASE);
motor2-&gt;run(RELEASE);
delay(1000);
}
</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/introductions/">Introduce Yourself</category>                        <dc:creator>videogame95</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/introductions/esp32-2/#post-45651</guid>
                    </item>
							        </channel>
        </rss>
		