Introducing 32-bit microcontroller technologies to a technology teacher training programme

Similar documents
1 Introduction. 2 Embedded Electronics Primer. 2.1 The Arduino

Training Schedule. Robotic System Design using Arduino Platform

RUNNYMEDE COLLEGE & TECHTALENTS

Mindstorms NXT. mindstorms.lego.com

TUTA/IOE/PCU All rights reserved. Printed in Nepal Fax: My First Humanoid Robot An Experience worth Sharing with Freshmen and Sophomore

Learning serious knowledge while "playing"with robots

Mechatronics Educational Robots Robko PHOENIX

Mechatronic demonstrator for testing sensors to be used in mobile robotics functioning on the inverted pendulum concept

Embedded & Robotics Training

Using an Arduino-based low-cost DAQ in science teacher training

Gesture Controlled Robotics Workshop

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

Introduction To Embedded Systems: Using ANSI C And The Arduino Development Environment (Synthesis Lectures On Digital Circuits And Systems) Ebooks

Embedded & Robotics Training

A Do-and-See Approach for Learning Mechatronics Concepts

Closed-Loop Transportation Simulation. Outlines

AC : THE UBIQUITOUS MICROCONTROLLER IN MECHANICAL ENGINEERING: MEASUREMENT SYSTEMS

AC : TECHNOLOGIES TO INTRODUCE EMBEDDED DESIGN EARLY IN ENGINEERING. Shekhar Sharad, National Instruments

Pre-Activity Quiz. 2 feet forward in a straight line? 1. What is a design challenge? 2. How do you program a robot to move

Preliminary Design Report. Project Title: Search and Destroy

STUDIES ON WAVES AND OSCILLATIONS WITH DATA ACQUISITION SYSTEMS *

Embedded Robotics. Software Development & Education Center

MECHATRONICS IN A BOX

Exploring Passive Ambient Static Electric Field Sensing to Enhance Interaction Modalities Based on Body Motion and Activity

Building an autonomous light finder robot

Hardware Platforms and Sensors

Available online at ScienceDirect. Procedia Computer Science 76 (2015 ) 2 8

SMART ELEGANT SOPHISTICATED

Unleash your creativity.

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

A Rubik s Cube Solving Robot Using Basic Lego Mindstorms NXT kit

3-Degrees of Freedom Robotic ARM Controller for Various Applications

CONTROLLING METHODS AND CHALLENGES OF ROBOTIC ARM

We re excited to launch the newest in our line of circuits: Very Useful Circuits

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. LEGO Bowling Workbook

Welcome to Arduino Day 2016

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Deriving Consistency from LEGOs

Application Note. Communication between arduino and IMU Software capturing the data

Scheduling Algorithms Exploring via Robotics Learning

DEVKIT-S12ZVC QUICK START GUIDE (QSG)

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following

PCB & Circuit Designing (Summer Training Program) 6 Weeks/ 45 Days PRESENTED BY

Wirelessly Controlled Wheeled Robotic Arm

ULS24 Frequently Asked Questions

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Assembly Instructions for B7971 Smart Socket

KUMU A O CUBESAT: THERMAL SENSORS ON A CUBESAT

MathWorks Announces Built-in Simulink Support for Arduino, BeagleBoard, and LEGO MINDSTORMS NXT

Arduino Platform Capabilities in Multitasking. environment.

II. BLOCK

A Learning System for a Computational Science Related Topic

Proseminar Roboter und Aktivmedien. Outline of today s lecture. Acknowledgments. Educational robots achievements and challenging

Bridge Measurement Systems

Partner for Success Secure & Smart Future Home

VIRTUAL ASSISTIVE ROBOTS FOR PLAY, LEARNING, AND COGNITIVE DEVELOPMENT

Getting Started in Eagle Professional Schematic Software. Tyler Borysiak Team 9 Manager

HIL Simulation Lab Work

Using the Parallax Propeller for Mechatronics Education

Effective Teaching Learning Process for PID Controller Based on Experimental Setup with LabVIEW

DEVELOPMENT OF A ROBOID COMPONENT FOR PLAYER/STAGE ROBOT SIMULATOR

Design Of Low-Power Wireless Communication System Based On MSP430 Introduction:

IMU Platform for Workshops

Teaching students science and engineering with high altitude balloons and ChipKits

The physics of capacitive touch technology

ENGI1020. Lab 0 Introduction to Arduino IDE and Hardware Lori Hogan, Lab Instructor - Winter 2019

Robotic Development Kit. Powered using ATMEL technology

Analysis of Low Cost Naturally Programmable Robotic ARM K.Deepikavalli 1, S.Asvani 2, R.Puviarasi 3

