Thursday, June 28, 2012

Candy Machine III Coin Differentiation Prototype

Wanting to improve over his old Candy Machine, young humanoid began a series of prototypes for a new one.  This prototype utilized an idea young humanoid saw online for coin differentiation.  The coin would be dropped in the slot and detected by the light sensor before falling into a bucket.  The near wall of the bucket was connected to a touch sensor.  A motor would move the touch sensor, and thus the wall, into the bucket, pushing the coin against the far wall.  When the coin could not be pushed further, the advancing wall would then press the touch sensor.  The encoder value of the NXT motor moving the sensor would then be read.  A smaller coin would result in a higher value, because the motor had to move further before the sensor was activated.  Thus, values could be calibrated, and the machine could determine the coin that was placed into it.