Arduino

บอร์ด Arduino 101 หรือชื่อทางการค้านอกสหรัฐฯ คือ Genuino 101 เปิดตัวมาตั้งแต่ช่วงปลายปีที่แล้วและเพิ่งทำตลาดจริงจังไม่กี่เดือนที่ผ่านมา เมื่อสองสัปดาห์ก่อนทางอินเทลก็ส่งบอร์ดตัวนี้มาให้ผมทดลองใช้งาน ผมได้ลองใช้งานมาระยะหนึ่งแล้วก็ถึงเวลามารายงานผลกัน

รูปร่างภายนอก

upic.me

รูปร่างภายนอกของ Arduino 101 ไม่มีความต่างใดๆ กับ Arduino รุ่นก่อนๆ แม้ชิปจะวางผิดตำแหน่งไปบ้าง ถ้าใครทำฮาร์ดแวร์หรือกล่องสำหรับอุปกรณ์รุ่นก่อนๆ เอาไว้ก็มีโอกาสสูงว่าจะสามารถใช้ 101 เข้าไปแทนที่ได้เลย อันนี้ต้องยอมรับว่าอินเทลและ Arduino ดูตั้งใจทำดี

Arduino IDE

upic.me

Arduino 101 เป็นบอร์ด x86 ตัวที่สองที่ Arduino รองรับหลังจาก Intel Galileo (ซึ่งต่างกันมาก เพราะ Galileo เป็นลินุกซ์เพียงแต่แปลงโค้ด Arduino ขึ้นไปรัน) แม้จะบอกว่ารองรับแล้วก็ตามแต่ที่ตัว Arduino เองก็ยังมาพร้อมพับคอมไพล์เลอร์สำหรับชิปตระกูล AVR เป็นหลัก ชิป x86 จะต้องดาวน์โหลดซอฟต์แวร์เพิ่มเติมมาเอง โดยเข้าเมนู Tools > Board > Boards Manager แล้วเลือกติดตั้งโมดูล Intel Curie Boards ซึ่งตอนนี้ยังมีเฉพาะ Arduino 101 เท่านั้น

หลังจากติดตั้งเสร็จแล้วก็สามารถคอมไพล์และรันซอฟต์แวร์ Arduino ได้ทันที เช่น ตัวอย่างยอดฮิตอย่างไฟกระพริบก็สามารถรันได้ (LED บนบอร์ด 101 ขนาดเล็กมาก บางคนอาจจะนึกว่าตัด LED ทิ้ง)

ความแตกต่างอย่างหนึ่งคือกระบวนการอัพโหลดซอฟต์แวร์ที่ผมพบว่าต้องกดปุ่ม Master Reset หลังจากสั่งอัพโหลดทุกครั้ง ต่างจากบอร์ด Arduino อื่นที่เคยใช้ ที่มักกดอัพโหลดได้เลย

เซ็นเซอร์ในตัว

จุดเด่นสำคัญของ Arduino 101 คือตัว Curie นั้นมี accelerometer และ gyroscope มาให้ในตัว ทำให้เราสามารถเล่นอะไรกับบอร์ดนี้โดยไม่ต้องติดอุปกรณ์เสริมได้ทันที ไลบรารี CurieIMU เปิดให้เราเข้าถึงเซ็นเซอร์เหล่านี้ได้อย่างน่าสนใจ มันมีตั้งแต่ฟังก์ชั่นง่ายๆ เช่นการดึงค่าจาก accelerometer มาตรงๆ ด้วยฟังก์ชั่น readAccelerometer จากตัวอย่าง Accelerometer ที่ทำให้เราพล็อตกราฟทิศทางของบอร์ดออกมาได้ง่ายๆ (ผมใช้บน Ubuntu 15.10 มีปัญหา serial หลุดๆ ทำให้พล็อตกราฟไม่ได้แม้จะอ่านค่าได้บ้าง อาจจะต้องลองบนวินโดวส์อีกที)

นอกจากนี้ CurieIMU ยังให้ฟังก์ชั่นระดับสูง สามารถตรวจสอบการเคลื่อนไหวที่ง่ายๆ โดยไม่ต้องเขียนโปรแกรมเอง ได้แก่ นับก้าว, ถูกเคาะ (tap), เคาะสองครั้ง (double tab), กระแทก, ตกอิสระ รวมถึงในตัวเซ็นเซอร์ยังมีเซ็นเซอร์อุณหภูมิมาให้ในตัว ผมเองไม่เคยเห็นอินเทลโฆษณาส่วนนี้ แต่เพิ่งมาเห็นลองเล่นและเห็นในไลบรารี

