|
||||||||
|
Warning: 1. Incorrect power connection to any electronic and electrical equipment may seriously damage them or even cause a fire hazard or explosion. Users must take care to identify the correct pins and supply an acceptable voltage to operate them safely. A good quality power supply unit with short circuit protection is highly recommended. 2. Be careful with the current load when conducting tests with motors. You can use an ampmeter to find out the total current. Heatsinks must be fitted to protect the voltage regulators from overheating. 3. Since the L293D motor controller IC is able to take 600mA of current per channel, so, be cautious not to exceed it's limit. SN754410 is a perfect substitute which can deliver upto 1A per channel. 4. Since all the outputs of ULN2003 IC will be ON initially , therefore, when conducting tests for (common VCC) unipolar motors, DO NOT connect the Common lead to the +6V terminal until the program is running, just to avoid excess current load. 5. Because of the working mechanism of the Video Camcorder, the 7-Segments and LEDs in the videos look flickering, but, in reality, they are not! Reference: TinyC, Operating Manual |
| Click this link to see MT-SC13SQ Servo Sequencer in action, http://www.mcu.hk/SQ.php |
| Selected experiments with MicroBoard and MT chips |
Experiment
Description |
Involved functions
/ Notes |
Program Listing |
Video / Demo |
Refreshing 7-Segments by using the Timer
Interrupt |
This feature is impossible from our competitors! |
||
2x16 LCD control and display demo |
A native LCD implementation in TinyC |
||
MT Motor Controller in TinyC |
Implementation of the MT protocol in
TinyC |
||
Displaying characters |
writes() |
||
A random number generator |
writei(), random() |
||
Displaying numbers in different radix |
writei() |
||
Displaying a raw byte |
writeb() |
||
Showing LED trains |
toggle(), delay() |
||
A number counter |
writei() |
||
TinyC implementation of quicksort algorithm |
Just to show the power of TinyC |
||
Test input keys |
scankey(), getkey(), writec() |
||
Bits complement test |
writeb() |
||
Factorial recursion test |
writei() |
||
IR decoder |
ircode() |
||
Analogue to digital conversion |
readadc() |
||
Digital to Analogue conversion |
sys() |
||
Real Time Clock |
sys(), readsys(), writec() |
||
Digital Clock (by using Timer Interrupt) |
timer interrupt, writec() |
||
Testing interrupts |
Interrupts in TinyC |
||
Serial communication with PC |
setcomm(), readm(), writem() |
||
Serial communication with PC (with USB-COM) |
setcomm(), sys() |
||
Making a time-bar |
getkey(), delay(), toggle() |
||
Sound generation |
sound(), delay() |
||
Making a piano |
sound(), getkey(), pinhigh() |
||
EEPROMs tests |
readm(), writem(),writes() |
||
Test all the EEPROMs, 7-Segments, LED
bars and speaker |
pinlow(), pinhigh(), sound(), delay(),
readm(), writem(), writes() |
||
Driving a unipolar stepper motor |
pinlow(), pinhigh(),delay() |
||
Driving a unipolar stepper motor with
speed control |
pinlow(),pinhigh(),delay(),pinstate() |
||
Driving a bipolar stepper motor |
pinlow(), pinhigh(),delay() |
||
Move a servo by numeric keys |
servo(),writec(), getkey() |
||
Move a servo repeatedly |
servo(),writei() |
||
Move servos individually and simultaneously |
servo(), delay() |
||
| Robotics Experiments | |||
Control motors by numeric keys |
getkey(),pinlow(), pinhigh(),delay() |
||
Control motors by IR remote control |
ircode(),pinlow(), pinhigh(),delay() |
||
Control motors by serial comms. |
setcomm(),readm(),pinlow(),pinhigh(),delay() |
||
A black-line following robot |
pinstate(),pinlow(),pinhigh(),delay() |
||
A light-seeking robot |
pinlow(),pinhigh(),delay(),I/O interrupt |
||
An autonomous object-avoiding robot |
ircode(),pinstate(),pinlow(),pinhigh(),delay() |
||
An autonomous object-avoiding robot+IR+4-Steps |
ircode(),pinstate(),pinlow(),pinhigh(),delay() |
Copyright © 2007 MicroTech Systems Limited. All rights reserved.