Visualizzazione post con etichetta Consumption. Mostra tutti i post
Visualizzazione post con etichetta Consumption. Mostra tutti i post

martedì 5 marzo 2019

Measure the consumption of ST Nucleo

To measure the real consumption of the ST NUCLEO
We must:
1) Remove the IDD jumper (JP6 - highlighted in black and red)
2) On the left the negative pole on the right the positive pole (black and red colors)
3) set 
multimeter to DC
4) Measurement ranges: mA  for STM32Fxx  family; μAfor STM32LXX family



 This page is under  Creative Common BY-SA

lunedì 29 dicembre 2014

Misurare I Consumi della ST Nucleo





Per misurare  i reali consumi della ST NUCLEO
Bisogna:
Togliere il jumper IDD (JP6 -evidenziato con i colori nero e rosso)
2) A sinistra il polo negativo a destra quello positivo (colori nero e rosso)
3) Setta il multimetro su DC
4) Per la famiglia STM32Fxx usa il range  milliAmpere (mA), per la famiglia STM32LXX  usa il range microAmpere(μA)


Questa pagina è sotto licenza Creative Common BY-SA

martedì 22 luglio 2014

Riduzione consumi di un Arduino uno R3


 
 Arduino di norma non ha un efficace gestione delle politiche di risparmio dei consumi , mentre altre  hanno un power managment che gestisce i consumi, disattivando tutto quello che non serve in arduino bisogna fare tutto a mano
Incominciamo a dire che i test sono fatti con arduino Uno R3, da data sheet abbiamo che i consumi sono di 50 mA 

Se si vuole fare le cose in maniera manuale  si puo' disabilitare
 
#include <avr/sleep.h>
void setup(){
  //abilito sleep mode
  sleep_enable();
  //scelgo la tipologia di sleep mode
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);
  //disabilito tutte le periferiche
  ADCSRA = 0;  //disabilito ADC
  PRR = 0xff;  //disabilito tutte le periferiche 
  //mando giu' BOD:
  MCUCR = _BV (BODS) | _BV (BODSE);   
  MCUCR = _BV (BODS);        
  //mando in sleep mode la cpu
  sleep_cpu();
}
void loop(){
}
 
  
dove:






ADCSRA abilita o disabilita ADC 
 
la libreria di ARDUINO ha una variabile di nome PRR. Settando PRR a 1 accendo la 
periferica a 0 si spegne
    Bit 7 - PRTWI: Power Reduction TWI
    Bit 6 - PRTIM2: Power Reduction Timer/Counter2
    Bit 5 - PRTIM0: Power Reduction Timer/Counter0
    Bit 4 - Res: Reserved bit
    Bit 3 - PRTIM1: Power Reduction Timer/Counter1
    Bit 2 - PRSPI: Power Reduction Serial Peripheral Interface
    Bit 1 - PRUSART0: Power Reduction USART0
    Bit 0 - PRADC: Power Reduction ADC 

 al setup se vuoi disabilitae ADC, USART0, TWI, SPI devi settarli

ADCSRA = 0;
PRR = B10010111;

Il compito del Brown-out Detection (BOD) è quello di ripristinare il controller quando la tensione di alimentazione è troppo bassa per un funzionamento sicuro.
BOD può essere impostato su più livelli di tensione  o puo' essere spento. I livelli di BOD sono 4.3V, 2.7V e 1.8V. Lo standard è 2.7 V che è buono quando si dispone di alcuni dispositivi collegati 3.3V

 per disabilitare il BOD (Bisogna comunque disativare prima sempre ADC per poterlo disabilitare)

MCUCR = _BV (BODS) | _BV (BODSE);
MCUCR = _BV (BODS);

 poi ci sono le varie modalità di sleep mode le quali si differenziano da ltempo di risveglio del microconrollore e quandi della risposta che deve fornire l'intero sistema 

  Sleep modes  e Consumi:

  • SLEEP_MODE_IDLE: 15 mA
  • SLEEP_MODE_ADC: 6.5 mA
  • SLEEP_MODE_PWR_SAVE: 1.62 mA
  • SLEEP_MODE_EXT_STANDBY: 1.62 mA
  • SLEEP_MODE_STANDBY : 0.84 mA
  • SLEEP_MODE_PWR_DOWN : 0.36 mA


Se si vuole usare invece in un progetto dove non sivuole consumare troppa batteria e si vuole far risvegliare Arduino con un interrupt.

Questo è il link per poter testare il tutto, bisogna pero', con un cavo collegare il pin  D0 e il pin D2 cosi' l'evento verrà generato dall'invio di un dato dalla testiare sulla seriale