occam on the Arduino Adam T. Sampson School of Computing, University of Kent Matt C. Jadud Department of Computer Science, Allegheny College

Teaching Embedded Systems to Berkeley Undergraduates

Chapter 1. Robots and Programs

Monitoring the Transformer Oil Temperature and Load Sharing Using Gsm

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

Implementation of a Self-Driven Robot for Remote Surveillance

Robotics will be very important for the humanity in the next 10 years and this ebook is an effort to help in this way.

LABORATORY AND FIELD INVESTIGATIONS ON XBEE MODULE AND ITS EFFECTIVENESS FOR TRANSMISSION OF SLOPE MONITORING DATA IN MINES

ICTCM 28th International Conference on Technology in Collegiate Mathematics

ME 4447 / ME 6405 MICROPROCESSOR CONTROL OF MANUFACTURING SYSTEMS / INTRODUCTION TO MECHATRONICS

Autonomous Systems at Gelsenkirchen

AVR122: Calibration of the AVR's internal temperature reference. 8-bit Microcontrollers. Application Note. Features.

3D ULTRASONIC STICK FOR BLIND

Advancements in Gesture Recognition Technology

Welcome to. NXT Basics. Presenter: Wael Hajj Ali With assistance of: Ammar Shehadeh - Souhaib Alzanki - Samer Abuthaher

Pre-Day Questionnaire

FABO ACADEMY X ELECTRONIC DESIGN

Embracing Complexity. Gavin Walker Development Manager

Embedded Systems & Robotics (Winter Training Program) 6 Weeks/45 Days

Program.

ARDUINO BASED CALIBRATION OF AN INERTIAL SENSOR IN VIEW OF A GNSS/IMU INTEGRATION

Part 1: DC Concepts and Measurement

Build your own. Pack. Stages 23-26: Begin assembling Robi s right foot

AC : INTERACTIVE LEARNING DISCRETE TIME SIGNALS AND SYSTEMS WITH MATLAB AND TI DSK6713 DSP KIT

INTRODUCTION OF SOME APPROACHES FOR EDUCATIONS OF ROBOT DESIGN AND MANUFACTURING

Path Following and Obstacle Avoidance Fuzzy Controller for Mobile Indoor Robots

Ruth Kastner Eli Moshe. Embedded Passives, Go for it!

Internet of Things (Winter Training Program) 6 Weeks/45 Days

LEARN ARDUINO SENSORS ALL SENSORS DESCRIPTION APPLICATION SPECIFICATIONS EXAMPLE CODES NOTES DOWNLOADS DHT11, DHT22 AND AM2302 SENSORS ADAFRUIT

Measure simulated forces of impact on a human head, and test if forces are reduced by wearing a protective headgear.

HAND GESTURE CONTROLLED ROBOT USING ARDUINO

DIGITAL PHOTOGRAPHY FOR OBJECT DOCUMENTATION GOOD, BETTER, BEST

Transcription:

2 nd World Conference on Technology and Engineering Education 2011 WIETE Ljubljana, Slovenia, 5-8 September 2011 Introducing 32-bit microcontroller technologies to a technology teacher training programme D. Rihtaršič & S. Kocijancic University of Ljubljana Ljubljana, Slovenia ABSTRACT: In our everyday life, we are accustomed to the use of contemporary electronic devices with continuously growing potential. However, such technologies are rarely introduced to technology education even in higher education. Since this technology is developing rapidly, the gap between the everyday implementation and the technology education programmes is also growing rapidly. In practical laboratory exercises, 8-bit microcontroller evaluation kits still dominate. On the other hand, one can find much more powerful 32-bit microcontrollers, which are capable of controlling contemporary devices such as SD memory cards, graphical LCDs, touch pads, intelligent sensors, etc. The reason for this is the more complex architecture of those devices, which led to rather complicated programming. This paper outlines some interesting examples of 32-bit microcontroller implementation, and how they can be introduced into a technology teacher training programme with a new programming environment that introduces the use of drivers. The pros and cons of 32-bit microcontrollers are considered in the conclusions of the paper. INTRODUCTION Technology has been developing rapidly, particularly in recent decades. What is great for everyday life usage is that such technologies allow us to complete various tasks easier, simpler and faster. Everyone uses devices that execute orders by sensing our touch, movements or even gestures and such devices are ubiquitous (mp3s, mobile phones, automotive applications, etc). On the other hand, those devices are rarely introduced into engineering education programmes. Eight-bit microcontrollers still dominate in educational practice in contrast with 32-bit microcontrollers or even ARMs, which are mostly implemented in contemporary electronics devices. It is very hard to follow the development of technology within the educational context. However, experts in the technology educational field indicate that it is very important to expose interesting and relevant problems for the effectiveness of teaching [1-3]. The use of 8-bit microcontrollers is well settled in the education field all over the world, as well as in hobby workshops [4-7]. They have a simple architecture and still manage to be part of amazing projects. That is why it is much easier to explain their working processes and easier to program them. In the very first stage of introducing microcontrollers to students, 8-bit microcontrollers are more than welcome. They are appropriate for beginners to get some basic ideas about how microcontrollers works and, as is well known, the greater the knowledge base they have, the easier it will be for the microcontrollers to be applied in a new problem situation. However, not everything can be explained in detail because it would require too much time in the educational process and would consequently be inefficient. So, the teacher is not able to introduce implementation of contemporary devices such as SD memory cards, touch screens and other sophisticated sensors and actuators. However, things are going to change; big steps in this direction are being undertaken. The ATMEL Corporation is one of the worldwide leaders in the design and manufacture of microcontrollers and, in 2011, they launched a programming environment called AVR Studio 5 [8]. This integrated development environment (IDE) combines all 8-bit, 16-bit and 32-bit microcontrollers with AVR architecture. Following in the footsteps of others IDEs, they also included intuitive code writing, which is very helpful for beginners and saves a lot of programming time. Among the most powerful features, there are drivers that can be loaded into a microcontroller to support other components [9]. For that reason, the user does not need to know how to control the device exactly bit by bit, but can manipulate it with a few functions which provide perfect operation. Of course, not all devices are supported (and probably never will be), but it is a great start towards usage in the education field or even for hobbyists. 49

