jackrobotics / Arduino_ESP32_SPS30

5 stars 6 forks source link

Node32Lite Probe ไม่ได้ #1

Closed mrchoke closed 5 years ago

mrchoke commented 5 years ago

ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ

ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้

แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ

img_9580

jackrobotics commented 5 years ago

ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ

On Wed, Feb 6, 2019, 12:24 PM MrChoke <notifications@github.com wrote:

ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ

ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้

แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ

[image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog .

mrchoke commented 5 years ago

ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ

ผมใช้แบบ I2C ได้นะครับ แต่ต่อ UART ตาม blog แล้ว probe ไม่ได้ พยายาม ต่อ Serial1 ก็ไม่ได้เช่นกัน ลองต่อกับอีกชุดก็มีอาการเดียวกัน เลยสงสัยว่าบอร์ดคนละ revision มันต่างกันมากไหมเท่าที่ดู pin น่าจะเหมือนกัน

On Wed, Feb 6, 2019, 12:24 PM MrChoke @.*** wrote: ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้ แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ [image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog .

jackrobotics commented 5 years ago

เอาใหม่นะครับ ตอนใช้ i2c ได้ คือต่อทั้ง 5 สายใช่ไหมครับ คือ VCC ,GND ,SDA ,SCL ,SET แต่การต่อด้วย uart ใช้ 4 เส้น คือ VCC, GND, TX, RX ต่อแค่นี้ครับ

Best Regards,

Mr.Sonthaya Boonchan (Jack)

Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY)

HONEYCorporation Co.,Ltd. Email : sonthaya.b@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey.co.th

HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : lab@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey-lab.com

ในวันที่ พ. 6 ก.พ. 2019 เวลา 14:57 MrChoke notifications@github.com เขียนว่า:

ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ … <#m-6761221610244699499>

ผมใช้แบบ I2C ได้นะครับ แต่ต่อ UART ตาม blog แล้ว probe ไม่ได้ พยายาม ต่อ Serial1 ก็ไม่ได้เช่นกัน ลองต่อกับอีกชุดก็มีอาการเดียวกัน เลยสงสัยว่าบอร์ดคนละ revision มันต่างกันมากไหมเท่าที่ดู pin น่าจะเหมือนกัน

On Wed, Feb 6, 2019, 12:24 PM MrChoke @.*** wrote: ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้ แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ [image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1#issuecomment-460931673, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQcijEXtPjjbQQ0EaN_afKtggNPT7ks5vKorNgaJpZM4akkog .

mrchoke commented 5 years ago

เอาใหม่นะครับ ตอนใช้ i2c ได้ คือต่อทั้ง 5 สายใช่ไหมครับ คือ VCC ,GND ,SDA ,SCL ,SET แต่การต่อด้วย uart ใช้ 4 เส้น คือ VCC, GND, TX, RX ต่อแค่นี้ครับ

อะฮะ ผมต่อตามรูปแนบข้างบนครับ เสียบ pin ตามใน blog เลย

T_T

---------- Best Regards, Mr.Sonthaya Boonchan (Jack) Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY) HONEYCorporation Co.,Ltd. Email : sonthaya.b@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey.co.th HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : lab@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey-lab.com ในวันที่ พ. 6 ก.พ. 2019 เวลา 14:57 MrChoke notifications@github.com เขียนว่า: ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ … <#m-6761221610244699499> ผมใช้แบบ I2C ได้นะครับ แต่ต่อ UART ตาม blog แล้ว probe ไม่ได้ พยายาม ต่อ Serial1 ก็ไม่ได้เช่นกัน ลองต่อกับอีกชุดก็มีอาการเดียวกัน เลยสงสัยว่าบอร์ดคนละ revision มันต่างกันมากไหมเท่าที่ดู pin น่าจะเหมือนกัน On Wed, Feb 6, 2019, 12:24 PM MrChoke @.*** wrote: ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้ แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ [image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 <#1>>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQcijEXtPjjbQQ0EaN_afKtggNPT7ks5vKorNgaJpZM4akkog .

jackrobotics commented 5 years ago

ลองสลับขา Rx Tx หรือยังครับ เผื่อสลับกันอยู่

Best Regards,

Mr.Sonthaya Boonchan (Jack)

Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY)

HONEYCorporation Co.,Ltd. Email : sonthaya.b@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey.co.th

HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : lab@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey-lab.com

ในวันที่ พ. 6 ก.พ. 2019 เวลา 16:30 MrChoke notifications@github.com เขียนว่า:

เอาใหม่นะครับ ตอนใช้ i2c ได้ คือต่อทั้ง 5 สายใช่ไหมครับ คือ VCC ,GND ,SDA ,SCL ,SET แต่การต่อด้วย uart ใช้ 4 เส้น คือ VCC, GND, TX, RX ต่อแค่นี้ครับ

อะฮะ ผมต่อตามรูปแนบข้างบนครับ เสียบ pin ตามใน blog เลย

T_T

