Linux Kernel Hacking Free Course, 3rd edition. HWMPS: Hardware Monitor & Protection System

Similar documents
RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Group 10 Programmable Sensor Output Simulator Progress Report #2

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

Bolt 18F2550 System Hardware Manual

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

PIC Microcontroller Introduction

Sierra Radio Systems. HamStack. Project Board Reference Manual V1.0

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

DEV-1 HamStack Development Board

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

EasyPIC5 Development System

Downloaded from Elcodis.com electronic components distributor

BIGdsPIC6. Development System. User manual

PIC 28 Pin Board Documentation. Update Version 5.0

Tic-Tac-Toe with mtouch. Version 1.0. June Cytron Technologies Sdn. Bhd.

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Goal: We want to build an autonomous vehicle (robot)

BMS: Installation Manual v2.x - Documentation

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

K191 3 Channel RGB LED Controller

Robotics Training Module ABLab Solutions

AC : DESIGN OF DATA ACQUISITION SYSTEM FOR COMPUTER ENGINEERING EDUCATION

EMBEDDED SYSTEMS COURSE CURRICULUM

MICROCONTROLLER BASED SMART FAN SYSTEM

Environmental Data Acquisition Using (ENC28J60)

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

SBC45EC. Single board computer for 44 pin PLCC PICs

Rapid40i PIC Prototyping PCB User Manual

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

S125 Multi-Purpose 125 KHz RFID Reader USER MANUAL. 9V/24V DC Operating Voltage, AC (optional) KHz RFID EM4100/2 Cards & Tags

EEE394 Microprocessor and Microcontroller Laboratory Lab #6

CEIBO FE-51RD2 Development System

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

AKKON USB CONTROLLER BOARD

PWR Meter click. PID: MIKROE 3169 Weight: 31 g

BC-USB-Kit Manual. First Edition. February, BeatCraft, Inc.

ARDUINO LEONARDO ETH Code: A000022

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ. Embedded System Design

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

LIN bus board datasheet EB

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

Motor Controller Cooling System (MCCS) Maintenance Manual

SIM900 Hardware Design Guide Jeffrey Song, 2010

Rapid28iXL PIC Prototyping PCB User Manual

Home Security System with Remote Home Automation Control

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Development Hardware. Target Board and In-circuit Debugger

Rapid40iXL PIC Prototyping PCB User Manual

EASY219 / IEC CANopen Master / Slave

PC87435 Enhanced IPMI Baseboard Management Controller

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company

PICado Alpha Development Board V1.0

HARDWARE MANUAL TMCM-1613 TMCM-1613-REC. Hardware Version V TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

PIC Microcontroller and

The FED PIC Flex 2 Development Boards

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

SK40C ENHANCED 40 PINS PIC START-UP KIT. User s Manual V1.3. March 2012

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

RK Electronics. Vivarium/Aquarium Lights Controller. Design Manual for Engineers and Hobbyists

Arduino Uno R3 INTRODUCTION

Development of a digital instrument as a motivational component in teaching embedded computers

OPERATIONAL UP TO. 300 c. Microcontrollers Memories Logic

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

PIL-IO board notes. For use with firmware 2.x. J-F Garnier, Feb. 2016

Shack Clock kit PCB Revision: QCU Rev 1 or QCU Rev 3

SLCD1-IC Serial LCD Processor

SBC65EC. Ethernet enabled Single Board Computer

Dwarf Boards. DN001 : introduction, overview and reference

CN310 Microprocessor Systems Design

USB232 board EB Technical datasheet

Control, Measurement and Data Logging system CML

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

HESC-SERD Manual. High Efficiency & Smart Charging Vehicle Power Supply DC to DC Converter

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

ARDUINO MINI 05 Code: A000087

GreenEye Monitor Specifications

Contents. The USB Logic Tool... 2 Programming... 2 Using the USB Logic Tool... 6 USB Logic Tool Features... 7 Device Hardware...

BIG8051. Development system. User manual

ICP05 IBOARD LITE ICP05. - iboard lite

EVAL-ADT7516. SPI -/I 2 C -Compatible, Temperature Sensor, 4-Channel ADC and Quad Voltage Output DAC FEATURES APPLICATIONS

Hitec Digital Servos Operation and Interface

Sierra Radio Systems. Making a Keyer with the. HamStack. Project Platform

DIY KIT 123. ATMEL 89xxxx PROGRAMMER

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

SECURE DIGITAL ACCESS SYSTEM USING IBUTTON

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

Slick Line Acquisition System Manual

Transcription:

Andrea Sarro University of Rome Tor Vergata HWMPS: Hardware Monitor & Protection System April 5, 2006

Outline of the talk Project overview Developement phases and practical issues Hardware platform Microcontroller firmware Hardware management software Future plans 1 HWMPS: Hardware Monitor & Protection System April 5, 2006

Project Overview 2 HWMPS: Hardware Monitor & Protection System April 5, 2006

Project goals Realize a stand-alone hardware platform for protecting connected electrical devices and monitoring unpredictable and harmful operational states Realize a software platform able to: Communicate with the hardware platform Set operational parameters of the hardware platform Receive status information about connected electrical devices 3 HWMPS: Hardware Monitor & Protection System April 5, 2006

Hardware platform and interfaces 4 HWMPS: Hardware Monitor & Protection System April 5, 2006

Hardware functions Monitoring functions: Temperature readings from 3 thermal probes Status visualization over a 2x16 LCD Serial communication via RS232 (asynchronous) Protection and control functions: Electrical devices control and protection via 3 realys Warning messages via LCD and via software Fan speed selection (2 channels) 5 HWMPS: Hardware Monitor & Protection System April 5, 2006

Application background 6 HWMPS: Hardware Monitor & Protection System April 5, 2006

