Skip to content

Instantly share code, notes, and snippets.

Paul Spelman paulspelman

Block or report user

Report or block paulspelman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paulspelman
paulspelman / gist:f7e10b0467d05b6f8e72e79b0412f2b3
Last active Jul 28, 2019
Twitter pill dispenser project code
View gist:f7e10b0467d05b6f8e72e79b0412f2b3
A caveat - my aim here was just to get this code to work. As I'm pretty new to coding this should not be considered clean or good code, I just basically kept trying stuff till I got it to work. If this code helps other beginners make progress on their own projects, great!
These tutorials helped a ton:
https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-communication-with-node-js/
https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-control-of-an-arduino/
And I based my pill dispenser on this one, after a simpler version failed - https://www.youtube.com/watch?v=tcoCbNUKJPc&list=WL&index=17&t=0s
-----------------------------------------------------------------------------------------
Here is the Javascript code, it's heavily commented to make things as clear as possible:
-----------------------------------------------------------------------------------------
You can’t perform that action at this time.