Thông báo

Collapse
No announcement yet.

Các bác giúp em mấy bài này

Collapse
X
 
  • Lọc
  • Giờ
  • Show
Clear All
new posts

  • Các bác giúp em mấy bài này

    **Exercise 1 : Create the Program that we can : 1. Calculate the level of water
    2. Start the pumper
    3. Close or open valve by using servos
    We also need the following associated header file:
    Serov.h
    • Note that, by convention, the main.cpp file does not need a header file
    **Exercise 2: Create the Program that we can : 1. Calculate the level of water, if the level of water from sensor to the surface is lower than 15cm (mean the level is high), pumper must stop (turn of electric from it), water valve must be closed
    2. If the measure from water surface to sensor is greater than 15cm (mean the level is low), pumper must run and water valve must be opened
    We also need the following associated header file:
    Serov.h
    • Note that, by convention, the main.cpp file does not need a header file
    **Exercise 3: Create the Program that we can : 1. Calculate the level of water, if the level of water from sensor to the surface is lower than 15cm (mean the level is high), pumper must stop (turn of electric from it), water valve must be closed
    2. If the measure from water surface to sensor is greater than 15cm (mean the level is low), pumper must run and water valve must be opened
    3. If the temperature of mainboard is higher than 60oC, valve must be closed, pumper must be stopped and print to the console the message :
    “Mainboard overheated! Change into water manual control or Switch to Emergency Mainboard control!” We also need the following associated header file:
    Serov.h
    OneWire.h; DallasTemperature.h
    **Exercise 4: Finish ex3 by using Modular programming, check Tempurature, check water level, turn on off relay or servos by using functions
    Các bác giúp em viết chương trình dùm mấy bài này với em đang học môn này thank!!!!!!

Về tác giả

Collapse

gago988 Tìm hiểu thêm về gago988

Bài viết mới nhất

Collapse

  • nguyendinhvan
    Trả lời cho Vấn đề về tốc độ quay
    bởi nguyendinhvan
    Sử dụng động cơ servor, hoặc lắp thêm một cái encoder vào động cơ bước. Encoder sẽ kiểm soát động cơ có quay hoặc đứng im.
    Hôm qua, 19:50
  • Andrea14
    Vấn đề về tốc độ quay
    bởi Andrea14
    Chào mọi người,

    Tôi muốn mô phỏng sự thay đổi các mùa bằng cách từ từ nghiêng một quả địa cầu 16 inch bằng một động cơ bước nhỏ. Một động cơ bước khác sẽ quay quả địa cầu theo thời gian thực. Hệ thống truyền động...
    12-12-2025, 12:42
  • bqviet
    Trả lời cho Đấu tắt điện cho máy tính bảng
    bởi bqviet
    Bqv cáo lỗi vì chưa đủ khả năng diễn giải để người đọc hiểu. Người làm kỹ thuật sâu đôi khi như thế đó. Về việc nạp pin không vào dù cell mới, khả năng cái mạch quản lý đó đã hỏng - cũng chính là nguyên nhân đám cell cũ hỏng từ đầu.
    06-12-2025, 17:17
  • nguyendinhvan
    Trả lời cho Xin hỏi về mạch thu FM/AM trong catsette
    bởi nguyendinhvan
    Theo tôi, nó chỉ là cái Tuy- ê - nơ, hoặc là khối Trung Văn Tần, nó một phần trong cái Da đì ô thôi. Vì có thấy một chỗ có ba chân hàn, giiống như chân Cờ rít sờ tăng 455 ki nô hẹc. Còn khối Tuy ê nơ thì không nhìn thây cái Di ốt Va di cáp...
    05-12-2025, 19:59
Đang tải...
X