Skip to main content

តើអ្វីដែលអ្នកចាប់អារម្មណ៍អំពីRobotគួរស្វែងយល់?

អ្នកចាប់អារម្មណ៍អំពីRobotគួរស្វែងយល់អំពីMicrocontrollerដែលមានឈ្មោះថាArduinoសម្រាប់អ្នកសិក្សាដំណាក់កាលដំបូង។

តើArduinoគឺជាអ្វី?




Arduino គឺជាវេទិកាអេឡិចត្រូនិចបើកចំហដែលមានមូលដ្ឋានលើផ្នែករឹងនិងផ្នែកទន់ដែលងាយស្រួលប្រើ។ វាត្រូវបានបម្រុងទុកសម្រាប់នរណាម្នាក់ដែលធ្វើគម្រោងអន្តរកម្ម។ហើយវាបានចែកចេញជាច្រើន​ នឹងមានមុខងារខុសៗគ្នា​ ដូចជា


តែពេលនោះនឹងលើកយកមកនិយាយនៅArduinoឈ្មោះ Arduino Uno ។



Arduino Uno គឺជាក្រុមប្រឹក្សាភិបាលត្រួតពិនិត្យប្រភពបើកចំហរដែលមានមូលដ្ឋានលើឧបករណ៍ត្រួតពិនិត្យ Microchip ATmega328P និងត្រូវបានអភិវឌ្ឍដោយ Arduino.cc ។

ក្រុមប្រឹក្សាភិបាលត្រូវបានបំពាក់ដោយម្ជុលឌីជីថលនិងអាណាឡូកបញ្ចូល / ទិន្នផល (I / O) ដែលអាចត្រូវបានរំខានដល់បន្ទះពង្រីកផ្សេងៗ (ខែល) និងសៀគ្វីផ្សេងៗទៀត។ក្រុមប្រឹក្សាភិបាលមានម្ជុលឌីជីថល I / O ចំនួន ១៤ ឌីជីថល (មានសមត្ថភាពផលិត PWM ចំនួន ៦) ម្ជុល I / O ចំនួន ៦ និងអាចសរសេរកម្មវិធីបានជាមួយ Arduino IDE (បរិស្ថានអភិវឌ្ឍន៍ចំរុះ) តាមរយៈខ្សែយូអេសប៊ីប្រភេទ។វាអាចត្រូវបានបំពាក់ដោយខ្សែយូអេសប៊ីឬដោយអាគុយខាងក្រៅ ៩ វ៉ុលទោះបីជាវាទទួលវ៉ុលពី ៧ ទៅ ២០ វ៉ុលក៏ដោយ។ វាក៏ស្រដៀងនឹង Arduino Nano និង Leonardo ដែរ។ ការរចនាឯកសារយោងផ្នែករឹងត្រូវបានចែកចាយក្រោមអាជ្ញាប័ណ្ណច្នៃប្រឌិតទូទៅចែករំលែក - អាឡិក ២,៥ និងមាននៅលើគេហទំព័រអាឌុយណូ។ ឯកសារប្លង់និងផលិតកម្មសម្រាប់ផ្នែករឹងនៃជំនាន់ខ្លះក៏មានផងដែរ។

តើ Arduino Uno ATmega328 គឺជាអ្វី?

ATmega328 គឺជាឧបករណ៍ត្រួតពិនិត្យកុងតាក់តែមួយបន្ទះដែលបង្កើតឡើងជាមួយ Atmel នៅក្នុងគ្រួសារមេហ្គាវ៉ាដ។ ស្ថាបត្យកម្មនៃ Arduino Uno នេះគឺជាស្ថាបត្យកម្មហាវឺរដែលត្រូវបានប្តូរតាមបំណងដោយប្រើខួរក្បាល RISC ៨ ប៊ីត។ ក្រុមប្រឹក្សាផ្សេងទៀតនៃ Arduino Uno រួមមាន Arduino Pro Mini, Arduino Nano, Arduino Due, Arduino Mega និង Arduino Leonardo ។
លក្ខណៈពិសេសរបស់ Arduino Uno ATmega328 រួមមានដូចខាងក្រោម
  • The operating voltage is 5V
  • The recommended input voltage will range from 7v to 12V
  • The input voltage ranges from 6v to 20V
  • Digital input/output pins are 14
  • Analog i/p pins are 6
  • DC Current for each input/output pin is 40 mA
  • DC Current for 3.3V Pin is 50 mA
  • Flash Memory is 32 KB
  • SRAM is 2 KB
  • EEPROM is 1 KB
  • CLK Speed is 16 MHz
Exercise Blink LED:

     សមាសភាគចាំបាច់អ្នកនឹងត្រូវការសមាសធាតុដូចខាងក្រោម 


  • 1 × Breadboard
  • 1 × Arduino Uno R3
  • 1 × LED
  • 1 × 330Ω Resistor
  • 2 × Jumper
នីតិវិធី :
អនុវត្តតាមដ្យាក្រាមសៀគ្វីហើយភ្ជាប់ធាតុផ្សំនៅលើBoardដូចបង្ហាញក្នុងរូបភាពខាងក្រោម



Code Arduino uno Blink

/* Blink Turns on an LED on for one second, then off for one second, repeatedly. */ // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 13 as an output. pinMode(2, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(2, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }


Comments

Popular posts from this blog

Lab 2 , 3 , 4 Method math in java

Class Teedcalculator: /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package teedcalculator; import static teedcalculator.Oparetor.tand;// to access all static Tand of a class import static teedcalculator.Oparetor.tan;// to access all static Tan of a class import static teedcalculator.Oparetor.cost;// to access all static Cost of a class import static teedcalculator.Oparetor.cosd;// to access all static Cosd of a class import static teedcalculator.Oparetor.degree2;// to access all static Degree of a class import static teedcalculator.Oparetor.divide;// to access all static divide of a class import static teedcalculator.Oparetor.minus;// to access all static minus of a class import static teedcalculator.Oparetor.modulo;// to access all static modulo of a class import static teedcalculator.Oparetor.multiply;// to acce...

Barometric pressure sensor with Arduino

Hardware Required - Arduino or Genuino board - SCP1000 Pressure Sensor Breakout Board - hook-up wires  Procedure  Follow the circuit diagram and make the connections as shown in the image given below. Arduino Code /******* All the resources for this project:   https://lihuo.blogspot.com *******/ The code below starts out by setting the SCP1000 's configuration registers in the setup() . In the main loop, it sets the sensor to read in high resolution mode, meaning that it will return a 19-bit value, for the pressure reading, and 16 bits for the temperature. The actual reading in degrees Celsius is the 16-bit result divided by 20.   Then it reads the temperature's two bytes. Once it's got the temperature, it reads the pressure in two parts. First it reads the highest three bits, then the lower 16 bits. It combines these two into one single long integer by bit shifting the high bits then using a bitwise OR to combine them...

Software Arduino IDE

Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices and interactive objects that can sense and control objects in the physical world. A program for Arduino hardware may be written in any programming language with compilers that produce binary machine code for the target processor. Atmel provides a development environment for their 8-bit AVR and 32-bit ARM Cortex-M based microcontrollers: AVR Studio (older) and Atmel Studio (newer). IDE The Arduino integrated development environment (IDE) is a cross-platform application (for Windows, macOS, Linux) that is written in the programming language Java. It originated from the IDE for the languages Processing and Wiring . It includes a code editor with features such as text cutting and pasting, searching and replacing text, automatic indenting, brace matching, and syntax highl...