This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot motor controller - Arduino Nano and L298N
#1
Hi All

I'm setting up Pypilot for the first time and have some questions about the Arduino Nano and L298N for controlling a 12v linear actuator to autosteer a small light boat:

1.  In motor.ino, do you edit line 175 to pmw_style = 0 to select hbridge?

2. Which pins on the Arduino do I connect to ENA, IN1 and IN2 on the L298N?

3. Is the Arduino Nano V3.2 suitable to use with the Pypilot computer?

4. Can the Arduino Nano communicate with the Raspberry Pi through a USB connection only?

Thanks for your assistance!
Reply
#2
Hi!
I'm a noob myself, but maybe I can answer a couple of the questions.
The latest Nano I have works just fine with Pypilot and is connected to the Raspberry Pi via a USB cable. Pypilot sees the Nano on the USB and provides power to the unit as well.
As for pinouts, perhaps look at the circuit diagram Ironman posted in another thread, Alternative Motor Controller. You'll see which pins go where.

Hope that helps a bit.

Onno
Home is where the anchor drops
Reply
#3
I found this video by a user on this forum that is very helpful to show how the Arduino motor controller works and the outputs it gives in different modes.

https://www.youtube.com/watch?v=Z4K_Hwsje40

You need to use the VNH2SP30 mode of the arduino controller.
Reply
#4
(2025-02-08, 08:30 PM)kp.sov69 Wrote: I found this video by a user on this forum that is very helpful to show how the Arduino motor controller works and the outputs it gives in different modes.

https://www.youtube.com/watch?v=Z4K_Hwsje40Monkey Mart

You need to use the VNH2SP30 mode of the arduino controller.

This is an excellent find! Thank you for sharing. It is often beneficial to witness practical examples of how these components work, especially when delving into specific modes such as the VNH2SP30. I'm excited to try it out and see the diverse results. Hopefully, it gives some light on how I can effectively use this mode for my own projects.
Reply
#5
Thanks!
Reply
#6
(2025-02-08, 08:30 PM)kp.sov69 Wrote: I found this video by a user on this forum that is very helpful to show how the Arduino motor controller works and the outputs it gives in different modes.
https://www.youtube.com/watch?v=Z4K_Hwsje40 snowrider
You need to use the VNH2SP30 mode of the arduino controller.

I'm eager to give it a try and observe the variety of outcomes. It should help me understand how to use this mode for my own projects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)