Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Wall-E Robot
#1
Hello fellow python developers,

I am endeavoring to build a Wall-E Robot (credit to Chilibasket). This project is a challenge to say the least and learning from it is my goal. This robot is a long time in the making and has taken me a while to get where I am. I have faced many problems and issues already during this build and I have many more to overcome. But with the help of the community, I hope to resolve these issues.


If you wish to see more on the project and its developement, please head to my portfolio website SilverFire

[Image: 20220313_163253-1024x461.jpg]


Project Hardware
Raspberry Pi 4 Model B 8GB
L298N Motor Driver
12V 1.2Ah Lead-Acid Battery
BreadBoard
Toggle Switch
12V Geared Motors


Python Code
import RPi.GPIO as GPIO
from time import sleep

GPIO.setmode(GPIO.BCM)


#GPIO.setup(5, GPIO.OUT)
#GPIO.setup(6, GPIO.OUT)
GPIO.setup(17, GPIO.OUT)
GPIO.setup(27, GPIO.OUT)
GPIO.setup(22, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)

while True:
    #GPIO.output (5, True)
    GPIO.output (17, True)
    GPIO.output (27, True)
    #GPIO.output (6, True)
    GPIO.output (22, True)
    GPIO.output (23, True)
    sleep(1)
    
There is no errors/bugs being reported when executing script. I am using Thonny IDE.

Circuit Diagram
[Image: Slide1-1024x576.jpg]
[Image: L298N-RPi-Connections-Table.jpg]

Issue
The Motors are not making any movement.

Possible issues could be:
- Am I using the wrong type of wire? I am using generic jumper cables for all connections (threaded copper wire). Is this sufficient enough material to allow 12V supply?

- Is the code incorrect in relation to the diagram and connections above?
[Image: Motor-Test-Python-Raspberry-Pi-Thonny.jpg]

Troubleshooting
I have tested electrical connections with a multimeter which is detecting:
- A 12V range from the battery to the L298N.
- A 5V range from Raspberry Pi to L298N

Cleaned up any excess solder and kept connections tidy and isolated.

Please let me know of any further troubleshooting or solutions for this issue, it would be greatly appreciated! I am a little stuck in the mud!

Many Thanks to all Cool
Larz60+ likes this post
Reply
#2
Following The Topic.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DarkPaw Robot code Tyrelex78 3 2,150 Nov-27-2020, 12:06 AM
Last Post: Tyrelex78
  Turning Robot towards goal, comparison of angles SpaceTime 0 2,764 Jan-21-2019, 10:26 PM
Last Post: SpaceTime
  how to program robot to pass wise man puzzle steven12341234 0 1,946 Dec-02-2018, 08:31 AM
Last Post: steven12341234
  Help Threading python robot lucandmendes 0 9,502 May-03-2018, 02:42 PM
Last Post: lucandmendes
  Parallel Processing in Python with Robot crcali 6 5,181 Apr-06-2018, 03:48 AM
Last Post: Larz60+
  Robot Stay Inside Circular Ring webmanoffesto 4 6,691 Dec-07-2016, 06:57 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020