https://github.com/nstseek/arduino-remote-control
Arduino remote PWM control thought LAN using node/express and RS232.
https://github.com/nstseek/arduino-remote-control
arduino duty-cycle express node pwm rs232
Last synced: 3 months ago
JSON representation
Arduino remote PWM control thought LAN using node/express and RS232.
- Host: GitHub
- URL: https://github.com/nstseek/arduino-remote-control
- Owner: nstseek
- Created: 2020-11-19T01:14:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-24T19:41:42.000Z (over 4 years ago)
- Last Synced: 2025-01-16T09:39:40.666Z (5 months ago)
- Topics: arduino, duty-cycle, express, node, pwm, rs232
- Language: JavaScript
- Homepage:
- Size: 1.03 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arduino-remote-control
This project controls an Arduino connected via USB using RS232 communication through the network, using an node/express server.
A single route in the API receives a query parameter that contains a value, this value will be written in a default PWM port connected to the Arduino.
This project was created to control a LED using hardware Pulse Width Modulation (PWM). Arduino has a few ports that can use PWM.## PWM
Pulse Width Modulation is a strategy that tries to manipulate the average power creating a clock in the output port that has a dynamic duty cycle.
This duty cycle can be from 0 to 255 in Arduino, with 0 being 0% and 255 being 100%.
The usual frequency for PWM outputs in Arduino is 480Hz, enough for the human eye to not see the LED blinking but instead see a weaker/stronger continuous light.