»ùÓÚSTM32ºÍMODBUSЭÒéµÄ¶à²ÎÊýÊý¾Ý²É¼¯¿¨Éè¼Æ(¾«) ÏÂÔر¾ÎÄ

ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2025/4/3 9:42:21ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£

µÚ32¾í µÚ12ÆÚ 2010-12(ÉÏ

¡¾205¡¿

»ùÓÚSTM32ºÍMODBUSЭÒéµÄ¶à²ÎÊý Êý¾Ý²É¼¯¿¨Éè¼Æ

Multi-parameter data acquisition card design based on STM32 and MODBUS protocol

Фǰ¾üXIAO Qian-jun

£¨ÖØÇ칤ҵְҵ¼¼ÊõѧԺ£¬ÖØÇì 400050£©

Õª Òª£ºÎªÁËʵÏÖ¹¤ÒµÏÖ³¡Êý¾Ý²É¼¯µÄÍøÂ绯ºÍÖÇÄÜ»¯£¬±¾ÎÄʹÓÃSTM32×÷Ϊ¿ØÖÆÆ÷£¬²ÉÓÃMODBUS

ͨÐÅЭÒ飬Éè¼ÆÁËÒ»¿î¸ßÐÔÄܶà²ÎÊýÊý¾Ý²É¼¯¿¨¡£ ¹Ø¼ü´Ê£ºSTM32£»MODBUSЭÒ飻ÍøÂ绯£»¶à²ÎÊý

ÖÐͼ·ÖÀàºÅ£ºTP391 ÎÄÏ×±êʶÂ룺A ÎÄÕ±àºÅ£º1009-0134(201012(ÉÏ-0205-04Doi: 10.3969/j.issn.1009-0134.2010.12(ÉÏ.67

0 ÒýÑÔ

ÔÚ¹¤ÒµÏÖ³¡ÐèÒª¼à¿ØÏÖ³¡µÄ¹¤×÷»·¾³ºÍÉ豸µÄÔËÐÐ×´¿ö£¬¾ÍÐèÒª²âÁ¿ÏÖ³¡µÄζȡ¢Êª¶ÈºÍÉ豸µÄµçѹ¡¢µçÁ÷µÈ²ÎÊý£¬ÒÔÇ°µÄÊý¾Ý²É¼¯¶à²ÉÓñäËÍÆ÷£¬±äËÍÆ÷²É¼¯µÄÊý¾Ý²ÉÓÃÄ£ÄâÁ¿´«Ê䣬¿¹¸ÉÈÅÄÜÁ¦½Ï²î£¬²¢ÇҲɼ¯Êý¾Ýµ¥Ò»£¬²»ÄÜÍê³É¶à²ÎÊý²É¼¯£¬ÓÉÓÚ²ÉÓÃÄ£ÄâÁ¿´«Êä²»Ò×ʵÏÖÍøÂ绯¡£±¾ÎÄÌá³öÒ»ÖÖ¶à²ÎÊýÊý¾Ý²É¼¯¿¨µÄÉè¼Æ

ºÍʵʩ·½°¸£¬²ÉÓÃSTM32×÷Ϊ΢´¦ÀíÆ÷£¬±ê×¼MODBUSЭÒé×÷ΪͨÐŹæÔ¼£¬ÊµÏÖÊý¾Ý²É¼¯µÄÍøÂ绯ºÍÖÇÄÜ»¯£»¸Ã²É¼¯¿¨¾ßÓÐÈçϹ¦ÄÜ£º¿ÉʵÏÖ8·ģÄâÁ¿ÊäÈ루»ì½Ó£©£¬Óû§¿É½«ÈÎһͨµÀ×ÔÓÉÉèÖóɱê×¼µçѹ¡¢±ê×¼µçÁ÷£¨¼Ó½ÓÈ¡Ñùµç×裩¡¢Èȵçż¡¢Èȵç×èµÈÐźŷ½Ê½£»8·¼ÌµçÆ÷Êä³ö£¨¿ØÖÆ»ò±¨¾¯Ðźţ©£¬±¨¾¯¼ÌµçÆ÷ÓÉI/OÇ°¶Ë×ÔÐпØÖÆÊä³ö£¨×é̬£©£¬¿Éµ¥×é»ò¶à×éÊä³ö£¬Ã¿×éÊä³öΪ¶ÀÁ¢·½Ê½£¬±¨¾¯Êä³ö´¥µçµçÁ÷¡Ü3A£»ÔÚ´®ÐÐͨÐÅ·½Ê½£¨RS485£©Ï£¬²ÉÓñê×¼MODBUSЭÒ飬ʹ²É¼¯¿¨ÓëÉÏλ»ú»ò¿ØÖÆÆ÷½øÐÐͨÐÅ£»ÈË»ú½Ó¿Ú£¨¼üÅ̼°ÏÔʾ£©£¬Íê³É²ÎÊýÊÖ¶¯ÉèÖúͲâÊÔ½á¹ûÏÖ³¡ÏÔʾ¡£

1 ϵͳ×ÜÌå·½°¸

ϵͳ×ÜÌå¿òͼÈçͼ1Ëùʾ£¬°üÀ¨µçÔ´´¦Àíµç·£¬MCU¿ØÖÆÆ÷£¬´®ÐÐͨÐÅÄ£¿é£¬ÐźÅÂ˲¨µç·£¬·Å´óµç·ºÍA/Dת»»µç·£¬ÐźŸôÀëµç·£¬Êä³ö±¨¾¯ºÍÈË»ú½Ó¿Úµç·¡£ÏµÍ³Èí¼þÁ÷³ÌÈçͼ4

Ëùʾ¡£ ͼ1 ϵͳ¿òͼ 2 ¹¦ÄÜÄ£¿éÉè¼Æ 2.1 µçÔ´µç·Éè¼Æ

±¾²¿·ÖÉè¼Æ¸÷Ä£¿éµç·µÄ¹©µçµçÔ´£¬¸ÃÏîÄ¿ÓÐ4×éÄ£¿éµç·£¬ÓÉÓÚÐźÅÐèÒª¸ôÀ룬¹Ê4Ä£¿éµç·µÄ¹©µçµçÔ´¶ÀÁ¢£¬ÊäÈëµçÔ´µçѹΪ24V£»Êä³ö3×é5VµçÔ´¡¢2

×é3.3VµçÔ´ºÍÒ»×é24VµçÔ´£»Éè¼Æ¹¦ÂÊ£º8W¡££¨¾ßÌ幦ÂÊ·ÖÅ䣺5VµçÔ´500mA£¬3.3VµçÔ´¸÷100mA£¬24VµçÔ´200mA£©¡£

µçÔ´µç·Èçͼ2Ëùʾ£¬ÊäÈë¶Ë½Ó24VÖ±Á÷µçÔ´£¬TV1Ϊ TVS¹Ü£¬ÊÇÄ¿Ç°¹ú¼ÊÉÏÆÕ±éʹÓõÄÒ»ÖÖ¸ßЧÄܵç·±£»¤Æ÷¼þ£¬ËüµÄÍâÐÍÓëÆÕͨ¶þ¼«¹ÜÏàͬ£¬µ«È´ÄÜÎüÊոߴïÊýǧÍßµÄÀËÓ¿¹¦ÂÊ£¬Í¨¹ýTM2594Mµ¥Ôªµç·£¬½«µçѹÎȶ¨µ½+5 V¡£TM2594ϵÁÐоƬΪ¼òµ¥²½½µ¿ª¹ØÎÈѹÆ÷£¬×ª»»Ð§Âʸߴï88%£¬½â¾öÁË78XXϵÁÐLDOÐÍÎÈѹÆ÷¼þµÄѹ²î´ó·¢ÈÈ´óµÄÎÊÌâ¡£+5 VµçÔ´¾­¹ýDC/DC¸ôÀëÄ£¿éH0505Sºó²úÉúÁ½Â·+5VµçÔ´£¬ÓÃÓÚÐźŴ¦

ÊÕ¸åÈÕÆÚ£º2010-08-12

×÷Õß¼ò½é£ºÐ¤Ç°¾ü£¨1974 -£©£¬ÄУ¬ÖØÇ쿪ÏØÈË£¬½²Ê¦£¬Ë¶Ê¿Ñо¿Éú£¬Ñо¿·½ÏòǶÈëʽϵͳÉè¼Æ¡£

¡¾206¡¿ µÚ32¾í µÚ12ÆÚ

2010-12(ÉÏ

Àí¡¢²É¼¯Ä£¿éµç·ºÍ´®¿ÚͨÐÅÄ£¿éµç·ʹÓã¬Ê¹Óà NCP1117L²úÉúÁ½Â·+3.3 VµçÔ´ÓÃÓÚMCU¿ØÖÆÆ÷