Thanks for the videos. I searched for days on the net and contacted the seller for instructions on how to get this car going, but your videos were the only thing that actually helped to get the car fully functioning.
Thank you for this, really helped me! I would like to use a power bank instead of those batteries by attaching it to the USB port of the arduino. How would I need to wire the arduino to the shield for power?
Thank you for the video! It really helped a great deal. I am using a PIC microcontroller, do I still need to connect the sensor to analog pins and the servo to digital pins?
Hi, it was actually an oversight. The power terminal is the only power connection on the shield so I thought it's the input. It works perfectly fine. However further research suggest the Vin Pin should be the best for power input. It goes through the on board voltage regulator to provide 5v, but that also means we have to provide something above 7V for the V drop. Since we already have 5V from the L298, connecting to the 5V works fine even not being protected.
Hopefully this make sense and let me know if I missed anything. For further reading: electronics.stackexchange.com/questions/65576/arduino-uno-r3-directly-supply-regulated-5v-to-5v-pin
Chen, Great tutorials. Two problems, When I run the motor test, the robot turns right not left (or maybe right not left). How do I switch the wires? Second, for the servo test, when I first upload the sketch, the servo turns full right and stops, never to go again. Any suggestions?
For the servo, first manually turn it to make sure the range is fine, I would check connections next. Make sure the pin defination in the code matches your pin connection.
Hi I have never used an Arduino before I just connected everything and copy and pasted the code. What does the [csharp] stand for? Do I have to run it with C#?
Hi. Thanks for the videos I found them to be a great help. I have a question, I am able to upload the sweep test it seams with no problem but it does not seam to work the servo will make on small movement and the just stays motionless. Any ideas. Have I missed something. Motor test is fine. Is it something to do with library
Hi Dropkicker27, here are more information about the L298N connections: czcams.com/video/TMwBQ4sb3XY/video.html Basically the 12v pin is the power to the motors and 5v is powering the logics in L298N. The 5v pin supports 5 to 7v so it is safe to connect the 4 AAs to it, as well as the 12v pin. If you need to driver bigger motors with bigger voltage, the 5v pin can even be ignored with the on board 7805 voltage regulator. Check the video above and let me know any further questions. Happy Making! :D
@@ChenTheDesignMaker www.theengineeringprojects.com/wp-content/uploads/2017/07/L298-Pinout.jpg look in this photo i have the module whit the ativa MA and ativa MB like that and i cant put a cable in
ALEX PAPAZOGLOU no worries dude I fixed it after all...2 connections were messed up 😂 now the other problem is to create an ir beacon that will “make” the car follow it😝
Arduino: 1.8.8 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino: In function 'void checkDistance()': sketch_mar31a:5:18: error: 'A1' was not declared in this scope #define ECHO_PIN A1 ^ C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:111:21: note: in expansion of macro 'ECHO_PIN' while ( digitalRead(ECHO_PIN) == 0 ); ^ sketch_mar31a:5:18: error: 'A1' was not declared in this scope #define ECHO_PIN A1 ^ C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:116:21: note: in expansion of macro 'ECHO_PIN' while ( digitalRead(ECHO_PIN) == 1); ^ Multiple libraries were found for "Servo.h" Used: C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Servo Not used: C:\Program Files (x86)\Arduino\libraries\Servo exit status 1 'A1' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
ChenTheDesignMaker, yes it is. Unfortunately it's dead already and i just bought a 9v battery. Im on the loading of the program stage now, thank you for your video im learning quickly :)
Hi, I would first check if the motor runs with voltage applied to it, like 3v 2 AA batteries. If it runs, it must be a connection problem. Check this video: czcams.com/video/TMwBQ4sb3XY/video.htmlm5s to manually test the connections. Let me know if this solves it. Good luck!
If the 298N works fine on your manual test, it might be a software problem, can you check if your pin connections are matching in the #define area of the code? Let me know how it goes.
Thanks for the videos. I searched for days on the net and contacted the seller for instructions on how to get this car going, but your videos were the only thing that actually helped to get the car fully functioning.
Glad I can help! Have fun with it! :D
thx a lot for another great video! looking forward for a next part ...
great video thanks for the help!!!regards from colombia
Glad I can help :D
Nice! Do you have a soldering kit that you recommend?
Thank you for this, really helped me!
I would like to use a power bank instead of those batteries by attaching it to the USB port of the arduino. How would I need to wire the arduino to the shield for power?
The shield should be powered by the USB as well. Give it a try. Let me know if it doesn't work.
Very helpful and clear instructions...looked so many places to find your simple set of clear instructions. Many thanks
Thank you for the video! It really helped a great deal. I am using a PIC microcontroller, do I still need to connect the sensor to analog pins and the servo to digital pins?
ChenTheDesignMaker
Why did you connect the 5V output with the motor supply?
And whats the advantage of it? Sorry if you mentioned it in the video but my english is not that well
Hi, it was actually an oversight. The power terminal is the only power connection on the shield so I thought it's the input. It works perfectly fine. However further research suggest the Vin Pin should be the best for power input. It goes through the on board voltage regulator to provide 5v, but that also means we have to provide something above 7V for the V drop. Since we already have 5V from the L298, connecting to the 5V works fine even not being protected.
Hopefully this make sense and let me know if I missed anything. For further reading: electronics.stackexchange.com/questions/65576/arduino-uno-r3-directly-supply-regulated-5v-to-5v-pin
Chen, Great tutorials. Two problems, When I run the motor test, the robot turns right not left (or maybe right not left). How do I switch the wires? Second, for the servo test, when I first upload the sketch, the servo turns full right and stops, never to go again. Any suggestions?
Hi Mary, for the motors, you could switch the motor A to motor B, or switch the respective 3 pins for each motor.
For the servo, first manually turn it to make sure the range is fine, I would check connections next. Make sure the pin defination in the code matches your pin connection.
@@ChenTheDesignMaker Seems that servo is pinned to pin number 9 in test code. But we have it in pin number 0. Try to switch them and it should work.
Hi I have never used an Arduino before I just connected everything and copy and pasted the code. What does the [csharp] stand for? Do I have to run it with C#?
is it me or the code doesnt compile. i got some errors in the motor test.
Is it ok to send 6V to the logic voltage input of the L298N? The specs say 5V input.
what is the fault here please. Can you help??? (pulse_width = t2 - t1;)
If you solder it and you have to remove the wire what will you do
the code you have provided expects a initializer where the void loop is located what should I do?
Thank you, great vid :0)
Glad I can help! :D
You bild that car without programming the arduino card ?
Hi. Thanks for the videos I found them to be a great help. I have a question, I am able to upload the sweep test it seams with no problem but it does not seam to work the servo will make on small movement and the just stays motionless. Any ideas. Have I missed something. Motor test is fine. Is it something to do with library
Think I have sorted it with the amendment of the Pin 9 I change to pin 3
Great! Have fun~ let me know if you have other questions.
Hi Chen, i have a little question, why do you have bridged the 12v and 5v? Can you explain it for me, thank you!
Hi Dropkicker27, here are more information about the L298N connections: czcams.com/video/TMwBQ4sb3XY/video.html
Basically the 12v pin is the power to the motors and 5v is powering the logics in L298N. The 5v pin supports 5 to 7v so it is safe to connect the 4 AAs to it, as well as the 12v pin. If you need to driver bigger motors with bigger voltage, the 5v pin can even be ignored with the on board 7805 voltage regulator. Check the video above and let me know any further questions. Happy Making! :D
Thank you for your quick answer, ah it make sense to me now. Nice vids by the way.
I want to added bluetooth modul it can??? Thank you
The code isn't opening😔
hi bro, thank you for the tuto, but i have a problem in the l298n module you have 6 pins but i have only 4 what i have to do?
Could you tell me what are the 4 pins?
@@ChenTheDesignMaker www.theengineeringprojects.com/wp-content/uploads/2017/07/L298-Pinout.jpg
look in this photo i have the module whit the ativa MA and ativa MB like that and i cant put a cable in
@@ChenTheDesignMaker please help me cause i buyed the kit two times and i dont want to put my money in garbage
@@spraz3r348 ah, are those jumpers? Just use a some tweezers to remove those
every time i try to test the ultrasensor and connect the GND to A0 it makes the arduino shutdown and i cant load the code.... HELP BRO
Wait, isn't GND connecting the GND? why A0? Sounds like there might be a wrong connection that shorts the arduino.
ALEX PAPAZOGLOU no worries dude I fixed it after all...2 connections were messed up 😂 now the other problem is to create an ir beacon that will “make” the car follow it😝
hi
my n298 has just 4 pin
and yous has 6
what i have to do ???????????
EYAD SALAMEH Could i know what are the 4 pins?
Do you get the wires by the kit??
Hi, you'll need to purchase the jumper wires separately. The part 1 video has all the parts included in the kit. Have fun!
Hahaha ook Nederlander hier
Arduino: 1.8.8 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino: In function 'void checkDistance()':
sketch_mar31a:5:18: error: 'A1' was not declared in this scope
#define ECHO_PIN A1
^
C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:111:21: note: in expansion of macro 'ECHO_PIN'
while ( digitalRead(ECHO_PIN) == 0 );
^
sketch_mar31a:5:18: error: 'A1' was not declared in this scope
#define ECHO_PIN A1
^
C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:116:21: note: in expansion of macro 'ECHO_PIN'
while ( digitalRead(ECHO_PIN) == 1);
^
Multiple libraries were found for "Servo.h"
Used: C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
exit status 1
'A1' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
when the part 3 bro?
Working on it right now. I'm trying to figure it all out this week and edit the video early next week.
Can I use a 2s 2400mah lipo instead of 4x AA battery?
Hi Gemmo, I did some search and seems like it is a 7.4v battery, is it?
ChenTheDesignMaker, yes it is. Unfortunately it's dead already and i just bought a 9v battery. Im on the loading of the program stage now, thank you for your video im learning quickly :)
I followed the wirings and uploaded the code but it doesnt seem to work. I cant figure out where my error is.
Could you describe what's the issue? Is it the motor? or servo? Or no power at all?
ChenTheDesignMaker if you dont mind, do you have facebook or other social media where I can send pm's? Thank you.
Why my tt motor doesn't work?
Hi, I would first check if the motor runs with voltage applied to it, like 3v 2 AA batteries. If it runs, it must be a connection problem. Check this video: czcams.com/video/TMwBQ4sb3XY/video.htmlm5s to manually test the connections. Let me know if this solves it. Good luck!
Manually the tt motor test ok!!! but assembly the smart car still doesn't wok....
If the 298N works fine on your manual test, it might be a software problem, can you check if your pin connections are matching in the #define area of the code? Let me know how it goes.
Malo