{"id":837,"date":"2025-10-22T05:46:33","date_gmt":"2025-10-22T09:46:33","guid":{"rendered":"https:\/\/bussigel.com\/sonicarts\/?page_id=837"},"modified":"2025-10-22T14:26:23","modified_gmt":"2025-10-22T18:26:23","slug":"analog-sensors","status":"publish","type":"page","link":"https:\/\/bussigel.com\/sonicarts\/analog-sensors\/","title":{"rendered":"analog sensors"},"content":{"rendered":"\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">There are many different kinds of analog sensors. To find sensors that work right away with this system, look for analog sensors that have 3 connections: Power (sometimes called + or VCC or VDD), Ground (sometimes called GND or &#8211; or 0V), and Signal (sometimes called S). As long as the sensor has those pins, you connect it in the same way you connect any analog sensor. Also, make sure that the sensor works with the output voltage of the Arduino you are using. If you are using the Pro Micro, it needs to work with 3.3v.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\" style=\"grid-template-columns:41% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"716\" src=\"http:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/3.png\" alt=\"\" class=\"wp-image-746 size-full\" srcset=\"https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/3.png 1024w, https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/3-300x210.png 300w, https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/3-768x537.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"wp-block-paragraph\">Connect the Power to a VCC pin on the arduino. Connect ground to a GND pin on the arduino. Connect the signal pin to whichever Analog input pin you are using. <\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">There are other types of sensors that only have 2 pins or legs, like photocells, FSRs (force sensitive resistors) and bend sensors. These sensors require an extra resistor (usually 10K\u03a9) from the signal leg to ground.<\/p>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\" style=\"grid-template-columns:40% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"778\" src=\"http:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/4.png\" alt=\"\" class=\"wp-image-747 size-full\" srcset=\"https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/4.png 1024w, https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/4-300x228.png 300w, https:\/\/bussigel.com\/sonicarts\/wp-content\/uploads\/2025\/09\/4-768x584.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"wp-block-paragraph\"><br>On the left, the signal leg that connects to pin A0 on the arduino is also connected to ground on the arduino, but through a 220 Ohm resistor (see image). This creates the ground connection, like with the 3 pin analog sensors above.<\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:15px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Sensors <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here are a few types of sensors that will work well with the animating interfaces \/ tricorder system. There are many other types of analog sensors that would work as well, but they would require more substantial changes to the code. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Three Pin Sensors<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.digikey.ca\/en\/products\/detail\/adafruit-industries-llc\/163\/5353580?gclsrc=aw.ds&amp;gad_source=1&amp;gad_campaignid=20282404290&amp;gclid=CjwKCAjwgeLHBhBuEiwAL5gNEVpu1xY2H_06c9bKQBo2Qw0JbJzerjUqbB8Q89m5L64BiV7MZjGCrhoCt8sQAvD_BwE\">3\u2011Axis Analog Accelerometer Module<\/a>: A 3-axis analog accelerometer module, works with 3.3 V. Good for sensing motion\/orientation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.digikey.ca\/en\/products\/detail\/sunfounder\/ST0160\/22116813?gclsrc=aw.ds&amp;gad_source=1&amp;gad_campaignid=17336435733&amp;gclid=CjwKCAjwgeLHBhBuEiwAL5gNEcUfktXFQLFJDKRrbZH3CPUW127jv9R-NA6QGq640aZdsIqyCPAmUhoCoJ8QAvD_BwE\">Soil Moisture Sensor<\/a> (3.3\u20115.5\u202fV): A soil moisture sensor with a 3-pin analog interface. Rated for 3.3-5.5<a href=\"https:\/\/wiki.dfrobot.com\/capacitive_soil_moisture_sensor_sku_sen0193?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">v<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.adafruit.com\/product\/165\">Temperature module<\/a> (using the TMP36 or equivalent). works fine at 3.3 V.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.digikey.ca\/en\/products\/detail\/texas-instruments\/DRV5056A2QLPG\/9860876?gclsrc=aw.ds&amp;gad_source=1&amp;gad_campaignid=21284386540&amp;gclid=CjwKCAjwgeLHBhBuEiwAL5gNETu2XKRerhTu8emdZzHOH4Z8H2vUIcWWMRLpS1HBrMcvihK-3tUIeBoCPPoQAvD_BwE\">Analog Hall Magnetic Sensor Module:<\/a> A Hall effect sensor module with analog output; good for magnetic field sensing; be sure to check compatibility with 3.3 V.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.amazon.ca\/Piezoelectric-Sensor-Two-Optional-Output\/dp\/B08C51RWSM?source=ps-sl-shoppingads-lpcontext&amp;ref_=fplfs&amp;psc=1&amp;smid=A3BZ7K73GTBDFT\">Piezo Vibration Sensor Module<\/a> (3.3\/5\u202fV): A piezo-vibration or shock sensor module; analog output.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/ca.robotshop.com\/products\/sound-sensor?qd=a288e16e674a0fb47cb0bdd35ccff631\">Sound Sensor Module<\/a> (3.3\u20115\u202fV): Another variant of sound-level analog sensor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.adafruit.com\/product\/164\">Distance sensor<\/a> \u2013 using IR pulses. Measures distance. You can get these to measure different distance ranges. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Two Pin Sensors<\/strong> (these need an additional resistor connected to ground)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.digikey.ca\/en\/products\/detail\/ohmite\/FSR03BE\/16368865?gclsrc=aw.ds&amp;gad_source=1&amp;gad_campaignid=17336435733&amp;gclid=CjwKCAjwgeLHBhBuEiwAL5gNEXVcFdkFW3MBzY5jUXIrh6_8rn7xWJOWBDZkE7gCCgugs6oisPAaTRoCj1sQAvD_BwE\">FSR (force-sensitive resistor)<\/a> \u2013 Detects pressure or touch force<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/learn.sparkfun.com\/tutorials\/flex-sensor-hookup-guide\/all\">Flex sensor<\/a> \u2013 Detects bend or flex angle<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LDR &#8211; Light Sensor<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many different kinds of analog sensors. To find sensors that work right away with this system, look for analog sensors that have 3 connections: Power (sometimes called + or VCC or VDD), Ground (sometimes called GND or &#8211; or 0V), and Signal (sometimes called S). As long as the sensor has those pins, &hellip; <a href=\"https:\/\/bussigel.com\/sonicarts\/analog-sensors\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">analog sensors<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-837","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/pages\/837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":6,"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/pages\/837\/revisions"}],"predecessor-version":[{"id":854,"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/pages\/837\/revisions\/854"}],"wp:attachment":[{"href":"https:\/\/bussigel.com\/sonicarts\/wp-json\/wp\/v2\/media?parent=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}