PaulMyao 发表于 2013-11-30 13:23:54

arduino耗电量的问题

arduino uno 的耗电量是多少 在执行blink

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);   
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(3600000);               // wait for a second
}




灯熄灭后的延时是一个小时 也就是说 一个小时亮一次他的耗电量大概在在多少?

林定祥 发表于 2013-11-30 16:10:15

一般在300ma,不知是否有省电模式。

wing 发表于 2013-11-30 17:34:29

应该只有几十毫安,不会过百的

smching 发表于 2013-11-30 19:47:21

林定祥 发表于 2013-11-30 16:10 static/image/common/back.gif
一般在300ma,不知是否有省电模式。

省电模式有五种
   *   SLEEP_MODE_IDLE         -功率节省最少
   *   SLEEP_MODE_ADC
   *   SLEEP_MODE_PWR_SAVE
   *   SLEEP_MODE_STANDBY
   *   SLEEP_MODE_PWR_DOWN   -最省电

http://playground.arduino.cc/Learning/arduinoSleepCode

林定祥 发表于 2013-11-30 20:02:04

{:soso_e179:}

林定祥 发表于 2013-11-30 20:03:59

需要启用省电模式才省电

PaulMyao 发表于 2013-11-30 20:32:21

林定祥 发表于 2013-11-30 20:03 static/image/common/back.gif
需要启用省电模式才省电

怎样启动?
求教

PaulMyao 发表于 2013-11-30 20:34:21

smching 发表于 2013-11-30 19:47 static/image/common/back.gif
省电模式有五种
   *   SLEEP_MODE_IDLE         -功率节省最少
   *   SLEEP_MODE_ADC


对于这个还是不太懂 能给个blink 加入省电的示例吗?
:lol

林定祥 发表于 2013-11-30 21:00:15

smching 发表于 2013-11-30 19:47 static/image/common/back.gif
省电模式有五种
   *   SLEEP_MODE_IDLE         -功率节省最少
   *   SLEEP_MODE_ADC


省电模式需要中断唤醒,例子是外部中断,内部中断应该也可以吧,如时钟中断。

林定祥 发表于 2013-11-30 21:01:54

PaulMyao 发表于 2013-11-30 20:34 static/image/common/back.gif
对于这个还是不太懂 能给个blink 加入省电的示例吗?

请读一下smching答复中的链接。

PaulMyao 发表于 2013-11-30 21:11:46

读过了变得更糊涂了 现在外部中断 看门狗 还有节省点这三个概念 完全混了

johnsonzzd 发表于 2013-12-1 14:36:38

arduino就不是为低功耗设计的。除cpu外,外围电路耗电更大。要省电的话,必须最小系统。
http://www.openhomeautomation.net/arduino-battery/

PaulMyao 发表于 2013-12-2 10:51:09

johnsonzzd 发表于 2013-12-1 14:36 static/image/common/back.gif
arduino就不是为低功耗设计的。除cpu外,外围电路耗电更大。要省电的话,必须最小系统。
http://www.openh ...

这个厉害了~~~

htctech 发表于 2014-7-16 00:26:32

标记一下,这个有点用

amaverick 发表于 2016-7-22 22:53:05

johnsonzzd 发表于 2013-12-1 14:36 static/image/common/back.gif
arduino就不是为低功耗设计的。除cpu外,外围电路耗电更大。要省电的话,必须最小系统。
http://www.openh ...

收藏备用。
页: [1]
查看完整版本: arduino耗电量的问题