<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[forum.rcl-radio.ru &mdash; Вольтамперметр для блока питания (Arduino)]]></title>
	<link rel="self" href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=451&amp;type=atom" />
	<updated>2026-02-17T05:14:02Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.rcl-radio.ru/viewtopic.php?id=451</id>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12452#p12452" />
			<content type="html"><![CDATA[<p>Спасибо всё заработало!!!</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-17T05:14:02Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12452#p12452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12451#p12451" />
			<content type="html"><![CDATA[<p>float w = u_0 * a_2;</p><p>if(w&lt;0.005){w=0;}</p><p>&nbsp; if(w&gt;9.999) { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print(w, 1); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }<br />&nbsp; &nbsp;else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print(w, 2); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-17T04:48:43Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12451#p12451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12450#p12450" />
			<content type="html"><![CDATA[<p>что то пошло не так<br /><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2026/02/80273f984b5837212e702ce2c7741fa9.png" alt="http://forum.rcl-radio.ru/uploads/images/2026/02/80273f984b5837212e702ce2c7741fa9.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-17T03:59:44Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12450#p12450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12448#p12448" />
			<content type="html"><![CDATA[<p>float w = u_0 * a_2;</p><p>if(w&lt;0.005){w=0;}</p><p>&nbsp; if((u_0 * a_2)&gt;9.999) { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print(w), 1); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }<br />&nbsp; &nbsp;else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print( (w), 2); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-17T03:09:13Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12448#p12448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12447#p12447" />
			<content type="html"><![CDATA[<p>Всё разобрался плавало из за компа <br />а как в эту строчку&nbsp; &nbsp;if(a_2&lt;0.005){a_2=0;}if(u_0&lt;0.005){u_0=0; }&nbsp; &nbsp;// измерения начинаются с 0,005 В и с 0,005 А<br />добавить мощность ?</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-17T03:05:11Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12447#p12447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12444#p12444" />
			<content type="html"><![CDATA[<p>ну придётся ждать новую АЦП там видно будет</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-16T14:32:19Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12444#p12444</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12443#p12443" />
			<content type="html"><![CDATA[<p>да вроде нет</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-16T14:28:38Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12443#p12443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12442#p12442" />
			<content type="html"><![CDATA[<p>А со скетче я ничего не намудрил ?</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-16T14:26:42Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12442#p12442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12441#p12441" />
			<content type="html"><![CDATA[<p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2026/02/23204ec3f303f6c494fe0cce4ca49d8e.png" alt="http://forum.rcl-radio.ru/uploads/images/2026/02/23204ec3f303f6c494fe0cce4ca49d8e.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-16T14:24:00Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12441#p12441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12440#p12440" />
			<content type="html"><![CDATA[<p>проверьте ацп i2c сканером, по умолчанию адрес 0х48, адрес можно изменить, что в библиотеке, что на самой АЦП.</p><div class="quotebox"><blockquote><p>А может АЦП глючная ?</p></blockquote></div><p> - маловероятно</p><p>я использовал модуль</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-16T14:22:05Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12440#p12440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12439#p12439" />
			<content type="html"><![CDATA[<p>А может АЦП глючная ?<br />брал 3 штуки одна вообще не работает вторая меряет только ток и то в примерно в половину третья стоит сейчас</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-16T14:18:08Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12439#p12439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12438#p12438" />
			<content type="html"><![CDATA[<p>Где то наводки идут. Сама схема измерения делает по 10 измерений тока и напряжения и вычисляет среднее значение, что само по себе дает более стабильные показания.</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-16T14:14:13Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12438#p12438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12437#p12437" />
			<content type="html"><![CDATA[<p>Пробывал уже ставил 1 мкФ эффекта нет</p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-16T14:08:34Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12437#p12437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12435#p12435" />
			<content type="html"><![CDATA[<p>Поставьте конденсаторы 0,1 мкФ на входах АЦП относительно GND, возможно это поможет.</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2026-02-16T13:56:28Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12435#p12435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вольтамперметр для блока питания (Arduino)]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=12434#p12434" />
			<content type="html"><![CDATA[<p>Собрал вольтамперметр почему то плавают показания <br />в чём может быть причина ?<br />#include &lt;Wire.h&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // SDA и SCL (А4 и А5)<br />#include &lt;DallasTemperature.h&gt;<br />#include &lt;Adafruit_ADS1015.h&gt;&nbsp; &nbsp; // Adafruit_ADS1X15-master.zip<br /> Adafruit_ADS1115 ads;<br />#include &lt;OneWire.h&gt; <br /> OneWire oneWire(A1);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // вход для датчиков 18b20<br /> DallasTemperature t(&amp;oneWire);<br />#include &lt;LiquidCrystal.h&gt;<br /> LiquidCrystal lcd(13, 12, 11, 10, 9, 8, 7);// RS, RW, E, D4, D5, D6, D7</p><p>&nbsp; int u0, u1, a2, a3, i ; <br />&nbsp; float u_0,u_1,u_ob0,u_ob1,a_2,a_3,a_ob2,a_ob3,i_reg; <br />&nbsp; const float kalib0 = 9.590 ; // калибровка вольтметра А0 по максимальному напряжению 30V I=0&nbsp; const float kalib0=7.970;<br />&nbsp; const float kalib2 = 1.050 ; // калибровка амперметра А2 по максимальному току 10 А&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;const float kalib2=1.000;</p><p>void setup(void) { lcd.begin(16, 2); ads.begin(); t.begin(); <br />}</p><p>void loop() { { <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// вольтметр <br /> while(i&lt;10){i++;ads.setGain(GAIN_ONE);&nbsp; &nbsp; u0 = ads.readADC_SingleEnded(0);u_0 = u0*0.125*kalib0/1000;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;u1 = ads.readADC_SingleEnded(1);u_1 = u1*0.125*kalib0/1000;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;u_ob0=u_ob0+u_0;u_ob1=u_ob1+u_1; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;u_0=u_ob0/10;u_ob0=0;u_1=u_ob1/10;u_ob1=0;i=0;&nbsp; u_0=u_0-u_1;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // амперметр<br /> while(i&lt;10){i++;ads.setGain(GAIN_SIXTEEN); a2 = ads.readADC_SingleEnded(2); a_2 = a2*0.0078125*kalib2/10;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a3 = ads.readADC_SingleEnded(3); a_3 = a3*0.0078125*kalib2/10;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a_ob2=a_ob2+a_2; a_ob3=a_ob3+a_3; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a_3=a_ob3/10; a_ob3=0; a_2=a_ob2/10 ;a_ob2=0; i=0; a_2=a_2-a_3; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // вывод на экран <br />&nbsp; &nbsp;if(a_2&lt;0.005){a_2=0;}if(u_0&lt;0.005){u_0=0; }&nbsp; &nbsp;// измерения начинаются с 0,005 В и с 0,005 А<br />&nbsp; &nbsp;u_0=u_0-(a_2/100);&nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// компенсация напряжения шунта</p><p>&nbsp; &nbsp;<br />&nbsp; &nbsp;if(abs(u_0)&gt;9.999){ lcd.setCursor(0,0); lcd.print(&quot;U=&quot;); lcd.print(abs(u_0),1); lcd.print(&quot;V&quot;); }<br />&nbsp; &nbsp;else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { lcd.setCursor(0,0); lcd.print(&quot;U=&quot;); lcd.print(abs(u_0),2); lcd.print(&quot;V&quot;); }<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;if(abs(a_2)&gt;9.999){ lcd.setCursor(9,0); lcd.print(&quot;I=&quot;); lcd.print(abs(a_2),1); lcd.print(&quot;A&quot;); }<br />&nbsp; &nbsp;else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { lcd.setCursor(9,0); lcd.print(&quot;I=&quot;); lcd.print(abs(a_2),2); lcd.print(&quot;A&quot;); }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;if((u_0 * a_2)&gt;9.999) { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print( (u_0 * a_2), 1); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }<br />&nbsp; &nbsp;else&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { lcd.setCursor(0, 1); lcd.print(&quot;P=&quot;); lcd.print( (u_0 * a_2), 2); lcd.setCursor(6, 1); lcd.print(&quot;W&quot;); }</p><p>&nbsp; &nbsp; t.requestTemperatures();<br />&nbsp; &nbsp; lcd.setCursor(9, 1);lcd.print(&quot;t=&quot;); lcd.print(t.getTempCByIndex(0)-1,1); lcd.print(&quot;C&quot;); <br />}<br /><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2026/02/3efcf0fbf792af558511cba694c6ce83.jpg" alt="http://forum.rcl-radio.ru/uploads/images/2026/02/3efcf0fbf792af558511cba694c6ce83.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[evgeny.c]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=4118</uri>
			</author>
			<updated>2026-02-16T13:36:26Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=12434#p12434</id>
		</entry>
</feed>
