A view weeks ago I was binge watching the great TV series "Park's and Recreation" and was always baffled by the ironic wisdom of Ron Swanson. He produces sentences like these:
"Strippers do nothing for me. But I will take a free breakfast buffet at any time, any place."
or
"Fishing relaxes me. It's like Yoga, except I still get to kill something."
So while looking for a small IoT project I could build with my WeMos D1/R1 I found a web API that gives you back a random Ron Swanson quote every time you call it and this was the calling for me to build a small box which would give me some Ron Swanson wisdom every time I push a button.
Side note: I you want to look closer at an image just click on it!
1. Electronics
First I would like to show the used Electronics a bit closer. The basis is a WeMos D1/R1 ESP8266 based board that has a Arduino Uno style PCB layout. With this we can connect to WiFi networks and therefore connect to the internet. These kinds of boards are mostly used for home automation, like controlling your lights via the internet.
Besides that I am using a 1602-LCD with I2C controller to display text. It is connected to the WeMos via I2C and to 5VDC for power.
The big button on the topside is NC (normally open) and connects D8 to GND when pressed.
On the left side of the case is a switch that cuts the power from the battery to switch the whole thing off.
To power the whole thing a 9V block battery is used. It can't be recharged but as I am not planning on running it all day that doesn't matter too me.
2. Code
In essence the WeMos connects to my local WiFi network and when the button is pressed it calls the web API and downloads and displays the quote.
The used API is: https://ron-swanson-quotes.herokuapp.com/v2/quotes
You can try it out yourself by clicking on it and refreshing the page.
3. Box 3D modeling
For the enclosure I modeled a simple box in Fusion360 where the WeMos can be screwed in with simple screws and the lid has a cutout for the LCD. The lid can be screwed to the box with M3 screws that will bite into the plastic.
The files for the box are released on thingiverse. Feel free to use them in your own Arduino project.
4. Assembly
In the end I assembled everything. For the button ans the switch I drilled hols in the box as I didn't modeled them. The WeMos got screwed down into its place and I used a piece of duct tape to hold the 9V battery. I connected the plugs I made for the LCD and the button to the small perfboard and closed the whole thing with M3 screws.
5. Demo
To demonstrate the box I uploaded a video on d.tube. You are welcome to check it out and leaving a like.
I hope you liked this small project. If anyone is interested in the code I can upload it as well. If you have any questions or recommendations for future projects make sure to leave a comment.
Die ist sehr nice geworden :)! Nur komm ich leider zu spät zum Voten dank dem dezenten Chaos die letzten Tage -.-"!^^
Was machst du jetzt mit der :)?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Na kein Problem. :D
Momentan steht die Box einfach so rum. Mit ihr kann ich aber auch nur angeben, wobei 95% aller ron Swanson gar nicht kennen und dadurch die Sprüche auch nicht lustig finden.... ^^
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Ja wie die steht einfach nur rum, noch kein Plan/Ort dafür :D?
Ich hab nur Mal reingeschnuppert (Serie), aber glaub ich kuck heut abend mal weiter, wenn der Charakter dir sogar ne Quote-Box wert ist :)! Letzteres kommt sicher auch auf den Humor des einzelnen an, ich lass mich überraschen xDD!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Naja, soll ich sie in einer Glasbox ausstellen? ^^
Parks und Recreation war mein Ersatz für The Office und ich habe die sieben Staffeln in weniger als 2 Monaten durchgesuchtet... :P
Aber ja. Der Humor ist schon recht eigen.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations! This post has been upvoted from the communal account, @minnowsupport, by Hawk399 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.
If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Award for the number of comments received
Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last post from @steemitboard:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You received a personal award!
Happy Birthday! - You are on the Steem blockchain for 1 year!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You received a personal award!
Thank you for taking part in the early access of Drugwars.
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @hawk399! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit