{"id":30642,"date":"2017-05-16T23:31:16","date_gmt":"2017-05-16T21:31:16","guid":{"rendered":"http:\/\/www.makerslide-machines.xyz\/?p=30642"},"modified":"2022-08-22T09:40:10","modified_gmt":"2022-08-22T07:40:10","slug":"principe-de-la-communication-serie","status":"publish","type":"post","link":"http:\/\/www.makerslide-machines.xyz\/old\/2017\/05\/16\/principe-de-la-communication-serie\/","title":{"rendered":"Principe de la communication s\u00e9rie"},"content":{"rendered":"<p>[:en][et_pb_section admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbTitre du poste\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bboff\u00a0\u00bb date=\u00a0\u00bboff\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<br \/>\n[\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_comments admin_label=\u00a0\u00bbCommentaires\u00a0\u00bb show_avatar=\u00a0\u00bboff\u00a0\u00bb show_reply=\u00a0\u00bbon\u00a0\u00bb show_count=\u00a0\u00bboff\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_button=\u00a0\u00bboff\u00a0\u00bb button_letter_spacing=\u00a0\u00bb0&Prime; button_use_icon=\u00a0\u00bbdefault\u00a0\u00bb button_icon_placement=\u00a0\u00bbright\u00a0\u00bb button_on_hover=\u00a0\u00bbon\u00a0\u00bb button_letter_spacing_hover=\u00a0\u00bb0&Prime;]<br \/>\n[\/et_pb_comments][\/et_pb_column][\/et_pb_row][\/et_pb_section][:zh][et_pb_section admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbPost Title\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bbon\u00a0\u00bb date=\u00a0\u00bbon\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb] [\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<p><span style=\"color: #000080; background-color: #ffff99;\">The endstop are use for the machine can have reference point, machine origin \u00ab\u00a00\u00a0\u00bb<\/span><\/p>\n<p>For endstop it&rsquo;s common to use <strong>SPDT<\/strong> switch (<strong>S<\/strong>ingle<strong> P<\/strong>ole <strong>D<\/strong>ouble <strong>T<\/strong>hrow) <a href=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/switches_demystified_assembly.pdf\"><span style=\"color: #0000ff;\"><strong>more information here<\/strong><\/span><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29080 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/info-endstop-eng-1.jpg\" alt=\"info-endstop-eng\" width=\"448\" height=\"391\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29078 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/doc-endstop-smoothieboard.jpg\" alt=\"doc-endstop-smoothieboard\" width=\"470\" height=\"270\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>In the official smoothieboard endstop documentation \u00a0 \u00a0 \u00a0 <strong><a href=\"http:\/\/smoothieware.org\/guide-endstops\">http:\/\/smoothieware.org\/guide-endstops<\/a><\/strong><br \/>\nhave this drawing \u00a0and it&rsquo;s write \u00a0 \u00ab\u00a0<strong>Wiring a basic NC endstop<\/strong>\u00a0\u00bb<\/p>\n<p>And when you see your smoothieboard , you can guest when endstop is hit the \u00ab\u00a0<span style=\"color: #000000;\">O Volt<\/span>\u00a0\u00bb go to the <span style=\"background-color: #3366ff; color: #ffff00;\"><strong>Signal pin<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29077 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/vue-endstop-smoothieboard.jpg\" alt=\"vue-endstop-smoothieboard\" width=\"422\" height=\"316\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>If you beginner to wiring endstop in input of microcontroler may be you ask at yoursef two question.<\/p>\n<p>&#8211; Why use only 2 wire and don&rsquo;t use 3 wires <strong><span style=\"color: #000000;\">Ground (-)<\/span><\/strong> \u00a0 <span style=\"color: #ffcc00; background-color: #3366ff;\"><strong>Signal<\/strong><\/span> and <strong><span style=\"color: #ff0000;\">VCC<\/span> <span style=\"color: #ff0000;\">(+) <span style=\"color: #000000;\">?<\/span><\/span><\/strong><\/p>\n<ul>\n<li>Why the information \u00ab\u00a0<strong>O<\/strong>\u00a0\u00bb is send tu input of microcontroller and not \u00ab\u00a0<strong><span style=\"color: #ff0000;\">+<\/span><\/strong>\u00a0\u00bb ?<\/li>\n<\/ul>\n<p>The answer or there question are not specific for smoothieboard, the technology use is same when connect switch SPDT or pushbutton in input of electronicboard ( arduino, 3d printer board, etc &#8230; )<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"text-decoration: underline;\"> Why use only 2 wire and don&rsquo;t use 3 wires <strong><span style=\"color: #000000; text-decoration: underline;\">Ground (-)<\/span><\/strong> \u00a0 <span style=\"color: #ffcc00; background-color: #3366ff; text-decoration: underline;\"><strong>Signal<\/strong><\/span> and <strong><span style=\"color: #ff0000; text-decoration: underline;\">VCC<\/span> <span style=\"color: #ff0000; text-decoration: underline;\">(+) <span style=\"color: #000000; text-decoration: underline;\">?<\/span><\/span><\/strong><\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29086 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/ENDSTOP-3-WIRE.jpg\" alt=\"ENDSTOP-3-WIRE\" width=\"494\" height=\"297\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Use 3 wire is Ok, it&rsquo;s works<\/strong><\/span><br \/>\n&#8211; when endstop push, the signal pin of \u00e9lectronic card receive 5Volt to send information \u00ab\u00a0endstop push\u00a0\u00bb<\/p>\n<p>&#8211; when endstop don&rsquo;t hit, the signal pin of \u00e9lectronic receive<br \/>\n0 Volt to send information &lsquo;endstop don&rsquo;t hit<\/p>\n<p><span style=\"text-decoration: underline;\"><strong><br \/>\nIt&rsquo;s works, just have 3 small\u00a0<span lang=\"en\">disadvantage<\/span><\/strong><\/span><\/p>\n<ul>\n<li>need buy and prepare more 3 wires if you \u00a0connect xmin ymin and 7min. 6wires more if you connect endstop min and end stop max.<br \/>\nA little more money and time to prepare<\/li>\n<li>If the red wire (+) breakdown the machine continu to more over the endstop. If the machine is small without very big motor, not damage, but with heavy and strong CNC professional, a simple wire breakdown can be cost a lot of money with damage result.<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-29088 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/touch-plate.jpg\" alt=\"touch-plate\" width=\"303\" height=\"240\" \/><\/li>\n<li>If you whant connect a touch plate in Zmin, only have 2 location tu connect can&rsquo;t use the 3 wire.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"text-decoration: underline;\"><strong>Why use normaly closed endstop and use \u00ab\u00a00\u00a0\u00bb Ground to send the information endstop push ?<\/strong><\/span><\/h4>\n<p>For each endstop, it&rsquo;s better to\u00a0connect C to Signal and NC to Ground <span style=\"background-color: #ffffff; color: #0000ff;\">because<\/span> this means the digital input pin ( endstop connector ) will be connected to Ground in it&rsquo;s normal state and cut from Ground when the button is pressed. This approach is less prone to noise than the reverse. See <a class=\"urlextern\" title=\"http:\/\/wot.lv\/combating-endstop-noise-on-a-reprap.html\" href=\"http:\/\/wot.lv\/combating-endstop-noise-on-a-reprap.html\" rel=\"nofollow\">here<\/a> for more information.<\/p>\n<p><span style=\"background-color: #ffff99;\"><strong>Another positive effect of this approach is<\/strong><\/span>, that if a wire breaks for some reason you get the same signal as if the endstop is pressed. That makes sure that even with a damaged wire you are not able to overrun the endstop.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbText\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<h4><\/h4>\n<h4><span style=\"text-decoration: underline;\">What need to know when use only 2 wire for connect <span style=\"color: #000000;\">switch or push button to microcontroler board ?<\/span><\/span><\/h4>\n<p>Below \u00e0 explain of\u00a0<a class=\"g-hovercard yt-uix-sessionlink spf-link \" href=\"https:\/\/www.youtube.com\/channel\/UCtP09cWodpGZct27etJSJ2w\" data-ytid=\"UCtP09cWodpGZct27etJSJ2w\" data-sessionlink=\"itct=CDAQ4TkiEwjAtb24-fPSAhUQaxwKHbrVBjko-B0\">James Lewis<\/a>\u00a0the creator of\u00a0<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/www.baldengineer.com\/\">https:\/\/www.baldengineer.com\/<\/a>\u00a0<span style=\"color: #000000;\">and\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"http:\/\/addohms.com\/\">http:\/\/addohms.com\/<\/a><\/span> youtube chanel<\/span><\/strong><\/span><\/p>\n<div style=\"width: 960px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-30642-1\" width=\"960\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/signal-entree-instable.mp4?_=1\" \/><a href=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/signal-entree-instable.mp4\">http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/signal-entree-instable.mp4<\/a><\/video><\/div>\n<p>A pin of input microcontroler board can&rsquo;t unconnect. If you do this the interference around create sometimes 4,8V; 0,15V 5V&#8230; \u00a0and create fake information inside. \u00a0 That&rsquo;s why in the video sometimes the LED don&rsquo;t blink when push button and sometimes blink without\u00a0push buton. Have somethinks out of control.<\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">The pull up resistor solution explain by James Lewis<\/span><\/span><\/strong><\/p>\n<div style=\"width: 960px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-30642-2\" width=\"960\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/Pull-up-resistor.mp4?_=2\" \/><a href=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/Pull-up-resistor.mp4\">http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/Pull-up-resistor.mp4<\/a><\/video><\/div>\n<p>Support this guy with buy his DVD if you whant learn \u00e9lectronic because he&rsquo;s explains are very good<\/p>\n<p>&nbsp;<\/p>\n<h4>Explain in Chinese about floating volt level pin and pull up resistor<br \/>\nwith <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"http:\/\/www.lazytomatolab.com\/\"><strong>Lazy Tomato Lab<\/strong><\/a><\/span><\/h4>\n<div style=\"width: 1080px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-30642-3\" width=\"1080\" height=\"608\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/arduino-chinese-pull-up-resistor.mp4?_=3\" \/><a href=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/arduino-chinese-pull-up-resistor.mp4\">http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/arduino-chinese-pull-up-resistor.mp4<\/a><\/video><\/div>\n<p>See the other vid\u00e9o of LazyTomatoLab Chanel\u00a0<a href=\"http:\/\/www.lazytomatolab.com\/\"><strong><span style=\"color: #0000ff;\">http:\/\/www.lazytomatolab.com\/<\/span><\/strong><\/a> very good lesson for learn about Arduino<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb background_color=\u00a0\u00bbrgba(224,151,148,0.27)\u00a0\u00bb use_border_color=\u00a0\u00bbon\u00a0\u00bb border_color=\u00a0\u00bb#ff3f3f\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_margin=\u00a0\u00bb10px|10px|10px|10px\u00a0\u00bb custom_padding=\u00a0\u00bb10px|10px|10px|10px\u00a0\u00bb]<\/p>\n<h4><span style=\"text-decoration: underline;\"><strong><span style=\"color: #ff0000; text-decoration: underline;\">Important !!<\/span><\/strong><\/span><\/h4>\n<p>Check that you do not connect <strong><span style=\"color: #ff0000;\">VCC ( red )<\/span><\/strong> and <strong>GND ( black\u00a0)<\/strong> to a mechanical (microswitch) endstop!<br \/>\nDepending on your wiring that may fries your smoothieboard instantly or when the switch gets pressed.<br \/>\n<span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\"> If you&rsquo;re not careful enough you can damage your board.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb]<\/p>\n<h3><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">The endstop setting section inside config file<\/span><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29105\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/endstop-min-max-homing.jpg\" alt=\"endstop-min-max-homing\" width=\"816\" height=\"455\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29074 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/03\/all-option-of-pin.jpg\" alt=\"all-option-of-pin\" width=\"448\" height=\"234\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In smoothieboard like arduino board no need prepare pull up resistor for input pin, already have internal board resistor for this fonction.<\/p>\n<p>Just activate the \u00ab\u00a0pull up resistor\u00a0\u00bb with option setting in config file<\/p>\n<p><strong><span style=\"color: #ff0000;\">So don&rsquo;t delete the \u00a0\u00bb ^\u00a0\u00bb after the number the pin<\/span><\/strong><\/p>\n<p>If you do this the fonction pull up resistor don&rsquo;t works<\/p>\n<p>In cnc can have <strong>endstop min<\/strong> for setting the \u00ab\u00a0<strong>0<\/strong>\u00a0\u00bb <strong>machine<\/strong> and <strong>endstop max<\/strong> for when the machine move over capacitie, stop\u00a0<span id=\"result_box\" class=\"short_text\" lang=\"en\"><span class=\"\"> automatically<\/span><\/span>.<\/p>\n<p>The Formosa don&rsquo;t have max endstop, it&rsquo;s just a option.<br \/>\nWith this way the cabling is more simple, users just need check if the drawing is under the maxi size the machine can cut.<br \/>\nIf the machine move over the limit don&rsquo;t worry just steppers motors loose step but don&rsquo;t have damage.<\/p>\n<h4><span style=\"text-decoration: underline;\"><strong><span style=\"color: #0000ff; text-decoration: underline;\">Check the correct works of endstop<\/span><\/strong><\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-29106 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2016\/07\/m119.jpg\" alt=\"m119\" width=\"579\" height=\"381\" \/><\/p>\n<p><span style=\"color: #0000ff; background-color: #ffff00;\">Use M119 command to check if the wiring of endstop is correct<\/span><\/p>\n<p>when the <strong><span style=\"color: #0000ff; background-color: #ffff00;\">endstop is hit<\/span><\/strong>, need <strong><span style=\"color: #0000ff; background-color: #ffff00;\">show 1<\/span><\/strong><br \/>\nWhen <strong><span style=\"color: #0000ff; background-color: #ffff00;\">endstop don&rsquo;t hit<\/span><\/strong>, need <strong><span style=\"color: #0000ff; background-color: #ffff00;\">show 0<\/span><\/strong><\/p>\n<p>If you don&rsquo;t use xmax ymax &#8230;\u00a0 not need there parameters appear can comment<br \/>\nwith # in the beginning of line like below to desactivate<\/p>\n<p><span style=\"background-color: #ccffcc;\">alpha_min_endstop 1.24^<\/span><br \/>\n<span style=\"background-color: #ccffcc;\"><strong><span style=\"color: #0000ff;\"> #<\/span><\/strong>alpha_max_endstop 1.25^<\/span><br \/>\n<span style=\"background-color: #ccffcc;\"> alpha_homing_direction home_to_min<\/span><\/p>\n<p>Or use nc in the end of the line like<br \/>\n<span style=\"background-color: #ccffcc;\">alpha_max_endstop\u00a0 <span style=\"color: #0000ff;\"><strong>nc<\/strong><\/span><\/span><\/p>\n<p>[\/et_pb_text][et_pb_comments admin_label=\u00a0\u00bbComments\u00a0\u00bb show_avatar=\u00a0\u00bbon\u00a0\u00bb show_reply=\u00a0\u00bbon\u00a0\u00bb show_count=\u00a0\u00bboff\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_button=\u00a0\u00bboff\u00a0\u00bb button_letter_spacing=\u00a0\u00bb0&Prime; button_use_icon=\u00a0\u00bbdefault\u00a0\u00bb button_icon_placement=\u00a0\u00bbright\u00a0\u00bb button_on_hover=\u00a0\u00bbon\u00a0\u00bb button_letter_spacing_hover=\u00a0\u00bb0&Prime;] [\/et_pb_comments][\/et_pb_column][\/et_pb_row][\/et_pb_section][:fr][et_pb_section bb_built=\u00a0\u00bb1&Prime; admin_label=\u00a0\u00bbsection\u00a0\u00bb][et_pb_row admin_label=\u00a0\u00bbrow\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb][et_pb_column type=\u00a0\u00bb4_4&Prime;][et_pb_post_title admin_label=\u00a0\u00bbTitre du poste\u00a0\u00bb title=\u00a0\u00bbon\u00a0\u00bb meta=\u00a0\u00bbon\u00a0\u00bb author=\u00a0\u00bboff\u00a0\u00bb date=\u00a0\u00bboff\u00a0\u00bb categories=\u00a0\u00bbon\u00a0\u00bb comments=\u00a0\u00bboff\u00a0\u00bb featured_image=\u00a0\u00bboff\u00a0\u00bb featured_placement=\u00a0\u00bbbelow\u00a0\u00bb parallax_effect=\u00a0\u00bbon\u00a0\u00bb parallax_method=\u00a0\u00bboff\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb text_color=\u00a0\u00bbdark\u00a0\u00bb text_background=\u00a0\u00bboff\u00a0\u00bb text_bg_color=\u00a0\u00bbrgba(255,255,255,0.9)\u00a0\u00bb module_bg_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb title_all_caps=\u00a0\u00bboff\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb parallax=\u00a0\u00bbon\u00a0\u00bb background_color=\u00a0\u00bbrgba(255,255,255,0)\u00a0\u00bb]<\/p>\n<p>\n&nbsp;<\/p>\n<p>[\/et_pb_post_title][et_pb_text admin_label=\u00a0\u00bbTexte\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb text_orientation=\u00a0\u00bbleft\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb background_position=\u00a0\u00bbtop_left\u00a0\u00bb background_repeat=\u00a0\u00bbrepeat\u00a0\u00bb background_size=\u00a0\u00bbinitial\u00a0\u00bb]<\/p>\n<p>\nArticle inspir\u00e9 des sites web Sitelec <a href=\"http:\/\/sitelec.org\/cours\/abati\/rs232.htm\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">http:\/\/sitelec.org\/cours\/abati\/rs232.htm<\/span><\/span><\/a><br \/>\nSiloged <a href=\"http:\/\/www.siloged.fr\/cours\/html\/isn_reseaux_info\/la_liaison_srie.html\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">http:\/\/www.siloged.fr\/cours\/html\/isn_reseaux_info\/la_liaison_srie.html<\/span><\/span><\/a><\/p>\n<p>et Technologuepro<br \/>\n<a href=\"http:\/\/www.technologuepro.com\/cours-systemes-embarques\/cours-systemes-embarques-Bus-RS485-MODBUS-Prifibus.htm\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">http:\/\/www.technologuepro.com\/cours-systemes-embarques\/cours-systemes-embarques-Bus-RS485-MODBUS-Prifibus.htm<\/span><\/span><\/a><\/p>\n<h3><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">I ) Introduction<\/span><\/span><\/h3>\n<p>Une liaison s\u00e9rie est une ligne o\u00f9 les bits d&rsquo;information (1 ou 0) arrivent successivement, soit \u00e0 intervalles r\u00e9guliers (transmission synchrone), soit \u00e0 des intervalles al\u00e9atoires, en groupe (transmission asynchrone)<br \/>\nLa liaison RS232 est par exemple une <span class=\"valeur\">liaison s\u00e9rie asynchrone<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-31454\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/05\/rs232-300x102.jpg\" alt=\"\" width=\"300\" height=\"102\" \/><\/p>\n<p>L&rsquo;octet \u00e0 transmettre est envoy\u00e9 bit par bit (<span class=\"valeur\">poids faible en premier<\/span>) par l&rsquo;\u00e9metteur sur la ligne Tx, vers le r\u00e9cepteur (ligne Rx) qui le reconstitue<br \/>\nLa vitesse de transmission de l&rsquo;\u00e9metteur doit \u00eatre identique \u00e0 la vitesse d&rsquo;acquisition du r\u00e9cepteur.<\/p>\n<p>Ces vitesses sont exprim\u00e9es en <span class=\"valeur\" style=\"color: #800000;\">BAUDS<\/span> (1 baud correspond \u00e0 1 bit \/ seconde, dans notre cas).<br \/>\nIl existe diff\u00e9rentes vitesses normalis\u00e9es: 9600, 4800, 2400, 1200&#8230; bauds<\/p>\n<p><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff;\"><strong>A ) Communication duplex, half-duplex, full duplex<\/strong><\/span><\/span><\/p>\n<p>La communication peut se faire dans les deux sens (duplex).<br \/>\nsoit \u00e9mission d&rsquo;abord, puis r\u00e9ception ensuite (half-duplex)<br \/>\nsoit \u00e9mission et r\u00e9ception simultan\u00e9es (full-duplex)<\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">B ) Communication asynchrone et synchrone<\/span><\/span><br \/>\n<\/strong><\/p>\n<p>Lors d&rsquo;une communication type asynchrone (pas d&rsquo;horloge commune entre l&rsquo;\u00e9metteur et le r\u00e9cepteur), des bits suppl\u00e9mentaires sont indispensables au fonctionnement: bit de d\u00e9but de mot (<span class=\"valeur\">start<\/span>), bit(s) de fin de mot (<span class=\"valeur\">stop<\/span>)<br \/>\nD&rsquo;autre part, l&rsquo;utilisation \u00e9ventuelle d&rsquo;un bit de <span class=\"valeur\">parit\u00e9<\/span>, permet la d\u00e9tection d&rsquo;erreurs dans la transmission<\/p>\n<p>[\/et_pb_text][et_pb_tabs use_border_color=\u00a0\u00bboff\u00a0\u00bb _builder_version=\u00a0\u00bb3.4.1&Prime;][et_pb_tab title=\u00a0\u00bbLiaison RS485&Prime; tab_font_select=\u00a0\u00bbdefault\u00a0\u00bb tab_font=\u00a0\u00bb||||\u00a0\u00bb tab_line_height=\u00a0\u00bb2em\u00a0\u00bb tab_line_height_tablet=\u00a0\u00bb2em\u00a0\u00bb tab_line_height_phone=\u00a0\u00bb2em\u00a0\u00bb body_font_select=\u00a0\u00bbdefault\u00a0\u00bb body_font=\u00a0\u00bb||||\u00a0\u00bb body_line_height=\u00a0\u00bb2em\u00a0\u00bb body_line_height_tablet=\u00a0\u00bb2em\u00a0\u00bb body_line_height_phone=\u00a0\u00bb2em\u00a0\u00bb _builder_version=\u00a0\u00bb3.4.1&Prime;]<\/p>\n<p>\n&nbsp;<\/p>\n<p>La norme&nbsp;RS485 date de 1983, les liaisons RS485 sont assez utilis\u00e9es pour les CNC, notamment pour piloter certains drivers de moteur PAP ou servo moteurs ou piloter des variateurs de broches.<\/p>\n<p>La transmission se fait sur une paire torsad\u00e9e blind\u00e9e, par des variations de tension en mode diff\u00e9rentiel.<\/p>\n<h3><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">Le Bus RS485<\/span><\/span><\/h3>\n<p>Un des principaux probl\u00e8mes des liaisons s\u00e9ries est l&rsquo;absence d&rsquo;immunit\u00e9 pour le bruit sur les lignes de signal. L&rsquo;\u00e9metteur et le r\u00e9cepteur comparent les tensions par rapport \u00e0 une masse commune en ligne (exemple RS232).<\/p>\n<p>Un changement dans le niveau du potentiel de terre peut avoir des effets d\u00e9sastreux. Le bruit limite \u00e0 la fois la distance maximale et la vitesse de communication.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-32173 alignleft\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/05\/niveaux-tension-rs485-271x300.jpg\" alt=\"\" width=\"271\" height=\"300\"><\/p>\n<p>Avec l&rsquo;<strong>RS485<\/strong>&nbsp;il n&rsquo;y a pas une masse commune comme signal de r\u00e9f\u00e9rence. La transmission est diff\u00e9rentielle, le r\u00e9cepteur compare la&nbsp;<em>diff\u00e9rence de tension<\/em>&nbsp;entre les deux lignes, au lieu d&rsquo;un&nbsp;<em>niveau de tension absolue<\/em>&nbsp;sur une ligne de signal.<\/p>\n<h3><span style=\"text-decoration: underline;\"><strong><span style=\"color: #ff0000; text-decoration: underline;\">Le protocole&nbsp;:<\/span><\/strong><\/span><\/h3>\n<p>Un protocole consiste en la d\u00e9finition de trames d&rsquo;\u00e9change. Plusieurs protocoles en \u00e9t\u00e9 d\u00e9finies. Le protocole le plus connu est le protocole&nbsp;<strong>Modbus&nbsp;<\/strong>(marque d\u00e9pos\u00e9e par&nbsp;<strong>MODICON<\/strong>) et&nbsp;<strong>Profibus<\/strong>&nbsp;(Siemens) qui sont deux protocoles standards de dialogue bas\u00e9 sur une structure hi\u00e9rarchis\u00e9e entre un ma\u00eetre et plusieurs esclaves.&nbsp;N\u00e9anmoins l&rsquo;utilisateur est libre de d\u00e9finir son propre protocole.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32174 size-full\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/05\/RS485-maitre-esclave.jpg\" alt=\"\" width=\"800\" height=\"228\"><\/p>\n<ul>\n<li>2 modes de communication sont possibles<br \/>\n&#8211; Le ma\u00eetre envoie&nbsp;une&nbsp;demande \u00e0 un esclave en particulier et attend une&nbsp;r\u00e9ponse<br \/>\n&#8211; Le ma\u00eetre parle \u00e0 l&rsquo;ensemble des esclaves sans attendre de r\u00e9ponse<strong><span style=\"text-decoration: underline;\">Ce qu&rsquo;il faut savoir<\/span><\/strong><\/li>\n<li>Deux esclaves ne peuvent dialoguer ensemble.<\/li>\n<li>Le dialogue ma\u00eetre \u2013 esclave peut \u00eatre sch\u00e9matis\u00e9 sous une forme successive de liaisons point \u00e0 point.<\/li>\n<li>Mode de communication :&nbsp;<strong>half-duplex<\/strong>. (2 fils ou 4 fils)<span style=\"text-decoration: underline;\"><span style=\"font-size: 14pt; color: #ff0000;\"><strong>Structure des messages :<\/strong><\/span><\/span>Le ma\u00eetre envoie un message constitu\u00e9 de la fa\u00e7on suivante :<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32175 size-full\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/05\/trame-rs485.jpg\" alt=\"\" width=\"800\" height=\"456\"><\/li>\n<\/ul>\n<ul>\n<li>La d\u00e9tection de fin de message est r\u00e9alis\u00e9e sur un&nbsp;<strong>silence&nbsp;<\/strong>de dur\u00e9e sup\u00e9rieure ou \u00e9gale \u00e0 la dur\u00e9e de transmission<strong>&nbsp;<\/strong>de 3 octets.<\/li>\n<li>L&rsquo;esclave r\u00e9pond par un message du m\u00eame type que le message question.<\/li>\n<li><\/li>\n<li><span style=\"text-decoration: underline;\"><span style=\"color: #800000; text-decoration: underline;\">Exemple de circuit permettant de convertir une liaison s\u00e9rie TTL UART en liaison RS485<\/span><\/span><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\"><a style=\"color: #0000ff; text-decoration: underline;\" href=\"https:\/\/www.aliexpress.com\/item\/TTL-to-RS485-module-RS485-to-TTL-with-isolated-single-chip-serial-port-UART\/32820863224.html\">https:\/\/www.aliexpress.com\/item\/TTL-to-RS485-module-RS485-to-TTL-with-isolated-single-chip-serial-port-UART\/32820863224.html?spm=a2g0s.9042311.0.0.fyFwys<\/a><\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_tab][et_pb_tab _builder_version=\u00a0\u00bb3.4.1&Prime; title=\u00a0\u00bbLiaison par bus CAN\u00a0\u00bb use_background_color_gradient=\u00a0\u00bboff\u00a0\u00bb background_color_gradient_start=\u00a0\u00bb#2b87da\u00a0\u00bb background_color_gradient_end=\u00a0\u00bb#29c4a9&Prime; background_color_gradient_type=\u00a0\u00bblinear\u00a0\u00bb background_color_gradient_direction=\u00a0\u00bb180deg\u00a0\u00bb background_color_gradient_direction_radial=\u00a0\u00bbcenter\u00a0\u00bb background_color_gradient_start_position=\u00a0\u00bb0%\u00a0\u00bb background_color_gradient_end_position=\u00a0\u00bb100%\u00a0\u00bb background_color_gradient_overlays_image=\u00a0\u00bboff\u00a0\u00bb parallax=\u00a0\u00bboff\u00a0\u00bb parallax_method=\u00a0\u00bbon\u00a0\u00bb background_size=\u00a0\u00bbcover\u00a0\u00bb background_position=\u00a0\u00bbcenter\u00a0\u00bb background_repeat=\u00a0\u00bbno-repeat\u00a0\u00bb background_blend=\u00a0\u00bbnormal\u00a0\u00bb allow_player_pause=\u00a0\u00bboff\u00a0\u00bb background_video_pause_outside_viewport=\u00a0\u00bbon\u00a0\u00bb tab_text_shadow_style=\u00a0\u00bbnone\u00a0\u00bb body_text_shadow_style=\u00a0\u00bbnone\u00a0\u00bb]<\/p>\n<p><span class=\"contenu_texte\">Le CAN (<em><strong>C<\/strong>ontroller <strong>A<\/strong>rea <strong>N<\/strong>etwork<\/em>) est un bus de communication de type s\u00e9rie, d\u00e9velopp\u00e9 \u00e0 la fin des ann\u00e9es 80, par l&rsquo;entreprise allemande Robert Bosch.<\/span><\/p>\n<p><span class=\"contenu_texte\"> L&rsquo;objectif \u00e9tait de fournir \u00e0 l&rsquo;industrie automobile une alternative aux nombreux c\u00e2bles n\u00e9cessaires pour interconnecter les \u00e9quipements \u00e9lectroniques, sans cesse croissant des automobiles.<\/span><br \/><span class=\"contenu_texte\">Aujourd&rsquo;hui, l&rsquo;efficacit\u00e9 et la robustesse de ce protocole l&rsquo;ont amen\u00e9 \u00e0 \u00eatre utilis\u00e9 dans de nombreuses autres applications industrielles, en particulier celles n\u00e9cessitant un d\u00e9bit important (jusqu&rsquo;\u00e0 <strong>1 Mbits\/s<\/strong>) avec un tr\u00e8s faible taux d&rsquo;erreur.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32529 size-full\" src=\"http:\/\/www.makerslide-machines.xyz\/wp-content\/uploads\/2017\/05\/can_volvo_S80.jpg\" alt=\"\" width=\"552\" height=\"347\"><\/p>\n<p>Dans une voiture il y a un bus rapide \u00e0 250 kbit\/s pour les \u00e9quipements de s\u00e9curit\u00e9 et un de 125 kbit\/s pour les autres \u00e9quipements.<\/p>\n<p>Plus d&rsquo;informations \u00e0 <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"http:\/\/isil-electro.wikispaces.com\/CAN\">http:\/\/isil-electro.wikispaces.com\/CAN<\/a><\/span><\/p>\n<p>[\/et_pb_tab][\/et_pb_tabs][et_pb_comments admin_label=\u00a0\u00bbCommentaires\u00a0\u00bb show_avatar=\u00a0\u00bboff\u00a0\u00bb show_reply=\u00a0\u00bbon\u00a0\u00bb show_count=\u00a0\u00bboff\u00a0\u00bb background_layout=\u00a0\u00bblight\u00a0\u00bb use_border_color=\u00a0\u00bboff\u00a0\u00bb border_color=\u00a0\u00bb#ffffff\u00a0\u00bb border_style=\u00a0\u00bbsolid\u00a0\u00bb custom_button=\u00a0\u00bboff\u00a0\u00bb button_letter_spacing=\u00a0\u00bb0&Prime; button_use_icon=\u00a0\u00bbdefault\u00a0\u00bb button_icon_placement=\u00a0\u00bbright\u00a0\u00bb button_on_hover=\u00a0\u00bbon\u00a0\u00bb button_letter_spacing_hover=\u00a0\u00bb0&Prime;]<\/p>\n<p>\n&nbsp;<\/p>\n<p>[\/et_pb_comments][\/et_pb_column][\/et_pb_row][\/et_pb_section][:]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[:en]Les capteurs de fin de courses permettent \u00e0 la machine d&rsquo;avoir une position de r\u00e9f\u00e9rence l&rsquo;origine \u00ab\u00a00\u00a0\u00bb[:zh]Les capteurs de fin de courses permettent \u00e0 la machine d&rsquo;avoir une position de r\u00e9f\u00e9rence l&rsquo;origine \u00ab\u00a00\u00a0\u00bb[:]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[78],"tags":[],"class_list":["post-30642","post","type-post","status-publish","format-standard","hentry","category-protocoles-communication"],"_links":{"self":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/30642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/comments?post=30642"}],"version-history":[{"count":13,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/30642\/revisions"}],"predecessor-version":[{"id":32530,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/posts\/30642\/revisions\/32530"}],"wp:attachment":[{"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/media?parent=30642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/categories?post=30642"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.makerslide-machines.xyz\/old\/wp-json\/wp\/v2\/tags?post=30642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}