ปัญหาที่ 1 เสียบ Arduino แล้วขึ้นว่า

Window could not find driver software for your device.
If you know the manufacturer of your device, you can visit its website and check the support section for driver software.

ปัญหานี้ จะเกิดกับ น้องๆที่ใช้ Arduino ครั้งแรก ให้เราตรวจสอบ โดยการเปลี่ยนช่องเสียบ USB เปลี่ยนสาย USB อาจจะเกิดจากไฟเลี้ยงไม่พอ สาย USB เสีย หากร้างแรงที่สุด บอร์ด Arduino ของเราเสีย ก็เป็นไปได้ครับ

Read More

Even though your phone has a built-in media player, it’s got nothing on VLC. The popular third-party video player supports virtually every codec and file format, and even better, you can use it to stream movies, shows, and other video files from your computer to your phone.

If your Windows computer is loaded with media, VLC makes it easy to play music or videos on your phone or tablet. Below, we’ll take a look at how to set up sharing on a Windows computer for streaming with the VLC app on Android. Both devices will have to be on the same local network to use this feature, but it’s a great way to access your personal movie library from anywhere in your home.

Read More

ติดตั้ง Arduino IDE เวอร์ชั้น 1.6.4 หรือ ใหม่กว่า โดย Download ตัวติดตั้งได้จากhttp://www.arduino.cc/en/main/software

02

– เมื่อทำการติดตั้ง Arduino IDE เรียบร้อยแล้ว ให้เปิด Arduino IDE ขึ้นมา
– ไปที่ Menu File >> Preferences

03

Read More

Manufacturers of electronic pressure switches often offer both PNP and NPN switching outputs. Here is a brief explanation how the two different outputs should be connected.

In principle, both are bipolar transistors in which only the internal arrangement of the pn transitions differs. This is why the load must be connected differently to the transistor outputs.

Read More

ขาที่ไม่ควรนำมาใช้ D3(GPIO0),D4(GPIO2),D8(GPIO15)

D3(GPIO0) เกี่ยวข้องกับการบูต ถ้าเป็น 0 หรือมีโหลดต่อลงกราวด์ เวลาบูตจะเข้าโหมดแฟลช

D4(GPIO2) ตอนบูตต้องมีสถานะ 1 หรือ H เท่านั้น

D8(GPIO15) สถานะตอนบูต ต้อง 0 หรือ L เท่านั้น

ถ้าจะใช้ D3 คือ GPIO0 บูตปกติขานี้ต้องมีสถานะเป็น 1 หรือ HIGH ใน NodeMCU จะมี R Pullup ให้อยู่แล้ว

ถ้าจะใช้เป็น Input เช่นสวิทช์ ก็เป็นสวิทช์ที่ต้อง Active LOW คือกดแล้วเป็น 0
ถ้าจะใช้เป็น Output ก็สั่งให้ Active LOW เช่นกัน

 

การออกแบบของเราจะพัฒนาให้มีการถามตอบ ให้มันคุยกันนั้นเอง เพื่อให้ได้ข้อมูลที่ถูกต้องครับ

  • Nodemcu : ฉันถามเธอ (ตัวแปรที่ 1 คือค่าอะไรส่งค่ามาน่ะ) ถ้าเธอไม่ตอบฉันจะถามเธอซ้ำๆ จนกว่าเธอจะตอบ
  • Arduino : ส่งตัวแปรให้ Nodemcu

พี่จะยกตัวอย่าง การส่งค่าแบบค่าตายตัว ให้น้องได้ไปพัฒนากันต่อน่ะครับ

ตัวอย่างการต่อวงจร 

 

Arduino Nodemcu Esp8266
Pin 10 Pin D6
Pin 11 Pin D5

หากต้องการสื่อสาร ระหว่าง uno กับ nodemcu ด้วย serial

การต่อ tx , rx จาก uno ไป node mcu  ต้องต่อผ่าน Logic Level Converter ก่อนครับ

เพราะ tx , rx ของ uno ทำงานที่ 5v แต่   nocd MCU  tx,rx ทำงานที่ 3.3v

UNO                                                                NodeMcu
Tx                – Logic level convert  –>     rx
rx                <—                         —      tx

Read More

 

แนะนำ การใช้งาน Atmega328 แบบต่อเอง Arduino StandAlone ข้อดีของการต่อแบบ StandAlone คือ หลังจากการต่อเองแล้วตัวบอร์ดที่ใช้ในการต่อจะมีขนาดเล็กลง และราคาประหยัดกว่า

Read More