Electronic Banner Exchange (ElBE)
 


Микроконтроллеры PIC12 PIC16 PIC18 для начинающих на русском языке.

 

Переводчик он-лайн !

 

Микроконтроллер  
PIC32 начинающим с нуля
первые шаги.

 

www.pic32.narod.ru

 

 

Статья на русском языке - микроконтроллеры PIC32 с модулем USB
В статье дан обзор архитектуры PIC32
и таблица микроконтроллеров с параметрами.

 


 

Первые шаги ...

Микроконтроллеры PIC12, PIC16, PIC18 начинающим с нуля

Микроконтроллеры AVR, ATmega, ATtiny начинающим с нуля


 

 

Стартовый комплект для работы с PIC32
можно купить в "Тритон" и почтой тоже !

 

Для разработки ПО для PIC32 вам нужно зарегистрироваться
на сайте Microchip и затем скачать и установить на ПК компилятор MPLAB C32  и среду разработки-отладки MPLAB IDE v8.0+

Скачайте студенческую версию компилятора - она полностью бесплатна, но размер кода создаваемого в ней ограничен 16 Кбайт  Если вы получите бесплатный ключ то размер кода увеличится до 64 Кбайт.

 

 

 

PIC32 хотя и мощный 32-битный, но все
же обычный МК
и программируется он как и другие МК

Вот пример конфигурации и программирования модуля АЦП PIC32

/****************************************************************
Пример настройки и применения АЦП PIC32 каналы AN4 и AN5

скачать пример - http://slil.ru/25701678
Микроконтроллер  PIC32MX360512L
Компилятор       MPLAB C32
Среда разработки MPLAB IDE v8.0+

*****************************************************************/


#include <plib.h> // заголовок для всей переферии pic32


// Установка конфигурации PIC32
// SYSCLK = 72 MHz (8MHz Crystal/ FPLLIDIV * FPLLMUL / FPLLODIV)
// PBCLK = 36 MHz
// Primary Osc w/PLL (XT+,HS+,EC+PLL)
// WDT OFF

#pragma config FPLLMUL = MUL_18, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_2


unsigned int chan_4; // хранит результат АЦП считаный из буфера АЦП
unsigned int chan_5; // хранит результат АЦП считаный из буфера АЦП
unsigned int offset; // смещение на свободный буфер АЦП

int main(void)
{
// Макрос включает PIC32 на частоту 72 МГц (макс. 80 МГц)
SYSTEMConfigPerformance(72000000L);

CloseADC10(); // Выключить АЦП перед конфигурацией

// включить АЦП OpenADC10 | результат в int | режим работы auto | включить автозапуск АЦП
#define PARAM1 ADC_MODULE_ON | ADC_FORMAT_INTG | ADC_CLK_AUTO | ADC_AUTO_SAMPLING_ON

// внешняя опора АЦП | отключить проверку смещения | отключ режим сканирования | сделать 2 АЦП | использовать двойной буфер | альтернативный режим
#define PARAM2 ADC_VREF_AVDD_AVSS | ADC_OFFSET_CAL_DISABLE | ADC_SCAN_OFF | ADC_SAMPLES_PER_INT_2 | ADC_ALT_BUF_ON | ADC_ALT_INPUT_ON

// Включить такт АЦП | установить время выборки
#define PARAM3 ADC_CONV_CLK_INTERNAL_RC | ADC_SAMPLE_TIME_15

#define PARAM4 SKIP_SCAN_ALL // не сканировать каналы АЦП

// AN4 и AN5 аналоговые входы
#define PARAM5 ENABLE_AN4_ANA | ENABLE_AN5_ANA

// Земля - отрицательная опора для входа A | AN4 для входа A | тоже для входа B
// настройка AN4 и AN5

SetChanADC10( ADC_CH0_NEG_SAMPLEA_NVREF | ADC_CH0_POS_SAMPLEA_AN4 | ADC_CH0_NEG_SAMPLEB_NVREF | ADC_CH0_POS_SAMPLEB_AN5); // АЦП на AN4 и AN5

OpenADC10( PARAM1, PARAM2, PARAM3, PARAM4, PARAM5 );

EnableADC10(); // включить модуль АЦП

while ( ! mAD1GetIntFlag() ) { } // Сделать холостое АЦП

// Результаты АЦП будут хранится в переменных chan_l4 и chan_l5
while (1)
{
offset = 8 * ((~ReadActiveBufferADC10() & 0x01)); // перенаправление в свободный буфер АЦП

chan_l4 = ReadADC10(offset); // считать результат AN4 из буфера АЦП
chan_l5 = ReadADC10(offset + 1); // считать результат AN5 из буфера АЦП
}

return 0;
}

 

 

