ros-ukraine / leobot

LeoBot telepresence robot
MIT License
21 stars 4 forks source link

Create electronic schematic for robot #124

Open vyosypenko opened 6 years ago

vyosypenko commented 6 years ago

Schematic will be created in free EDA KiCad.

LyubomyrD commented 6 years ago

Great choice!

vyosypenko commented 6 years ago

lib with STM32F4 board headers: http://smisioto.no-ip.org/elettronica/kicad/kicad-en.htm

Symbol and footprint https://www.snapeda.com/parts/STM32F4DISCOVERY/STMicroelectronics/view-part/

Headers 3D model: https://grabcad.com/library/stm32f4discovery-socket-for-kicad-1

vyosypenko commented 6 years ago

Added 3D model for the footprint in KiCad. As for me looks nice :) image

vyosypenko commented 6 years ago

image

vyosypenko commented 6 years ago

KiCad project is located: https://github.com/ros-ukraine/leobot/tree/F%23124_MCU_Board_Schematic/docs/design/hardware/MCU_Board

vyosypenko commented 6 years ago
  1. Connection diagram: image

  2. Preliminary schematic: image

LyubomyrD commented 6 years ago

@nemo8 great schematics! It seems like we need both InA and InB for motors drive shield. I guess that we have to consider powering drive shields from 5V

vyosypenko commented 6 years ago

@LyubomyrD ,

thanks! Good catch!

I have made some mistakes with motor driver signals.

You are right:

  1. 5v should be connected to shields.
  2. And there are no "InA and InB" lines on the current schematic.

I will update schematic.

If You wish you can open schematic in Kicad, the current project is located here: https://github.com/ros-ukraine/leobot/tree/firmware/docs/design/hardware/MCU_Board

vyosypenko commented 6 years ago

Hi @LyubomyrD , according to the motor driver schematic VCC is used only for two signal pull-up (we don't use these pins in our design), so it doesn't really matter 5V or 3.3V:

image

connected motor driver signals INA, INB to the stm32 board connector: image

LyubomyrD commented 6 years ago

@nemo8 as far as I understand, pull-ups are for the motor_enable pin. I guess, that even if we do not use it now, we should add the usage to the schematics for safety reasons and possible power usage optimization (when robot is idle, there is no need for motors to be ebanled). @AndriyPt , please, confirm.

vyosypenko commented 6 years ago

@LyubomyrD yes, these pins are for motor enable. For this pins 5V and 3.3V are fine.

Motor is disabled in the next cases

  1. INA and INB = 0
  2. INA and INB = 1
  3. PMW = 0

image

To disable motor using ENA/DIAGA, ENB/DIAGB just need to take off supply volatage (and pininternally will be connected to GND). These pins are dedicated for monitoring fault detection. If we want to disable motor via ENA/DIAGA, ENB/DIAGB pins we need to add the transistor switch for 5V line. image