|
TrikiBoard 2Before reading this page, I hope you have already read the Triki Board Overview. Block Diagram of TrikiBoard-2 In the block diagram of TrikiBoard-2 above:
Download
How to Make itTo get the PCB made:The process to get the PCB made has 2 steps:
Step 1: Getting the Film Made:
Step 2: Getting the PCB Made:
Soldering:
How to Use TrikiBoardAs mentioned earlier, TrikiBoard Version 2 is very simple board just to give a head-start to Yantriki Level 3 participants who need a Microcontroller Board to control their robots, and it forms a base for EDL Beginners if all they need is a Serial Link to PC or Memory interface to mcu to check their initial project designs. Power Supply: Apply 8 to 12 volts through the connecter labeled 'Vbatt'. This Battery voltage shall be used to drive the motors by the board. The 7805 chip on-board shall produce 5 volts for the microcontroller. If the 7805 or L298D gets heated too much on your board, add a Heatsink to these chips. Commonly available 7805 would require a heatsink. Program the microcontroller with simple test programs first like blinking an LED first. Then write bigger code. Provisions on TrikiBoard ver. 2.1Dual H-Bridge for DC MotorsThe board can drive 2 DC Motors (which maybe wheel-drive motors). The chip L298D is Dual H-Bridge chip. The motor directions are controlled by the 4 port pins as follows
Speeds of the Motors can be controlled by generating a PWM on these Port pins by the PWM generators built in the PIC.
See a quick explanation of how PWM is used to control the speed . In other mechatronic applications, a Bi-polar stepper motor (usually 4-wire type) can also be controlled if its 2 windings are connected to MOT1 & MOT2 connectors instead of 2 dc-motors. (see below). The 2 on-board LEDs associated with each Motor can be used for debugging. Red LED would signify one motor direction and Green the opposite. The L298 can drive practically 12V, 1A consuming motors by each driver. NOTE: The actual Voltage supplied
to the DC motor would be = Vbatt - Vdrop_in_L298D_IC Though the TrikBoard is protected against reverse battery connection, the L298D IC gets the Vbatt supply directly, and hence, is not protected by diode D1. (so that there is no loss in Motor Voltage due to Vdrop_D1). Hence don't take things for granted while connecting the battery. Running 2 Stepper Motors Click here to see how different kinds of Stepper Motors can be connected to TrikiBoard-2. RS232 PortA serial link can be established between a PC and TrikiBoard by EDL junta if needed, and Yantriki users for debugging (Note: in actual Yantriki Contest (maze-solving) no off-board link/processing is allowed). If needed, connector named 'RS' has to be connected to the the 9-pin Serial connector of the PC as follows.
Hyperterminal in windows can be used to check the serial link. Use a simple serial test program to just send a character on the serial port, and see it on the Hyperterminal screen after setting the proper baud rate etc (the same which you set in the code of the MCU). 15 Digital IO Lines and 8 Analog lines and prototyping AreaThe 15 digital lines are available on pin headers JP1 & JP4. Out of these, 8 can be used as ADC input lines of the MCU, when enabled by software. The general purpose PCB area can be used to add simple sensor amplifier circuits etc. NOTE the Vcc and GND tracks
running on the 2 columns of the holes on this general purpose area. Programming To write and simulate programs you can download PIC cross assembler tools from Microchip. There are plenty of other VERY useful software and APPLICATION NOTES on the Microchip site. The "Hex files" generated after compiling the code, are to be burned in the
microcontroller using a programmer. Sample & Test Code-- Sensor Links (Yantriki Level 3 specific)Sensors associated circuits are deliberately not provided with TrikiBoard, because there can be too many sensing styles, strategies, and circuits, there is lot of scope of innovation here. The reason TrikiBoard was designed, is that many needed a microcontroller board to run their algorithms on, and were trying to find ways to mount the the usual 8051 Kit on the robot. Here are some links which could be useful, but I guess you can do a better google search and spend more time searching circuits (or making your own).
Vivek Vaid (for email address: replace <|a-t|> by @ above and _ by . )
|