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

Streaming camera output from Raspberry Pi

Task was to transmit image from camera on raspberry pi through web interface to the PC. PC is connected to raspberry through local network. Enable camera on your raspberry pi in raspi-conf. Reboot. Save the following source code to a file on your raspberry (let’s say streaming.py) do sudo pip3 install picamera run python3 streaming.py on the target machine (PC) go to http://<your raspberry ip or host name>:8000. output from the camera must be streaming in realtime....

May 23, 2017 · 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

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