Скоро будут новые примеры программ.

 

Документация на микроконтроллеры PIC32

 

Documentation
Title Date Published Size
Brochures
PIC32 Overview Brochure 22-Feb-2008 1161KB
 
Getting Started
Getting Started with PIC32 User's Guide 24-Mar-2008 4224KB
 
Data Sheet

СКАЧАТЬ !Паспорт PIC32

PIC32MX Family Data sheet 14-Apr-2008 9064KB
 
Reference Manuals
PIC32 Family Reference Manual- All Chapters 14-Apr-2008 9786KB
 

Click here to view individual PIC32 Family Reference Manual Chapters 
App Notes & Source Code

 

Примеры устройств
на PIC32

Со схемами и исходниками ! 

AN1107 - HTTP Server using BSD Socket API for PIC32MX 18-Apr-2008  
AN1108 - Microchip TCP/IP Stack with BSD Socket API for PIC32MX 2-Nov-2007  
AN1109 - SNMP Agent using BSD Socket API for PIC32MX 18-Apr-2008  
AN1111 - FTP Server using BSD Socket API for the PIC32MX 18-Apr-2008  
AN1140 - USB Embedded Host Stack 25-Feb-2008  
AN1141 - USB Embedded Host Stack Programmer?s Guide 25-Feb-2008  
AN1142 - USB Mass Storage Class on an Embedded Host 25-Feb-2008  
AN1145 - Using a USB Flash Drive with an Embedded Host 25-Feb-2008  
AN1163 - USB HID Class on an Embedded Device 10-Mar-2008  
AN1164 - USB CDC Class on an Embedded Device 10-Mar-2008  
AN1166 - USB Generic Function on an Embedded Device 10-Mar-2008  
AN1169 - USB Mass Storage Class on an Embedded Device 10-Mar-2008  
AN1176 - USB Device Stack for PIC32 Programmer?s Guide 10-Mar-2008  
AN833 - Microchip TCP/IP Stack Application Note 6-Mar-2002  
Code Examples

Все исходники
скачать архивом.

All PIC32 Example Source Code Files 10-Mar-2008 5260KB
 

Click here for individual files 
User Guides
Using PIC32 with Explorer 16-User Guide Adendum 17-Apr-2008 632KB
Maximize Software Portability for Future PIC32 MCUs 13-Apr-2008 101KB
Getting Started with PIC32 User's Guide (Chinese) 7-Apr-2008 567KB
PIC32MX Starter Kit User's Guide (Chinese) 26-Mar-2008 1084KB
Getting Started with PIC32 User's Guide 24-Mar-2008 4224KB
How to Configure PIC32 for 80 MHz 22-Feb-2008 20KB
PIC32 Starter Kit Users Guide

Cхемы макетки для PIC32

26-Oct-2007 1325KB
 
Programming Specification
PIC32MX Flash Programming Spec 10-Mar-2008 1151KB
 
Errata
PIC32MX Family Rev. B3 Silicon Errata 14-Apr-2008 269KB
PIC32MX Family Rev. B2 Silicon Errata 13-Feb-2008 266KB
 

 

I am new to Microchip and would like to evaluate PIC32 microcontrollers (top of page)
While there are several good methods to evaluate PIC32 hardware, the PIC32 Starter Kit is the easiest tool for first-time users. Inside the kit is everything you need to develop, program, debug, and run code. Once the MPLAB® tool suite and project software is installed, follow the tutorial and you'll be executing 32-bit code at 72 MHz in no time. For those who crave more, connect an expansion board (coming soon). Expansion boards will be sold separately or create your own custom design.

Starter Kit Features

Note: The PIC32 Starter Kit software runs on Windows XP and Windows 2000 only. Support for Microsoft Windows Vista is planned.
I have an Explorer 16 development board (PIC24, dsPIC33) and would like to evaluate PIC32 microcontrollers (top of page)

You will need an MPLAB REAL ICE™ emulator or ICD 2 In-circuit debugger to do this.

Follow these steps to evaluate PIC32 MCUs using Explorer 16 development board:

  1. Purchase and install the PIC32 processor interface module (PIM) onto the Explorer 16 board.
  2. Download and install the free MPLAB IDE v8.x and MPLAB C32 C Compiler (evaluation version)
  3. Connect the MPLAB REAL ICE™ emulator or ICD 2 In-circuit debugger.
  4. Refer to the Getting Started with PIC32 for detailed configuration and setup steps.
