<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AirTube to AtomS3]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Im trying to connect this unit:<br />
<a href="https://docs.m5stack.com/en/unit/tube_pressure" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/unit/tube_pressure</a><br />
to AtomS3, but dont know which pin to set as the sensor pin(I have tried pin 1 and 2)</p>
<p dir="auto">I have also m5stickC, and there everything fine. this is the code example that works for me there:</p>
<p dir="auto">#include &lt;Arduino.h&gt;</p>
<p dir="auto">int sensorPin = 33; // Sensor Pin</p>
<p dir="auto">void setup() {</p>
<p dir="auto">Serial.begin(115200);<br />
pinMode(sensorPin, INPUT);  //Sets the specified pin to input mode.  设置指定引脚为输入模式<br />
}</p>
<p dir="auto">void loop() {<br />
float raw = analogRead(sensorPin);  // read the value from the sensor.  读取当前传感器的值<br />
float Vout = raw/4095<em>3.6;<br />
float P = (Vout-0.1)/3.0</em>300.0-100.0;<br />
Serial.printf("pressure: %f.2 Kpa\r\n", P);<br />
delay(500);<br />
}</p>
<p dir="auto">so if someone can tell me how to connect this pressure sensor to AtomS3, I'll be grateful.<br />
Thanks!</p>
]]></description><link>https://community.m5stack.com/topic/5777/airtube-to-atoms3</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 20:13:12 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5777.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Nov 2023 10:18:46 GMT</pubDate><ttl>60</ttl></channel></rss>