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 / 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 / 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 / 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 / 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
[
{
"id": "6cb40ed0.4205e",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "975b262b.d595d8",
@dmalawey
dmalawey / myflowExported.txt
Created September 26, 2019 01:27
export a flow for example for lab 4
[
{
"id": "267bf868.5e6a88",
"type": "tab",
"label": "My Export Flow",
"disabled": false,
"info": ""
},
{
"id": "84aaf1fd.4870b",
@dmalawey
dmalawey / telemetry.py
Created October 8, 2019 12:38
Telemetry outputs from SCUTTLE to nodeRed
# data output functions to txt files for NodeRed and MQTT
# Import external programs
import numpy as np # for array manipulation
import time # for keeping time
# Import internal programs
import L1_encoder as enc
import L2_log as log
import L2_heading as head
@dmalawey
dmalawey / NodeRed_10.08
Created October 8, 2019 12:40
NodeRed code for telemetry.py plus extras
[
{
"id": "267bf868.5e6a88",
"type": "tab",
"label": "ScuttleFlowGeneral",
"disabled": false,
"info": ""
},
{
"id": "84aaf1fd.4870b",
@dmalawey
dmalawey / streaming error report
Created October 24, 2019 16:22
streaming error report for video on beaglebone blue
I have followed both the guided installation and manual installation of the remotv controller on a Raspberry Pi and was able to control a robot successfully. I am now trying to get the remotv controller to run on a BeagleBone Blue which has not been successful. When I run the controller.py program, remo.tv says the robot is online and only streams audio while the video stays black. I have checked that the webcam does show up on /dev/video0 which is also what I have set in my controller.conf file. When I run the program I get this output:
debian@beaglebone:~/remotv$ python controller.py
04:48:27 - controller.py : RemoTV Controller Starting up
modprobe: FATAL: Module bcm2835_wdt not found in directory /lib/modules/4.14.71-ti-r80
aplay: main:788: audio open error: No such file or directory
04:48:29 - controller.py : RemoTV Controller Started
04:48:29 - controller.py : Unknown event type
Video does not stream but audio does.
Also as a comparison, I connected to remo.tv using a raspberry pian and had success str
@dmalawey
dmalawey / L2_vector.py
Created November 5, 2019 21:24
code in progress for manipulating vectors
# Handling distance vectors in the robot coordinate frame
# Import external libraries
import numpy as np
from numpy import exp, abs, angle
import time
# Import internal programs
import L1_lidar as lidar