STM32F4 DISCOVERY BOARD


The STM32F4DISCOVERY helps you to discover the STM32F4 high-performance features and to develop your applications easily. It includes everything required for beginners and experienced users to get started quickly.

Based on the STM32F407VGT6, it includes an ST-LINK/V2 embedded debug tool, two ST MEMS, digital accelerometer and digital microphone, one audio DAC with integrated class D speaker driver, LEDs and push buttons and an USB OTG micro-AB connector.

A large number of free ready-to-run application firmware examples are available on www.st.com/stm32f4-discovery to support quick evaluation and development.

DATA BRIEF

Features

  • STM32F407VGT6 microcontroller featuring 32-bit ARM Cortex-M4F core, 1 MB Flash, 192 KB RAM in an LQFP100 package
  • On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone ST-LINK/V2 (with SWD connector for programming and debugging)
  • Board power supply: through USB bus or from an external 5 V supply voltage
  • External application power supply: 3 V and 5 V
  • LIS302DL, ST MEMS motion sensor, 3-axis digital output accelerometer
  • MP45DT02, ST MEMS audio sensor, omni-directional digital microphone
  • CS43L22, audio DAC with integrated class D speaker driver
  • Eight LEDs:
    • LD1 (red/green) for USB communication
    • LD2 (red) for 3.3 V power on
    • Four user LEDs, LD3 (orange), LD4 (green), LD5 (red) and LD6 (blue)
    • 2 USB OTG LEDs LD7 (green) VBus and LD8 (red) over-current
  • Two push buttons (user and reset)
  • USB OTG FS with micro-AB connector
  • Extension header for all LQFP100 I/Os for quick connection to prototyping board and easy probing

Description

The STM32F4DISCOVERY helps you to discover  the STM32F4 high-performance features and to develop your applications easily. It includes everything required for beginners and experienced users to get started quickly.
Based on the STM32F407VGT6, it includes an ST-LINK/V2 embedded debug tool, two ST MEMS, digital accelerometer and digital microphone, one audio DAC with integrated class D speaker driver, LEDs and push buttons and an USB OTG micro-AB connector. A large number of free ready-to-run application
firmware examples are available on www.st.com/stm32f4-discovery to support quick evaluation and development. To expand the functionality of the STM32F4 Discovery kit with Ethernet connectivity, LCD
display and more, visit www.st.com/stm32f4dis-expansion.

System requirements

● Windows PC (2000, XP, Vista, 7)
● USB type A to Mini-B cable

Development toolchains

● Altium TASKING™ VX-Toolset
● Atollic TrueSTUDIO®
● IAR, Embedded Workbench® for ARM
● Keil, MDK-ARMTM

Demonstration software

 The demonstration software is preloaded in the board’s Flash memory. It uses the MEMS
motion sensor to blink the four LEDs according to the motion direction and speed.
Connecting the board to a PC with a second USB 'type A to micro-B' cable converts it into a
standard mouse, and board motion controls the PC cursor.
The latest versions of the demonstration source code and associated documentation can be
downloaded from www.st.com/stm32f4-discovery.

LINK

 

Courtesy:http://www.st.com

Digital Voltmeter using PIC Microcontroller





This is a simple voltmeter which measures 0-5V at a precision of 4.8 mV. This is a simple design using inbuilt ADC of PIC 16F877A. PIC 16F877A have 8 channel 10bit ADC.  Measured voltage is displayed on 16x2 LCD display.
Using one of the most popular 8 bit PIC 16f877A, for instance, reading the datasheet, we'll find that the ADC modules (10 bit) are controlled by four different registers. The first two, ADCON0 and ADCON1, are used to set and start the ADC module. When high level language is used, the programmer doesn't need to care a lot of the register connected to the results because they are normally stored in a variable by a routine of the language itself (adc_read, for instance, using mikroc).
The ADCON0
As we can see this registers are 8 bit registers where.
- bit6 and bit 7 are used to set the frequency of the conversions.
- bits 3, 4 and 5 are used to select the pins of the microcontroller enabled to theadc conversions.
- bit 2 represents the status of the conversion procedure.
- bit 0 starts the conversion.


Regarding the second register, ADCON1, it must be set for two reasons: to select the format of the result value (bit 7), to select (bit0...bit3) the reference voltage and to set the port configuration control bits according to the following table




This circuit uses AN0 channel of ADC. The voltage conversion is employed in a logic, 16F877A have 10 bit ADC. That is, it can have 1024 levels. Reference voltage is fixed at
0 – 5 V Analog I/P is mapped to one of the 1024 levels (0-1023 Digital Count)
Resolution = 5/(1024)   (as it is 10 bit ADC)
= 5/1024
= 4.8828 mV   It  means that for a change in 4.8828mV, the binary output changes by 1.

For More Details See
PC Based Digital Voltmeter Using PIC 16F877A

ADC module of PIC Microcontroller converts the Signals on its analog pin to 10 bit binary data and it has software selectable high and low voltage reference input to some combination of VDD, VSS, RA2 and RA3. The analog input to PIC is limited to 0 to 5.The converted value is in mV. It is then converted to volts and displayed on LCD.


 Circuit



Digital Voltmeter using PIC Microcontroller 

 Code


/**********************************************/
/*
  
 http://www.facebook.com/EmbeddedProjects

 http://microcontrollerprojects00.blogspot.in/

 Author: Vishal K M

 uC:16F877A
 Compiler: mikroC
 Crystal freq: 4MHz


                                              */
/**********************************************/
// LCD module connections
sbit LCD_RS at RC0_bit;
sbit LCD_EN at RC2_bit;
sbit LCD_D4 at RD4_bit;
sbit LCD_D5 at RD5_bit;
sbit LCD_D6 at RD6_bit;
sbit LCD_D7 at RD7_bit;

sbit LCD_RS_Direction at TRISC0_bit;
sbit LCD_EN_Direction at TRISC2_bit;
sbit LCD_D4_Direction at TRISD4_bit;
sbit LCD_D5_Direction at TRISD5_bit;
sbit LCD_D6_Direction at TRISD6_bit;
sbit LCD_D7_Direction at TRISD7_bit;
// End LCD module connections






unsigned long temp;
unsigned int i;
char digit[]="0.000 VOLTS";

void main() {


TRISA=0xFF;


ADCON0=0x01;
ADCON1=0x0E;

 

     Lcd_Init();                        // Initialize LCD

  Lcd_Cmd(_LCD_CLEAR);               // Clear display
  Lcd_Cmd(_LCD_CURSOR_OFF);          // Cursor off
  LCD_Out(1,1,"EMBEDDED");
   LCD_Out(2,1,"PROJECTS BLOG");
   Delay_ms(1000);

  do {
    temp = ADC_Read(0);   // Get 10-bit results of AD conversion
    temp=temp*5000/1023;   //Convert ADC value to mV
   
   

    digit[0]=(temp/1000)+48;
    digit[2]=((temp%1000)/100)+48;
    digit[3]=(((temp%1000)%100)/10)+48;
    digit[4]=(((temp%1000)%100)%10)+48;
   
    LCD_Cmd(_LCD_CLEAR);
    LCD_Out(1,1,digit);

      //Carriage Return
    Delay_ms(500);

  } while(1);
}


Download Project Files

 
Copyright Electronics Projects And Details All Rights Reserved
ProSense theme created by Dosh Dosh and The Wrong Advices.
Blogerized by Alat Recording Studio Rekaman.