---------- Best Regards, Mr.Sonthaya Boonchan (Jack) Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY) HONEYCorporation Co.,Ltd. Email : sonthaya.b@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey.co.th HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : lab@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey-lab.com ในวันที่ พ. 6 ก.พ. 2019 เวลา 14:57 MrChoke notifications@github.com เขียนว่า: … <#m269595726358559198> ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ … <#m-6761221610244699499> ผมใช้แบบ I2C ได้นะครับ แต่ต่อ UART ตาม blog แล้ว probe ไม่ได้ พยายาม ต่อ Serial1 ก็ไม่ได้เช่นกัน ลองต่อกับอีกชุดก็มีอาการเดียวกัน เลยสงสัยว่าบอร์ดคนละ revision มันต่างกันมากไหมเท่าที่ดู pin น่าจะเหมือนกัน On Wed, Feb 6, 2019, 12:24 PM MrChoke @.*** wrote: ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้ แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ [image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1 <#1 https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1>>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment) https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1#issuecomment-460931673>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQcijEXtPjjbQQ0EaN_afKtggNPT7ks5vKorNgaJpZM4akkog .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jackrobotics/Arduino_ESP32_SPS30/issues/1#issuecomment-460956141, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQVRcbBllqfwDJ4HYyxHWUBdCDZnRks5vKqCtgaJpZM4akkog .

mrchoke commented 5 years ago

ลองสลับขา Rx Tx หรือยังครับ เผื่อสลับกันอยู่

เดี๋ยวจะลองอีกรอบครับ ตอนนี้เอาไปตั้งวัดเล่นอยู่ ถ้าได้ผลยังไงจะมาถามอีกนะครับ 👍 ขอบคุณมากๆครับ

MrChoke

---------- Best Regards, Mr.Sonthaya Boonchan (Jack) Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY) HONEYCorporation Co.,Ltd. Email : sonthaya.b@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey.co.th HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : lab@honey.co.th Phone : (+66) 0801427711 Website : http://www.honey-lab.com ในวันที่ พ. 6 ก.พ. 2019 เวลา 16:30 MrChoke notifications@github.com เขียนว่า:

เอาใหม่นะครับ ตอนใช้ i2c ได้ คือต่อทั้ง 5 สายใช่ไหมครับ คือ VCC ,GND ,SDA ,SCL ,SET แต่การต่อด้วย uart ใช้ 4 เส้น คือ VCC, GND, TX, RX ต่อแค่นี้ครับ อะฮะ ผมต่อตามรูปแนบข้างบนครับ เสียบ pin ตามใน blog เลย T_T ---------- Best Regards, Mr.Sonthaya Boonchan (Jack) Services : IoT System, Robotics, Automation, Research and Development, Maker (DIY) HONEYCorporation Co.,Ltd. Email : @. Phone : (+66) 0801427711 Website : http://www.honey.co.th HONEYLab. Office : 846/137 Prachautid 44 Rd., Bangmod, Thrungkru, Bangkok, Thailand 10140 Email : @. Phone : (+66) 0801427711 Website : http://www.honey-lab.com ในวันที่ พ. 6 ก.พ. 2019 เวลา 14:57 MrChoke @. เขียนว่า: … <#m269595726358559198> ต่อ i2c กับ uart ต้องดูขา 4 SET ของ sensor ด้วยครับ ถ้าใช้ i2c ให้ต่อลง Gnd ถ้า uart ให้ลอยไว้ไม่ต้องต่อครับ … <#m-6761221610244699499> ผมใช้แบบ I2C ได้นะครับ แต่ต่อ UART ตาม blog แล้ว probe ไม่ได้ พยายาม ต่อ Serial1 ก็ไม่ได้เช่นกัน ลองต่อกับอีกชุดก็มีอาการเดียวกัน เลยสงสัยว่าบอร์ดคนละ revision มันต่างกันมากไหมเท่าที่ดู pin น่าจะเหมือนกัน On Wed, Feb 6, 2019, 12:24 PM MrChoke @. wrote: ผมเพิ่งหัดเล่นซื้อ Node32 Lite จาก Gravitech มาต่อกับ SPS30 ตามตัวอย่าง แล้ว run code มัน probe ไม่ได้ ไม่แน่ใจว่า Node32 คนละ Revision มีอะไรต้องดูเป็นพิเศษไหมครับ ผมลอง Tx0,Rx0 Tx1,Rx1 แล้วก็ไม่ได้ ผม define ค่า pin แล้วก็ไม่ได้ แต่ต่อแบบ I2C ผม get ข้อมูลได้ครับ [image: img_9580] https://user-images.githubusercontent.com/3403645/52321897-8373fe00-2a09-11e9-9286-91c7b0bdee83.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 <#1> <#1 <#1>>>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQWqh-n65vmfe8Z5ND3xVgYdCI56gks5vKmbygaJpZM4akkog . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment) <#1 (comment)>>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQcijEXtPjjbQQ0EaN_afKtggNPT7ks5vKorNgaJpZM4akkog . — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ANqyQVRcbBllqfwDJ4HYyxHWUBdCDZnRks5vKqCtgaJpZM4akkog .

mrchoke commented 5 years ago

วันนี้มาลองใหม่ได้เรียบร้อยแล้วครับต่อ uart ง่ายดีไม่เกะกะขอบคุณมากๆครับ 😀