{"id":628,"date":"2024-12-12T16:50:49","date_gmt":"2024-12-12T16:50:49","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/?p=628"},"modified":"2024-12-13T01:41:22","modified_gmt":"2024-12-13T01:41:22","slug":"uart-to-uart-internet","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/2024\/12\/12\/uart-to-uart-internet\/","title":{"rendered":"UART to UART Internet"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-629 alignleft\" src=\"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-content\/uploads\/sites\/1759\/2024\/12\/IMG_3085-300x225.jpg\" alt=\"\" width=\"331\" height=\"248\" \/> The goal of the project was to get the ESP32 and the STM32 to communicate with each other. The STM32 was supposed to read two inputs, and the ESP32 was supposed to display them when a button on the webpage was toggled. The project was able to be completed with one sensor reading but not two. The completed portion is shown in the <a href=\"https:\/\/youtu.be\/PUjFRtotFDE\">video<\/a>. The image shows the wiring that was used for this project. The wiring was was a continuation of the last project.<\/p>\n<p>The project was unable to be complete because the STM32 stopped sending data to the ESP32. It is unclear what the cause may be. The wiring was checked multiple times for loose wires or incorrect connections. The code was also checked multiple time for any inconsistency in baud rate or UART usages.<\/p>\n<p>The code utilized UART1 on the STM32 (STM32CUBEIDE) and Serial2 on the ESP32 (Arduino). This was done intentionally, so that the boards could talk back and forth without interfering with the USB serial. The UART was connected to pins PA10 and PA9 on the STM32 and pins 16 and 17 on the ESP32. The Joystick was connected to A0 and A1, and stored data in a variable named reading_0 and reading_1 respectively. The STM32 used HAL_UART_TRANSMIT and HAL_UART_RECEIVE to send and receive data. The ESP32 used Serial2.write and Serial2.read to send and receive data.<\/p>\n<p>Despite the project not working in the end, it was still beneficial with the knowledge was gained.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The goal of the project was to get the ESP32 and the STM32 to communicate with each other. The STM32 was supposed to read two inputs, and the ESP32 was supposed to display them when a button on the webpage was toggled. The project was able to be completed with one sensor reading but not [&hellip;]<\/p>\n","protected":false},"author":1810,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-microprocessors"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/users\/1810"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":5,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/posts\/628\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/peyarbrough1-engr\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}