I would like to evaluate PIC32 microcontrollers without making a purchase (top of page)

The MPLAB IDE v8.x contains a cycle accurate instruction and simulator for running software without target hardware.

 

  1. Download and install the free MPLAB IDE v8.x and MPLAB C32 C Compiler (evaluation version)
  2. Follow the instructions in the Getting Started with PIC32 document.
  3. Select the "MPLAB SIM" under the Debugger drop down list in MPLAB IDE.
    Debugger->Select Tool->MPLAB SIM
  4. You are ready to test drive the PIC32 simulator
I want to know which Microchip tools support PIC32 microcontrollers (top of page)

Microchip Development Tool

PIC32 Support

Other Microchip MCUs and DSCs

Availability

MPLAB IDE v8.x

Yes

All

Now

MPLAB REAL ICE™ Emulator

Yes

PIC18, PIC24, dsPIC33

Now

MPLAB ICD 2 In-circuit Debugger

Yes

All

Now

MPLAB PM3 Universal Device Programmer
 

Yes

Most

Future

 

Симулятор электроники PROTEUS

 

 PIC32 Resources
PIC32 Home
Getting Started
Product Overview
Documentation
HW / SW / Tools
Code Examples
Sales Support
Technical Support

 

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2603

 

Обратите внимание на симулятор-отладчик для PIC32 http://www.lauterbach.com/frames.html

 

 

 

Макетные платы PicTail от производителя  
Найти и купить eFind.ru

Переводчик он-лайн !

Сайт Microchip  Продукция  Инструменты-средства для разработки - Development Tools  

PICtail board for SD and MMC Buy AC164122
The PICtail Daughter Board for SD and MMC cards (AC164122) is a universal board that interfaces the Secure Digital (SD) and Multi-Media Card (MMC) to the Serial Peripheral Interface (SPI) bus of the microcontroller. This PICtail board is designed to operate with a multitude of demonstration boards, including all those having PICtail signals, those with PICtail Plus signals (utilizing the card-edge connectors like the Explorer 16), and those with non-standard PICtail signals.
PICtail Plus board for Ethernet Buy AC164123
The Ethernet PICtail Plus Daughter Board provides a cost-effective method of evaluating and developing Ethernet control applications. The board is designed for flexibility and can be plugged into Microchip’s Explorer 16 (DM240001) development boards. The development board is populated with the 28-Pin ENC28J60 Ethernet controller which interfaces to the RJ-45 female connector. When used in conjunction with the Microchip TCP/IP stack the Ethernet PICtail™ Plus daughter board allows a developer to connect any Microchip 16-bit product to an Ethernet.
Prototype PICtail Plus Daughter Board Buy AC164126
The Prototype PICtail Plus Daughter Board is an expansion breadboard card for the Explorer 16 Evaluation Board using PIC24 MCU or dsPIC33 DSC. This board is an 8x8 cm board with a card-edge connector to plug directly into the PICtail Plus expansion socket. The breadboard area provides access to all of the processor pins and a general purpose prototyping area. AC164126 kit contains three blank Prototype PICtail Plus Daughter Boards.
IrDA PICtail Plus Daughter Board Buy AC164124
The IrDA PICtail Plus Daughter Board is designed to operate in conjunction with Microchips Explorer 16 or other development boards with a PICtail Plus connector and AN1071 IrDA Standard Stack for Microchip 16-Bit Microcontrollers to create an IrDA-enabled development and evaluation platform. The IrDA Stack is written to operate with the IrDA-enabled UARTs on the PIC24F, PIC24H, and dsPIC33 16-bit controllers and digital signal controllers.
Speech Playback PICtail Plus Daughter Board Buy AC164125
The Speech Playback PICtail Plus Daughter Board is for evaluation and development of speech recording and playback applications using Adaptive Differential Pulse Code Modulation (ADPCM). The daughter board is designed to interface with both the PICtail interface used on many PIC16 and PIC18 evaluation boards and the PICtail Plus card edge connector used on PIC24 and dsPIC evaluation boards. Reference AN643 for information on implementing an ADPCM solution.
PICDEM Z MRF24J40 2.4 GHz Daughter Card Buy AC163027-4
The PICDEM Z 2.4 GHz daughter card includes the Microchip MRF24J40 transceiver, a PCB antenna and a connector to the PICDEM Z Motherboard.
Motor Control Interface PICtail Plus D-Card Buy AC164128
This PICtail MC board interfaces with Explorer 16 (DM240001) and the HV/LV Power Module (DM300021 and DM300022). It has a variety of test points that will make debugging of your application easier. It also has hardware support for sensor and sensor-less applications such as Hall sensors, optical encoder, back EMF and current sensing. This uses dsPIC33F device family for the MC development as opposed to the DM300020 that targets dsPIC30F for the MC application development.

