From ba797069674d28d2ee780b41871f47dbae5b4837 Mon Sep 17 00:00:00 2001 From: "Haoran S. Diao" <0@hairydiode.xyz> Date: Thu, 24 Jan 2019 13:31:27 -0500 Subject: added CSC project instructions/specifications --- cont/csc-new.html | 83 +++++++++++++++++++++++++++++++++++++++++ csc-new.html | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 15 ++++---- 3 files changed, 199 insertions(+), 7 deletions(-) create mode 100644 cont/csc-new.html create mode 100644 csc-new.html diff --git a/cont/csc-new.html b/cont/csc-new.html new file mode 100644 index 0000000..4cb5709 --- /dev/null +++ b/cont/csc-new.html @@ -0,0 +1,83 @@ +[TITLE] [DATE] +-------------------------------------------------------------------------------- +[SETTITLE]Control Systems Club Web Controlled Servo Instructions +[SETDATE]1-24-2019 + +Ok everyone, we'r going to start a web controlled servo project. + +What we want, is a webpage where you click "move servo" and a servo moves. + +It will work like this, with 4 components we have to write: + +The Front End +The Backend +The Servo Controller +The Arduino Firmware + ++---Digital Ocean VPS--+ +--Control Computer--+ +|HTML/CSS/JS Front End | HTTPS POST |C Servo Controller | +|Golang Backend |====================| | ++----------------------+ +--------------------+ + || || + ||H ||U + ||T ||S + ||T ||B + ||P || + ||S ||S + || ||e + +-Client Computer-+ ||r + | Some sort of | ||i + | Browser | ||a + | | ||l + | | || + | | +----------------------+ + +-----------------+ |C/C++ Arduino Firmware| + | | + +----------------------+ + || + ||S + ||e + ||r + ||v + ||o + || + ||W + ||i + ||r + ||e + || + +-Servo-+ + | | + +-------+ + +The Frontend will consist of html templates, as well as supporting css and js +files, that will implement a simple UI that allows the user to click on a button +that sends a POST request to the backend to move the servo. +W3 Forms Tutorial +Inline CSS Tutorial +CSS Display Property Tutorial + +The Backend will be a Golang executable that will be listening for HTTPS +connections, and serves the frontend, as well as listen for POST requests from +both the Frontend and the Control Computer. A POST request from the frontend +updates the desired state of the servo, and a POST request from the Control +Computer will update the actual state. Both the Actual state and the desired +state should also be served as well. +Go net/http and html/template Libraries Tutorial + +The Servo Controller will poll the Backend for the desired state, communicate +this to the Arduinoi via the RS-232 Library, and return this desired state via +POST to the backend so as to update the actual state. +RS-232 Library +RS-232 Example +cURL API +cURL Code Examples + +The Arduino Firmware will commands over the USB Serial Wire, and output that to +the servo. +Arduino Serial Tutorial +Arduino Servo Tutorial + + diff --git a/csc-new.html b/csc-new.html new file mode 100644 index 0000000..3b1835d --- /dev/null +++ b/csc-new.html @@ -0,0 +1,108 @@ + + +Control Systems Club Web Controlled Servo Instructions + + + + + +
+
+--------------------------------------------------------------------------------
+
+>HairyDiode                                             
+
+--------------------------------------------------------------------------------
+Control Systems Club Web Controlled Servo Instructions                                                   1-24-2019
+--------------------------------------------------------------------------------
+
+Ok everyone, we'r going to start a web controlled servo project.
+
+What we want, is a webpage where you click "move servo" and a servo moves.
+
+It will work like this, with 4 components we have to write:
+
+The Front End
+The Backend
+The Servo Controller
+The Arduino Firmware
+
++---Digital Ocean VPS--+                    +--Control Computer--+
+|HTML/CSS/JS Front End |   HTTPS POST       |C Servo Controller  |
+|Golang Backend        |====================|                    |
++----------------------+                    +--------------------+
+         ||                                          ||
+         ||H                                         ||U
+         ||T                                         ||S
+         ||T                                         ||B
+         ||P                                         ||
+         ||S                                         ||S
+         ||                                          ||e
+ +-Client Computer-+                                 ||r
+ |  Some sort of   |                                 ||i
+ |  Browser        |                                 ||a
+ |                 |                                 ||l
+ |                 |                                 ||
+ |                 |                        +----------------------+
+ +-----------------+                        |C/C++ Arduino Firmware|
+                                            |                      |
+                                            +----------------------+
+                                                     ||
+                                                     ||S
+                                                     ||e
+                                                     ||r
+                                                     ||v
+                                                     ||o
+                                                     ||
+                                                     ||W
+                                                     ||i
+                                                     ||r
+                                                     ||e
+                                                     ||
+                                                 +-Servo-+           
+                                                 |       |    
+                                                 +-------+     
+
+The Frontend will consist of html templates, as well as supporting css and js
+files, that will implement a simple UI that allows the user to click on a button
+that sends a POST request to the backend to move the servo.
+W3 Forms Tutorial
+Inline CSS Tutorial
+CSS Display Property Tutorial
+
+The Backend will be a Golang executable that will be listening for HTTPS
+connections, and serves the frontend, as well as listen for POST requests from
+both the Frontend and the Control Computer. A POST request from the frontend
+updates the desired state of the servo, and a POST request from the Control
+Computer will update the actual state. Both the Actual state and the desired
+state should also be served as well.
+Go net/http and html/template Libraries Tutorial
+
+The Servo Controller will poll the Backend for the desired state, communicate
+this to the Arduinoi via the RS-232 Library, and return this desired state via
+POST to the backend so as to update the actual state.
+RS-232 Library
+RS-232 Example
+cURL API
+cURL Code Examples
+
+The Arduino Firmware will commands over the USB Serial Wire, and output that to
+the servo.
+Arduino Serial Tutorial
+Arduino Servo Tutorial
+
+
+
+
+
+
+ + diff --git a/index.html b/index.html index 179589d..6874f61 100644 --- a/index.html +++ b/index.html @@ -44,16 +44,17 @@ Where's all the other stuff you host from this domain? My Mastodon Instance Where's all the content? Scroll Down -[Some Doodles] 2-27-2018 -[Moving This Site] 6-26-2018 +[Control Systems Club Web Controlled Servo Instructions] 1-24-2019 +[𘤝𘤞𘤀𘤛・𘤌𘤛𘤧𘤁・𘤊𘤡・𘤈𘤝-Iokalant Writing System-优卡文字系] 1-26-2018 [PGP Public Key] 6-26-2018 -[Omnicom Writeup] 1-12-2018 +[Moving This Site] 6-26-2018 +[Making This Site] 11-13-2017 [A Distributed Network Idea] 1-3-2018 -[𘤝𘤞𘤀𘤛・𘤌𘤛𘤧𘤁・𘤊𘤡・𘤈𘤝-Iokalant Writing System-优卡文字系] 1-26-2018 -[Earbud Holders] 3-7-2018 -[Control Systems Club] 2-21-2018 +[Omnicom Writeup] 1-12-2018 [Leaving ORION] 2-9-2018 -[Making This Site] 11-13-2017 +[Control Systems Club] 2-21-2018 +[Some Doodles] 2-27-2018 +[Earbud Holders] 3-7-2018
-- cgit v1.1