Wednesday, 29 March 2017

Final Project Reflection

With the final assignment complete. I would like to share a log journal I kept for the two classes we had to complete the project.

The assignment was filled with many challenging obstacles that were heightened by a time constraint. However, most importantly, this project helped me develop new strategy skills when tackling similar assignments. 

March 13th, 2017

Unfortunately, on this day the road conditions left me unable to physically attend class. I emailed my group and we developed an alternate plan: I will work on the physical building of the box which housed all of our components; while the other group members begin to work on the speaker component. 

I was able to finish the box during the night, while unfortunately, my group members were struggling with the speakers for the entirety of the class. 
In hindsight, we should have moved on to the other components once we realized the speakers were proving to be more difficult than anticipated. 

Nevertheless, our group had a productive first day! 


March 20th, 2017

Our final day was here too quickly! With all of us together, we used the first 5 minutes of class going over out game plan and dividing the tasks to utilize the time efficiently. 

Alyssa and I were responsible for wiring the lights and developing code that would yield the most interactive design. After much trial and error, 50 minutes into class, we pieced together a code that would alter the flashing light duration by how long the user pressed the button. For example, if they held the button for more than 2 seconds, the lights would change colors rapidly, as opposed to the slower more relaxed flash. And with some miracle, everything worked as planned! 

Of course, this was too good to be true, this is where our main issues kicked in. 

Sam and Sonia were still tirelessly working away with the speakers, trying to get everything to work. In the meantime, Alyssa and I began working on the motor. The motor was intended to be controlled by a button, unfortunately, time was ticking fast, and class was over soon. We successfully wired the motor together and wrote a suitable code. The code was very basic and just told the motor to move from right to left by 180 degrees. However, once we put the lights and motor on the same circuit, the lights stopped working. Dun dun dun.

We finally decided to ax the speakers and put all four brains together to try and figure out what was going on with the lights and motor. We were not able to come to a conclusion before class was over. 

Final Thoughts


Looking back, my one major regret during this project was the time spent on the speaker. While we do still have our hard effort to show for it, our effort would have been better used towards the smaller components. In the original outline, the speaker was defined as an "extra" component, if we had time. Spending all of our time on this, left us with little room to complete the more simplistic aspects we should have very well perfected. For future assignments, I will stress the importance of time management by allocating sections based on their importance and current resources. Overall, I had a positive experience working with my group as we sorted our way through an important learning curve.






Sunday, 12 March 2017

Arduino DYI: Vending Machine

A Vending Machine Powered by Arduino

 The purpose of this blog post is to review an Arduino-based DIY project. For this assignment, I have chosen to critically analyze A Vending Machine Powered by Arduino, made by Sevenmojoe January 15th, 2017.  You can follow the author's instructions using this link: https://www.hackster.io/Sevenmojoe/snacks-vending-machine-powered-by-arduino-f03296?offset=23&ref=channel&ref_id=424_trending_featured__. 


What is it?

This DIY project creates a snack vending machine that utilizes a variety of sensors and push buttons- which will later be explored- to dispense a snack if and when a coin is inserted.  


(S. 2017)


Application to Class Readings

While this project is far more complex than anything we learnt in class, the basic theoretical concepts were derived from our fundamental content.  We learned a lot of the components that the author utilizes in a much more basic context during our labs. To exemplify the use of lights, sensors and of corse an Arduino board. Comparing this project with class readings, however, was a little more complex- and involved a fair amount of stretching out the meaning of the intended content. Author Tarleton Gillespie notes that the more critical issue with enforcing copyright law is to control how one person will use something that they are given or that they purchase (Gillsepie 2006). While our discussion here has nothing to do with copyright infringement like Gillespie's paper explores, the idea that you cannot control how someone will use their piece of equipment opens up an interesting discussion. The intended use of the DIY project was to create a vending machine using Arduino-it is difficult to determine if the intended use is what it will, in fact, be used for. Anyone can take the steps outlined by Sevenmojoe and create something similar, but not what he has designed his instructions for. Or perhaps someone is given this piece of equipment and they later take all the pieces apart in order to use certain components for another project. Whatever the case is, all DIY projects are meant to be a creative exploration and are not designed to be used in a certain way. Just to open up minds to new techniques and possibilities with code and infrastructure. 

Required Components


This more complex project requires the use of many unique sensors, as well as cheaper components that can be acquired at a local part store. The following list is what the author, Sevenmojoe used to create their DIY.

Hardware:
  • ·      Arduino UNO & Genuino UNO
  • ·      Sensor Shield
  • ·      DC Motor 6V include the wheel
  • ·      Infrared (reflective) or line follower sensor – used for product detection
  • ·      Proximity (electromagnetic) sensor, used for coin senor number 1
  • ·      Distance Interrupter (infrared/optocoupler) sensor, used for coin sensor number 2
  • ·      Power supply 6V for DC motor
  • ·      4 switch Relay
  • ·      LCD (Nokia 5110 LCD)
  • ·      LED (generic)
  • ·      Push Button (Yellow, Green and Red)


Software Apps:
  •       Arduino IDE
  •       Solidworks- or any other 3D model maker



(S. 2017)


Out of this list of components, I was pleasantly surprised that I knew more of them than I thought. Even the pieces I did not think I knew, once they were further researched, I discovered I was already aware of them- and in fact, in some cases I had even worked with them in labs. With the few components I was not familiar with, I decided it would be best to further explore them.

Relay
These are switches designed to open and close circuits both electronically and electromechanically. They can also be used as amplifiers, by converting small currents into larger ones (Woodford 2015). In this DIY it was used in the coin slot. Although it is not described, I am assuming that once the coin is inserted it would activate the coils to dispense the snack. Therefore using the switching aspect of relays, not an amplifier. 

Sensor Sheild 
This component is actually built into many Arduino Boards. With the presence of a sensor shield in your Arduino, you will be able to connect many input and output devices (Arduino-Info 2017).  I assume this will help with the usability of the components and not so much the vending machine itself. However, I cannot be sure if this shield has any external affects to the project. 



Reflection

After the analysis of this DIY project, I realized that these seemingly complex assignments are built off of our fundamental knowledge. Doing this analysis has made me more comfortable with the final project. As the author broke down all of the steps with his work, I realized that this "big" assignment in our class is just a combination of a lot of smaller components. For example, my group is making a music box. One by one we will be doing things such as adding in sensors, audio and lights. These are all components we have learned prior from labs- but by compiling them together we will be able to create something more substantial. 

Work Cited 

Gillespie, T. (2006). Designed to ‘effectively frustrate’: copyright, technology and the agency of users. New Media & Society, 8(4), 651-669. doi:10.1177/1461444806065662


S. (2017, January 15). Snacks Vending Machine powered by Arduino. Retrieved March 13, 2017, from https://www.hackster.io/Sevenmojoe/snacks-vending-machine-powered-by-arduino-f03296?offset=23&ref=channel&ref_id=424_trending_featured__



SensorShield. (n.d.). Retrieved March 12, 2017, from https://arduino-info.wikispaces.com/SensorShield


Woodford, C. (2015, May 08). How do relays work? Retrieved March 12, 2017, from  http://www.explainthatstuff.com/howrelayswork.html