Платы для проектирования ЭЛЕКТРОПРИВОДА.

 

Graphics PICtailTM Plus Daughter Board AC164127
The Graphics PICtail™ Plus Daughter Board is a demonstration board for evaluating Microchip Technology's graphic LCD display solution and Graphics Library for 16-bit microcontrollers. It is an expansion board compatible with the Explorer 16 Development Board (DM240001).
USB PICtail™ Plus Daughter Board AC164131
This USB PICtail Plus provides necessary hardware connection and support for USB device, host, and on-the-go development.  This module enables USB hardware connectivity when using an Explorer 16 Development Board (DM240001) and a USB- capable plug-in module (such as MA240014 PIC24F USB PIM or MA320002 PIC32MX USB PIM) and Microchip’s free USB drivers.

 

 

 


Проекты на PIC32

Handheld Multi-core Spectrum Analyzer

By: ohmite

Click on the image to view full size

This project will utilize the processing power and peripheral features of the PIC32. In addition, it will utilize additional processors such as mulitple dsPIC33s to perform repetitive computations taking advantage of their ability.
The Handheld Multi-core Spectrum analyzer will provide a user with a low cost system capable of sampling multiple (up to 4) channels of analog data, computing the spectral content and FFTs and displaying the result on a color display located on the device. Additional features of the unit will include a touch screen interface for user interface as well as storage of data and plots on a removable media (microSD card) for use by other programs such as Matlab. Design trades during this project will: 1) determine whether communication between the processors will utilize the parallel port features of the devices or SPI; 2) Sample rates and sensitivities attainable; 3) Graphical interfaces necessary to maintain portability.
Ideas from members of the myPIC32 community are welcome, especially the perceived utility as well as their opinions on frequency spectrums they would be interested in.

Ratings for Handheld Multi-core Spectrum Analyzer

 
None
 
Overall Community Rating
by 0 Community Members

Three Phase Controller

By: owengrey

Click on the image to view full size

To control thyristors connected to a Three Phase Transformer, the thyristors will be connected in either half wave controlled, full wave controlled or hexaphase depending on ripple requirements of the output.
Voltage and current output is dependant on transformer/rectifier selected (from tens of amps to thousands of amps).
The micro will have to monitor voltage, primary and secondary currents, temperature, phase failure etc.
The project is required to be monitored and adjusted remotely and data must be able to be accessed locally, more than one unit must be able to be connected to the data bus (RS485).
the above equipment in normally associated with Hypochlorination Plants, Hydrogen production, Industrial battery chargers etc.
 

Ratings for Three Phase Controller

 
2.80
 
Overall Community Rating
by 38 Community Members

nJam Player (not Just Another Media Player)

By: bmorse

Click on the image to view full size

This abstract is being re-edited for content

Ratings for nJam Player (not Just Another Media Player)

 
2.80
 
Overall Community Rating
by 39 Community Members

Mico – Wireless Acceleration User Interface Assistant

By: fortuitus

Click on the image to view full size

Mico is a device to provide a personal digital assistant to people working in hazardous environments typically inhospitable to small devices. Mico has only one form of user input: a 3-axis accelerometer, which allows Mico to be protected by a perfectly sealed case. To communicate with a host computer or other devices, Mico will need to be wireless.
The goal of this project is to see if it is possible to create a user interface based solely on acceleration, and would people accept this user interface.
A couple of examples: Such a device could be worn by firefighters to provide pertinent information. Firefighters on the ground could be notified if the accelerometer stopped recording changes which may indicate a life threatening problem. Deep sea welders could use the device to monitor dive time, and read work lists in a high pressure environment.
 

Ratings for Mico – Wireless Acceleration User Interface Assistant

 
2.54
 
Overall Community Rating
by 6 Community Members

3D-RULER

By: rkyrlach

Click on the image to view full size

This device will allow precise 3D location of objects in the real world. Using a hand-held, battery operated PIC32 with a 2.4 GHZ transciever, the unit can be used to locate, measure and/or level anthing. The on-board OLED screen, allows easy operator interface. The 3D-ruler utilizes additional satellite units strategically placed around the site.The satelite units also have PIC32's and 2.4 GHZ transcivers. The stability and resolution of the system is enhanced by real time statistical analysis and noise cancellation with software in the PIC32's. The oscillators wiil be 2.55 PPM or better TCXO's.

