Robocar project

For the robocar contest in Berlin I started a project of building an autonomous toy car (scale 1:10). The goal of the contest was to show the fastest lap driving autonomously. The track had 8-shape with lane boundaries marked with white tape. Unfortunately the competition got cancelled. But that gave me an opportunity to switch from my 1st gen car to 2nd gen version. Here is my first version: The second version is built upon a stock RC car Absima Abs1...

August 24, 2019 · SergeM

ROS experience

ROS on raspberry pi There is a compiled image for RPi by ubiquity that has ROS kinetic: https://downloads.ubiquityrobotics.com/pi.html. It seems for me too old. It’s 2020, there are ubuntu 18, ros melodic and ros2, next year the support of python2.7 will be discontinued. Meh… It is possible to have ROS melodic on Raspberry Pi 3 B+. See in the next sections. Installing tensorflow for ROS on raspberry pi Alternatively one can try to install it from wheels: https://www....

August 24, 2019 · SergeM

GPIO controls for Rasbperry Pi

Libraries for GPIO Node JS Python Using RPi.GPIO How to Exit GPIO programs cleanly, avoid warnings and protect your Pi Setting up RPi.GPIO, numbering systems and inputs On using hardware PWM without sudo due to permissions for /dev/gpiomem: discussion General pigpio The library also provides a service. It can be useful if you don’t want to give root access to the client applications and want to control PWM for example....

September 23, 2018 · SergeM

Motor drivers / controllers

Articles about raspberry pi: here SN74HC595 shift register. Controlling from Raspberry: here Comparison of Polou DC motor drivers Comparison of stepper motor drivers DC motors Pololu DRV8833 Dual Motor Driver Carrier exp-tech 4,95€ two DC motors or one stepper motor 2.7‌‌–10.8 V 1.2 A continuous (2 A peak) per motor Motor outputs can be paralleled to deliver 2.4 A continuous (4 A peak) to a single motor Reverse-voltage protection circuit...

April 23, 2017 · SergeM

SN74HC595 shift register. Controlling from Raspberry

For other links about raspberry pi go here Pinouts How to control It seems that procedure described in Texas Instruments’ datasheet is wrong: Using in motor shield DK Electronics V1 Scheme: L293x Quadruple Half-H Driver (pdf) Connection Raspberry PIN 6 -> Shield GROUND Raspberry PIN 11 -> Shield PIN 8 (Register PIN 14, SER / DS) Raspberry PIN 12 -> Shield PIN 12 (Register PIN 12, SRCLK / SHCP) Raspberry PIN 13 -> Shield PIN 4 (Register PIN 11, RCLK / STCP)...

April 23, 2017 · SergeM

Raspberry Pi Links

I2C interface Description of I2C interface Raspberry Pi SPI and I2C Tutorial Continuous deployment (Russian) Непрерывная кросс компиляция на Raspberry PI Controlling motors Brushless motor Control brushless motor with ESC. Without additional controllers With PCA9685 PWM Board (stackexchange thread) One more thread Controlling multiple servos To control multiple servos you can use PCA9685 controller. Connection is shown below. It’s better to connect VCC of the controller (red wire) to +5V or raspberry or to external power supply....

December 31, 2016 · SergeM