เซ็นเซอร์ในตัวเช่นนี้และไลบรารีระดับสูงที่ให้มา ทำให้เราสามารถเล่นอะไรกับ Arduino 101 ได้โดยไม่ต้องติดเซ็นเซอร์เพิ่มแม้แต่น้อย เช่นการทำเครื่องนับก้าว, เซ็นเซอร์เอาไว้ดูว่าของที่เราส่งไปไกลๆ กระแทกหรือถูกโยนกี่ครั้ง ฯลฯ ในแง่การศึกษาเราน่าจะใช้ Arduino 101 สอนเด็กๆ ได้หลายบทให้เข้าถึงเซ็นเซอร์พื้นฐานโดยยังไม่ต้องต่อวงจรเลย

Bluetooth LE

[![upic.me](//upic.me/i/6g/cgq7tj6ukainyzg.jpg)](http://upic.me/show/58305824)

อีกจุดเด่นของ Arduino 101 คือมันมี Bluetooth LE มาในตัวทำให้ สามารถเชื่อมต่อกับโทรศัพท์มือถือได้โดยง่าย เอกสารของ Arduino เองแนะนำให้ติดตั้งแอปพลิเคชั่น เช่น nRF Toolbox for BLE และ nRF Master Control Panel เพื่อเล่นกับ Bluetooth LE บนตัว Arduino 101 ได้โดยไม่ต้องพัฒนาแอปพลิเคชั่นเอง ฟังก์ชั่นการทำงานพื้นๆ เช่นการเปิดปิดไฟบนบอร์ด Arduino 101 ผ่าน Master Control ยังดูยุ่งยากเล็กน้อย (ต้องเลือกชนิดข้อมูลที่จะส่งกลับเอง) แต่ก็เป็นจุดเริ่มต้นที่ไม่ยากเกินไปนัก การพัฒนาแอปพลิเคชั่นระดับสูงขึ้นเช่นเซ็นเซอร์หัวใจก็มีตัวอย่างให้จากทาง Arduino แม้จะเป็นตัวอย่างหลอกๆ

บทสรุป

จากที่เคยลองเล่นบอร์ด Arduino มาบ้างก่อนหน้านี้ ผมมองว่า Arduino 101 เหมาะกับการเริ่มต้นมากกว่าบอร์ดอื่นๆ เพราะมันเล่นได้ "สนุก" กว่า โดยที่ยังไม่ต้องลงมือต่อวงจรที่มักมีปัญหาเยอะและทำให้หลายคนท้อกันไปก่อน เซ็นเซอร์ในตัวช่วยให้คนเห็นภาพได้ง่ายว่าหากมีบอร์ด Arduino แล้วเราจะสามารถทำอะไรได้บ้าง

สำหรับตัว x86 และตัวซีพียู Quark SE ของอินเทลเองก็น่าจะมีศักภาพสูงหากเราต้องทำงานทำงานที่ซับซ้อนขึ้น บอร์ด Arduino 101 เป็นบอร์ดที่โครงการ Zephyr ซัพพอร์ตโดยตรง การพัฒนางานที่มีความซับซ้อน มีหลายแอปพลิเคชั่นทำงานร่วมกันบนบอร์เดียวก็เป็นไปได้ไม่ยากนัก

ตอนนี้ Arduino 101 ยังไม่มีบอร์ดจากผู้ผลิตรายอื่นออกมาทำขายในราคาถูก (ซึ่งเป็นเรื่องที่ทำได้เพราะ Arduino เปิดซอร์สฮาร์ดแวร์) การหาบอร์ด 101 มาใช้จึงยังราคาแพงสักหน่อย แต่สำหรับนักพัฒนาฮาร์ดแวร์แล้วผมมองว่าทุกคนควรมีบอร์ด 101 นี้ติด "โหลดอง" กันเอาไว้ครับ

Hiring! บริษัทที่น่าสนใจ

CP AXTRA Public Company Limited - Lotus's company cover
CP AXTRA Public Company Limited - Lotus's
CP AXTRA Lotus's is revolutionizing the retail industry as a Retail Tech company.
Token X company cover
Token X
Blockchain, ICO, Tokenization, Digital Assets, and Financial Service
Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
United Information Highway Co., Ltd. company cover
United Information Highway Co., Ltd.
UIH is Thailand’s leading Digital Infrastructure and Solution Provider for Business
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
CDG GROUP company cover
CDG GROUP
Provider of IT solutions to public, state, and private sectors in Thailand for over 56 years
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
Gofive company cover
Gofive
“We create world-class software experience”
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
LTMH TECH company cover
LTMH TECH
LTMH TECH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

ลองเล่น Arduino 101: บอร์ด Arduino ที่เริ่มต้นได้มากกว่าไฟกระพริบ

ตัวอย่างยอดฮิตอย่างไฟกระพริบก็สามารถรันได้

กระพริบ => กะพริบ

แต่ที่ตัว Arduino เองก็ยังมาพร้อมพับคอมไพล์เลอร์

พับคอมไพล์เลอร์ ?

และตัวซีพียู Quark SE ของอินเทลเองก็น่าจะมีศักภาพสูง

ศักภาพ => ศักยภาพ

หากเราต้องทำงานทำงานที่ซับซ้อนขึ้น

ทำงานทำงาน ?

อันนี้ยังไม่ได้วัดจริงจังครับ แต่โดยส่วนตัวผมเชื่อว่าถ้าที่การประมวลผลพอๆ กัน น่าจะสูสีหรือดีกว่า (ฟีเจอร์หลายส่วนใช้ ARC32) ถ้าอัดพลังประมวลผลเต็มๆ 32MHz นี่คงกินหนักกว่าอยู่

gab Mon, 04/18/2016 - 12:45

ครบเครื่อง... แต่ผมเล่นแต่ของถูกเท่านั้น(arduino ที่ซื้อแพงสุดคือพันสองแต่นั่นก็นานมากแล้ว)
ตอนนี้นั่งเล่น ESP8266 (D1 mini) ไปเรื่อยๆ ก่อน

ส่วนตัวผมเชื่อว่าถ้าจีนเอาไปผลิตน่าจะได้สัก 5-600 ครับ (พอๆ กับ Arduino Due ของจีนตอนนี้) แต่ก็เป็นเรื่องของอนาคต อยากใช้ก่อนก็ต้องจ่ายแพง

Apple
public://topics-images/apple_webp.png
SCB10X
public://topics-images/347823389_774095087711602_515970870797767330_n_webp.png
Windows 11
public://topics-images/hero-bloom-logo.jpg
Doom
public://topics-images/doom_logo.png
Huawei
public://topics-images/huawei_standard_logo.svg_.png
Threads
public://topics-images/threads-app-logo.svg_.png
Google Keep
public://topics-images/google_keep_2020_logo.svg_.png
Fortnite
public://topics-images/fortnitelogo.svg_.png
Instagram
public://topics-images/instagram_logo_2022.svg_.png
SCB
public://topics-images/9crhwyxv_400x400.jpg
Microsoft
public://topics-images/microsoft_logo.svg_.png
Basecamp
public://topics-images/bwpepdi0_400x400.jpg
Tinder
public://topics-images/hwizi8ny_400x400.jpg
FTC
public://topics-images/seal_of_the_united_states_federal_trade_commission.svg_.png
Pinterest
public://topics-images/pinterest.png
Palantir
public://topics-images/-nzsuc6w_400x400.png
Gemini
public://topics-images/google_gemini_logo.svg__0.png
AIS Business
public://topics-images/logo-business-2021-1.png
PostgreSQL
public://topics-images/images.png
JetBrains
public://topics-images/icx8y2ta_400x400.png
Krungthai
public://topics-images/aam1jxs6_400x400.jpg
Palworld
public://topics-images/mccyhcqf_400x400.jpg
Bill Gates
public://topics-images/bill_gates-september_2024.jpg
VMware
public://topics-images/1nj4i1gp_400x400.jpg
Take-Two Interactive
public://topics-images/0khle7nh_400x400.jpg
OpenAI
public://topics-images/ztsar0jw_400x400.jpg
Thailand
public://topics-images/flag_of_thailand.svg_.png
NVIDIA
public://topics-images/srvczsfq_400x400.jpg
ServiceNow
public://topics-images/ytnrfphe_400x400.png
PS5
public://topics-images/playstation_5_logo_and_wordmark.svg_.png
Klarna
public://topics-images/urcllpjp_400x400.png
Google Play
public://topics-images/play.png
Drupal
public://topics-images/drupal.png
Virtua Fighter
public://topics-images/virtua_figther_2024_logo.png
Paradox Interactive
public://topics-images/paradox_interactive_logo.svg_.png
Europa Universalis
public://topics-images/europa-icon.png
Nintendo Switch 2
public://topics-images/mainvisual.png
Cloudflare
public://topics-images/cloudflare_logo.svg_.png
Samsung
public://topics-images/samsung.png
Google
public://topics-images/google_2015_logo.svg_.png
Uber
public://topics-images/uber.png
Microsoft 365
public://topics-images/m365.png
USA
public://topics-images/flag_of_the_united_states.svg_.png
GM
public://topics-images/0pe0po-z_400x400.jpg
Perplexity
public://topics-images/perplex.jpg
Xperia
public://topics-images/xperia.png