#ตัวเดียวก็แจ๋วได้

วิธีการง่ายที่สุดในการป้องกันต่อไฟผิดขั้ว คือ การนำไดโอดมาต่ออนุกรมกับโหลด โดยใช้ขั้ว ของไดโอดต่อกับขาบวกของโหลด และป้อนไฟเข้าด้วยไฟบวกทางขา ของไดโอด ตามภาพที่ 1

การต่อไฟลักษณะนี้ทำให้ไดโอดนำกระแสหรือยอมให้กระแสไหลผ่านตัวมันได้ เพราะได้รับการจ่ายไบแอส(bias)ตรงนั่นเอง ดังนั้น ไฟเข้าจึงไหลผ่านไดโอดมายังโหลดได้ ทำให้โหลดทำงานได้ตามปกติครับ

แต่เมื่อเราป้อนไฟเข้ากลับขั้วไฟ คือ จากเดิมขั้วบวกเป็นขั้วลบ(ด้านบน)และขั้วลบเป็นขั้วบวก(ด้านล่างก็ทำให้ไดโอดได้รับไบแอสกลับ มันจึงไม่ชอบก็เลยไม่ยอมให้ไฟไหลผ่านตัวมันไปได้ ส่งผลให้โหลดไม่ทำงานครับ

ภาพที่ ใช้ไดโอดตัวเดียวก็ป้องกันต่อไฟผิดขั้วได้

Read More

ตัวต้านทานหรือ Resistor มีหน้าที่ในการจำกัดและควบคุมปริมาณแรงดันและกระแสไฟฟ้าในวงจร ให้ไม่มากไม่น้อยจนเกินไป แต่ทั้งนี้ตัวต้านทานก็มีค่าความต้านอยู่หลายค่า จึงต่อมีการคำนวณค่าหาค่าความที่เหมาะสม ที่จะมาใช้ในวงจรของเรา

Read More

It was recently a friend’s birthday. Facebook, being the helpful social network it is, prompted me to “send her good thoughts”.

So I did.

“Hope you had a rad one!” I wrote. I hit Post, and my birthday greeting popped onto her wall. However, this post looked a little different. The word “rad” was in a bright purple… and when I clicked on it, little thumb-up emojis popped up and flew across the screen, leaving colourful trails in their wake. What was going on?

After couple of failed Google searches and some digging with the Developer Tool, it turned out that I had accidentally triggered one of Facebook’s “Text Delight” features. I had seen the “congrats” animation before, but it looks like there are three “secret” animations in total. Here they are, along with the list of keywords that activate them.

Read More

ปัญหาที่ 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 เช่นกัน