Recover Your Old RC CAR With Raspberry

by cleisonarmand in Circuits > Raspberry Pi

610 Views, 4 Favorites, 0 Comments

Recover Your Old RC CAR With Raspberry

Screenshot 2022-02-03 114153.png

Hi . In this article you can learn how to recover your RC Car with a raspberry pi

Supplies

  1. Power supply 10v at least
  2. Raspberry pi 2 or 3 (It should work with every raspberry)
  3. Damaged RC car
  4. L298N H-Bridge

Screenshot 2022-02-03 115819.png
Screenshot 2022-02-03 120342.png

Electronics : https://www.bluetin.io/python/gpio-pwm-raspberry-pi-h-bridge-dc-motor-control/

Install Tigth VNC

Screenshot 2022-02-03 115917.png
Screenshot 2022-02-03 120102.png

You must follow this tutorial for installing raspbian and run it from SSH:

https://www.youtube.com/watch?v=nZyyfJYOhbM&list=PLE655LzHiPV-U05FYvXV8L4xjA94013Am&index=5&t=151s&ab_channel=ZachBurhop

Software and code : https://python.plainenglish.io/pi-diary-making-my-own-rc-car-using-raspberry-pi-e767559d82

Installed libraries

from gpiozero import Robot
from tkinter import *
bot = Robot(left=(6,3),right=(19,26))
main =Tk()
def leftKey(event):
    bot.left()
    print("kiri")
def rightKey(event):
    bot.right()
    print("kanan")
def upKey(event):
    bot.forward()
    print("maju")
def downKey(event):
    bot.backward()
    print("mundur")


You can edit the third line for the real GPIO pins you are actually using

Final Result

https://youtu.be/RZan69eds8w