{"id":2354,"date":"2021-09-27T20:01:26","date_gmt":"2021-09-27T20:01:26","guid":{"rendered":"http:\/\/mc.scsiraidguru.com\/?page_id=2354"},"modified":"2024-03-03T17:24:38","modified_gmt":"2024-03-03T17:24:38","slug":"ard_voltage_div","status":"publish","type":"page","link":"https:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/","title":{"rendered":"ard_voltage_div"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2354\" class=\"elementor elementor-2354\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0cdca68 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0cdca68\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-02be1ad\" data-id=\"02be1ad\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4413581 elementor-widget elementor-widget-text-editor\" data-id=\"4413581\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This will show how to use analogRead to get a voltage from an circuit.\u00a0 This circuit is a voltage divider.\u00a0\u00a0 I have two 1000 \u03a9 resistors in series.\u00a0 It will cut the voltage in half.\u00a0 Without a multimeter it will show you have to display the analog (floating point) voltage.\u00a0 A5 is the analog port that will read the value of the voltage divider.\u00a0 <span style=\"text-decoration: underline;\"><span style=\"text-decoration: underline;\"><a style=\"text-decoration: underline;\" href=\"http:\/\/mc.scsiraidguru.com\/?page_id=288\">EE: Resistor page<\/a><\/span><\/span> shows you how resistors in circuits are calcuated.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-08e8b3a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"08e8b3a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e85e721\" data-id=\"e85e721\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ed6bf12 elementor-widget elementor-widget-text-editor\" data-id=\"ed6bf12\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>analogWrite is 0 to 255 (8 bit).\u00a0 analogRead is 0 to 1024 ( 10 bit). So to convert analogRead into a voltage.<\/p><p>(5. \/ 1023. ) *analogPort value.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-db274fd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"db274fd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ab0e60f\" data-id=\"ab0e60f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7360a70 elementor-widget elementor-widget-image\" data-id=\"7360a70\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img data-opt-id=578652286  fetchpriority=\"high\" decoding=\"async\" width=\"887\" height=\"530\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:887\/h:530\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg\" class=\"attachment-large size-large wp-image-2357\" alt=\"\" srcset=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:887\/h:530\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg 887w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:300\/h:179\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg 300w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:768\/h:459\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg 768w\" sizes=\"(max-width: 887px) 100vw, 887px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a3cb9d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a3cb9d9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e01662e\" data-id=\"e01662e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f463966 elementor-widget elementor-widget-text-editor\" data-id=\"f463966\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>I will put the below code into the Arduino and copy the ino file up after building the circuit.\u00a0<\/p><p>V_R2 = (5.\/1023.) * readVal;\u00a0 <br \/>The dot after the numbers make the math floating point.\u00a0 <\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-353dc29 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"353dc29\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d9f60b8\" data-id=\"d9f60b8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-22d8101 elementor-widget elementor-widget-text-editor\" data-id=\"22d8101\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre>#include &lt;Wire.h&gt;\n\nfloat V_R2 = 0;\nint readVal = 0;\nint readPin = A0;\nint delayTime = 1000;\n\nvoid setup() {\n  Serial.begin(9600);\n  Wire.begin(0x6);                \/\/ join i2c bus with address #6\n  Wire.onReceive(receiveEvent); \/\/ register event  \n  pinMode(readPin, INPUT);\n}\n\nvoid loop() {\nreadVal = analogRead(readPin);\nV_R2 = (5.\/1023.) * readVal;\nSerial.println(V_R2);\ndelay(delayTime);\n\n  \n}\n\n\/\/ function that executes whenever data is received from master\n\/\/ this function is registered as an event, see setup()\nvoid receiveEvent(int howMany) {\n}<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cafef1c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cafef1c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-17e49f4\" data-id=\"17e49f4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-149b350 elementor-widget elementor-widget-text-editor\" data-id=\"149b350\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>4.97V on 5V rail.\u00a0 <br \/>Multimeter: 2.476V<br \/>Com9 Serial Mon: 2.46V<\/p><p>The 4.97V voltage divider of two 1k\u03a9 resistors would be 2.485V<br \/>R1: 1.002 k\u03a9<br \/>R2: 993\u03a9<br \/>Rtotal: 1.995k\u03a9<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-972a4cc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"972a4cc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-fea1c16\" data-id=\"fea1c16\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-58d3e26 elementor-widget elementor-widget-image\" data-id=\"58d3e26\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"20210927_194854\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjM4MywidXJsIjoiaHR0cHM6XC9cL21jLnNjc2lyYWlkZ3VydS5jb21cL3dwLWNvbnRlbnRcL3VwbG9hZHNcLzIwMjFcLzA5XC8yMDIxMDkyN18xOTQ4NTQtcm90YXRlZC5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img data-opt-id=1316276918  fetchpriority=\"high\" decoding=\"async\" width=\"169\" height=\"300\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:169\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg\" class=\"attachment-medium size-medium wp-image-2383\" alt=\"\" srcset=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:607\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 1440w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:169\/h:300\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 169w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:576\/h:1024\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 576w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:607\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 768w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:607\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 864w, https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:607\/h:1080\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210927_194854-rotated.jpg 1152w\" sizes=\"(max-width: 169px) 100vw, 169px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-030f3cf\" data-id=\"030f3cf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-658e353 elementor-widget elementor-widget-image\" data-id=\"658e353\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img data-opt-id=1114832682  fetchpriority=\"high\" decoding=\"async\" width=\"89\" height=\"211\" src=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:89\/h:211\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/Serialmon.jpg\" class=\"attachment-large size-large wp-image-2384\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This will show how to use analogRead to get a voltage from an circuit.\u00a0 This circuit is a voltage divider.\u00a0\u00a0 I have two 1000 \u03a9 resistors in series.\u00a0 It will cut the voltage in half.\u00a0 Without a multimeter it will show you have to display the analog (floating point) voltage.\u00a0 A5 is the analog port [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":235,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"custom","ocean_center_header_left_menu":"0","ocean_custom_header_template":"7119","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","osh_disable_topbar_sticky":"default","osh_disable_header_sticky":"default","osh_sticky_header_style":"default","osh_sticky_header_effect":"","osh_custom_sticky_logo":0,"osh_custom_retina_sticky_logo":0,"osh_custom_sticky_logo_height":0,"osh_background_color":"","osh_links_color":"","osh_links_hover_color":"","osh_links_active_color":"","osh_links_bg_color":"","osh_links_hover_bg_color":"","osh_links_active_bg_color":"","osh_menu_social_links_color":"","osh_menu_social_hover_links_color":"","footnotes":""},"class_list":["post-2354","page","type-page","status-publish","hentry","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ard_voltage_div - mc.scsiraidguru.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ard_voltage_div - mc.scsiraidguru.com\" \/>\n<meta property=\"og:description\" content=\"This will show how to use analogRead to get a voltage from an circuit.\u00a0 This circuit is a voltage divider.\u00a0\u00a0 I have two 1000 \u03a9 resistors in series.\u00a0 It will cut the voltage in half.\u00a0 Without a multimeter it will show you have to display the analog (floating point) voltage.\u00a0 A5 is the analog port [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/\" \/>\n<meta property=\"og:site_name\" content=\"mc.scsiraidguru.com\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-03T17:24:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/\",\"url\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/\",\"name\":\"ard_voltage_div - mc.scsiraidguru.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/voltage_divider.jpg\",\"datePublished\":\"2021-09-27T20:01:26+00:00\",\"dateModified\":\"2024-03-03T17:24:38+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/#primaryimage\",\"url\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/voltage_divider.jpg\",\"contentUrl\":\"https:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/voltage_divider.jpg\",\"width\":887,\"height\":530},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/ard_voltage_div\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino\",\"item\":\"http:\\\/\\\/mc.scsiraidguru.com\\\/index.php\\\/arduino\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ard_voltage_div\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#website\",\"url\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/\",\"name\":\"SCSIraidGURU MC World\",\"description\":\"mc.scsiraidguru.com\",\"publisher\":{\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#\\\/schema\\\/person\\\/f21e3238456a7c2adea5944cb376cddc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/mc.scsiraidguru.com\\\/#\\\/schema\\\/person\\\/f21e3238456a7c2adea5944cb376cddc\",\"name\":\"Michael McKenney\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"url\":\"http:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"contentUrl\":\"http:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\",\"width\":2560,\"height\":1440,\"caption\":\"Michael McKenney\"},\"logo\":{\"@id\":\"http:\\/\\/mc.scsiraidguru.com\\/wp-content\\/uploads\\/2021\\/09\\/20210925_105558.jpg\"},\"sameAs\":[\"http:\\\/\\\/mc.scsiraidguru.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ard_voltage_div - mc.scsiraidguru.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/","og_locale":"en_US","og_type":"article","og_title":"ard_voltage_div - mc.scsiraidguru.com","og_description":"This will show how to use analogRead to get a voltage from an circuit.\u00a0 This circuit is a voltage divider.\u00a0\u00a0 I have two 1000 \u03a9 resistors in series.\u00a0 It will cut the voltage in half.\u00a0 Without a multimeter it will show you have to display the analog (floating point) voltage.\u00a0 A5 is the analog port [&hellip;]","og_url":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/","og_site_name":"mc.scsiraidguru.com","article_modified_time":"2024-03-03T17:24:38+00:00","og_image":[{"url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/","url":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/","name":"ard_voltage_div - mc.scsiraidguru.com","isPartOf":{"@id":"https:\/\/mc.scsiraidguru.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/#primaryimage"},"image":{"@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/#primaryimage"},"thumbnailUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg","datePublished":"2021-09-27T20:01:26+00:00","dateModified":"2024-03-03T17:24:38+00:00","breadcrumb":{"@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/#primaryimage","url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg","contentUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/voltage_divider.jpg","width":887,"height":530},{"@type":"BreadcrumbList","@id":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/ard_voltage_div\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/mc.scsiraidguru.com\/"},{"@type":"ListItem","position":2,"name":"Arduino","item":"http:\/\/mc.scsiraidguru.com\/index.php\/arduino\/"},{"@type":"ListItem","position":3,"name":"ard_voltage_div"}]},{"@type":"WebSite","@id":"https:\/\/mc.scsiraidguru.com\/#website","url":"https:\/\/mc.scsiraidguru.com\/","name":"SCSIraidGURU MC World","description":"mc.scsiraidguru.com","publisher":{"@id":"https:\/\/mc.scsiraidguru.com\/#\/schema\/person\/f21e3238456a7c2adea5944cb376cddc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mc.scsiraidguru.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/mc.scsiraidguru.com\/#\/schema\/person\/f21e3238456a7c2adea5944cb376cddc","name":"Michael McKenney","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","url":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","contentUrl":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg","width":2560,"height":1440,"caption":"Michael McKenney"},"logo":{"@id":"https:\/\/mlbxg5wzacc0.i.optimole.com\/cb:FyJ0.12d22\/w:auto\/h:auto\/q:mauto\/f:best\/http:\/\/mc.scsiraidguru.com\/wp-content\/uploads\/2021\/09\/20210925_105558.jpg"},"sameAs":["http:\/\/mc.scsiraidguru.com"]}]}},"_links":{"self":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/2354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/comments?post=2354"}],"version-history":[{"count":71,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/2354\/revisions"}],"predecessor-version":[{"id":7651,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/2354\/revisions\/7651"}],"up":[{"embeddable":true,"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/pages\/235"}],"wp:attachment":[{"href":"https:\/\/mc.scsiraidguru.com\/index.php\/wp-json\/wp\/v2\/media?parent=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}