{"id":741,"date":"2020-09-25T18:57:08","date_gmt":"2020-09-25T11:57:08","guid":{"rendered":"https:\/\/www.makeriot2020.com\/?p=741"},"modified":"2020-09-25T18:57:13","modified_gmt":"2020-09-25T11:57:13","slug":"spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2","status":"publish","type":"post","link":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/","title":{"rendered":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><small>Sometimes it is necessary to send data between two microprocessors.<br>The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today&#8217;s very short post, I will show you how to interface the STM32F103C8T6 &#8220;Blue Pill&#8221; with an Arduino Nano to send bidirectional data via the SPI Interface between the two microprocessors. You will need the following to experiment with this by yourself.<\/small><br><br><small>1) An STM32F103C8T6 &#8221; Blue Pill&#8221;<\/small><br><small>2) An Arduino Compatible or Original Uno or Nano<\/small><br><small>3) Two Breadboards<\/small><br><small>4) Some Linkup wires (at least 4 male-to-male DuPont wires)<\/small><br><br><small>Let us look at the pin configuration on the two boards<\/small><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>PIN NAME<\/td><td>&#8220;Blue Pill&#8221;<\/td><td>Arduino Nano or Uno<\/td><\/tr><tr><td>MOSI<\/td><td>PA7 <\/td><td>D11<\/td><\/tr><tr><td>MISO<\/td><td>PA6 <\/td><td>D12<\/td><\/tr><tr><td>SCK<\/td><td>PA5 <\/td><td>D13<\/td><\/tr><tr><td>SS<\/td><td>PA4 <\/td><td>D10<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh6.googleusercontent.com\/8CVrT2exoZWrsofrV5J255fL4MWHlp6jPumtLZlSF769Xt-oT-cr5-xHtdMkI8gfKwHwWro=w1280\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Connections for the &#8220;Blue Pill&#8221; are shown above<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh3.googleusercontent.com\/8VZOWCk7LsRno1A3xFO90O8SpmpOxKbAlbHFMqcUXPaNC-QkSidJ0eIqi877VATIksU_Etc-=w1280\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Connections for Maker NANO are shown above<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can now type in the code for the Master ( The Blue Pill ) into your Arduino IDE<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>#include&lt;SPI.h&gt;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/\/ Define Constants and Variables<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>#define SS PA4<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>#define led PC13<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>unsigned char MasterSend;;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>unsigned char MasterReceive;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>void setup() {<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>pinMode(led,OUTPUT);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.begin(115200);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/\/ SPI Init<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SPI.begin();<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SPI.setClockDivider(SPI_CLOCK_DIV16);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>digitalWrite(SS,HIGH); \/\/ set as master<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>MasterSend = 0xFF;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>}<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>void loop() {<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8220;Sent to Slave &#8220;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8221; [0x&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.println(MasterSend,HEX);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>MasterReceive = SPI.transfer(MasterSend);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8220;Received from Slave &#8220;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8221; [0x&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(MasterReceive,HEX);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.println(&#8220;]&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>digitalWrite(led,!digitalRead(led));<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>delay(200);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>}<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And in ANOTHER INSTANCE of the Arduino IDE, the code for the SLAVE (Maker NANO)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/\/SPI Slave Code for Arduino<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/\/SPI Communication between STM32F103C8 &amp; Arduino<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>#include&lt;SPI.h&gt;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>volatile boolean received;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>volatile unsigned char SlaveReceived;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>volatile unsigned char SlaveSend;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>void setup()<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>{<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.begin(115200);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>pinMode(MISO,OUTPUT);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SPCR |= _BV(SPE);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>received = false;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SPI.attachInterrupt();<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SlaveSend = 0xAA;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>}<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>ISR(SPI_STC_vect)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>{<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SlaveReceived = SPDR;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>received = true;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>}<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>void loop() {<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8220;Received from Master&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8221; [0x&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(SlaveReceived,HEX);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.println(&#8220;] &#8220;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>SPDR = SlaveSend;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8220;Sent to Master&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(&#8221; [0x&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.print(SlaveSend,HEX);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Serial.println(&#8220;]&#8221;);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>delay(200);<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>}<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Upload the code to the boards, and open the serial monitors on both instances of the Arduino IDE.<br>Set the Baud Rate to 115200<br>You will see that the Master sends a byte to the Slave, and the Save replies with a byte of it&#8217;s own.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Master sends data to Slave, Receives Data Back<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh6.googleusercontent.com\/HlGg-tOt7ZAz1nMjR4zjATm6S1ftgf1wVrC-Y09e7JIabG1j5GN8SeB3y0LIU_pRXpNOKrgZp5R98IqnrW0k0wkDRdyOLN_zMwUxUfo8diZpuZ-UQA=w1280\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Slave received data from Master, and replies with data of its own<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh5.googleusercontent.com\/G0tnCBkXt4AilXLArhrmjg6poFpaSZWebQxTwCncXK9dpTomz3Ig7iZwQnRQD9aB2sP-sly8uWnsJEiJnEHn_hdKdzNq4MIjQVEsj0u3lxwvXlmFb9k=w1280\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This sketch can now very easily be modified to send reading from sensors, or instructions to control other peripherals between the two microprocessors. It is limited only by your imagination, and your ability to code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope you found this interesting and useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today&#8217;s very short post, I will show you how to interface the STM32F103C8T6 &#8220;Blue Pill&#8221; with an Arduino Nano to &hellip; <a href=\"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2&#8243;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,16,15],"tags":[80,78,18,79],"class_list":["post-741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-spi-communication","category-stm32f103c8t6-blue-pill","tag-maker-nano","tag-nano-clone","tag-spi","tag-stm32-blue-pill"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today&#039;s very short post, I will show you how to interface the STM32F103C8T6 &quot;Blue Pill&quot; with an Arduino Nano to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"makeriot2020\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Maker and IOT Ideas - Infinite possibilities, waiting to be explored\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas\" \/>\n\t\t<meta property=\"og:description\" content=\"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today&#039;s very short post, I will show you how to interface the STM32F103C8T6 &quot;Blue Pill&quot; with an Arduino Nano to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"165\" \/>\n\t\t<meta property=\"og:image:height\" content=\"93\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-09-25T11:57:08+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-09-25T11:57:13+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today&#039;s very short post, I will show you how to interface the STM32F103C8T6 &quot;Blue Pill&quot; with an Arduino Nano to\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#blogposting\",\"name\":\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \\u201cBlue Pill\\u201d \\u2013 Part 2 - Maker and IOT Ideas\",\"headline\":\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2\",\"author\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20200722_215100-scaled.jpg\",\"width\":2560,\"height\":1920},\"datePublished\":\"2020-09-25T18:57:08+07:00\",\"dateModified\":\"2020-09-25T18:57:13+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#webpage\"},\"articleSection\":\"Arduino, SPI communication, STM32F103C8T6 \\\"Blue Pill\\\", Maker Nano, Nano clone, SPI, STM32 &quot;Blue Pill&quot;\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.makeriot2020.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/#listItem\",\"name\":\"Arduino\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/#listItem\",\"position\":2,\"name\":\"Arduino\",\"item\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/spi-communication\\\/#listItem\",\"name\":\"SPI communication\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/spi-communication\\\/#listItem\",\"position\":3,\"name\":\"SPI communication\",\"item\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/spi-communication\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#listItem\",\"name\":\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/#listItem\",\"name\":\"Arduino\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#listItem\",\"position\":4,\"name\":\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/category\\\/arduino\\\/spi-communication\\\/#listItem\",\"name\":\"SPI communication\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/#organization\",\"name\":\"Maker and IOT Ideas\",\"description\":\"Infinite possibilities, waiting to be explored\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/LogoSmall.jpg\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#organizationLogo\",\"width\":165,\"height\":93},\"image\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"makeriot2020\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#authorImage\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/5c0\\\/5c020e1b07a03d905edecd8711801fe8x96.jpg\",\"width\":96,\"height\":96,\"caption\":\"makeriot2020\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#webpage\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/\",\"name\":\"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \\u201cBlue Pill\\u201d \\u2013 Part 2 - Maker and IOT Ideas\",\"description\":\"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today's very short post, I will show you how to interface the STM32F103C8T6 \\\"Blue Pill\\\" with an Arduino Nano to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/20200722_215100-scaled.jpg\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#mainImage\",\"width\":2560,\"height\":1920},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/index.php\\\/2020\\\/09\\\/25\\\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\\\/#mainImage\"},\"datePublished\":\"2020-09-25T18:57:08+07:00\",\"dateModified\":\"2020-09-25T18:57:13+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/#website\",\"url\":\"https:\\\/\\\/www.makeriot2020.com\\\/\",\"name\":\"Maker and IOT Ideas\",\"description\":\"Infinite possibilities, waiting to be explored\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.makeriot2020.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas","description":"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today's very short post, I will show you how to interface the STM32F103C8T6 \"Blue Pill\" with an Arduino Nano to","canonical_url":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#blogposting","name":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas","headline":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2","author":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.makeriot2020.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200722_215100-scaled.jpg","width":2560,"height":1920},"datePublished":"2020-09-25T18:57:08+07:00","dateModified":"2020-09-25T18:57:13+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#webpage"},"isPartOf":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#webpage"},"articleSection":"Arduino, SPI communication, STM32F103C8T6 \"Blue Pill\", Maker Nano, Nano clone, SPI, STM32 &quot;Blue Pill&quot;"},{"@type":"BreadcrumbList","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com#listItem","position":1,"name":"Home","item":"https:\/\/www.makeriot2020.com","nextItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/#listItem","name":"Arduino"}},{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/#listItem","position":2,"name":"Arduino","item":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/#listItem","name":"SPI communication"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/#listItem","position":3,"name":"SPI communication","item":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#listItem","name":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/#listItem","name":"Arduino"}},{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#listItem","position":4,"name":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2","previousItem":{"@type":"ListItem","@id":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/#listItem","name":"SPI communication"}}]},{"@type":"Organization","@id":"https:\/\/www.makeriot2020.com\/#organization","name":"Maker and IOT Ideas","description":"Infinite possibilities, waiting to be explored","url":"https:\/\/www.makeriot2020.com\/","logo":{"@type":"ImageObject","url":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#organizationLogo","width":165,"height":93},"image":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.makeriot2020.com\/index.php\/author\/admin\/#author","url":"https:\/\/www.makeriot2020.com\/index.php\/author\/admin\/","name":"makeriot2020","image":{"@type":"ImageObject","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#authorImage","url":"https:\/\/www.makeriot2020.com\/wp-content\/wphb-cache\/gravatar\/5c0\/5c020e1b07a03d905edecd8711801fe8x96.jpg","width":96,"height":96,"caption":"makeriot2020"}},{"@type":"WebPage","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#webpage","url":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/","name":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas","description":"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today's very short post, I will show you how to interface the STM32F103C8T6 \"Blue Pill\" with an Arduino Nano to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.makeriot2020.com\/#website"},"breadcrumb":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#breadcrumblist"},"author":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/author\/admin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200722_215100-scaled.jpg","@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#mainImage","width":2560,"height":1920},"primaryImageOfPage":{"@id":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/#mainImage"},"datePublished":"2020-09-25T18:57:08+07:00","dateModified":"2020-09-25T18:57:13+07:00"},{"@type":"WebSite","@id":"https:\/\/www.makeriot2020.com\/#website","url":"https:\/\/www.makeriot2020.com\/","name":"Maker and IOT Ideas","description":"Infinite possibilities, waiting to be explored","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.makeriot2020.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"Maker and IOT Ideas - Infinite possibilities, waiting to be explored","og:type":"article","og:title":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas","og:description":"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today's very short post, I will show you how to interface the STM32F103C8T6 &quot;Blue Pill&quot; with an Arduino Nano to","og:url":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/","og:image":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg","og:image:secure_url":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg","og:image:width":165,"og:image:height":93,"article:published_time":"2020-09-25T11:57:08+00:00","article:modified_time":"2020-09-25T11:57:13+00:00","twitter:card":"summary_large_image","twitter:title":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2 - Maker and IOT Ideas","twitter:description":"Sometimes it is necessary to send data between two microprocessors.The SPI bus is a very fast serial data-bus that is normally used to interface with various peripherals like OLED Screens, Radios and various sensors. In today's very short post, I will show you how to interface the STM32F103C8T6 &quot;Blue Pill&quot; with an Arduino Nano to","twitter:image":"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2022\/06\/LogoSmall.jpg"},"aioseo_meta_data":{"post_id":"741","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-03-31 05:04:08","updated":"2026-06-29 02:48:11","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.makeriot2020.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/\" title=\"Arduino\">Arduino<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/\" title=\"SPI communication\">SPI communication<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSPI between Maker Nano ( Arduino Nano Clone ) and STM32 \u201cBlue Pill\u201d \u2013 Part 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.makeriot2020.com"},{"label":"Arduino","link":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/"},{"label":"SPI communication","link":"https:\/\/www.makeriot2020.com\/index.php\/category\/arduino\/spi-communication\/"},{"label":"SPI between Maker Nano ( Arduino Nano Clone ) and STM32 &#8220;Blue Pill&#8221; &#8211; Part 2","link":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/25\/spi-between-maker-nano-arduino-nano-clone-and-stm32-blue-pill-part-2\/"}],"_links":{"self":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/comments?post=741"}],"version-history":[{"count":0,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/741\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/media\/745"}],"wp:attachment":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/media?parent=741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/categories?post=741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/tags?post=741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}