INTRODUCING 32-bit MICROCONTROLLERS Introducing microcontrollers to trainee teachers of technology by way of 8-bit microcontrollers has some advantages. Those microcontrollers have a much simpler architecture and, it is, therefore, easier to understand their functioning. This contributes to the first steps of programming microcontrollers. Nevertheless, there are several 8-bit microcontrollers in DIP IC packages, which make implementation simpler and cheaper for students projects. However, it has turned out that these microcontrollers are becoming less associated with contemporary external devices, such as memory cards, touch pads and various sophisticated sensors. A crucial point is also the ability to connect the microcontroller to a PC as a USB device, which many 8-bit microcontrollers do not support. Producers of a wide range of devices have started to use more powerful 32-bit microcontrollers such as ARMs, but these devices are more complex and harder to programme and are, therefore, used mostly in the professional domain [10]. The difference in the programming code of the simplest task to set output pin 7 of Port A and clear it after 100 ms delay is shown in Figure 1. a) b) Figure 1: The difference in programming; a) 8-bit and b) 32-bit microcontroller. In 2011, the ATMEL Corporation launched the most sophisticated programming environment in this field so far. It is called AVR Studio 5, integrated development environment (IDE) designed to develop and debug embedded Atmel AVR applications. The biggest step towards less skilled users is the integration of drivers. The driver is a set of many functions that serves to control some modules inside a microcontroller or even outside it. For example, the previous task looks much more easier in the AVR Studio 5 environment. Importing the GPIO driver in this project is shown in Figure 2, and the task to control the output pin 7 is represented with programming code in Figure 3. Figure 2: Importing the drivers into the project. Figure 3: Intuitive code writing (top) and final code with a driver's functions (bottom). This example shows a big difference that came with the new IDE. In Figure 3, intuitive code writing, which helps to find functions easier and enables the coding to be done faster, is presented. The programme also provides a short description of the function, which is useful for beginners in this field. Figure 3 also shows the final code for the problem presented earlier. It can clearly be seen that this kind of programming is appropriate even for those who are dealing with 32-bit microcontrollers for the first time. Of course, in subsequent steps of programming things get complicated. 50

However, from the educational point of view the crucial steps are the very first ones. They must be as easy as possible and the results must be seen straight away. INTRODUCING EVERYDAY TECHNOLOGY INTO EDUCATION It is very important for students to be involved in problems, which are relational to our everyday life. One of the possible challenges is how to measure acceleration, while some other action is performing. Acceleration is also a theme in physics and this experiment could contribute to understanding the issue since students would be actively involved in the experiment. Furthermore, many contemporary cellular phones have such a s ensor. The acceleration sensor is embedded to provide the data, the SD card stores the data, and transfers it to the PC for further analysis. To introduce the problem, it was decided to implement an EVK-1101 evaluation board, which is equipped with several sensors including the accelerometer, and it has an SD memory card socket [11]. This board is powered by a 32-bit microcontroller 32UC3B0256 and can be programmed in AVR Studio 5. The board EVK-1101 is shown in Figure 4. Figure 4: Evaluation board EVK-1101. In this project, drivers such as ADC, TIMING, SD/MMC and others are uploaded for easier management of the hardware. After a little programming time, it was already possible to obtain the acceleration data, saved them to the SD card and sent them to the PC, where they were presented as is shown in Figure 5. Figure 5: Representation of acceleration data during the jump. Students can now recapture their actions and compare them with the sensor's response. They must also take into consideration the system force (gravity), which is not an easy task for them. It should be explained that the result to demonstrate the data could be hidden in the signals. Figure 5 shows three curves that represent acceleration in each direction (x - [forward/back], y - [left/right], z - [up/down]). The sensor's response at no acceleration presented is 512, which is right in the middle of its range and is clearly seen at the start of the x and y curves. 51