This project will explore short time interval measurement using triangulation software in the PIC32 to effectively achieve pico-second time resolution.

If this proves feasible, it will allow precise x,y,z location measurements with up to 0.01 inch resolution. With the augmentation supplied by an auxiliary GPS receiver, very precise location can be determined. If you have a known location, like a survey pin, you can even determine exact position to 0.1 inch accuracy with an expected range of around 2000 feet.

This device will provide a low cost solution for multiple applications in construction, surveying, and any distance or location measuring need.
 

Ratings for 3D-RULER

 
2.37
 
Overall Community Rating
by 2 Community Members

Autonomous UAV Flight Control and Navigation System

By: Trilogic

Click on the image to view full size

This project will utilize the PIC32 microcontroller as the heart of an autonomous UAV flight control system. This system will provide autonomous departure (take off), route navigation to and from the destination target, data acquisition at the target site (still photography, video, environmental data) and finally navigation back to a predefined destination or backup destination where an operator would assist in the vehicle recovery (landing phase/payload recovery).

The PIC32 will be used to control all external devices (cameras, environmental sensors) and interface to all necessary attitude and positioning sensors/servos (AHARS,Magnetometers,GPS Receives,Air temperature and pressure probes,flight control surface servos and engine throttles).

All data will be logged in non-volatile EEProm and will be made available after recovery via a USB port.

 

Ratings for Autonomous UAV Flight Control and Navigation System

 
2.69
 
Overall Community Rating
by 9 Community Members

medical monitoring device

By: alio

Click on the image to view full size

Overview
The device has the capability to do several monitoring that are comprised of: EKG Simulator, Breath Monitor, Stimulus Isolator and Electrical Stimulus. Using the PIC32 as the main processor would enable to switch between any of the four mentioned above or perform all four operations simultaneously. Below is the description of each section.
EKG Simulator
This simulator is a nuclear medicine application. It is to simulate an electrocardiograph and radioisotope signal. The simulated EKG output would be a smooth TTL signal enabling the clear use of EKG for other syndromes while radioisotope output would be a pulse generated by pulse-position moderator.
Breathe Monitor
This monitor would act as a detector of breathing. As an important factor in health industry, breathe monitoring would enable other factors to be involved as well. Whether involvement of other factors would be needed would be left to synchronization, algorithm in PIC32 and the monitor circuit.
Stimulus Isolator
This isolator would show levels of current readings versus the improved ones. It basically provides user to know the difference between a normal behavior and that of his/her actual syndrome.
Electrical Stimulus
The stimulus generated by this section would mainly be used for research applications. Another way of looking at this is the monitoring of the heart throughout a period of time by generating pulses.
 

Ratings for medical monitoring device

 
2.54
 
Overall Community Rating
by 17 Community Members

The PIC32 I/O Expansion Board

By: TerryWest

Click on the image to view full size

This is not a design, but a picture of the I/O Expansion board that is given as a prize to the top 128 contestants that make it through phase1.

I saw a number of forum posts from people interested in this board, so until we have a better landing zone on Digi-Key for this board, the attached picture gives you an idea. Note that the PICtail Plus slots can hold a myriad of cards from Digi-Key, from Ethernet to 802.11.15 wireless and more. The protoboards included with the prize pack are blank "lots-o-holes" PCBs for wire wrapping etc.

Update 05/09/08: we've added this board to the microchip site: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en535444

Terry West
PIC32 Marketing Manager & Design Challenge Judge

Ratings for The PIC32 I/O Expansion Board

 
2.54
 
Overall Community Rating
by 25 Community Members

Bonsai Buddy

By: OrwellG

Click on the image to view full size

Bonsai trees are meticulously taken care of. They are well fed, watered, and given light. A lifetime of work can go into one plant. This can cause a problem if you are away on work or vacation.
The "Bonsai Buddy" allows you to receive data and adjust your plants environment through a webpage.
This can be used for any houseplant. Or even on a larger scale like greenhouses. A farmer tending to his crop might be as easy as logging onto a webpage a thousand miles away.
Features:
- Soil moisture sensor for automated watering from a main reservoir.
-Soil PH sensor and web cam to determine what composition fertilizer to use.
-Humidity sensor to activate a fan to maintain the proper climate.
-Temperature sensor to regulate a heating element.
-Pressure sensor to monitor amount of water in reservoir.
-A smaller reservoir used for mixing fertilizer with water (done through an agitator).
-Compartments with various types of fertilizer and fungicides. Released to the mixing chamber by magnetic latches.
-Light sensor to log the amount of light and help regulate the light bulb.
-Webpage for user control.
-Internal and external CO2 sensors to also control airflow. This is to allow for the peak amount of carbon dioxide in the Bonsai Buddy to help with photosynthesis.

