A lot of progress has been made. We’ve got about 400 lines of code written. We’ve been writing the code to detect the human movement and code to have the motors move the magnet and place the computer’s pieces.
On Monday we received the magnetic Reed switches. After testing them we found that they were exactly perfect for what we needed. We were very lucky.
Tuesday we weaved all the wiring for the chessboard and finished wiring for the two stepper motors. It needed to look clean because there will be a lot of wires from the chessboard. Here is a picture of the wiring for the stepper motors:
On Wednesday we worked on more code and glued the punchboards together into one 2 foot by 2 foot board. Here the board can be seen being glued:
On Thursday we soldered on all 64 reed switches exactly in the center of each 3 inch by 3 inch square. This was very tedious and took forever.
On Friday we discovered that our circuit diagram for the chessboard detection was wrong. The way we had it designed was so that the chessboard would act like a keypad and only be able to detect one magnetic piece at a time. With three or more pieces there would be ghosting and shorting of wires that would just destroy any hopes of determining what squares the magnets were on. We were very lucky that we found an easy solution to this: We just had to wire a 1N4148 diode in series with each switch to the input rows. We also had to change the RTI to send only 1 column high at a time and the rest low, instead of keeping all columns high and sending 1 low at a time. These two changes resulted in there being no shorts of 5V to inputs from other columns when a single column was driven high because the diodes stop current flow in the wrong direction and act as open circuits. For more detail see http://www.dribin.org/dave/keyboard/one_html/. We used 1N4148 diodes because they have a faster switching time than 1N4004 diodes. Here is the new diagram:
We also got the final parts we needed to begin construction on the XY-positioning system; The circular gear:
Tim was awesome and drilled the holes in the gear mount so that we could connect our stepper motors to the gears. The pack of gears we ordered came with two sizes of circular gears; a 1-inch radius gear and a half-inch radius gear. We chose to use the half-inch gear so that there would be less torque on the motors and therefore help make sure that the motor will in fact turn the gears on the XY table.
On Saturday we started working on the XY table again. We glued a gear to a motor:
We also found that we will need to raise the linear gears so that the smaller gear can come in contact with the teeth of the linear gears.
This will consist of a lot of construction and testing. Luckily we only have two days of classes and no more homework for any of them.
No comments:
Post a Comment