https://github.com/aldotestino/arduino-servo-web
Control a servo motor through a web app
https://github.com/aldotestino/arduino-servo-web
arduino chakra-ui express johnny-five react servo-motor socket-io
Last synced: 7 months ago
JSON representation
Control a servo motor through a web app
- Host: GitHub
- URL: https://github.com/aldotestino/arduino-servo-web
- Owner: aldotestino
- Created: 2022-08-16T18:08:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T17:14:04.000Z (about 3 years ago)
- Last Synced: 2025-01-18T11:14:45.852Z (9 months ago)
- Topics: arduino, chakra-ui, express, johnny-five, react, servo-motor, socket-io
- Language: TypeScript
- Homepage:
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arduino-servo-web
Control a servo motor through a web app
## Schema

## Setting
1. Connect the Arduino to the PC
2. Install dependencies in `backend` and `frontend` with:
```sh
yarn
```
3. Start backend server
```sh
cd backend
yarn start
```
4. Start React App
```sh
cd frontend
yarn dev
```## Usage
* From React App
* From Custom CLI
* Get degrees
```sh
cd backend
yarn cli -g
```
* Set degrees
```sh
cd backend
yarn cli -s
```
* With curl
* Get degrees
```sh
curl "http://localhost:3000/"
```
* Set degrees
```sh
curl -x POST "http://localhost:3000/[degToSet]"
```## Screenshots