This is done on a small scale for a design that is feasible and can be accomplished in the allotted time. It would become more efficient if it were done on a large scale. Here are some examples:

-Rain from the roof might be collected in cisterns for watering the plants.
-Instead of venting the humid air it might channeled into something that would extract the water from the air. Then reuse the recycled water.
-The whole system might be powered by solar or wind energy.
-You might also put in a system to utilize the oxygen given off by photosynthesis.

All parts are available from digikey (except for a PH electrode and can be built for $200).
 

Ratings for Bonsai Buddy

 
2.13
 
Overall Community Rating
by 16 Community Members

Ultrsonics proximity scanner

By: dualcore2008

Click on the image to view full size

This is a conceptual design to scan the surrounding of a room using ultrasonic transceiver . The touch-screen LCD will be used to control a TDR type scanning scheme . The data
Accumulated will be stored in a SRAM . From the initial position the scanning scheme will outline the walls of the room . When all sides of the rooms are scanned the PIC32 will be asked to move from one point in room to another without bumping into a wall .

This is a implementation of a Neural Network on PIC 32 MCU . Data accumulated will have information about the dimensions of the room , as accelerometer input will help MCU to compute the distance from its previous location .
 

Ratings for Ultrsonics proximity scanner

 
3.00
 
Overall Community Rating
by 6 Community Members

Diabetic Portable Carbohydrate Calculator

By: mimemike

Click on the image to view full size

This is a design for a pocket size weigh scale primarily for weighing food items and calculating the carbohydrate content so that diabetics can give them selves an accurate dose of insulin.

The target is a PDA sized unit with QVGA LCD display with a weigh scale as part of the main unit or detachable by wired or wireless communications.
The unit will have a database of food types stored on flash (Onboard or SD/MMC card) that is easily accessed using a GUI so that the total carbohydrates of the food being weighed can be easily calculated. USB can be used to upload data to the internal Flash or SD card. Other options include the ability to build the total carbohyrate for a meal by weighing (By adding or removing) each item on a plate of food. Other possible options include an inbuilt blood glucose meter and the possibility to calculate the dosage of insulin that is required for the carbohydrate total and/or the blood glucose reading.


Main Unit:
- PIC32 Microcontroller
- QVGA Display (2.8" to 3.5")
- SD Card interface
- USB interface

Weigh Scale:
- High resolution ADC (>22bit)
- Strain guages / load cell
- Wireless chipset (optional)
- Microcontroller for wireless (optional)

Blood Glucose meter:
- Misc Analog devices and ADC
 

Ratings for Diabetic Portable Carbohydrate Calculator

 
2.91
 
Overall Community Rating
by 16 Community Members

DODOLABPOWER a digitally controlled power supply

By: dodotronic

Click on the image to view full size

Every hobbist or professional laboratory has got at least one power supply. I think that more than 90% of us has got a heavy power supply with big transformers and fans for cooling down the linear regulators. i've seen few catalogue with switching power supply controlled by a PC but I wasn't able to understand the price with so much zeros!
the aim of this project is to get something more than a simple power supply. I've just done a prototype using the PIC18F4550 but it cannot pretend the performance described herein. Dodolabpower is composed by various sections:
1) High voltage; convert efficiently the AC line supply in DC current using a dsPIC SMPS to control the Power Factor Correction and the Flyback converter (in theory it could be implemented using 2 pwm coming from PIC32 but there are increasing costs due to passive circuitry than using a dsPIC!).
2) Low voltage; a low power linear regulator generate 3.3 v for internal circuit and another linear regulator generate the 3.3 v, 5 v and adj V for low power external circuit with shortcut protection.
3) high power supply is controlled by PIC32 as double buck converter. The PIC32 thakes the decision with a double PID control funcion and the parameters (Ki, Kp, Kd) can be changed by keyboard or by software on PC connected via USB (device).
Simples regulations can be done stand alone and values read on a 128 x 64 monochrome lcd display. I don't want to use larger display because deeper controls can be done by PC.
I think to provide at least four analog channel that connected with probe can give us informations about voltage fluctuations on our test boards. Hardware trigger are very helpful i.e. in case of fast drop out voltages close to high and fast energy requirement; all controlled by Programmable Gain Control in SPI connection with PIC32.
The second SPI (optoisolated) is required to communicate with dsPIC for "on fly" parameter changes.
Dodolabpower can be also used to generate programmed voltage or current change to simulate "on field" environment.


