The system uses Ultrasonic sensors to measure the water level and acco การแปล - The system uses Ultrasonic sensors to measure the water level and acco ไทย วิธีการพูด

The system uses Ultrasonic sensors

The system uses Ultrasonic sensors to measure the water level and according to the signal a on-board microcontroller based circuit calculate the water level generate SMS (Short messaging service) inserting the water level data and send it to the central server using a GSM (Global System for Mobile Communications) modem. In the central server data was extracted from the SMS and inserted into a database. A user can access the web interface and the view the data.

So that’s about the project introduction. Here I’m going to write some important areas of the project rather telling it all. Even though it is too long for one post so they will be put in to several posts.

As first part I would write about programming the microcontroller. The main functions would be getting the signal from Ultrasonic sensor and calculate water level, display it on the LCD (), Configure the GSM modem and send the SMS. For this I used PIC18F452 microcontroller and program it using MicroC. Among them sending the SMS is bit useful to know so this is how it is done.

The GSM modem has a serial port and it is connected to the microcontroller through a MAX232 IC. Communication devices such as modems are configured using AT (attention) commands. Therefore, we have to send AT commands through the serial port. I used the USART library in MicroC to send serial Data.

As for the configuration, I set the message mode, message center number and destination number. The AT commands to each of them would be like below.

AT+CMGF=1

This sets the message mode to text. There is also PDU mode, which gives more options. However, this thing bit complicate.

AT+CSCA=“+947100003”

This is AT command for setting the message center. This depends on the service provider. You can check your service provider in mobile phone’s settings.

AT+CMGS=“+94719192564”

Then the recipients phone number. Message is to follow this. You can try these commands on a phone or modem connected to the PC through a HyperTerminal by connecting to the correct com port. You can check the device manager to find out what is the com port the device is connected. If you correctly type and enter the command then you will get a reply “OK”. With the last command, it will prompt for the message when you hit enter. Then type the message and press “ctrl+z” to send the message.

