Monday, December 19, 2011

Change Mechanism

I revised some parts of the program and added a section to calculate and dispense change.  However, there's still some issues to fix.  I'm also having some troubles with MyBlocks....

Sunday, December 11, 2011

Public

Well, this blog finally went public.

Enjoy!

Friday, December 2, 2011

One NXT

Mwuhahaha.

I made it run off of one NXT and five other motors off the PF battery box.  Sorry that I don't have any pictures of the two-NXT version.  I also apoligize for the terrible quality.
Let's see....

Off the NXT:
Motors
One NXT motor to analyze the size of the coin (inspired by a coin-analyzer I saw online)
One NXT motor to dump the analyzed coin into the sorting tray or down the return chute
One NXT motor to move the sorting tray
Sensors
One RIS light sensor to detect the coin in the coin slot
One touch sensor for the coin analyzer
One NXT light sensor to detect the coins coming out the change dispenser
One PF IR link to communicate with the PF

Off the Power Funcions:
Motors
One PF M motor for the change-dispensing mechanism
Two PF XL motors for the upper two dispensers
Two "newer" RIS motors for the lower dispensers

In order to use only one NXT, I had to eliminate a sensor so I could plug in the IR link in the freed port.  I took out the touch sensor used to detect the starting position of the sorting tray by replacing it with a chunk of code that saw when the motor was not able to rotate a set number of degrees in a certain amount of time.  This occurs when the sorting tray is in its start position and cannot go any further.  The motor cannot push further and the code detects that it is not making any more progress.  Thanks to other online project for this idea, such as this one.

Getting closer...hope to use this again to make money in December or onward.