Hope you'll find useful

Ivano
Dodotronic
 

Ratings for DODOLABPOWER a digitally controlled power supply

 
2.27
 
Overall Community Rating
by 10 Community Members

Pic & Plugs

By: gasegal

Click on the image to view full size

Pic & Plugs (rev.1 9/5/08)
A modern (normal) House is full of electrical devices which are all supplied from the same source, the Main:
Washing machine, refrigerator, vacuum cleaner, dishwasher, iron, microwaves oven, TV, PC etc.. are really common devices.
If you sum the power absorbed by each device you’ll find that it is absolutely more of the power your house Power meter can accept. Sometime (or often), our Housewifes use these devices contemporarily with the risk of over load and sure disconnection from the main. Moreover some load/device are critical (for example the refrigerator) and they needs to be monitored also when you are out of home, other are less critical and should be disconnected for a while to avoid an overload.
This system consist in a Pic Console and various intelligent Plugs /Sockets. It does not require any change in your electrical wiring. It can start with the console and One Plug and is extremely flexible and easy to upgrade (buying another plug!!). This Plug could have a connector (a jack) to which could be connected a remote sensor ( temperature, humidity sensor, etc..).
As soon as the Plug is connected to the main the Pic Console , via MiWi, recognizes it and informs the user that a new plug is connected to the main. Using the display and Touch you can start to configure the Plug and the load/device connected to it: giving a name (for example Vacuum Cleaner) , defining the priority (never disconnect, disconnect if overload) and other functionality (send a message via SMS, Buzzer ON etc..)….
The USB OTG open the doors to every type of application: Upgrade configuration via pen drive or PC, Internet connection via WiFi pen, etc..
The GSM module is an option and offers the possibility to be alerted if a problem is occurred on the load.
In detail the Pic Console is composed by:
PIC32
TFT Display 3,5” with touch-screen (thanks to Microchip Graphics library)
USB OTG
MiWi module
Single cell Li-Ion or Lithium Polymer battery (it’s a portable device!!)
BatteryCharger: I will use the Microchip MCP73855 so I can supply it via USB or using a Wall Mount 5V 5W Power supply.
DC-DC converter: I will use MCP1601 for the micro while if I need a step up for the Display backlight, I will use the MCP1650.
Buzzer
 

Ratings for Pic & Plugs

 
2.17
 
Overall Community Rating
by 6 Community Members

Multiloop PID controller with auto tunning

By: sasian

Click on the image to view full size

This is a PID controller with auto tunning for up to 8 loop which can operate manual, auto or cascade mode and offer several configuration parameter like gains, dead band,alarms and a complete configuration of analog inputs (ranges, filters, alarm,..)
I will use a tactile color QVGA to operate the controller and will implement a MODBUS TCP SERVER to remote operation.

Ratings for Multiloop PID controller with auto tunning

 
2.54
 
Overall Community Rating
by 8 Community Members

The Ultimate Security Pet Door

By: jhbinseattle

Click on the image to view full size

Our previous pet doors were getting destroyed, due to the neighborhood. In addition, the area where we live in is teaming with cats, possums,
and rats. So, a very unique security door is necessary to allow our cat access to our house. With a few pieces from a destroyed pet door,
a PIC32, old robot parts, and access to a shop with excess Plexiglas, I will be constructing the Ultimate Security Pet Door.
The door in which the pet door will be installed is located next to a power outlet and a hole for the Ultimate Security Pet Door is already available. The components of the Ultimate Security Pet Door are as follows:
IR Transmission Pendant:
From a previously purchased pet door, the cat will be wearing this pendant. As the cat wears this pendant, the IR Receiver will pickup and identify this device when the cat walks within the sensor’s range.
IR Receiver:
Using the PIC32 to control the sensor, a specific IR transmission pendant can be correctly sensed and identified.
IR Motion Sensor:
This sensor will be used as a motion detector and will be controlled by the PIC32 micro controller A/D converter. These sensors use voltage levels
to determine distances to objects that pass in front of them.
Web Camera:
An old Game boy camera sensor will be used to record the image of objects that are detected by the IR Motion Sensor. The PIC32 will be used to setup and run this sensor.
Lights:
To be used for both quick status of the system and to provide light for the Web Camera, the PIC32 will provide the appropriate logic to activate
them.
LCD:
This component will be used to display overall status and specific requests.
RS232 Interface:
This port will be used to provide an interface to the PIC32 and can be used for specific types of inputs from a laptop.
MicroSD Flash Drive:
This component will be used to data log all information obtained from the sensors of objects that interact within range of the Ultimate Security Pet door.
Load Sensor:
Our cat is an allusive feline and any information on its health would be helpful. Since the hole in the door creates a corridor of 4 inches between the
front and back door surfaces, load sensors can be mounted under a false floor to determine the animal’s weight. Any trends can be determined by data analysis or by LCD alert.
Motor:
A motor will be controlled by the PIC32 and will be used to open the pet door to allow entry of our beloved cat. This can be changed to a solenoid.
The structure will be constructed out of Plexiglas, due to the fact that I have access to tools that can be used to form Plexiglas into the Ultimate Security Pet Door.
 

 

 