Now it comes to send the SMS with microcontroller. I used the Usart_Init(int baud rate) and Usart_Write(char letter) methods for this. The commands were stored in char arrays and send them character at a time using for loops. Usart_Init requires the baud rate to initialize the Usart module. This is data sending rate so it must be supported by the device as well.
- See more at: http://www.assumedaltitude.lkblog.com/2011/11/reservoir-water-level-monitoring-system.html#sthash.A8rvJyyA.dpuf
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
The system uses Ultrasonic sensors to measure the water level and according to the signal a on-board microcontroller based circuit calculate the water level generate SMS (Short messaging service) inserting the water level data and send it to the central server using a GSM (Global System for Mobile Communications) modem. In the central server data was extracted from the SMS and inserted into a database. A user can access the web interface and the view the data.So that’s about the project introduction. Here I’m going to write some important areas of the project rather telling it all. Even though it is too long for one post so they will be put in to several posts.As first part I would write about programming the microcontroller. The main functions would be getting the signal from Ultrasonic sensor and calculate water level, display it on the LCD (), Configure the GSM modem and send the SMS. For this I used PIC18F452 microcontroller and program it using MicroC. Among them sending the SMS is bit useful to know so this is how it is done.The GSM modem has a serial port and it is connected to the microcontroller through a MAX232 IC. Communication devices such as modems are configured using AT (attention) commands. Therefore, we have to send AT commands through the serial port. I used the USART library in MicroC to send serial Data.As for the configuration, I set the message mode, message center number and destination number. The AT commands to each of them would be like below.AT + CMGF = 1นี้ตั้งค่าโหมดข้อความเป็นข้อความ นอกจากนี้ยังมีโหมด PDU ซึ่งช่วยให้ตัวเลือกเพิ่มเติม อย่างไรก็ตาม สิ่งนี้บิต complicateAT + CSCA = "+947100003"โดยที่คำสั่งสำหรับการตั้งค่าศูนย์ข้อความ นี้ขึ้นอยู่กับผู้ให้บริการ คุณสามารถตรวจสอบผู้ให้บริการในการตั้งค่าโทรศัพท์มือถือAT + CMGS = "+94719192564"แล้ว ผู้รับโทรศัพท์หมายเลข ข้อความจะทำตามนี้ คุณสามารถลองคำสั่งเหล่านี้บนโทรศัพท์หรือโมเด็มที่เชื่อมต่อกับคอมพิวเตอร์ผ่าน HyperTerminal เป็น โดยเชื่อมต่อกับพอร์ต com ถูกต้อง คุณสามารถตรวจสอบการเชื่อมต่อตัวจัดการอุปกรณ์เพื่อค้นหาพอร์ต com อุปกรณ์คืออะไร ถ้าคุณพิมพ์อย่างถูกต้อง และป้อนคำสั่ง คุณจะได้คำตอบ "ตกลง" กับคำสุดท้าย มันจะแสดงพร้อมท์สำหรับข้อความเมื่อคุณกดป้อน พิมพ์ข้อความ แล้วกด "ctrl + z" ส่งข้อความตอนนี้ ก็มาส่ง SMS ด้วยไมโครคอนโทรลเลอร์ ผมใช้ Usart_Init (int อัตรารับส่งข้อมูล) และ Usart_Write (ตัวอักษรอักขระ) วิธีนี้ คำสั่งถูกเก็บไว้ในอาร์เรย์ของอักขระและส่งให้อักขระที่เวลาใช้การวนรอบ Usart_Init ต้องการความเร็วในการเตรียมใช้งานโมดูล Usart นี่คือข้อมูลที่ส่งอัตราดังนั้นจึงต้องได้รับการสนับสนุน โดยอุปกรณ์เช่น-ดูเพิ่มเติมได้ที่: http://www.assumedaltitude.lkblog.com/2011/11/reservoir-water-level-monitoring-system.html#sthash.A8rvJyyA.dpuf
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
ระบบจะใช้เซ็นเซอร์อัลตราโซนิกในการวัดระดับน้ำและเป็นไปตามสัญญาณไมโครคอนโทรลเลอร์บนแผงวงจรตามการคำนวณระดับน้ำสร้าง SMS (บริการส่งข้อความสั้น) ใส่ข้อมูลระดับน้ำและส่งไปยังเซิร์ฟเวอร์กลางโดยใช้เครือข่าย GSM (ทั่วโลก ระบบการสื่อสารเคลื่อนที่) โมเด็ม ในข้อมูลที่เซิร์ฟเวอร์กลางถูกสกัดจาก SMS และใส่ลงในฐานข้อมูล ผู้ใช้สามารถเข้าถึงเว็บอินเตอร์เฟสและมุมมองข้อมูล. ดังนั้นที่เกี่ยวกับการเปิดตัวโครงการ ที่นี่ฉันจะเขียนบางพื้นที่ที่สำคัญของโครงการค่อนข้างบอกมันทั้งหมด ถึงแม้ว่ามันจะยาวเกินไปสำหรับการโพสต์เพื่อให้พวกเขาจะได้รับการใส่ในการโพสต์หลาย. ในฐานะที่เป็นส่วนแรกที่ผมจะเขียนเกี่ยวกับการเขียนโปรแกรมไมโครคอนโทรลเลอร์ หน้าที่หลักจะได้รับสัญญาณจากเซ็นเซอร์อัลตราโซนิกและคำนวณระดับน้ำแสดงบนจอแอลซีดี () กำหนดค่าโมเด็ม GSM และส่งข้อความ SMS สำหรับเรื่องนี้ผมใช้ไมโครคอนโทรลเลอร์ PIC18F452 และโปรแกรมโดยใช้ MicroC ในหมู่พวกเขาส่ง SMS เป็นประโยชน์ที่จะรู้ว่าบิตดังนั้นนี้เป็นวิธีการที่จะทำ. โมเด็ม GSM มีพอร์ตอนุกรมและจะมีการเชื่อมต่อกับไมโครคอนโทรลเลอร์ผ่าน IC MAX232 อุปกรณ์การสื่อสารเช่นโมเด็มมีการกำหนดค่าใช้ AT (ความสนใจ) คำสั่ง ดังนั้นเราจึงมีการส่งคำสั่ง AT ผ่านพอร์ตอนุกรม ผมใช้ห้องสมุด USART MicroC ในการส่งข้อมูลแบบอนุกรม. ในฐานะที่เป็นสำหรับการตั้งค่าที่ผมตั้งค่าโหมดข้อความจำนวนศูนย์ข้อความและหมายเลขปลายทาง เอทีคำสั่งแต่ละของพวกเขาจะเป็นเช่นนี้. AT + CMGF = 1 นี้จะตั้งโหมดข้อความไปยังข้อความ นอกจากนี้ยังมีโหมด PDU ซึ่งจะช่วยให้ตัวเลือกมากขึ้น แต่ซับซ้อนบิตสิ่งนี้. AT + CSCA = "+ 947100003" นี่คือคำสั่ง AT สำหรับการตั้งศูนย์ข้อความ นี้ขึ้นอยู่กับผู้ให้บริการ คุณสามารถตรวจสอบผู้ให้บริการในการตั้งค่าโทรศัพท์มือถือ. AT + CMGs = "+ 94719192564" แล้วหมายเลขโทรศัพท์ของผู้รับ ข้อความเป็นไปตามนี้ คุณสามารถลองคำสั่งเหล่านี้บนโทรศัพท์หรือโมเด็มเชื่อมต่อกับคอมพิวเตอร์ผ่าน HyperTerminal โดยการเชื่อมต่อกับพอร์ตคอมที่ถูกต้อง คุณสามารถตรวจสอบการจัดการอุปกรณ์เพื่อหาสิ่งที่เป็นคอมพอร์ตอุปกรณ์ที่เชื่อมต่อ ถ้าคุณพิมพ์ได้อย่างถูกต้องและป้อนคำสั่งแล้วคุณจะได้รับการตอบกลับ "ตกลง" ด้วยคำสั่งสุดท้ายก็จะแจ้งข้อความเมื่อคุณกด แล้วพิมพ์ข้อความและกด "Ctrl + Z" เพื่อส่งข้อความ. ตอนนี้ก็มาถึงการส่ง SMS กับไมโครคอนโทรลเลอร์ ผมใช้ Usart_Init (int อัตราบอด) และ Usart_Write (จดหมายถ่าน) วิธีการนี้ คำสั่งที่ถูกเก็บไว้ในอาร์เรย์ถ่านและส่งพวกเขาเป็นตัวละครในช่วงเวลาที่ใช้สำหรับลูป Usart_Init ต้องใช้อัตราการส่งข้อมูลในการเริ่มต้นโมดูล USART นี่คือการส่งข้อมูลอัตราดังนั้นจึงต้องได้รับการสนับสนุนโดยอุปกรณ์ได้เป็นอย่างดี. - ดูเพิ่มเติมได้ที่:






















การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ระบบจะใช้เซ็นเซอร์อัลตราโซนิควัดระดับน้ำ และตามสัญญาณคำนวณวงจรไมโครคอนโทรลเลอร์บนกระดานตามระดับน้ำสร้าง SMS ( บริการส่งข้อความสั้น ) แทรกข้อมูลระดับน้ำและส่งไปยังเซิร์ฟเวอร์กลางที่ใช้ GSM ( ระบบทั่วโลกสำหรับการสื่อสารเคลื่อนที่ ) โมเด็มในข้อมูลเซิร์ฟเวอร์กลางถูกสกัดจาก SMS และแทรกลงในฐานข้อมูล ผู้ใช้สามารถเข้าถึงเว็บอินเตอร์เฟซและดูข้อมูล

ดังนั้นที่เกี่ยวกับโครงการเบื้องต้น ที่นี่ฉันจะเขียนความสำคัญของโครงการค่อนข้างบอกมันทั้งหมด ถึงแม้ว่ามันจะยาวเกินไปสำหรับการโพสต์เพื่อให้พวกเขาจะถูกวางในการโพสต์หลายที่

เป็นส่วนแรกที่ผมจะเขียนเกี่ยวกับการเขียนโปรแกรมไมโครคอนโทรลเลอร์ . หน้าที่หลักจะได้รับสัญญาณจากเซ็นเซอร์อัลตราโซนิกและคำนวณระดับน้ำที่แสดงบนจอ LCD ( ) , ปรับแต่งโมเด็ม GSM และส่ง SMS นี้ผมใช้ไมโครคอนโทรลเลอร์ pic18f452 และโปรแกรมมันใช้ microc . ในการส่ง SMS จะเป็นประโยชน์บ้าง รู้ว่าทำแบบนี้นี่เอง

ระบบ GSM โมเด็มมีพอร์ตอนุกรม และมันเชื่อมต่อกับไมโครคอนโทรลเลอร์ผ่าน max232 IC อุปกรณ์สื่อสาร เช่น โมเด็มจะใช้ในการกำหนดค่า ( ความสนใจ ) สั่ง ดังนั้น เราต้องส่งคำสั่งที่ผ่านพอร์ตอนุกรม ผมใช้ usart ห้องสมุดใน microc ส่งข้อมูลแบบอนุกรม .

สำหรับการปรับแต่ง ผมตั้งโหมดข้อความ หมายเลขศูนย์ข้อความและเบอร์ปลายทางในคำสั่งแต่ละของพวกเขาจะเป็นเหมือนด้านล่าง

ที่ cmgf = 1

ชุดนี้โหมดข้อความข้อความ นอกจากนี้ยังมีโหมด pdu ซึ่งให้ตัวเลือกเพิ่มเติม อย่างไรก็ตาม สิ่งนี้บิตซับซ้อน .

ที่ CSCA = " 947100003 "

นี่เป็นคำสั่งสำหรับการตั้งค่าข้อความที่ศูนย์ นี้ขึ้นอยู่กับผู้ให้บริการ คุณสามารถตรวจสอบผู้ให้บริการของคุณในการตั้งค่าโทรศัพท์มือถือ

ที่ cmgs = " 94719192564 "

การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: