Professional Documents
Culture Documents
1.remote Controlled Embedded System
1.remote Controlled Embedded System
net/publication/268056877
Article
CITATION READS
1 72
4 authors, including:
Some of the authors of this publication are also working on these related projects:
Computationally Intelligent and Efficient, Quantum-inspired Protocols for Disease Diagnosis and Health Informatics View project
All content following this page was uploaded by Jinhua She on 09 October 2015.
2) Logic Circuit 14
Program bus Stack
Memory
binary logic, logic circuit, TTL and CMOS. Command Register Address
File
Register
3) Microcontroller (Execute) 7
Register
(8bits)
I/O pins
5) Principle OSC
Control Unit
6) IO ports
reset W register
how to program input and output ports.
7) Wait routine
how to program a wait routine. Fig. 4. Principle of Microcontroller (PIC
8) Timer routine microcontroller).
17
DIP SW
10Kx4
10K
470x4
Meter1
LMC662 1/2
PIC16F88
84,819,etc
20K
10K
20K 10K
Meter2
20K 10K
20K 20K
1K
LMC662 2/2
3. REMOTE LABORATORY SYSTEM The Server PC controls the monitor system and also
offers guidance pages.
Fig. 2 schematically presents the structure of the
experiment system. Learners access the system by A web camera is used to observe the target system.
using their own browser. Learners can check the system’s motions such as LEDs’
lighting on and off, analog voltage by meters or motor’s
The remote laboratory system is composed of three parts: action.
a target system, a monitoring system, and a Server PC.
The proto-type target system includes a microcontroller, 4. EXERCISES
switches for input, LEDs for output, D/A and A/D
converters, as shown in Fig. 5. The other peripheral Some exercises of programming for the target system is
devices such as motors, encoders or robots will be presented in this chapter.
included in the future. Monitoring system has following
functions. 4.1 First Exercise
1) Writing the program code into the target First exercise is to trace the CPU action and to learn basic
microcontroller, which learners assembled in their IDE usage. List 1 shows the first program list. After
own PC. analyzing this program such as considering the value of
2) Setting input signals such as switches or analog W register, learners write and assemble this program, and
voltage to the target microcontroller according to trace it by using simulator. Fig. 6 shows a screenshot of
learners’ requests.
3) Monitoring output signals such as LEDs or List 2. I/O programming.
analog voltage of the target microcontroller and ;ex10
sending the data to the learners. include "p16f84.inc"
list p=16f84
;
List 1. First programming. BSF STATUS, RP0 ;Bank 1
;ex1 MOVLW B'11111111'
include "p16f84.inc" MOVWF TRISA ;RA for Input
list p=16f84 CLRF TRISB ;RB for Output
; BCF STATUS, RP0 ;Bank 0
MOVLW b'00010001' ;
CLRW MOVF PORTA, W ;PortA => W
; MOVWF PORTB ;W => PortB
sleep ;
end sleep
;ex1 end end
;ex10 end
18
simulator is enough for learners, because there are no Learners can run the system just by accessing the web
input- or output- signals. page of the course.
List 2 shows the exercise program using data input and [1] Blake M. B. “A Student-Enacted Simulation
output. After studying the definition of use of input- and Approach to Software Engineering Education”,
output- ports, the program can be tested by the simulator. IEEE Trans. on Education, Vol. 46, No. 1, pp.
It is very easy to test it, however this is not so interesting 124-132, 2003.
for learners as they can not image the actual action such [2] Moallem M. “A Laboratory Tested for Embedded
as LEDs’ lighting on and off. Our proposed remote Computer Control”, IEEE Trans. on Education, Vol.
controlled system should be used in such case. 47, No. 3, pp. 340-347, 2004.
[3] Amaral J. N, Berube P. and Mehta P. “Teaching
4.3 Motor-Control Exercise Digital to Computing Science Students in a Single
The lesson will be guided step by step as shown in Fig. 3. Academic Term”, IEEE Trans. on Education, Vol.
The final exercise is to program the target board to 48, No. 1, pp. 127-132, 2005.
control the speed of a motor by using D/A, A/D, PWM, [4] Bindal A., Ahmed B.N. and Raimundo L.A. “An
Encoder and so on. This type of program is quite Undergraduate System-on Chio(SoC) Course for
complicated and is a little bit difficult to test by a Computer Engineering Students”, IEEE Trans. on
simulator. The testing using the remote controlled system Education, Vol. 48, No. 2, pp. 279-289, 2005
is very effective and it is considered very attractive for [5] Murakoshi H., Izumi H. and Ishijima S. “Proposal
learners. of a Web-Based Training System for Digital Circuit
Experiments”, Trans. of Japan Distance Learning
5. CONCLUSIONS Association, Vol. 3, pp. 35-39, 2002.
[6] Ohyama, Y., J.-H. She, H. Hashimoto, T. Yamaura
A remote controlled embedded system via the Internet and K. Oishi “A Web Based Lecture Note on
has been described in this paper. After studying the Feedback Control with Remote Lab”, in Advances
structure of the microprocessor, programming technique in Control Education 2003, Editor: Lindfors,
and testing technique on a simulator in a class, learners pp.113-118, Elsevier Science Ltd. 2003.
can test their own program on a target system using this
remote system. This system is very useful when the target PICmicro® Microcontrollers, MPLAB®/MPASM®/
system includes peripheral devices such as motors, A/D MPSIM® Integrated Development Environment (IDE)
and D/A converters, and so on. The proto-type system are trademarks of Microchip Technology incorporated..
was set up in a laboratory and connected to the Internet.
19