Skip to content

Delta0001/dualwheel-drone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dualwheel-drone

TODO: https://www.npmjs.com/package/create2

socket controller setup

sudo apt-get install pigpio python-pigpio python3-pigpio npm
Inside socket_controller/: npm install nodemon -g Also install on production device: sudo npm install pigpio

OLD web controller additional setup:

Disable GPIO interrupts

https://www.npmjs.com/package/rpio#disable-gpio-interrupts
If running a newer Raspbian release, you will need to add the following line to /boot/config.txt and reboot:

dtoverlay=gpio-no-irq

Without this you may see crashes with newer kernels when trying to poll for pin changes.

Enable /dev/gpiomem access

https://www.npmjs.com/package/rpio#enable-devgpiomem-access
By default the module will use /dev/gpiomem when using simple GPIO access. To access this device, your user will need to be a member of the gpio group, and you may need to configure udev with the following rule (as root):

$ cat >/etc/udev/rules.d/20-gpiomem.rules <<EOF
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"
EOF

I ran this command with:

sudo bash -c 'cat >/etc/udev/rules.d/20-gpiomem.rules <<EOF
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"
EOF'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published