Skip to content

Commit

Permalink
didi
Browse files Browse the repository at this point in the history
  • Loading branch information
meub committed Aug 16, 2022
1 parent 16a2156 commit 448b255
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ It has a dedicated mobile and desktop web interface with streaming video that al
## Requirements

* python, numpy, flask, adafruit_servokit, opencv-python
* gunicorn
* raspberry Pi 4 and [Adafruit Servo HAT](https://www.adafruit.com/product/2327)
* Gunicorn
* Raspberry Pi 4 and [Adafruit Servo HAT](https://www.adafruit.com/product/2327)
* lots of other hardware and 3d printed parts listed [here](https://www.printables.com/model/255165-swarmturret-web-controlled-foam-dart-turret)

## Getting Started

I've also included a script (keyboard-control.py) that makes it easy to test the servo movement from a USB keyboard. This is an important step for calibrating the min and max values for the X and Y axis servos. This project assumes you have the hardware required and have plugged your servos into the servo HAT for X axis, Y axis, and trigger into pins 13, 12 and 14 respectively.
This project assumes you have the hardware required and have plugged your servos into the servo HAT for X axis, Y axis, and trigger into pins 13, 12 and 14 respectively. I've included a script (keyboard-control.py) that makes it easy to test the servo movement from a USB keyboard. This is an important step for calibrating the min and max values for the X and Y axis servos.

Due to issues with lag, this solution runs as two separate Flask apps. One for the Websockets control on port 5000 and one for the streaming video on port 6001. After calibrating your X and Y servos and adjusting the Min/Max values to be correct, you can start both web apps by running `sh start.sh`. You can run `sh stop.sh` to stop both apps.


## Pictures

![Nerf Turret V1](/nerf-turret-v1.png)
Expand Down

0 comments on commit 448b255

Please sign in to comment.