Questi sono i riferimenti che ho utilizzato per le prove:

link1 
link2
link3
link4
poi c'è questo forum link
importante esempio  link

esempio con libreria link

gestione interrupt link  oppure link



Questa pagina è sotto licenza Creative Common BY-SA
 This page is under Creative Common BY-SA

lunedì 24 marzo 2014

Power Consumption



I take this data form datasheet of product. Sometimes i test it.

/**BOARD**/
Arduino uno rev. 3 (ATmega328)
Power Supply:  5 v
Power Consumption: 50 mA.

Raspberry PI 

Power Supply:  5 v
Power Consumption: min: 200  mA. - max: 500 mA



  /**SENSOR**/ 

Ultrasonic Sensor HC-SR04
 Power Supply: 5v
Sleep  Mode : < 2mA
Working Current: 15mA
Effectual Angle: <15°

Ultrasonic Sonar Module US-100
Technology 40 kHZ Ulrasonic Sonar
Sensor Range 2cm - 350 cm (Temperature compensation)
Power input 3V-5V DC @ 3.5 mA Typ



Temperature -Humidity DHT11
 Power Supply:    5v         or  3 v
Sleep  Mode :  150 uA        -  100 uA
Average Mode : 1 mA        -   0.2 mA
Working Current: 2.5 mA   -  0.5 mA


Water Sensor  Gavazzi VP02EP  - tested
 Power Supply: 5v
Sleep  Mode :  1.20 mA
Working Current: 1.80mA
FROM data sheet






/**TRASMISSION**/

WiFi Shield V2.2 For Arduino (802.11 b/g)
Power Source: 3.3V
Power Consumption(Typical):
Standby = 34.0 µA
Receive = 125.0 mA
Transmit = 135.0 mA




Arduino GSM Shield - QUECTEL M10
 Power Supply: 3.4 - 4.5 v
Power Consumption :
  SLEEP MODE : 1.1 mA @DRX=5 -- 0.7 mA @DRX=9  QUAD BAND
Power Consumation
For GPRS Data (1 Rx, 1Tx) CLASS 12
GSM 850
@power level #5 <350 mA, Typical 280 mA
@power level #12 Typical 145 mA
@power level #19, Typical 90 mA
EGSM 900
@power level #5 <350 mA, Typical 260 mA
@power level #12 Typical 135 mA
@power level #19, Typical 90 mA
 DCS 1800
@power level #0 <300 mA, Typical 200 mA
@power level #7 Typical 120 mA
@power level #15, Typical 90 mA
PCS 1900
 @power level #0 <300 mA, Typical 230 mA
@power level #7 Typical 130 mA
@power level #15, Typical 90 mA




/** MICROPHONE **/

MEMS Microphone Breakout - INMP401 (ADMP401)
4.72 mm × 3.76 mm × 1.0 mm surface-mount package
High SNR of 62 dBA
Sensitivity of −42 dBV
Flat frequency response from 100 Hz to 15 kHz
Low current consumption of <250 μA
Single-ended analog output
High PSR of 70 dB
Compatible with Sn/Pb and Pb-free solder processes
RoHS/WEEE compliant





Voice Recorder Breakout - ISD1932

Voice Recorder Breakout - ISD1932
consumption : 2.4 -5.5 V
Temperature: -40 C to 85 C (industrial range)
Automatic power down after each operation cycle



Seeedstudio Grove Sound Recorder SEN71254P

Can be controlled both manually or by MCU
Non-volatile Flash memory technology, No battery backup required;
User-friendly, easy-to-use operation;
 Working voltage: 3V- 5V
Recommended Working voltage: 5V
Standby Mode Current: 2 μA
Range:±1.5g
Weight: 2g
Low Power consumption, Operating current:25 mA, standby current: 1uA
Sample rate and duration changable by replacing a single resisto



Grove Infrared Reflective Sensor
Operating voltage: 4.5 V - 5.5 V
Digital output, 0 or VCC
High resolution sensor;minimum detectable length: 1mm black line
Effective distance:4-15mm
Indicator LED on board
Sensitivity adjustable via potentiometer
Small Grove 1X1 compatible interface
Current:14.69 - 15.35 mA
Effective Distance :4-15 mm

DHT11 Humidity & Temperature Sensor















Infra Red Thermometer MLX90614

temperature ranges: -40 to 125 °C for ambient
temperature ranges: -70 to 382.2 °C for the object
Operating voltage: 5V compatible or 3V (battery) compatible
low consumption mode “sleep mode” (3V version only),  current consumption to 2.5uA


PIR Motion Sensor EKMB





Water sensor
    Low power consumption
    High sensitivity








this page is under Creative Common BY-SA