Книга по PIC32

ISBN-10: 0750687096 ISBN-13: 978-0750687096

Programming 32-bit microcontrollers in C

Intro

The first step in almost every rehabilitation program is:
 

  • A- Acknowledge … your limitations.
     

So this is how I need to introduce this book, I will admit it:
 

I am an 8-bitter!
I have been programming 8-bit microcontrollers since I was in high school and for most of my professional career. And there is worse, while I am relatively fluent in several high level programming languages, I truly love assembly programming!
There, I said it!
 

I love that kick that I get when I know I used every single machine cycle in every microsecond my embedded applications run.
 

I am also obsessed with control: I like to know of every configuration bit in every peripheral I use.
So why would I write a book about 32-bit programming in C?


 

In fact I started what I should call my “rehabilitation program” a couple of years ago by approaching the programming of 16-bit microcontrollers first. The introduction of the PIC24 family of microcontrollers gave me the motivation to try and migrate to C programming with a new and exciting architecture. As a result of my experience, I wrote the first book: “Programming 16-bit microcontrollers in C. Learning to fly the PIC24”.
 

But by the time the book was published, rumors circulated in Microchip that a new 32-bit chip had just come out of the “ovens” and I had to have one!
I’ll spare you the details of how I got my hands around one of the very first test chips, but what you need to know is that in a matter of days I had most of the code, originally developed for the PIC24 book, ported and running on the PIC32 plugged in my old Explorer16 board.
Microchip marketing folks will tell you that the PIC32 architecture was specifically designed so to make the “migration” from 8-bit and 16-bit PIC architectures smooth and seamless, but I had to see it with my eyes to believe it.
So who better than an assembly-loving, control-obsessed, 8-bitter can tell you about the exploration of the PIC32?
 

Who should read this book?

The PIC32 is a remarkably easy to use device, nonetheless this book can only offer a small glimpse into the vast world of 32-bit programming and in fact I call it a first exploration.
It is my strong belief that learning should be fun, and I hope you will have a good time with some of the playful exercises and projects I present throughout each chapter in the book.
However you will need quite some preparation and hard work in order to be able to digest the material I am presenting at a pace that will accelerate rapidly through the first few chapters.
This book is meant for programmers of a basic to intermediate level of experience, but not for “absolute” beginners; so don’t expect me to start with the basics of the binary numbers, the hexadecimal notation or the fundamentals of programming. Although, we will briefly review the basics of C programming as it relates to the applications for the latest generation of general-purpose 32-bit microcontrollers, before moving on to more challenging projects.
 

What this book is not!

Mind this is not a sequel to the Flying PIC24 book, but rather its alter ego in the 32-bit world. The book walks the reader through most of the same steps and exercises though everything looks similar and different at the same time… The underlying theme is the exploration of a new world and the final objective is that of learning gradually to trust a C compiler (MPLAB C32) and learn to use a new PIC with a brand new (MIPS) 32-bit core!
 

These are some of the questions I have tried to answer in the book:

  • Does the PIC322 look like a PIC?
  • Does it feel like a PIC?
  • How similar is the PIC32 to the PIC24, really?
  • How fast can you port code from one to the other?
  • Is it easier or harder to use?
  • And most importantly, how much faster does it really run?

You will learn about:

  • Programming in C using the MPLAB C32 compiler (GCC)
     
  • Basic timing and I/O operation
  • Debugging methods with the MPLAB SIM simulator and ICD tools
  • Multitasking using the PIC32 interrupts
  • New hardware peripherals
  • How to control LCD displays
  • Experimenting with the Explorer16 board and the PIC32 Starter Kit
  • Accessing mass-storage media
  • Generating audio
     
  • Generating video
     
  • and more...

 

Hosted by uCoz