{"id":1526,"date":"2018-09-12T13:00:09","date_gmt":"2018-09-12T12:00:09","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=1526"},"modified":"2018-09-09T22:34:42","modified_gmt":"2018-09-09T21:34:42","slug":"sda-scl-i2c-twi-pins-on-the-arduino","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/1526\/sda-scl-i2c-twi-pins-on-the-arduino\/","title":{"rendered":"SDA SCL I2C TWI Pins on the Arduino"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1527\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/1526\/sda-scl-i2c-twi-pins-on-the-arduino\/i2c_twi_pins_arduino\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"i2c_twi_pins_arduino\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?fit=678%2C254&amp;ssl=1\" class=\"aligncenter size-full wp-image-1527\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?resize=678%2C254\" alt=\"\" width=\"678\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_arduino.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p>This post details where the SDA SCL pins used for I2C\/TWI are available on Arduino&#8217;s.<\/p>\n<p><!--more--><\/p>\n<h2>I2C TWI pins on the Arduino<\/h2>\n<p>The SDA and SCL pins are the used for communication using the I2C\/TWI protocols. These allow multiple devices to communicate the Arduino on a standard interface.<\/p>\n<p>Most Arduino&#8217;s only have one set of these pins however the Due has two.<\/p>\n<table border=\"0\" width=\"90%\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td align=\"left\"><strong>Board<\/strong><\/td>\n<td><strong><span class=\"wikiword\">I2C<\/span>\u00a0\/ TWI pins<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Uno, Ethernet<\/td>\n<td>A4 (SDA), A5 (SCL)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Mega2560<\/td>\n<td align=\"left\">20 (SDA), 21 (SCL)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Leonardo<\/td>\n<td>2 (SDA), 3 (SCL)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Due<\/td>\n<td>20 (SDA), 21 (SCL),\u00a0<span class=\"wikiword\">SDA1<\/span>,\u00a0<span class=\"wikiword\">SCL1<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For more information, you can read the Arduino page on <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/Wire\">the Wire library<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post details where the SDA SCL pins used for I2C\/TWI are available on Arduino&#8217;s.<\/p>\n","protected":false},"author":1,"featured_media":1528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Today I have written a short post on the SDA SCL pins for the #Arduino to communicate on #I2C #TWI","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[97],"tags":[132,296,301,300,299],"class_list":["post-1526","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-arduino","tag-i2c","tag-scl","tag-sda","tag-twi"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/i2c_twi_pins_on_arduino.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-oC","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1521,"url":"https:\/\/chewett.co.uk\/blog\/1521\/128x64-i2c-sh1106-oled-display-module-screen-for-arduino-review-and-code\/","url_meta":{"origin":1526,"position":0},"title":"128&#215;64 I2C\u00a0SH1106 OLED Display Module Screen for Arduino Review and Code","author":"Chewett","date":"December 8, 2018","format":false,"excerpt":"Today I review the 128x64 I2C\u00a0SH1106 OLED Display Module Screen for Arduino and provide example code. Overview of the 128x64 I2C\u00a0SH1106 OLED Display Module This rectangular OLED display module gives you a 128x64 pixel screen to display content on. This is a single colour model allowing for each pixel to\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x64_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x64_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x64_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x64_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1517,"url":"https:\/\/chewett.co.uk\/blog\/1517\/128x32-i2c-ssd1306-oled-display-module-screen-for-arduino-review-and-code\/","url_meta":{"origin":1526,"position":1},"title":"128&#215;32 I2C\u00a0SSD1306 OLED Display Module Screen for Arduino Review and Code","author":"Chewett","date":"September 29, 2018","format":false,"excerpt":"Today I review the 128x32\u00a0I2C\u00a0SSD1306 OLED Display Module Screen for Arduino and provide example code. Overview of the 128x32\u00a0I2C\u00a0SSD1306 OLED Display Module This OLED display module allows you to display any content you want on a small display screen. This unit is a single colour display. Using OLED technology this\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x32_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x32_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x32_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/128x32_oled_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2543,"url":"https:\/\/chewett.co.uk\/blog\/2543\/i2c-connection-pins-on-the-wemos-d1-mini-esp8266\/","url_meta":{"origin":1526,"position":2},"title":"I2C Connection Pins on the WeMos D1 Mini (ESP8266)","author":"Chewett","date":"July 18, 2020","format":false,"excerpt":"This blog post details the I2C connections on the WeMos D1 Mini (ESP8266). Using I2C connections with the WeMos D1 Mini (ESP8266) Within IoT devices the I2C protocol is used a lot for multi-master multi-slave communication as a relatively simple serial bus. You will find that small sensors will report\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_i2c_pin_numbering_posticon_output.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_i2c_pin_numbering_posticon_output.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_i2c_pin_numbering_posticon_output.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_i2c_pin_numbering_posticon_output.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_i2c_pin_numbering_posticon_output.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1595,"url":"https:\/\/chewett.co.uk\/blog\/1595\/max-30100-heart-rate-sensor-for-arduino-review-and-code\/","url_meta":{"origin":1526,"position":3},"title":"MAX-30100 Heart Rate Sensor for Arduino Review and Code","author":"Chewett","date":"May 30, 2020","format":false,"excerpt":"This post talks about using the MAX-30100 Heart Rate Sensor with an Arduino. MAX-30100 Heart Rate Sensor The MAX-30100 Heart Rate sensor allows reading heart rate and is an integrated pulse oximeter. This allows roughly detecting the percentage of oxygenated blood and the rate at which your heart is beating.\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/heart_rate_sensor_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/heart_rate_sensor_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/heart_rate_sensor_post_image.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/heart_rate_sensor_post_image.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1601,"url":"https:\/\/chewett.co.uk\/blog\/1601\/gy-521-mpu6050-3-axis-accelerometer-gyroscope-module-review-and-code\/","url_meta":{"origin":1526,"position":4},"title":"GY-521 MPU6050 3 Axis Accelerometer Gyroscope Module Review and Code","author":"Chewett","date":"June 13, 2020","format":false,"excerpt":"This post talks about using the GY-521 MPU6050 3 Axis Accelerometer Gyroscope with an Arduino. GY-521 MPU6050 3 Axis Accelerometer Gyroscope The GY-521 MPU6050 3 Axis Accelerometer Gyroscope is a relatively complex module. The gyroscope allows you to tell both the angle it is positioned in all three axis directions\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/gy521_mpu6050_accelerometer_post_image.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2549,"url":"https:\/\/chewett.co.uk\/blog\/2549\/using-the-128x64-i2c-sh1106-oled-display-module-screen-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":1526,"position":5},"title":"Using the 128\u00d764 I2C SH1106 OLED Display Module Screen with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"September 26, 2020","format":false,"excerpt":"In this blog post I talk about how you can use a 128\u00d764 I2C\u00a0SH1106 OLED Display Module Screen with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Summary of the 128\u00d764 I2C\u00a0SH1106 OLED Display Module Screen The SH1106 OLED display module is a nice 128x64 pixel screen. This unit\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_128x64_sh1106_oled_screen_output.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_128x64_sh1106_oled_screen_output.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_128x64_sh1106_oled_screen_output.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_128x64_sh1106_oled_screen_output.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/wemos_128x64_sh1106_oled_screen_output.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1526"}],"version-history":[{"count":1,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1526\/revisions"}],"predecessor-version":[{"id":1529,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1526\/revisions\/1529"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/1528"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}