yongyuan824 发表于 2012-12-16 17:24:09

darkorigin 发表于 2012-12-16 17:09 static/image/common/back.gif
现在了解了,只是把AD/DA的基准电源降低,以增加精度.

{:3_41:} 哦,thank

hmjack2008 发表于 2013-3-27 14:26:48

貌似ATmega32 是 2.56V !!

玄冰之神 发表于 2013-4-15 16:08:31

:D好帖 必须留下足迹。顶

hdragon627 发表于 2013-5-14 22:54:32

迷你强 发表于 2012-9-16 11:17 static/image/common/back.gif
你竟然没看到我们论坛导航栏上有硕大的WIKI么?我们倾力汉化的《arduino语法手册》就放在里面。。。。。。 ...

能导出成离线版的吗?

ro0t 发表于 2013-5-31 15:09:28

我也不懂。。。。

按咱们的例子程序说

基准变成1.1V了

A0脚 要是输入大于1.1V的电压比如 3V

n 会是多少呢??

是1024还是1024*3/1.1 =2792

wjf3780 发表于 2013-5-31 16:00:56

Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are:
DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

ro0t 发表于 2013-5-31 16:26:46

本帖最后由 ro0t 于 2013-5-31 16:27 编辑

楼上的大神   救命啊

谷歌了一下还是不明白

配置用于模拟输入(即所使用的值作为输入范围的顶部)的参考电压。选项有:
默认值:默认的模拟参考(上5V的Arduino板),5伏或3.3伏(3.3V的Arduino板)
内部:内置参考,等于ATmega168的ATMEGA328和2.56伏于ATmega8(不可用Arduino上万至1.1伏)
INTERNAL1V1:内置1.1V参考(Arduino的万只)
INTERNAL2V56一个内置2.56V参考(Arduino的兆丰)
外部电压施加到AREF引脚(0至5V)作为参考。

迷你强 发表于 2013-6-1 08:05:36

ro0t 发表于 2013-5-31 16:26 static/image/common/back.gif
楼上的大神   救命啊

谷歌了一下还是不明白


这个,这个。。。还没试验过大于1.1的。。。。不知道耶。。。。

ro0t 发表于 2013-6-1 13:29:29

求助各位大神

当电源电压是5V,使用内部1.1V基准电压时A0口输入 大于1.1V但小于5V的电压,会不会烧芯片。。。???

要是不会烧我就试一下看是怎么回事。。。

迷你强 发表于 2013-6-1 21:15:40

ro0t 发表于 2013-6-1 13:29 static/image/common/back.gif
求助各位大神

当电源电压是5V,使用内部1.1V基准电压时A0口输入 大于1.1V但小于5V的电压,会不会烧芯片 ...

不知道,没试过。。。

ro0t 发表于 2013-6-16 09:42:21

刚刚做了测试,当A0的电压大于1.1V时,analogRead(A0)的值是 1023 ,测试电压最高到5V没烧芯片。

mocodo 发表于 2013-7-8 09:40:06

弱问,既然内部基准更精确,为啥还要默认为5V呢?

迷你强 发表于 2013-7-9 11:03:05

mocodo 发表于 2013-7-8 09:40 static/image/common/back.gif
弱问,既然内部基准更精确,为啥还要默认为5V呢?

内部基准源只是相对于USB供电情况下,精度高一些,LDO稳压的精度比内部基准源更高

swdsbt 发表于 2013-7-15 10:34:17

调用内部1.1V基准来试试看从LM35读取的温度数值.为什么会出现sketch_jul15a:4: error: 'INTERNAL' was not declared in this scope

迷你强 发表于 2013-7-15 10:56:51

swdsbt 发表于 2013-7-15 10:34 static/image/common/back.gif
调用内部1.1V基准来试试看从LM35读取的温度数值.为什么会出现sketch_jul15a:4: error: 'INTERNAL' was not...

额......没有遇到过。。你IDE版本多少。。。
页: 1 2 [3] 4 5
查看完整版本: Arduino入门教程--第十七课--使用内部基准源进行ADC采样