ความรู้แน่น ฟรีสำหรับชุมชน ArduinoAll ที่นี่เท่านั้น

ฟรีและดีที่สุด คอร์สอบรม Arduino + NodeMCU
ทำเพื่อแบ่งปัน ห้ามนำไปจำหน่าย หรือเก็บเงินค่าเรียน
  !!!


  


AllNewStep รับประกันคุณภาพทุกชิ้น วันจันทร์-ศุกร์แจ้งชำระสินค้าก่อน 14.00 จัดส่งทันทีวันนี้ค่ะ

กรุงเทพ /ภาคกลาง ได้พรุ่งนี้


*** สินค้าทุกชิ้น ถ้าสามารถทำรายการสั่งซื้อได้ แสดงว่ามีครบทุกรายการค่ะ *** 

พิมพ์ค้นหาบทความ หัวข้อกระทู้ และสินค้าในเว็บ AllNewStep ได้ที่นี่
QUOTE 

ทำการอัพลงบอร์ดสำเร็จแต่ค่าที่แสดงออก serial mornitor มาเป็นเลขฐานซะงั้นครับแก้อย่างไร

Boonphiphop Thirawattrakool

QUOTE 
ความคิดเห็นที่ #1
Boonphiphop Thirawattrakool

\\ โปรแกรมเซ็นเซอร์การไหล

volatile int NbTopsFan; //measuring the rising edges of the signal

 

 int Calc;

 

int hallsensor = 5;   //The pin location of the sensor

 

 

void rpm ()     //This is the function that the interupt calls

 {

 

NbTopsFan++; //This function measures the rising and falling edge of the hall effect sensors signal

 

}

 

// The setup() method runs once, when the sketch starts

 

void setup() //

 

{

 

pinMode(hallsensor, INPUT); //initializes digital pin 2 as an input

 

Serial.begin(9600); //This is the setup function where the serial port is initialised,

 

attachInterrupt(5, rpm, RISING); //and the interrupt is attached

 

}

 

// the loop() method runs over and over again,

 

// as long as the Arduino has power

 

void loop ()

 

{

 

NbTopsFan = 0;     //Set NbTops to 0 ready for calculations

 

sei();           //Enables interrupts

 

delay (1000);     //Wait 1 second

 

cli();           //Disable interrupts

 

Calc = (NbTopsFan * 60 / 7.5); //(Pulse frequency x 60) / 7.5Q, = flow rate in L/hour

 

Serial.print (Calc, DEC); //Prints the number calculated above

 

Serial.print (" L/hour\r\n"); //Prints "L/hour" and returns a new line

 

}

QUOTE 
ความคิดเห็นที่ #2
Boonphiphop Thirawattrakool

esptool.py v2.8

Serial port COM3

Connecting....

Chip is ESP8266EX

Features: WiFi

Crystal is 26MHz

MAC: 2c:f4:32:3c:b9:7a

Uploading stub...

Running stub...

Stub running...

Configuring flash size...

Auto-detected Flash size: 4MB

Compressed 265936 bytes to 194219...

 

Writing at 0x00000000... (8 %)

Writing at 0x00004000... (16 %)

Writing at 0x00008000... (25 %)

Writing at 0x0000c000... (33 %)

Writing at 0x00010000... (41 %)

Writing at 0x00014000... (50 %)

Writing at 0x00018000... (58 %)

Writing at 0x0001c000... (66 %)

Writing at 0x00020000... (75 %)

Writing at 0x00024000... (83 %)

Writing at 0x00028000... (91 %)

Writing at 0x0002c000... (100 %)

Wrote 265936 bytes (194219 compressed) at 0x00000000 in 17.2 seconds (effective 123.5 kbit/s)...

Hash of data verified.

 

Leaving...

Hard resetting via RTS pin...

 

QUOTE 
ความคิดเห็นที่ #3
เจ้าของร้าน

จากข้อมุล อัพโหลดลงบอร์ด และตรวจสอบความถูกต้อง verified สำเร็จ บอร์ดไม่มีปัญหา

สำหรับโค้ดทางร้านตรวจสอบให้ไม่ได้ ต้องดีบั๊กการทำงานที่หน้างานครับ

แสดงความคิดเห็นที่ 1-3 จากทั้งหมด 3 ความคิดเห็น
ขาย ARDUINO
คุณภาพ อันดับ 1

ได้รับรางวัลร้านยอดเยี่ยม
ตั้งแต่ปี 2558
ขาย Arduino
วีดีโอสอน Arduino

สอน esp8266

สอน Arduino IoT
สอน Arduino แบบเร็ว

สอน NodeMCU

อุปกรณ์ Arduino

MEMBER ZONE

พูดคุย-สอบถาม