Overview
TINAH was the microcontroller used for this competition. It uses the Wiring language, a C-based open source language. Our algorithm made the robot tape-follow to the block depot and grabbed the blocks. Then it drove backwards back to the stacking area and simply dropped the blocks. We also developed a menu that allowed the user to set the parameters such as PID values and QRD detection thresholds.
Microcontroller
The microcontroller used for the robot was TINAH, a board custom-made for ENPH253.From the ENPH253 website:
"TINAH is the micocontroller-based board designed and built for the Physics 253 course. The board is based on two key elements:
- Wiring, an open-source electronics I/O board and open-source programming environment based on the Atmel ATMega128 chip.
- the TINAH board shield, a printed circuit-board shield designed and built for Phys253 and first used in 2009 by Engphys students and staff. The shield acts as a “buffer” for protecting the the digital and analog inputs and outputs of the Wiring board, and allowing for built-in functions, including:
- 4 DC motors (max 9V, 1A each with on-board h-bridge driver)
- 3 RC Servo motors
- buffered digital and analog inputs (i.e. protecting the ATMega128 with op-amps and digital buffer ICs)
- 2 switches and 2 knobs for on-board control
- 16×2 backlit LCD screen
- access to the enable/direction pins for external motor control
Many thanks to the funding sources which made the development of the TINAH boards possible: UBC Skylight, UBC Teaching and Learning Enhancement Fund, and UBC Physics and Astronomy"
Flowcharts
Tape-following flow chart:
Block-grabbing flowchart: