Skip to content

Instantly share code, notes, and snippets.

View dmalawey's full-sized avatar
💭
performing kaizen

David dmalawey

💭
performing kaizen
View GitHub Profile
@dmalawey
dmalawey / L1_servo_mod1.py
Created September 23, 2019 00:48
more movements added to servo.py for testing 09.22
# This program offers functions for controlling servos on the blue
# servo position is specified by "duty." If the servo is a continuous
# type, the duty will set the speed instead of the position.
# Uses rcpy library. Documentation: guitar.ucsd.edu/rcpy/rcpy.pdf
# PROGRAM REQUIRES SUDO.
import time, math
import getopt, sys
import rcpy # This automatically initizalizes the robotics cape
import rcpy.servo as servo
@dmalawey
dmalawey / errors with motor driving
Created September 20, 2019 22:07
blue_motor_drivers_installation_problem
debian@scuttle:~/basics$ sudo python3 L1_motors.py
[sudo] password for debian:
/usr/local/lib/python3.5/dist-packages/rcpy/__init__.py:116: UserWarning: > Robotics cape initialized
warnings.warn('> Robotics cape initialized')
/usr/local/lib/python3.5/dist-packages/rcpy/__init__.py:127: UserWarning: > Installing signal handlers
warnings.warn('> Installing signal handlers')
ERROR in rc_pwm_init, can't open pwm export file for writing: No such file or directory
Probably kernel or BeagleBone image is too old
ERROR in rc_motor_init, failed to initialize pwm subsystem 1
Traceback (most recent call last):
@dmalawey
dmalawey / dm_install_09.19
Created September 19, 2019 22:59
installer check followed by motors failure
check_installed.sh 100%[=================================================================>] 2.75K --.-KB/s in 0.001s
2019-09-19 22:26:09 (3.72 MB/s) - ‘check_installed.sh’ saved [2815/2815]
debian@scuttle:~$ sudo bash check_installed.sh
[sudo] password for debian:
Checking for internet connection.
Success
@dmalawey
dmalawey / problems_and_could_nots
Created August 30, 2019 03:42
running the self-installer
Get:18 http://deb.debian.org/debian stretch-updates/main armhf debian-archive-keyring all 2017.5+deb9u1 [73.9 kB]
Get:19 http://deb.debian.org/debian stretch/main armhf apt armhf 1.4.9 [1,199 kB]
Ign:19 http://deb.debian.org/debian stretch/main armhf apt armhf 1.4.9
Ign:20 http://deb.debian.org/debian stretch/main armhf apt-utils armhf 1.4.9
Err:13 http://repos.rcn-ee.com/debian stretch/main armhf bb-node-red-installer armhf 0.19.6-0rcnee0~stretch+20190228
Error writing to output file - write (30: Read-only file system) Error writing to file - write (30: Read-only file system) [IP: 45.33.2.10 80]
Err:21 http://repos.rcn-ee.com/debian stretch/main armhf bone101 armhf 2.1.3-0rcnee3~stretch+20190803
Could not open file /var/cache/apt/archives/partial/bone101_2.1.3-0rcnee3~stretch+20190803_armhf.deb - open (30: Read-only file system) [IP: 45.33.2.10 80]
Err:22 http://deb.debian.org/debian stretch/main armhf gpgv armhf 2.1.18-8~deb9u4
Could not open file /var/cache/apt/archives/partial/gpgv_2.1.18-8~deb9u4_a
@dmalawey
dmalawey / example_wpa_connecting
Last active September 9, 2020 23:58
connecting to wifi at home using Command line interface
debian@beaglebone:/var/lib/cloud9$ sudo connmanctl
[sudo] password for debian:
Error getting VPN connections: The name net.connman.vpn was not provided by any .serviceconnmanctl> scan wifi
Scan completed for wifi
connmanctl> scan wifi
Scan completed for wifi
connmanctl> agent on
Agent registered
connmanctl> services
PCHOTSPOT wifi_9884e3e0bd64_5043484f5453504f54_managed_psk