Giter VIP home page Giter VIP logo

esphome-rc-fpv-car-robot-esp8266-pantilt-servo-motors-camera-usb-led-l298n---home-assistant's Introduction

RC Car Camera Robot ESPHome

Version 1.0

  • Control a Camera wherever you want in your House with this RC Car Camera.
  • Control car speed.
  • Control away from home like everything in HA.
  • Works when it's charging so it's possible to move the Pan/Tilt camera where you want.
  • Battery docker station.

https://youtu.be/ULK-bejEP4k

I am not an electronics, programming or espHome expert. I have been searching, getting inspiration from videos and looking for information until I put the pieces together. What I am is a big fan of Home Assistant with a multitude of home automation devices, even addicted :).

INSPIRATION:

MATERIALS:

  • Esp8266 nodemcu board
  • Esp32 cam board and for installation FT232RL TTL Serial Converter
  • 12V Battery 6800mah Li-ion Rechargeable Battery with Protection Board, BMS and Charger https://a.aliexpress.com/_vECinm
  • Arduino Car Kit with 4 TT motors and wheels https://a.aliexpress.com/_ugpMKk
  • Servo Pan/Tilt depends on the weight of the USB camera:
  • Servo Pan/Tilt for 2 servo motors sg90 or mg90s 180º, in my case the sg90 sometimes it doesn't have enough strength to move up a Xiaofang Camera. https://a.aliexpress.com/_vaiPQg

Or

Or

OPTIONAL:

FILE CONFIGURATION OR INSTALLATION:

  • Plug your esp8266 in your computer or Raspberry Pi. In EspHome select + new device, click continue, write a file name like RC-Car, in select your device type pick specific board and choose nodemcu.

  • Click skip. Copy and paste in edit button the content of RC-Car.yaml file in your file, change your ssid and WiFi password validate it and install it.

  • Choose Plug into the computer running ESPHome Dashboard and wait the installation.

  • Look at the log and copy the IP address in case it does not appear automatically in Home Assistant.

  • In Home Assistant, Go to Configuration, Devices and services, if it's not your new ESPHome device: add integration, search for ESPHome and write the IP address in the host.

  • Then several entities should appears at Home Assistant:

    • switch.input1
    • switch.input2
    • switch.input3
    • switch.input4
    • light.onoff_and_speed_car
    • light.led_cam
    • service: esphome.rc_car_control_servo_x
    • service: esphome.rc_car_control_servo_y
  • You have to create two input numbers in helpers from min -100 and max 100 with slider, like this names:

    • input_number.servo_x
    • input_number.servo_y
  • Once created this input_numbers them copy and paste the content of automations.yaml in your automation.yaml or take it as an example and create it in the UI settings

  • Also copy and paste the content of scripts.yaml into your scripts.yaml file or take it as an example and create it in the UI settings

  • For ESP32Cam installation I have to use a FT232RL TTL to plug in Raspberry Pi.

  • Connections: VCC from TTL to 5.5v in ESP32, GND from TTL to GND in ESP32, RX from TTL to GPIO1 in ESP32, TX from TTL to GPIO3 in ESP32, In ESP32 connect a bridge from GPIO0 to GND.

  • Plug your ESP32cam in your computer or Raspberry Pi. Select new device in EspHome, click continue, write a file name like RC-Car-32cam, in Select your device type choose ESP32.

  • Click skip. Copy and paste in edit button the content of RC-Car-32cam.yaml file in your file, change your ssid and WiFi password validate it and install it.

  • Choose Plug into the computer running ESPHome Dashboard and wait the installation.

  • Look at the log and copy the IP address in case it does not appear automatically in Home Assistant.

  • In Home Assistant, Go to Configuration, Devices and services, if it's not your new ESPHome device: add integration, search for ESPHome and write this IP address in the host.

  • Then other several entities should appears at Home Assistant:

    • camera.rc_car32_cam
    • light.led_rc_car32cam
    • sensor.rc_car32cam_ esphome_version
    • switch.rc_car32cam_restart
    • binary_sensor.rc_car32cam_status
    • sensor.rc_car32cam_wifi_signal_sensor
    • sensor.uptime_sensor
  • Remove all the wires and connect the ESP32Cam like diagram using only 2 wires, VIN and GND.

  • If you want to modify your ESP32Cam file the bridge must be plugged in.

  • In your Home Assistant Lovelace or Dashboard:

    • Create a Camera Live Card with your name cameras.
    • Create a Grid card with all script control buttons (example if you want to paste in code)
    • Create a Speed Controller using light.onoff_and_speed_car entity with slider
    • Create a entities card with input_number.servo_x and input_number.servo_y
    • Create a Camera auto Card
  • IMPORTANT: For using the car, the light.onoff_and_speed_car must be ON and more than 75% "brightness". Need more "brightness" for turn or rotation than forward or backward.

DIAGRAM CONNECTION:

  • Thats It! Have a good time!

TO DO OR WISHLIST:

  • It can use only a esp32camera without the esp8266 board.
  • 3d printed battery docker station "like a robot vacuum"

#esphome #rccar #rccars #rc #homeassistant #L298N #ttmotors #esp8266 #esp32cam #fpv #fpvcar #fpvwifi #wificar #rcwifi #car #cars #wirelessrccar #radiocontrol #esphomerobot #robotcar #robotcar #esphomecar #esphomeproject #esphomeservo #esphomepantilt

esphome-rc-fpv-car-robot-esp8266-pantilt-servo-motors-camera-usb-led-l298n---home-assistant's People

Contributors

janfajessen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.