Skip to content

Instantly share code, notes, and snippets.

View ansarid's full-sized avatar

Daniyal Ansari ansarid

  • Texas A&M Engineering Experiment Station
  • College Station, Texas
View GitHub Profile
@ansarid
ansarid / hebi_beaglebone_instructions.md
Last active September 23, 2019 18:22
Setup Beaglebone with HEBI
  1. 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.

  2. Plug the HEBI module into Beaglebone using a USB to Ethernet adapter.

  3. 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.

  4. Install HEBI python API using sudo pip3 install hebi-py.

  5. Run python3 01a_lookup.py to get family name and module name.

  6. Run git clone https://github.com/HebiRobotics/hebi-python-examples for hebi-py examples.

@ansarid
ansarid / README.md
Last active March 4, 2022 14:22
Reading the BeagleBone Blue MPU-9250 Compass

1. Install the RTIMU Python Library.

git clone https://github.com/RPi-Distro/RTIMULib
cd RTIMULib/Linux/python
sudo python3 setup.py install

2. Compile calibration code.

cd ../RTIMULibCal/
@ansarid
ansarid / README.md
Last active October 30, 2019 16:20
Programming GPIO on the BeagleBone Blue

Controlling GPIO on the Beaglebone Blue.

Intro

  1. 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
@ansarid
ansarid / wifi_enterprise.sh
Created November 24, 2019 20:25
Connect Beaglebone to Enterprise WiFi
#!/bin/bash
reset
#Promt for root password
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
wifi=()
until ((${#wifi[@]} > 0)); do
@ansarid
ansarid / .asoundrc
Created November 25, 2019 16:29
Fix TTS Sound on BeagleBone Blue for RemoTV
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}