The green curve starts at 710, which represents gravity-related acceleration. The first wave on the green curve is from squatting to do a jump. After the jump, the steady signal at the same level is followed because there was no motion. The next action is jumping what can be seen with the tip around 4.4 s. Then, the fuzzy signal can be seen at around the same level as the red and green curves. This is not a coincidence because the student is now falling back to the floor with gravity acceleration. Looking from the student's point of view, the system force must be subtracted. The result is zero gravity for that moment as he/she is off the ground. But that is not all. Looking at the red signal, it can be seen that during the student's action the red curve goes slightly above zero acceleration, which means that the student was angled slightly to the left. Why is that? It transpires that the student suffered an injury in the past on his/her right leg and until then, transferred the weight to the left leg by angling to the left. This fault is clearly seen right at the time of jump. Only one opportunity to integrate modern technology into teacher training education has been presented here, but these devices offer much more. Other interesting devices can be used to maintain contact with fast developing technology. For example, one can use multi-touch pads without any buttons, which work as capacitor sensors or a graphical display as shown in Figure 6. CONCLUSIONS Figure 6: Use of graphical display and capacitor touch pad. It cannot be argued that 8-bit microcontrollers still dominate in education field and enjoy major support around the world. However, if one wishes to educate students to become competitive teachers, they must be familiar with the technology that surrounds us all, and should follow the guidelines that are dictated by the development of technology. The authors believe that a new programming environment with the implementation of drivers, is a great step in introducing 32-bit microcontrollers for beginners, and it gives the teacher an excellent opportunity to implement these devices in an educational process. Naturally, there were some obstacles, because not all devices are supported yet, the very popular alphanumeric display for example. Another deficiency of new IDE is that users cannot write their own driver and save it for another use in a project. However, it must be confirmed that such an approach will help to integrate modern technology into teacher education, and will help to reduce the gap between engineering and technology educational and contemporary technologies. REFERENCES 1. Korbel, S. and Janes, V., Interesting applications of Atmel AVR Microcontrollers. IEEE Euromicro Symposium on Digital System Design (DSD'04), France (2004). 2. Hill. A.M., Problem solving in real-life contexts: An alternative for design in technology education. Inter. J. of Technol. and Design Educ., 5, 3, 1-18 (1998). 3. Savery, J. and Duffy, T.M., Problem Based Learning: An Instructional Model and its Constructivist Framework. In: Wilson, B.G. (Ed), Designing Constructivist Learning Environments. Englewood Cliffs, NJ: Educational Technology Publications (1996). 4. Weiss, B., Gridling, G. and Proski, M., A case study in efficient microcontroller education. Proc. 2005 Workshop on Embedded Systems Educ., 22 September, 36-43 (2005). 5. Giurgiutiu, V., Lyons, J., Rocheleau, D. and Liu, W., Mechatronics/microcontroller education for mechanical engineering students at the University of South Carolina. Mechatronics 2005, 15, 9, 1025 1036 (2005). 6. Kocijančič, S., Kušar, T. and Rihtaršič, D., Introducing programming languages through data acquisition examples. Inter. J. of Emerging Technol. Learning, 3, 2, 28-33 (2008). 52

7. Murovec, B. and Kocijančič, S., A USB-based data acquisition system designed for educational purposes. Inter. J. of Engng. Educ., 20, 1, 24-30 (2004). 8. Atmel Corporation, Tools and Software: AVR Studio 5, 1 June 2011, xhttp://www.atmel.com/dyn/products/ tools_ca rd.asp?tool_id=17212 9. Atmel Corporation, The new Atmel AVR Studio 5, 1 June 2011, http://www.atmel.com/microsite/avr_studio_5/ default.a sp?source=redirect 10. Sharad S., Introducing embedded design concepts to freshmen and sophomore engineering students with LEGO MINDSTORMS NXT. Proc. 2007 IEEE Inter. Conf. on Microelectronic Systems Educ., San Diego, 119-120 (2007). 11. Atmel Corporation, EVK1101 Schematics, 1 June 2011, http://www.atmel.com/dyn/resources/prod_documents/ EVK11 01_Schematics_RevB.pdf 53