Skip to content

djsamseng/Grigio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grigio

A companion for Pinot

Requirements

  • Ubuntu 20.04.3 LTS 64-bit Nvidia RTX 3090
  • Webcam
  • Total Wireless LG K31 Rebel Prepaid Smartphone
  • Arduino Nano 33 Iot
  • BETU MG996R Servo Motor (11x)
  • Bolsen 2 DOF Short Pan and Tilt Servos Bracket Sensor Mount Kit (5x)
  • Aideepen ROT3U 6DOF Aluminium Robotic Arm Kit Silver Mechanical Robotic Clamp Claw for Arduino Without Servo
  • Professional Metal Robot Arm/Gripper/Mechanical Claw/Clamp/Clip with High Torque Servo, RC Robotic Part Educational DIY for Arduino/Raspberry Pie, Science STEAM Maker Platform (Black)
  • Steel brace with M4 screws and bolts
  • M2 screws and bolts (about 20x each)
  • 22 AWG wire

Tools

  • Dowell 10-22 AWG Wire Strippers
  • Teenitor Solder Sucker
  • Kaiweets Digital Multimeter
  • Kungber DC Power Supply 30V 10A
  • Weller SP80NUS 80-Watts LED Soldering Iron

Installation

Note that socket.io versions need to be compatible. Here we use JS Socket.IO 4.x, python-socketio 5.x, and python-engineio 4.x

server

$ cd server && yarn install

Client

$ cd client && yarn install

pycli

$ cd pycli
$ apt-get install python3-pyaudio portaudio19-dev # pyaudio dependencies
$ python -m venv env
$ source ./env/bin/activate
$ pip install -r requirements.txt

android

  • Install the Android 11.0 (R) API 30 SDK from Android Studio, Tools, SDK Manager
  • The first time running the app will likely fail. Go into setting on the phone, Apps, Permission manager, Camera, Jade, See all Jade permissions, and grant Camera, Microphone and Storage permissions.

Audio files

raspberry pi

$ sudo apt-get install cmake libjpeg8-dev
$ wget https://github.com/jacksonliam/mjpg-streamer/archive/master.zip
$ unzip master.zip
$ cd mjpeg-streamer-master/mjpg-streamer-experimental
$ make
$ sudo make install

## Run

### server
```bash
$ cd server && yarn build && yarn start

client

$ cd client && yarn start

http://localhost:3000

pycli

$ python3 main.py # python 3.8.10
$ pkill -9 python3 # sometimes needed to fully close and unlock the camera

android

  • Connect the android phone, unlock the phone and trust the computer and select the phone in android studio (LGE LGL355DL) and run

raspberry pi

$ /usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 -n -f 10 -r 1280x720" -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8085 -w /usr/local/share/mjpg-streamer/www"
$ /usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video2 -n -f 10 -r 1280x720" -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8086 -w /usr/local/share/mjpg-streamer/www"

About

A companion for Pinot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published