Developement phases and practical issues 7 HWMPS: Hardware Monitor & Protection System April 5, 2006

Developement phases Hardware developement: Electrical schematic - EAGLE Schematic Editor Printed circuit board - EAGLE Layout Editor Firmware developement: PICMicro firmware - HI-TECH PICC + MPLAB IDE Firmware simulation - MPLAB SIM Software developement: Cross-platform RS232 Serial Library Cross-platform client-server hardware management software 8 HWMPS: Hardware Monitor & Protection System April 5, 2006

Practical issues So what we need? Software: Eagle 4.1: http://www.cadsoft.de HI-TECH PICC C Compiler: http://www.htsoft.com MPLAB IDE: http://www.microchip.com GCC compiler + wxwidgets framework: http://www.wxwidgets.org Hardware: PICMicro microcontroller and other electrical components UV Light Box and a precoated Photoresist PCB laminate, tools for drilling and soldering PICMicro hardware programmer, i.e. MPLAB-ICD2 (this is also an In Circuit Debugger) 9 HWMPS: Hardware Monitor & Protection System April 5, 2006

Hardware platform 10 HWMPS: Hardware Monitor & Protection System April 5, 2006

Electrical schematic 11 HWMPS: Hardware Monitor & Protection System April 5, 2006

Electrical schematic - Modules 1. Microcontroller (PICmicro MCU) 2. RS232 opto-isolated interface 3. Digital-Analog Converter (DAC) 4. Pulse Width Modulation (PWM) 5. Thermal sensors 6. Relays 7. LCD display 8. Push button 9. Power supply 12 HWMPS: Hardware Monitor & Protection System April 5, 2006

Bill of materials The core component is a Microchip PIC16F877A microcontroller To be operational it needs these components: 4 MHz Quartz Xtal + two 22 uf ceramic capacitors +5V/GND single power supply via LM7805 voltage regulator Pull-up on MCLR pin via a 10 kohm resistor 13 HWMPS: Hardware Monitor & Protection System April 5, 2006

Bill of materials (cont d) For serial communication we use a MAX232 RS232 driver/receiver. For opto-isolation we also need: DCP010505BP Isolated DC/DC converter (5V input / 5V unregulated output) 4N35 optocoupler, one for RX line and one for TX line Pull-ups and current limiting resistors for optocouplers, two low ESR capacitors for the DC/DC converter 14 HWMPS: Hardware Monitor & Protection System April 5, 2006

Bill of materials (cont d) We also need these other components (oredered by their application field, omitting passive components like resistors) Thermal probing: National Semiconductor s LM35 precision integrated-circuit sensors LM358 operational amplifier Fan control: IRF540 Power MOSFETs LM358 operational amplifier 15 HWMPS: Hardware Monitor & Protection System April 5, 2006

Bill of materials (cont d) LCD Visualization: Hitachi HD44780 based LCD or compatible (HD44780 clone) BC639 NPN transistor for backlight ON/OFF software switching Electrical devices control: 12V/230V-10A Relays BC639 NPN transistors 16 HWMPS: Hardware Monitor & Protection System April 5, 2006

Printed Circuit Board 17 HWMPS: Hardware Monitor & Protection System April 5, 2006

HWMPS 18 HWMPS: Hardware Monitor & Protection System April 5, 2006

Microcontroller firmware 19 HWMPS: Hardware Monitor & Protection System April 5, 2006

Microcontroller A microcontroller can be seen as: microprocessor + memory + peripherals Microchip PIC16F877A Mid-Range MCU: 8 bit microcontroller available in PDIP/40 pin package 8192 words of Program Memory 368 byte of Data Memory (RAM) 256 byte of EEPROM In this project we use these peripherals: USART (Universal Synchronous Asynchronous Receiver Transmitter) ADC (Analog/Digital Converter) CCP Module (Capture/Compare/PWM) 20 HWMPS: Hardware Monitor & Protection System April 5, 2006

Firmware HWMPS Firmware has the role of realizing the whole platform features. written in C programming language. It s The firmware is composed of 4 modules (for more info see attached C sources): Delay Library LCD Library Serial Library (Real) Firmware 21 HWMPS: Hardware Monitor & Protection System April 5, 2006

Firmware main roles Serial communication (via interrupts) Reading thermal sensors, converting 10 bit ADC values into human readable output Hardware protection and warning messages notification Fan speed thermoregulation LCD visualization Saving and loading settings from EEPROM 22 HWMPS: Hardware Monitor & Protection System April 5, 2006

Hardware management software 23 HWMPS: Hardware Monitor & Protection System April 5, 2006

HWMPS Serial Lib Cross-platform (Linux/Windows) library for serial communication It works in asynchronous - non blocking - mode Written in C++, it defines methods for: Opening the serial port at a chosen baud-rate Closing the serial port Sending data Receiving data in non blocking mode Verifying serial port status 24 HWMPS: Hardware Monitor & Protection System April 5, 2006

HWMPS Monitor Cross-platform (Linux/Windows) software for HWMPS management. Written in C++ using wxwidgets library. It s client-server, so it s possible to monitor and control remote devices. The client interface on Windows looks like: 25 HWMPS: Hardware Monitor & Protection System April 5, 2006

Future plans 26 HWMPS: Hardware Monitor & Protection System April 5, 2006

Future plans and contacts Replacement of LM35 analog sensors with DS18B20 1-Wire digital sensors (in progress!) Ethernet interfacing for remote control (now using RS232) RTC for advanced time scheduling functions Custom boot-loader for on the fly firmware upgrade (via RS232) Project Web Site: http://hwmps.sourceforge.net 27 HWMPS: Hardware Monitor & Protection System April 5, 2006