Deprecated: Assigning the return value of new by reference is deprecated in /home/glerm/webapps/devolts_home/artesanato/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /home/glerm/webapps/devolts_home/artesanato/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/glerm/webapps/devolts_home/artesanato/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /home/glerm/webapps/devolts_home/artesanato/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/glerm/webapps/devolts_home/artesanato/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /home/glerm/webapps/devolts_home/artesanato/wp-includes/wp-db.php on line 306

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/glerm/webapps/devolts_home/artesanato/wp-includes/cache.php on line 431

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/glerm/webapps/devolts_home/artesanato/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/glerm/webapps/devolts_home/artesanato/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /home/glerm/webapps/devolts_home/artesanato/wp-includes/http.php on line 61

Strict Standards: Redefining already defined constructor for class EG_Plugin_100 in /home/glerm/webapps/devolts_home/artesanato/wp-content/plugins/eg-attachments/lib/eg-plugin.inc.php on line 88
Comunicação Serial « artesanato de volts

Comunicação Serial

A conexão serial vai ser usada para fazer a ponte com o computador em aplicações software-hardware e também para subir novos códigos que podem ser compilados usando as funções e tutoriais compatíveis com arduino.

Para isto você vai precisar de um cabo serial preparado para trocar dados com o microprocessador, que pode ser feito como o desenho do esquema abaixo, com um plug db9 fêmea (conhecido como cabo serial).

db9_cmos

Feito o cabo agora basta fazer as conexões usando um chip inversor de polaridade para as portas Rx Tx (porta lógica NOT). Estamos fazendo nesta figura com um cmos4069, chip facilmente encontrado e que não deve custar mais que alguns centavos.

A comunicação Rx Tx é a ponte para conectar seu microprocesador com outros softwares ou hardwares em tempo real, utilizando este protocolo. Você poderia também fazer esta comunicação entre outro microprocessador, teclados MIDI, ou dispositivos USB, só pra ter uma idéia.
Mas vamos usar aqui esta técnica por também ja resolver nosso problema de precisar reprogramar nosso projeto.

serialproto600

Feitas todas conexões você já pode acessar o seu software da IDE do arduino e selecionar a conexão ttyS0 para a comunicação serial direta. Se você estiver utilizando um adaptador serial-usb conectado no db9 basta delecionar a conexão ttyUSB0.