- Start by installing the Adafruit_BBIO library.
sudo apt-get update
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
sudo pip3 install Adafruit_BBIO
pcm.!default { | |
type plug | |
slave { | |
pcm "hw:1,0" | |
} | |
} | |
ctl.!default { | |
type hw | |
card 1 | |
} |
#!/bin/bash | |
reset | |
#Promt for root password | |
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@" | |
wifi=() | |
until ((${#wifi[@]} > 0)); do |
sudo apt-get update
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
sudo pip3 install Adafruit_BBIO
Set the IP of HEBI module to 10.10.10.2
and the subnet mask to 255.255.255.0
using the HEBI Scope software.
Plug the HEBI module into Beaglebone using a USB to Ethernet adapter.
Set Beaglebone ethernet IP to 10.10.10.1
and the subnet address to 255.255.255.0
using the command sudo ifconfig eth0 10.10.10.1 netmask 255.255.255.0
.
Install HEBI python API using sudo pip3 install hebi-py
.
Run python3 01a_lookup.py
to get family name and module name.
Run git clone https://github.com/HebiRobotics/hebi-python-examples
for hebi-py examples.
import heartrate; heartrate.trace(browser=True) | |
import time | |
x = 0 | |
while x < 100: | |
print("Hello World\t", x) | |
time.sleep(0.1) | |
x+=1 | |
exit() |
cd /usr/local/lib/python3.7/dist-packages/pptk/libs
mv libz.so.1 libz.so.1.old
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
Based off fix at pptk issue #3
sudo apt update
sudo apt install mjpg-streamer-opencv-python
Create filter file. (/home/debian/opencv_filter.py)
import cv2
import numpy as np
/* | |
MATH | |
Raw Values | |
int joy_x_axis = nunchuck_buf[0]; | |
int joy_y_axis = nunchuck_buf[1]; | |
#include <SPI.h> | |
#include <WiFi.h> | |
char wifi_name[] = "WI-FI DSTR Data"; | |
char wifi_password[] = "dstrdstr"; | |
unsigned int localPort = 3553; // local port to listen on | |
WiFiUDP Udp; | |
char packetBuffer[255]; //buffer to hold incoming packet | |
char ReplyBuffer[] = "acknowledged"; // a string to send back |