Midterm Project Button Communicator

So for my midterm project I envisioned a button that would communicate some sort of message when pressed a certain amount of times. Lets say, 3 presses would say “I need to use the bathroom” and 4 would be “I’m hungry!”. This would help people who need assistance to do something. Depending on the number of presses a different message would pop up on a screen somewhere on a web page. I could use the serial monitor in order to display the messages, but I couldn’t get messages to display on the html page. Maybe because of a fast refresh rate of the page or something in my code. But I kept getting stressed about why my code wasn’t working.

So while I was thinking about what to do, I thought about the Lifeline commercial where old people fall and they say “Help I’ve fallen and I can’t get up”. I don’t know why, but I thought that was kind of funny because how fake their acting is in the commercial and the memes that came from it. So I decided to make it display at least that message.

The is my breadboard set up for this project.

My code for the set up was pretty simple and I’ve included it in a github here, https://github.com/ninjadan56/Midterm-Net-devices.

My web-page was real simple, it only displayed LifeLine and then waiting for response right below. When the button was pressed it would display “Help!”. This is a video of me demonstrating the button.