Вольтметр на микроконтроллере Discuss Вольтметр на микроконтроллере https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html Fri, 29 Mar 2024 04:38:26 +0000 JComments Alan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5613 Alan Fri, 25 May 2018 13:54:05 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5613 wind says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5028 wind Mon, 15 May 2017 17:51:32 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5028 Валерий says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5026 Валерий Tue, 14 Mar 2017 19:31:59 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5026 Валерий says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5025 Валерий Sat, 04 Mar 2017 18:42:57 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-5025 mortis says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4967 mortis Wed, 07 Dec 2016 14:37:07 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4967 mortis says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4966 mortis Wed, 07 Dec 2016 14:35:55 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4966 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4962 Pashgan Wed, 30 Nov 2016 21:14:19 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4962 mortis says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4956 mortis Wed, 23 Nov 2016 08:43:29 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4956 Олег Ya says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4936 Олег Ya Mon, 31 Oct 2016 14:03:14 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4936 Jman says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4893 Jman Tue, 06 Sep 2016 08:36:41 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4893 Александр says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4751 Александр Mon, 07 Mar 2016 22:31:26 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4751 Dimm says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4633 Dimm Wed, 28 Oct 2015 16:43:03 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-4633 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3849 foxit Tue, 04 Mar 2014 06:52:10 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3849 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3388 Pashgan Tue, 29 Oct 2013 05:00:14 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3388 Nick says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3386 Nick Mon, 28 Oct 2013 19:18:58 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-3386 Артём says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2793 Артём Tue, 09 Apr 2013 11:14:16 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2793 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2758 Pashgan Fri, 05 Apr 2013 22:37:20 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2758 Артём says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2750 Артём Fri, 05 Apr 2013 10:03:08 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2750 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2744 Pashgan Wed, 03 Apr 2013 17:24:27 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2744 nonstop222 says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2743 nonstop222 Wed, 03 Apr 2013 12:16:35 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2743 Pavel-f says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2259 Pavel-f Mon, 10 Dec 2012 21:16:20 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2259 Валерий Юрье.. says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2254 Валерий Юрье.. Wed, 05 Dec 2012 20:11:37 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2254 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2195 Pashgan Sun, 04 Nov 2012 17:41:32 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2195 dimon16 says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2194 dimon16 Sun, 04 Nov 2012 17:02:48 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2194 RAYN3 says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2083 RAYN3 Mon, 02 Apr 2012 07:49:54 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2083 VLDDnepr says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2047 VLDDnepr Sat, 03 Mar 2012 12:13:16 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2047 Паша says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2015 Паша Thu, 09 Feb 2012 21:26:00 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-2015 Димка says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1611 Димка Sat, 23 Jul 2011 07:07:16 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1611 alex1991 says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1538 alex1991 Sun, 19 Jun 2011 15:32:23 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1538 pirat_os says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1533 pirat_os Wed, 15 Jun 2011 17:23:19 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1533 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1495 foxit Thu, 19 May 2011 18:35:18 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1495 Новичок says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1420 Новичок Sat, 02 Apr 2011 07:52:10 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1420 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1282 Pashgan Thu, 03 Mar 2011 11:21:50 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1282 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1281 Pashgan Thu, 03 Mar 2011 11:21:36 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1281 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1275 foxit Sun, 27 Feb 2011 20:48:12 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1275 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1262 foxit Sat, 26 Feb 2011 09:38:30 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1262 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1260 Pashgan Sat, 26 Feb 2011 09:30:25 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1260 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1256 foxit Fri, 25 Feb 2011 16:36:29 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-1256 Kvark85 says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-950 Kvark85 Fri, 24 Dec 2010 11:47:52 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-950 Indigo says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-910 >3 получается у Вас не выборка среднего значения (это усреднение ведь же не пропадет, она все равно будет совершено на следующих этапах, но - без потерь, за счет бОльших чисел), а вредоносное действо по грубому отсеканию дробной части на начальном участке вычислений. Чего этим добились - я показал в цифрах. Правило одно - как можно большие числа хранить как можно дольше. С ними точнее.]]> Indigo Mon, 13 Dec 2010 16:01:32 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-910 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-903 Pashgan Sun, 12 Dec 2010 19:18:17 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-903 Indigo says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-901 >3 ? Это же мало того что увеличивает время в прерывании, но еще и гробит точность! Проверим. ADC дал 8 показаний: 799 799 799 799 800 800 800 800. Посчитаем на калькуляторе точноe значение Uin. 1. Сумма 8-ми измерений = 6396. 2. 6396/8 = 799.5 3. 799.5 * 3096 / 1023 = 2419,60 Это наш "эталон" - 24.19 на индикаторе. Давайте сделаем Ваш пример: 1. Сумма 8-ми измерений = 6396. 2. 6396/8 = 799 (int!) 3. 799 * 3096 / 1023 = 2418 (int!) На индикаторе 24.18 вместо 24.19. Ошибка небольшая, но зачем она нужна? Делаем: 1. Сумма 8-ми измерений = 6396. 2. 6396 * 3096 / (1023*8) = 6396 * 3096 / 8184 = 2419 (int) На индикаторе 24.19 как надо. Да еше и размер кода уменьшился, и время обработки прерывания.]]> Indigo Sun, 12 Dec 2010 16:04:18 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-901 Nemo says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-610 Nemo Thu, 09 Sep 2010 09:48:10 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-610 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-600 Pashgan Thu, 02 Sep 2010 20:36:51 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-600 Alexander says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-594 Alexander Thu, 02 Sep 2010 11:29:47 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-594 Guest says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-556 Guest Mon, 23 Aug 2010 09:42:27 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-556 Guest says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-518 Guest Tue, 03 Aug 2010 15:34:22 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-518 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-474 foxit Thu, 24 Jun 2010 12:25:38 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-474 Guest says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-468 Guest Tue, 22 Jun 2010 15:59:49 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-468 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-467 foxit Mon, 21 Jun 2010 20:18:48 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-467 Guest says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-466 Guest Mon, 21 Jun 2010 20:12:17 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-466 Guest says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-464 Guest Mon, 21 Jun 2010 11:40:34 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-464 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-439 Pashgan Mon, 07 Jun 2010 15:24:49 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-439 kotyara says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-438 kotyara Mon, 07 Jun 2010 13:59:44 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-438 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-402 Pashgan Sun, 16 May 2010 19:36:09 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-402 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-400 foxit Sun, 16 May 2010 13:43:40 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-400 Pashgan says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-388 Pashgan Tue, 11 May 2010 19:41:56 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-388 foxit says: https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-387 foxit Tue, 11 May 2010 14:44:52 +0000 https://chipenable.ru/index.php/programming-avr/59-voltmetr-na-mikrokontrollere.html#comment-387