ΊέΊέί£

ΊέΊέί£Share a Scribd company logo
αžœαž·αž‘αŸ’αž™αžΆαžŸαŸ’αžαžΆ αž“αž‡αžΆαžαž·αž–αž αž»αž”αž…αŸ’αž…αŸαž€αž…αŸ’αž‘αŸ’αž™αžŸαž€αž˜αŸ’αž–αž»αž‡αžΆ
National Polytechnic Institute of Cambodia
αž€αž·αž…αŸ’αž…αž€αžΆαžšαžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœβ€‹β€‹β€‹β€‹ β€œαž’αŸŠαž»αž›αžŸαŸ’αžšαžΆαžŸαžΌ αžŽαž·αž…αŸ’αžšαŸ‰αžΆ ដអ αžšαŸ‰αžΆαžΌαž”αžΌαžβ€
Ultrasonic Radar Robot
αžŸαŸ’αžšαžšαžΌαžŠαžΉαž€αž“αžΆαŸ† αž‰αžΉαž€β€‹β€‹αžŸαŸ’αžšαžŸαžŸαŸ‹
αžŸαŸ’αžšαž€ αž»αž˜αž‘αžΈαŸ₯
αž‡αžΆαžβ€‹αžŸαŸŠαž»αžαž‡αŸαž„ αž”αŸ‰αžΆ αž“αŸ‹ αž–αžΈαžŸαžΈ αž‡αž˜αŸ€αž…αŸ’ αžŸαŸŠαž»αž—αŸαž€αŸ’αžαž€αžš
αž˜αŸ’αž αžΆαžœαž·αž‘αŸ’αž™αžΆαž›αŸαž™αž…αŸ’αŸαž‘αž·αž…αžαŸ’αžαžΌαž“αž·αž€
Faculty of Electronic
αž˜αžΆαžαž·αž€αžΆ
αŸ‘β€‹αž‡αžŸαž€αžšαžΈαž‡αŸ’αžšαžΎαž˜
៑.αŸ‘αž‡αŸ„αž›αž”αžΆαŸ†αžŽαž„
៑.αŸ’β€‹ αžŠαžŠαž“αž€αžΆαŸ†αžŽαžαŸ‹
αŸ’β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†&αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’αŸ£ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ
្-αŸ‘β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
្-្-αŸ’β€‹β€‹ αžŠαŸ’αŸ‚αž€ software
៣ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž“αž“αž€αžΆαžšαžŸαž·αž€αžΆ
៣-αŸ‘β€‹Block Diagram
៣-្ Flow chart code
៣-αŸ£β€‹αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ
αŸ€β€‹β€‹αž›αž‘αž’αŸ’αž›αž“αž“αžšαžΆαŸ†αž‡αžšαž„β€‹(Result)
αŸ¦β€‹αž‡αžŸαž…αŸ’αž€αžšαžΈαžŸαž“αŸ‚αž·αžŠαžΆαžΆ αž“
ο‚΄αž€αŸ†αž…αŸ’ αžΎαž“αž…αŸ’αžŸαžŠαŸ’αž‹αž€αž·αž…αŸαž‡αžΆαžαž· αž“αž·αž„αž‡αžΈαžœαž—αžΆαž–αžšαž”αžŸαŸ‹αžαŸ’αž”αž‡αžΆαž‡αž“αž€αŸαž˜αžΆαž“αž‡αžΈαžœαž—αžΆαž–αž’αžΌαž’αžΆαž•αž„αž…αŸ’αž“αŸ„αŸ‡ αž€αŸαž“αŸ†αž…αŸ’αŸ„αž™αž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž€αŸ†αž–αž»αž„αžαžαžˆαžΆαž“αž…αŸ’αž‘αžΎαž„αžαŸ’αž› αŸ†αž„αž•αž„αžαžŠαŸ’αžš αŸ”
αž‘αŸ’αž™αž“αž‘αžΉαž˜αŸ’αž“αž·αž„αž…αŸ’αž“αŸ„αŸ‡αž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž€αŸαž‡αžΆαž€αžαŸ’αžαžΆ αžŸαŸ†αžαŸ’αž“αŸ‹αžαžŠαŸ’αž›αž•αžΆαž›αŸ‹αž—αžΆαž–αž„αžΆαž™αžαŸ’αžŸαž½αž›αžŠαŸ’αž›αŸ‹αžαŸ’αž”αž‡αžΆαž–αž›αžšαžŠαŸ’αž‹αž•αž„αžαžŠαŸ’αžšαŸ” αž€αž“αž»αž„αž…αŸ’αž“αŸ„αŸ‡αžαžŠαŸ’αžšαž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž‡αžΆ
αž…αŸ’αžαŸ’αž…αžΎαž“αž”αžΆαž“αž”αž…αŸ’αž„αž€αžΎαžαž…αŸ’αž‘αžΎαž„ αž•αžΆαž›αŸ‹αž—αžΆαž–αž„αžΆαž™αžαŸ’αžŸαž½αž›αžŠαŸ’αž›αŸ‹αžαŸ’αž”αž‡αžΆαž‡αž“ αž“αž·αž„αžŠαŸ’αž›αŸ‹αž€αžΆαžšαŸαž“αž»αžœαžαžΆαž€αžΆαžšαž„αžΆαžšαž…αŸ’αž•αŸαž„αŸ— αŸ” αž…αŸ’αŸ„αž™αž…αŸ’αž αžαž»αž…αŸ’αž“αŸ„αŸ‡αž…αŸ’αž αžΎαž™αž”αžΆαž“αž‡αžΆαž€αžαŸ’αžαžΆ αž”αž…αŸ’
αž…αŸ’αž…αž€αžœαž·αž‘αŸ’αž™αžΆαž‚αžΊ αž‡αžΆαž€αžαŸ’αžαžΆ αž˜αŸ’αž½αž™αžŠαŸ’αŸαžŸαŸ†αžαŸ’αž“αŸ‹αž€αž“αž»αž„αž€αžΆαžšαž•αžΆαž›αŸ‹αž—αžΆαž–αžšαž αŸαžŸ αž‘αžΆαž“αŸ‹αžŸαž˜αŸ’αŸαž™ αž“αž·αž„αŸαžœαžΈαžαžŠαŸ’αž›αžαŸ’αž˜αžΈαžŠαŸ’αž›αŸ‹αŸαž“αž€αž…αŸ’αžαŸ’αž”αžΎαžαŸ’αž”αžΆαžŸαŸ‹αž…αŸ’αž αžΎαž™αž‡αžΆαžαŸ†αžšαžΌαžœαž€αžΆαžšαžšαž”αžŸαŸ‹αŸαžαž·αžαŸ’αž·αž‡αž“
αž‘αžΆαŸ†αž„αŸαžŸαŸ‹αž•αž„αžαžŠαŸ’αžš αŸ” αž…αŸ’αž αžαž»αž…αŸ’αž‘αŸ’αž™αžΎαž”αžαŸ’αž€αž»αž˜αŸ’αžšαž”αžŸαŸ‹αž…αŸ’αž™αžΎαž„αž”αžΆαž“αž˜αŸ’αžΌαž›αž˜αŸ’αžαž·αž‚αŸ’αž“αž“ αž…αŸ’αž’αžœαžΎαž€αžΆαžšαžαŸ’αžŸαŸ’αžαžœαžαŸ’αž‡αžΆαžœαž–αžΆαž€αŸ‹αž–αŸαž“αž’αž“αžΉαž„ Radar System αžαžŠαŸ’αž›
αž”αžΆαž“αž…αŸ’αžŠαŸ’αžΎαžšαžαž½αž™αŸ‰αžΆ αž„αžŸαŸ†αžαŸ’αž“αŸ‹αž€αž“αž»αž„αžœαž·αžŸαŸαž™αž…αŸ’αž™αž’αžΆ αž…αŸ’αž αžΎαž™αžšαž™αŸ„αŸ‡αž€αžΆαž›αž…αž»αž„αž…αŸ’αžαŸ’αž€αžΆαž™αž…αŸ’αž“αŸ„αŸ‡αž…αŸ’αž™αžΎαž„αžœαžΆαžαŸ’αžαžΌαžœαž”αžΆαž“αž™αž€αž˜αŸ’αž€αž”αž‰αŸ’αŸαž›αž€αž“αž»αž„αžšαžαŸ’αž™αž“αžΆαž…αŸ’αžŸαžšαžΈαž‘αŸ’αž™αŸ†αž…αŸ’αž“αžΎαž”αž…αŸ’αžŠαŸ’αžΎαž˜αŸ’αž”αžΈ
αž”αž…αŸ’αž‰αŸ’αŸαŸ€αžŸαž…αŸ’αžαŸ’αž‚αŸ’αž“αŸ„αŸ‡αžαŸ’αž“αž“ αž€αŸ‹αž…αžšαžΆαž…αžš αŸαŸ”
αŸ‘β€‹αž‡αžŸαž€αžšαžΈαž‡αŸ’αžšαžΎαž˜
៑.αŸ‘αž‡αŸ„αž›αž”αžΆαŸ†αžŽαž„
-αžŠαžŸαŸ‚ αž„αž™αž›αŸ‹αž–αžΈαžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž‘αžΌαž‡αŸ…αžšαž”αžŸαŸ‹Radar
-αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœαž–αžΈαžœ αž·αž’αžΈ Design interface αž‡αž›αžΎComputer
-αž€αžΆαžšαž”αž‰αŸ’αž‡αžΆ Microcontroller αžΆαž˜αžšαž™αŸ‡computer αž‡αžŠαžΆαž™HC11
- αž–αžŸαŸ’αžšαž„αžΈαž€αž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„β€‹αž”αžŠαž“αŸ‚αž˜β€‹αžŠαŸ’αŸ‚αž€β€‹ Programming, αžŠαŸ’αŸ‚αž€β€‹ Circuit Electronic
- αž–αžŸαŸ’αžšαž„αžΉαž„αž”αž‘αž–αž·αž‡αžΆαž’αž“αŸαž”αžŠαž“αŸ‚αž˜αž€αž“ αž‚αž„αž€αžΆαžšαž”αž‡αž„αž€αžΎαžproject
៑.αŸ’β€‹ αžŠαžŠαž“αž€αžΆαŸ†αžŽαžαŸ‹
-អROBOTαž˜αž½αž™αžŠαžŠαž›αž’αžΆαž…αŸ’ scan αžšαž€αž‡αž˜αžΎαŸ‹αž›αž‡αŸ…αž§αž”αžŸαžšαž‚αž‡αŸ…αž…αŸ’αžΆαŸ†αž‡αž–αžΆαŸ‡αž˜αŸŠαž»αžαž”αž“αž€αž“ αž‚αž„αž…αŸ’αž‡αž“αž› αŸ‡αž–αžΈβ€‹αŸ£-αŸ€β€‹αžŠαž˜αŸ‰αžΆαžβ€‹
αž“αž·αž„αž’αžΆαž…αŸ’αž”αžΆαŸ†αž›αžΆαžŸαŸ‹αž‘αžΈαž”αž“αžΆαž˜αžšαž™αŸ‡Wireless UART SERIAL HC11 αžΆαž˜αžšαž™αŸ‡computer αž€αž“ αž‚αž„
αžšαž™αŸ‡αž…αŸ’αžΆαŸ†αž„αžΆαž™β€‹ ៣០០-αŸ₯αŸ αŸ β€‹αžŠαž˜αŸ‰αžΆαžβ€‹
-αž”αž„αžΆαžΆ αž‰αžŸαŸ’αžšαž€αžΆαž”RADAR αž‡αŸ…αž‡αž›αžΎScreen computer αž‡αžŠαžΆαž™αž—αŸ’αž‡αžΆ αž”αŸ‹αž‘αžΆαŸ†αž“αž€αŸ‹αž‘αžΆαŸ†αž“αž„αžΆαž˜αžšαž™αŸ‡β€‹HC11
wireless UART serial
αŸ’β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†&αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
ο‚΄ αž‡αžŠαžΎαž˜αž”αžΈαž²αžšαŸ‰αžΆαžΌαž”αžΌαžβ€‹ ULTRASONIC RADAR αž’αžΆαž…αŸ’αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž”αž“αž‡αž™αžΎαž„αžŸαŸ’αžšαžαžΌαžœαž€αžΆαžšαž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„αž–αžΆαž€αŸ‹
αž–αŸαž“αž’αž“αž·αž„αž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†αžŸαžΆαŸ†αžαžΆαž“αŸ‹αŸ—αžŠαžΌαž…αŸ’αžαžΆαž„αž‡αžŸαŸ’αžšαž€αžΆαž˜:
ο‚΄ ្-αŸ‘β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†
- Arduino Microcontroller NANO
- LIPO Battery
- wheel x4
- DC MOTOR (DG01D120)X4
- servo motor(MG90)
- ultrasonic sensor
- HC11
- L298 driver motor
-Wireless USB Serial
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
ο‚΄ αž€ Arduino Microcontroller NANO
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM
output)
Analog Input Pins 8
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which
0.5 KB used by bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
External interrupts pins 2 and 3
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
ο‚΄ ខ ULTRASONIC SENSOR
ο‚΄ Ultrasonic sensors [7] (also known as transceivers when they both send and receive, but more
generally called transducers) work on a principle similar to radar or sonar which evaluate attributes
of a target by interpreting the echoes from radio or sound waves respectively. Ultrasonic sensors
generate high frequency sound waves and evaluate the echo which is received back by the sensor.
Sensors calculate the time interval between sending the signal and receiving the echo to determine
the distance to an object.
ο‚΄ Systems typically use a transducer which generates sound waves in the ultrasonic range, above
18,000 hertz, by turning electrical energy into sound, then upon receiving the echo turn the sound
waves into electrical energy which can be measured and displayed.
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
ο‚΄ រ DC MOTOR
Optimum Motor Voltage: 4.5V
Maximum Motor Voltage: 6.0V
No Load Speed: 58rpm
No Load Current: 190mA (max. 250mA)
Stall Current: 1A
More datasheet
http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/DG01D.pdf
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
αžƒβ€‹ L298D
Motor Driver Mode lL298N អDriver αžŸαžΆαŸ†αžšαž”αŸ‹αŸ’αžšαž›αŸ‹αž‡αŸ…
αžαžΆαž˜αž–αž›β€‹β€‹High Voltage αž“αž·αž„β€‹High Current αž‡αŸ…αž²αž˜αŸ‰αžΆαžΌαž‘αŸαžš
αž“αž·αž„αžΆDual full -bridge motor driverαžŠαžŠαž›
Designed αž‡αŸ…αž“αžΉαž„Standard TTL logic levels αžŠαžΆαŸ†αž‡αžŽαžΎαžš
αž€αžΆαžšαž˜αžΆαž“αžŠαžΌαž…αŸ’αžαžΆαž„αž‡αžŸαŸ’αžšαž€αžΆαž˜β€‹:
=Operating supply voltage up to 46V
=Total DC current up to 4A
=Low saturation voltage
=Over temperature protection
=Logical β€œ0” input voltage up to 1.5vαŸ”
More datasheet http://html.alldatasheet.com/html-
pdf/22437/STMICROELECTRONICS/L298/4864/3/L298.ht
ml
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
αž„β€‹ HC11
ο‚΄ -HC11 αžšαžΊαžΆαž‡αžŸαŸ€αžšαŸ‚αžΈelectronic αžŠαžŠαž›αž’αžΆαž…αŸ’αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž”αž‰αŸ’αž‡ αžΌαž“αž“αž·αž„αž‘αž‘αž½αž›Signal αžŽαžΆαž˜αž½αž™ αž‡αžŠαžΆαž™αž‡αžŸαŸ’αžšαž”αžΎαžŸαŸ’αžšαž”αžŸαŸ‹αž‡αŸ„αž›αž€αžΆαžšαžŽαŸ
UART serial RS232αŸ”
ο‚΄ -αžœαžΆαžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαžΆαž˜αž½αž™αž“αž·αž„αžŸαŸ’αžšαž”αž€αž„αŸ‹β€‹β€‹ 434MHz αžŸαŸ’αžšαžŸαž”αž“αžΉαž„αžŸαžš αž„αŸ‹αžŠαžΆαž‡αžŸαŸ’αžšαž”αžΎαžŸαŸ’αžšαž”αžŸαŸ‹αž‡αŸ…αž€αž“ αž‚αž„αž‡αžšαž„αž…αŸ’αžŸαŸ’αžšαž€αž“αž“β€‹
-Input voltage 5V
-Idle power 3.4mA/3.3v
-MAX power 10DBM
-Receive sensitivity -110DBM
-More Datasheet http://www.topelectronics.com.au/image-eb/HC11/HC11.pdf
http://www.seeedstudio.com/wiki/images/a/a8/HC11_User_Manual.pdf
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
αž…αŸ’β€‹ Servo Motor MG90
Modulation: Analog
Torque:
4.8V: 30.60 oz-in (2.20 kg-
cm)
6.0V: 34.70 oz-in (2.50 kg-
cm)
Speed:
4.8V: 0.11 sec/60Β°
6.0V: 0.10 sec/60Β°
Weight: 0.49 oz (14.0 g)
Dimensions:
Length:0.91 in (23.1 mm)
Width:0.48 in (12.2 mm)
Height:1.14 in (29.0 mm)
Motor Type: MG90
Gear Type: Metal
Rotation/Support: Dual Bearings
Rotational Range: 180Β°
Pulse Cycle: 20 ms
Pulse Width: 400-2400 Β΅s
Connector Type: (add)
Servo motor αžšαžΊαžΆαžŸαŸ’αžšαž”αž‡αž—αž˜αŸ‰αžΆαžΌαž‘αŸαžš
αžŠαžŠαž›αž’αžΆαž…αŸ’αž²αž‡αž™αžΎαž„αž€αžΆαŸ†αžŽαžαŸ‹αž“αžΌαžœαžŠαžΊαžŸαŸ’αžšαž€αž˜αŸŠαž»αžΆαŸ†αžšαž”αžŸαŸ‹
αž’αŸαž€αžŸαžšαž„αŸ‚αž·αž›αž”αž“αž€αž“ αž‚αž„αž…αŸ’αž‡αž“αž› αŸ‡αž–αžΈ ០-180 ដឺ
αž‡αžŸαŸ’αžšαž€
αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware
αž†β€‹ Wireless USB serial (2303)
ο‚΄ αžšαžΊαžΆαž§αž”αž€αžšαžŽαŸαž˜αž™αŸ‰αžΆαž„αžŸαžΆαŸ†αžšαž”αŸ‹convert USB to UART αž‡αžŠαžΎαž˜αž”αžΈαž—αŸ’αž‡αžΆ αž”αŸ‹αžΆαž˜αž½αž™β€‹HC11αŸ”
ο‚΄ It will definitely boost development speed of projects which uses UART modules
like interfacing GSM, GPS, Bluetooth, Wi-Fi …
ο‚΄ By using it we can easily study these modules by sending data directly from your
PC and analyzing the received data in your computer display without
programming a microcontroller. Here we will use PL2303, one of the most popular
USB to UART
្-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’
្-្-αŸ’β€‹β€‹ αžŠαŸ’αŸ‚αž€ softwareο‚΄
ο‚΄ αž€ αž‡αž’αž›αžΈαž”β€‹β€‹
ο‚΄
ខ αžŸαŸ’αžšαž‘αžΉαžŸαžŠ αžΈαž”αž‘αžŸαŸ’αžšαžαžΈαž‡αž€αžΆαžŽαž˜αžΆαžŸαŸ’αžšαž
រ 2d coordinate system
αžƒ Processing C++ 3.0
αžšαžΊαžΆαž€αž˜αž˜αžœ αž·αž’αžΈαžŸαžΆαŸ†αžšαž”αŸ‹develop software αžαŸ’αž˜αžΈαžŠαžŠαž›
αž‡αž‘αžΎαž”αž”αž‡αž„αž€αžΎαžαž‡ αžΎαž„αžŠαžΆαŸ†αž”αžΌαž„αž€αž“ αž‚αž„αž†αŸ’αŸ‚ αžΆαŸ†αŸ’αŸ αŸ‘αŸ’ αžŠαžŠαž›
αž˜αžΆαž“αž›αž€αžαžŽαŸ‡Fit αž‡αŸ…αž“αžΉαž„ Arduino αž“αž·αž„ αž‡αžŸαŸ’αžšαž”αžΎ
αž—αŸ’αž‡αžΆ C++ αž€αž“ αž‚αž„αž€αžΆαžšDesign Graphic αŸ”
Processing is available for Linux, Mac OS
X, and Windows.
Processing αž’αžΆαž…αŸ’αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž”αž‰αŸ’αž‡αžΆ αž‡αŸ…
controller αž‡αŸ’αžŸαž„αŸ—αž‡αžŠαžΆαž™αž˜αžΆαž“αž›αž€αžαžŽαŸ‡αž„αžΆαž™
αžŸαŸ’αžšαžŸαž½αž›αž˜αž·αž“αžΆαžΆαŸ†αž‰αžΆαŸ† αžŠαžΌαž…αŸ’αžΆ αž”αž‰αŸ’αž‡αžΆ αž‡αŸ…αž‡αž›αžΎ
-Arduino
- Raspberry pi (image process ,
interface control , graph plot …….)
- PIC
αž„β€‹ serial communicate
ο‚΄ serial អ Protocol UART RS-232 PCαž—αŸ’αž‡αžšαž…αŸ’αž‡αžŸαŸ’αžšαž…αŸ’αžΎαž“αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αžαž—αŸ’αž‡αžΆ αž”αŸ‹αž–αžΈ PC αž‡αŸ…β€‹MICRO CONTROLLER β€‹αžš αžΊαž–αžΈ
Microcontroller αž‡αŸ…αž€αžΆαž“αŸ‹Module αž‡αŸ’αžŸαž„αŸ— αžŠαžŠαž›αž‡αžšαž‡αžŸαŸ’αžšαž”αžΎProtocol αž‡αž“αŸ‡αžΆαž˜αž‡αž’αž™αž”αž™αž‘αžΆαŸ†αž“αž€αŸ‹αž‘αžΆαŸ†αž“αž„β€‹αŸ”
ο‚΄ αž€αž“ αž‚αž„αž€αžΆαžšαž”αž‰αŸ’αž‡ αžΌαž“αž–αžαŸαž˜αžΆαž“αž–αžΈcomputer αž†αž›αž„αž€αžΆαžαŸ‹ USB αž‡αŸ…αž€αžΆαž“αŸ‹controllerαžœαžΆαž‡αž’αŸ‚αžΎαž€αžΆαžšαž”αž‰αŸ’αž‡ αžΌαž“αž˜αžšαž„β€‹β€‹1Bit.
Function αžšαž”αžŸαŸ‹αžœαžΆαž˜αžΆαž“:
if (Serial) readBytes() readBytesUntil() readString()
available() availableForWrite() begin()
end() find() findUntil()
More information about serial : https://www.arduino.cc/en/Reference/Serial
αž…αŸ’ PWM & MOTOR CONROL (Pulse Width Modulation)
ο‚΄ PWM រឺអsignal digital αž”αžΆαŸ† αžŠαž›αž„αž‡αŸ…αžΆAnalog αžŠαžŠαž›αž‡αž™αžΎαž„αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž‡αž’αŸ‚αžΎαž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αžαžΆαž˜αž–αž›αŸ’αž‚αžαŸ‹
αŸ’αž‚αž„αŸ‹αž‡αŸ…αž‡αž›αžΎαž‡αžŸαŸ’αžšαžšαžΏαž„αž‘αž‘αž½αž›αž€αž“ αž‚αž„αž”αžΆαŸ†αžŽαž„αž‡αž’αŸ‚αžΎ αž”αž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αž‡αž›αž”αžΏαž“αž˜αŸ‰αžΆαžΌαž‘αŸαžš αž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αž–αž“αž›αžΊβ€‹ αž˜αŸŠαž»αžΆαŸ†β€‹β€¦..
ο‚΄ PWM រឺអ signal αž‡αžαŸ’αžšαžšαž„αž€αžΆαžšαž‡αžšαžŠαžŠαž›αžœαžΆαž‡αž’αŸ‚αžΎαž€αžΆαžšαž”αž·αž‘αž‡αž”αžΎαž€ αž‡ αžΎαž„αžšαž”αžŸαŸ‹Arduino αž€αž“ αž‚αž„αž˜αž½αž™αžαž½αž”αž‡αžαŸ’αžšαžŽαžΆ
αž˜αž½αž™β€‹αžŠαžŠαž›αž‡αžšαž‡αŸ…αžœαžΆαžαžΆ Duty cycle αŸ”
ο‚΄ Syntax
analogWrite (pin, value)
Motor control
IN 1 IN2 EN1 ACTIO
N
X X 0 STOP
0 1 1
1 0 1
1 1 X STOP
IN 3 IN4 EN2 ACTIO
N
X X 0 STOP
0 1 1
1 0 1
1 1 X STOP
Syntax
digitalWrite(pin,HIGH);
digitalWrite(pin,LOW);
αž† Solid work
ο‚΄ SOLID WORK αžšαžΊαžΆαž€αž˜αž˜αžœ αž·αž’αžΈαž˜αž½αž™αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αžšαžΌαžš Design 2d αž“αž·αž„β€‹3d αž‡αŸ…αž‡αž›αžΎαž”αž›αž„αŸ‹αž‡αž˜αž€αžΆαž“αž·αž€αŸ”
αž‡αŸ…αž€αž“ αž‚αž„β€‹project αž‡αž™αžΎαž„αž”αž“αž‡αžŸαŸ’αžšαž”αžΎsolid work αžŸαžΆαŸ†αžšαž”αŸ‹design αžšαžΌαž”αžšαž„αžαž½αžšαž”αžŸαŸ‹αžšαŸ‰αžΆαžΌαž”αžΌαžβ€‹αŸ”
៣ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž“αž“αž€αžΆαžšαžŸαž·αž€αžΆ
៣-αŸ‘β€‹Block Diagram
TRANSMITTER BLOCK
PC
USB
SERIAL
HC11
DATA
INFORMATION
PROCESSING
INTERFACE
DISPLAY
HC11 ARDUINO L298D
MOTOR1
MOTOR4
MOTOR2
MOTRO3
ULTRASONIC
RECIEVER BLOCK
៣-្ Flow chart code
ο‚΄ αž€ processing PC control
ο‚΄
Key
initialize
W S A D q
Forward Backward Turn Left Turn Right
Serial
events
Draw radar
Draw Line
Draw object
Display on
screen
start
finish
ខ/ Ultrasonic robot
Initialize servo
motor , DC motor ,
ultrasonic
Serial
events
Motor DC
active
Servo
active
Ultrasonic
scan
Calculate
distance
start
finish
Forward Backward
Turn
right
Turn
left
Draw
Radar
៣-αŸ£β€‹αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ
ο‚΄ αž€ HC11
ο‚΄ αž‡αž™αžΎαž„test HC11 αž‡αžŠαžΆαž™β€‹αž”αž‡αž„αž€αžΎαžαž“αžΌαžœαž€αž˜αž˜αžœ αž·αž’αžΈαž˜αž½αž™αžŠαžŠαž›αž’αžΆαž…αŸ’αž²αž‡αž™αžΎαž„αž‡αž›αž„chat αžΆαž˜αž½αž™αž˜αž·αžαžšαž—αž€αžšαž·αžšαž”αžŸαŸ‹αž‡αž™αžΎαž„
αž€αž“ αž‚αž„αžšαž™αŸ‡αž…αŸ’αžΆαŸ†αž„αžΆαž™β€‹αŸ₯αŸ αŸ β€‹αžŠαž˜αŸ‰αžΆαžŸαŸ’αžšαžαŸ”
αžšαž½αžšαž”αž‰αŸ’αž‡αžΆ αž€αŸ‹αžαžΆ αž€αž˜αž˜αžœ αž·αž’αžΈαž‡αž“αŸ‡αž˜αžΆαž“Text fieldαžŸαžΆαŸ†αžšαž”αŸ‹αžœαžΆαž™αž’αž€αžŸαžšαž…αŸ’αžΌαž› αž“αž·αž„Text area αžŸαžΆαŸ†αžšαž”αŸ‹αž‘αž‘αž½αž›
massage αžŠαžŠαž›αž‡αžšαž‡αŸ’αž‰αžΎαž˜αž€αŸ”
αžβ€‹Ultrasonic and Servo
αž€αžΆαžšαžœαžΆαžŸαŸ‹αž€αžΆαŸ†αžŽαžαŸ‹αž…αŸ’αžΆαŸ†αž„αžΆαž™αžšαž”αžŸαŸ‹Ultrasonic
αž€αžΆαžštest αž‡αž›αžΎαžšαž„αŸ‚αž·αž›αžšαž”αžŸαŸ‹Servo motor αž‡αžŠαžΆαž™αž—αŸ’αž‡αžΆ αž”αŸ‹αžΆαž˜αž½αž™ Ultrasonic
ខ αž€αžΆαžšβ€‹Design Graphic αž€αž“ αž‚αž„β€‹processing
ellipse(lengthX/2,lengthY/2,radius
,radius);
ellipse(lengthX/2,lengthY/2,radius/1.
2 ,radius/1.2);
ellipse(lengthX/2,lengthY/2,radius/1.
5 ,radius/1.5);
ellipse(lengthX/2,lengthY/2,radius
/2,radius/2);
for (int dergree=0 ; dergree<=360; dergree=dergree+30){
y2= ((radius/2+30)* sin(radians(dergree)))+ lengthY/2;
x2= ((radius/2+30)* cos(radians(dergree)))+lengthX/2;
line (lengthX/2,lengthY/2,x2,y2);
}
ខ αž€αžΆαžšαž”αž‰αŸ’αž‡αžΆ αž‡αž›αžΎMotor
αž€αž“ αž‚αž„αž‡αž–αž›αž–αž·αž‡αžΆαž’αž“αŸ
αž‡αž™αžΎαž„αž‡αžƒαžΎαž‰αžαžΆαž˜αžΆαž“αž—αŸ’αž‡αž–
αžšαž’αžΆαž€αŸ‹αžšαž’αž½αž›αž‡αžŠαžΆαž™αžΆαžšαžŠαž
αž˜αžΆαž“αž”αž‰αŸ’αž‡αžΆ αž‡αž›αžΎαž€αžΆαžšαž€αžΆαžαŸ‹
string
αž‡αž™αžΎαž„αž”αž“αž‡αžŠαžΆαŸ‡αžŸαŸ’αžšαžΆαž™
αž”αž‰αŸ’αž‡αžΆ αž‡αžŠαžΆαž™αž”αž ូរវ αž·αž’αžΈαžŸαžš
αž‡αžŸαžšprogram αž‡αžŠαžΎαž˜αž”αžΈ
αž€αžΆαžαŸ‹string
αŸ€β€‹β€‹αž›αž‘αž’αŸ’αž›αž“αž“αžšαžΆαŸ†αž‡αžšαž„β€‹(Result)
4.1 αž›αž‘αž’αŸ’αž›αžŠαž“αž€αžΆαžšαž‡αž’αŸ‚αžΎαž–αžΈαž‡αžΆαž’αž“αŸαž‡αž›αžΎProcessing
-Red area = object detect
-Green area = out of range
αŸ¦β€‹αž‡αžŸαž…αŸ’αž€αžšαžΈαžŸαž“αŸ‚αž·αžŠαžΆαžΆ αž“
ο‚΄ αž†αž›αž„αžΆαž˜αž€αžΆαžšβ€‹αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœβ€‹αž€αž“ αž‚αž„Project ULTRASONIC ROBOT αž‡αž™αžΎαž„αž”αž“αž‡αžƒαžΎαž‰αžαžΆαžšαžΆαŸ†αž‡αžšαž„αž˜αž½αž™αž‡αž“αŸ‡
αž“αžΉαž„αž˜αžΆαž“β€‹αžΆαžšαŸ‡αžŸαžΆαŸ†αžαžΆαž“αŸ‹αž€αž“ αž‚αž„ αžΈαžœαž—αŸ’αž‡αž–αžšαžŸαŸ‹αž‡αŸ…αžŸαž–αŸ‚αž“αžαŸ’αŸƒαž“αž‡αž–αž›αž’αž“αžšαžβ€‹αŸ”β€‹αžšαžΆαŸ†αž‡αžšαž„αž‡αž“αŸ‡αž”αž“ αž½αž™αž²
αžŸαŸ’αžšαž€ αž»αž˜αžαŸ’ αž‚αžΆαŸ†αž”αž‘αž–αžŸαŸ’αžšαž„αžΈαž€αž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„αžŠαŸ’αŸ‚αž€ Interface design processing , Aduino Microcontroller ,
circuit electronic, Mathematic αž‡αŸαžΎαž™αžŸαž·αžŸαžΆαž“αŸŠαž»αžŸαž·αžŸαžŸαž‘αžΌαž‡αŸ…αž€αž“ αž‚αž„αž€αžΆαžšαžŠαžŸαŸ‚ αž„αž™αž›αŸ‹αž€αŸαž’αžΆαž…αŸ’αŸ’αžšαž›αŸ‹αžΆαž‘αŸŠαž»αž“
αž˜αžΌαž™αž€αž“ αž‚αž„αž€αžΆαžšαž’αž—αž·αžœαžŒαŸ’αžαž“αŸαžœ αž·αžŸαŸαž™αž”αž‡αž…αŸ’αž…αž€αžœ αž·αž‘αž™Electronic αŸ’αž„αžŠαžŠαžšαŸ”
ο‚΄ αžΆαž˜αž€αžΆαžšαžšαŸ†αž–αžΉαž„αž‘αŸŠαž»αž€ultrasonic Radar robot αž“αžΉαž„αž’αžΆαž…αŸ’αž…αŸ’αžΌαž›αžšαž½αž˜αž”αžΆαŸ†αž‡αžš αžΎαž€αž“ αž‚αž„αžœ αž·αžŸαŸαž™αž‡αŸ„αž’αžΆ
,Automobile αž€αž“ αž‚αž„αžŸαŸ’αžšαž”αž‡αž‘αžŸαž€αž˜αž– αž‚αžΆ αž€αžΆαžαŸ‹αž”αž“αŸ‚αž™αž€αžΆαžšαž“αžΆαŸ†αž…αŸ’αžΌαž›αž–αžΈαž”αžšαž‡αž‘αžŸ αž–αž‡αž“αž›αžΎαž“αž‡αžŸαžŠαžΆαž€αž·αž…αŸ’αž…αžΆαžαž·αŸ”
ο‚΄ αžΆαž…αŸ’αŸŠαž»αž„αž‡αžŸαŸ’αžšαž€αžΆαž™αžαŸ’ αž‚αžΆαŸ†αžŸαžΌ αž˜αž‡αž›αžΎαž€αž‘αžΉαž€αž…αŸ’αž·αžαžšαžŠαž›αŸ‹ αž’αŸ‚αž€αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœαž‘αžΆαŸ†αžΆαŸ†αž„αž‘αžΆαž™αž²αž”αž“αžšαž€αžΆαžšαžαž·αžαžαžΆαŸ†αžš αž·αŸ‡αžšαž·αžαž‡αŸ…
αžšαžΆαŸ†αž“αž·αžαžαŸ’αž˜αžΈαŸ—αž‡αžŠαžΎαž˜αž”αžΈ αž½αž™αž²αžŸαŸ’αžšαž”αž‡αž‘αžŸαž€αž˜αž– αž‚αžΆαž˜αžΆαž“αž—αŸ’αž‡αž–αžš αžΎαž€αž…αŸ’αžΆαŸ†αž‡αžš αžΎαž“αž€αž“ αž‚αž„αžœ αž·αžŸαŸαž™αž”αž‡αž…αŸ’αž…αž€αž‡αž‘αžŸ αžŠαžΌαž…αŸ’αž’αžš αž·αž™
αžŸαŸ’αžšαž”αž‡αž‘αžŸαž“αž“αž‡αž›αžΎαžŸαž€αž›αž‡αž›αžΆαž€β€‹αŸ”
THANK YOU

More Related Content

ultrasonic radar robot

  • 1. αžœαž·αž‘αŸ’αž™αžΆαžŸαŸ’αžαžΆ αž“αž‡αžΆαžαž·αž–αž αž»αž”αž…αŸ’αž…αŸαž€αž…αŸ’αž‘αŸ’αž™αžŸαž€αž˜αŸ’αž–αž»αž‡αžΆ National Polytechnic Institute of Cambodia αž€αž·αž…αŸ’αž…αž€αžΆαžšαžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœβ€‹β€‹β€‹β€‹ β€œαž’αŸŠαž»αž›αžŸαŸ’αžšαžΆαžŸαžΌ αžŽαž·αž…αŸ’αžšαŸ‰αžΆ ដអ αžšαŸ‰αžΆαžΌαž”αžΌαžβ€ Ultrasonic Radar Robot αžŸαŸ’αžšαžšαžΌαžŠαžΉαž€αž“αžΆαŸ† αž‰αžΉαž€β€‹β€‹αžŸαŸ’αžšαžŸαžŸαŸ‹ αžŸαŸ’αžšαž€ αž»αž˜αž‘αžΈαŸ₯ αž‡αžΆαžβ€‹αžŸαŸŠαž»αžαž‡αŸαž„ αž”αŸ‰αžΆ αž“αŸ‹ αž–αžΈαžŸαžΈ αž‡αž˜αŸ€αž…αŸ’ αžŸαŸŠαž»αž—αŸαž€αŸ’αžαž€αžš αž˜αŸ’αž αžΆαžœαž·αž‘αŸ’αž™αžΆαž›αŸαž™αž…αŸ’αŸαž‘αž·αž…αžαŸ’αžαžΌαž“αž·αž€ Faculty of Electronic
  • 2. αž˜αžΆαžαž·αž€αžΆ αŸ‘β€‹αž‡αžŸαž€αžšαžΈαž‡αŸ’αžšαžΎαž˜ ៑.αŸ‘αž‡αŸ„αž›αž”αžΆαŸ†αžŽαž„ ៑.αŸ’β€‹ αžŠαžŠαž“αž€αžΆαŸ†αžŽαžαŸ‹ αŸ’β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†&αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’αŸ£ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ ្-αŸ‘β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ† αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware ្-្-αŸ’β€‹β€‹ αžŠαŸ’αŸ‚αž€ software ៣ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž“αž“αž€αžΆαžšαžŸαž·αž€αžΆ ៣-αŸ‘β€‹Block Diagram ៣-្ Flow chart code ៣-αŸ£β€‹αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ αŸ€β€‹β€‹αž›αž‘αž’αŸ’αž›αž“αž“αžšαžΆαŸ†αž‡αžšαž„β€‹(Result) αŸ¦β€‹αž‡αžŸαž…αŸ’αž€αžšαžΈαžŸαž“αŸ‚αž·αžŠαžΆαžΆ αž“
  • 3. ο‚΄αž€αŸ†αž…αŸ’ αžΎαž“αž…αŸ’αžŸαžŠαŸ’αž‹αž€αž·αž…αŸαž‡αžΆαžαž· αž“αž·αž„αž‡αžΈαžœαž—αžΆαž–αžšαž”αžŸαŸ‹αžαŸ’αž”αž‡αžΆαž‡αž“αž€αŸαž˜αžΆαž“αž‡αžΈαžœαž—αžΆαž–αž’αžΌαž’αžΆαž•αž„αž…αŸ’αž“αŸ„αŸ‡ αž€αŸαž“αŸ†αž…αŸ’αŸ„αž™αž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž€αŸ†αž–αž»αž„αžαžαžˆαžΆαž“αž…αŸ’αž‘αžΎαž„αžαŸ’αž› αŸ†αž„αž•αž„αžαžŠαŸ’αžš αŸ” αž‘αŸ’αž™αž“αž‘αžΉαž˜αŸ’αž“αž·αž„αž…αŸ’αž“αŸ„αŸ‡αž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž€αŸαž‡αžΆαž€αžαŸ’αžαžΆ αžŸαŸ†αžαŸ’αž“αŸ‹αžαžŠαŸ’αž›αž•αžΆαž›αŸ‹αž—αžΆαž–αž„αžΆαž™αžαŸ’αžŸαž½αž›αžŠαŸ’αž›αŸ‹αžαŸ’αž”αž‡αžΆαž–αž›αžšαžŠαŸ’αž‹αž•αž„αžαžŠαŸ’αžšαŸ” αž€αž“αž»αž„αž…αŸ’αž“αŸ„αŸ‡αžαžŠαŸ’αžšαž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž”αž…αŸ’αž…αŸαž€αžœαž·αž‘αŸ’αž™αžΆαž‡αžΆ αž…αŸ’αžαŸ’αž…αžΎαž“αž”αžΆαž“αž”αž…αŸ’αž„αž€αžΎαžαž…αŸ’αž‘αžΎαž„ αž•αžΆαž›αŸ‹αž—αžΆαž–αž„αžΆαž™αžαŸ’αžŸαž½αž›αžŠαŸ’αž›αŸ‹αžαŸ’αž”αž‡αžΆαž‡αž“ αž“αž·αž„αžŠαŸ’αž›αŸ‹αž€αžΆαžšαŸαž“αž»αžœαžαžΆαž€αžΆαžšαž„αžΆαžšαž…αŸ’αž•αŸαž„αŸ— αŸ” αž…αŸ’αŸ„αž™αž…αŸ’αž αžαž»αž…αŸ’αž“αŸ„αŸ‡αž…αŸ’αž αžΎαž™αž”αžΆαž“αž‡αžΆαž€αžαŸ’αžαžΆ αž”αž…αŸ’ αž…αŸ’αž…αž€αžœαž·αž‘αŸ’αž™αžΆαž‚αžΊ αž‡αžΆαž€αžαŸ’αžαžΆ αž˜αŸ’αž½αž™αžŠαŸ’αŸαžŸαŸ†αžαŸ’αž“αŸ‹αž€αž“αž»αž„αž€αžΆαžšαž•αžΆαž›αŸ‹αž—αžΆαž–αžšαž αŸαžŸ αž‘αžΆαž“αŸ‹αžŸαž˜αŸ’αŸαž™ αž“αž·αž„αŸαžœαžΈαžαžŠαŸ’αž›αžαŸ’αž˜αžΈαžŠαŸ’αž›αŸ‹αŸαž“αž€αž…αŸ’αžαŸ’αž”αžΎαžαŸ’αž”αžΆαžŸαŸ‹αž…αŸ’αž αžΎαž™αž‡αžΆαžαŸ†αžšαžΌαžœαž€αžΆαžšαžšαž”αžŸαŸ‹αŸαžαž·αžαŸ’αž·αž‡αž“ αž‘αžΆαŸ†αž„αŸαžŸαŸ‹αž•αž„αžαžŠαŸ’αžš αŸ” αž…αŸ’αž αžαž»αž…αŸ’αž‘αŸ’αž™αžΎαž”αžαŸ’αž€αž»αž˜αŸ’αžšαž”αžŸαŸ‹αž…αŸ’αž™αžΎαž„αž”αžΆαž“αž˜αŸ’αžΌαž›αž˜αŸ’αžαž·αž‚αŸ’αž“αž“ αž…αŸ’αž’αžœαžΎαž€αžΆαžšαžαŸ’αžŸαŸ’αžαžœαžαŸ’αž‡αžΆαžœαž–αžΆαž€αŸ‹αž–αŸαž“αž’αž“αžΉαž„ Radar System αžαžŠαŸ’αž› αž”αžΆαž“αž…αŸ’αžŠαŸ’αžΎαžšαžαž½αž™αŸ‰αžΆ αž„αžŸαŸ†αžαŸ’αž“αŸ‹αž€αž“αž»αž„αžœαž·αžŸαŸαž™αž…αŸ’αž™αž’αžΆ αž…αŸ’αž αžΎαž™αžšαž™αŸ„αŸ‡αž€αžΆαž›αž…αž»αž„αž…αŸ’αžαŸ’αž€αžΆαž™αž…αŸ’αž“αŸ„αŸ‡αž…αŸ’αž™αžΎαž„αžœαžΆαžαŸ’αžαžΌαžœαž”αžΆαž“αž™αž€αž˜αŸ’αž€αž”αž‰αŸ’αŸαž›αž€αž“αž»αž„αžšαžαŸ’αž™αž“αžΆαž…αŸ’αžŸαžšαžΈαž‘αŸ’αž™αŸ†αž…αŸ’αž“αžΎαž”αž…αŸ’αžŠαŸ’αžΎαž˜αŸ’αž”αžΈ αž”αž…αŸ’αž‰αŸ’αŸαŸ€αžŸαž…αŸ’αžαŸ’αž‚αŸ’αž“αŸ„αŸ‡αžαŸ’αž“αž“ αž€αŸ‹αž…αžšαžΆαž…αžš αŸαŸ” αŸ‘β€‹αž‡αžŸαž€αžšαžΈαž‡αŸ’αžšαžΎαž˜
  • 4. ៑.αŸ‘αž‡αŸ„αž›αž”αžΆαŸ†αžŽαž„ -αžŠαžŸαŸ‚ αž„αž™αž›αŸ‹αž–αžΈαžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž‘αžΌαž‡αŸ…αžšαž”αžŸαŸ‹Radar -αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœαž–αžΈαžœ αž·αž’αžΈ Design interface αž‡αž›αžΎComputer -αž€αžΆαžšαž”αž‰αŸ’αž‡αžΆ Microcontroller αžΆαž˜αžšαž™αŸ‡computer αž‡αžŠαžΆαž™HC11 - αž–αžŸαŸ’αžšαž„αžΈαž€αž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„β€‹αž”αžŠαž“αŸ‚αž˜β€‹αžŠαŸ’αŸ‚αž€β€‹ Programming, αžŠαŸ’αŸ‚αž€β€‹ Circuit Electronic - αž–αžŸαŸ’αžšαž„αžΉαž„αž”αž‘αž–αž·αž‡αžΆαž’αž“αŸαž”αžŠαž“αŸ‚αž˜αž€αž“ αž‚αž„αž€αžΆαžšαž”αž‡αž„αž€αžΎαžproject ៑.αŸ’β€‹ αžŠαžŠαž“αž€αžΆαŸ†αžŽαžαŸ‹ -អROBOTαž˜αž½αž™αžŠαžŠαž›αž’αžΆαž…αŸ’ scan αžšαž€αž‡αž˜αžΎαŸ‹αž›αž‡αŸ…αž§αž”αžŸαžšαž‚αž‡αŸ…αž…αŸ’αžΆαŸ†αž‡αž–αžΆαŸ‡αž˜αŸŠαž»αžαž”αž“αž€αž“ αž‚αž„αž…αŸ’αž‡αž“αž› αŸ‡αž–αžΈβ€‹αŸ£-αŸ€β€‹αžŠαž˜αŸ‰αžΆαžβ€‹ αž“αž·αž„αž’αžΆαž…αŸ’αž”αžΆαŸ†αž›αžΆαžŸαŸ‹αž‘αžΈαž”αž“αžΆαž˜αžšαž™αŸ‡Wireless UART SERIAL HC11 αžΆαž˜αžšαž™αŸ‡computer αž€αž“ αž‚αž„ αžšαž™αŸ‡αž…αŸ’αžΆαŸ†αž„αžΆαž™β€‹ ៣០០-αŸ₯αŸ αŸ β€‹αžŠαž˜αŸ‰αžΆαžβ€‹ -αž”αž„αžΆαžΆ αž‰αžŸαŸ’αžšαž€αžΆαž”RADAR αž‡αŸ…αž‡αž›αžΎScreen computer αž‡αžŠαžΆαž™αž—αŸ’αž‡αžΆ αž”αŸ‹αž‘αžΆαŸ†αž“αž€αŸ‹αž‘αžΆαŸ†αž“αž„αžΆαž˜αžšαž™αŸ‡β€‹HC11 wireless UART serial
  • 5. αŸ’β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†&αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ο‚΄ αž‡αžŠαžΎαž˜αž”αžΈαž²αžšαŸ‰αžΆαžΌαž”αžΌαžβ€‹ ULTRASONIC RADAR αž’αžΆαž…αŸ’αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž”αž“αž‡αž™αžΎαž„αžŸαŸ’αžšαžαžΌαžœαž€αžΆαžšαž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„αž–αžΆαž€αŸ‹ αž–αŸαž“αž’αž“αž·αž„αž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ†αžŸαžΆαŸ†αžαžΆαž“αŸ‹αŸ—αžŠαžΌαž…αŸ’αžαžΆαž„αž‡αžŸαŸ’αžšαž€αžΆαž˜: ο‚΄ ្-αŸ‘β€‹αžαžΆαŸ†αžšαžΌαžœαž€αžΆαžšαž‡αžŸαŸ’αžšαžšαžΏαž„αž”αž„αŸ’ αž‚αžΆαŸ† - Arduino Microcontroller NANO - LIPO Battery - wheel x4 - DC MOTOR (DG01D120)X4 - servo motor(MG90) - ultrasonic sensor - HC11 - L298 driver motor -Wireless USB Serial
  • 6. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware ο‚΄ αž€ Arduino Microcontroller NANO Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 8 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz External interrupts pins 2 and 3
  • 7. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware ο‚΄ ខ ULTRASONIC SENSOR ο‚΄ Ultrasonic sensors [7] (also known as transceivers when they both send and receive, but more generally called transducers) work on a principle similar to radar or sonar which evaluate attributes of a target by interpreting the echoes from radio or sound waves respectively. Ultrasonic sensors generate high frequency sound waves and evaluate the echo which is received back by the sensor. Sensors calculate the time interval between sending the signal and receiving the echo to determine the distance to an object. ο‚΄ Systems typically use a transducer which generates sound waves in the ultrasonic range, above 18,000 hertz, by turning electrical energy into sound, then upon receiving the echo turn the sound waves into electrical energy which can be measured and displayed.
  • 8. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware ο‚΄ រ DC MOTOR Optimum Motor Voltage: 4.5V Maximum Motor Voltage: 6.0V No Load Speed: 58rpm No Load Current: 190mA (max. 250mA) Stall Current: 1A More datasheet http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/DG01D.pdf
  • 9. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware αžƒβ€‹ L298D Motor Driver Mode lL298N អDriver αžŸαžΆαŸ†αžšαž”αŸ‹αŸ’αžšαž›αŸ‹αž‡αŸ… αžαžΆαž˜αž–αž›β€‹β€‹High Voltage αž“αž·αž„β€‹High Current αž‡αŸ…αž²αž˜αŸ‰αžΆαžΌαž‘αŸαžš αž“αž·αž„αžΆDual full -bridge motor driverαžŠαžŠαž› Designed αž‡αŸ…αž“αžΉαž„Standard TTL logic levels αžŠαžΆαŸ†αž‡αžŽαžΎαžš αž€αžΆαžšαž˜αžΆαž“αžŠαžΌαž…αŸ’αžαžΆαž„αž‡αžŸαŸ’αžšαž€αžΆαž˜β€‹: =Operating supply voltage up to 46V =Total DC current up to 4A =Low saturation voltage =Over temperature protection =Logical β€œ0” input voltage up to 1.5vαŸ” More datasheet http://html.alldatasheet.com/html- pdf/22437/STMICROELECTRONICS/L298/4864/3/L298.ht ml
  • 10. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware αž„β€‹ HC11 ο‚΄ -HC11 αžšαžΊαžΆαž‡αžŸαŸ€αžšαŸ‚αžΈelectronic αžŠαžŠαž›αž’αžΆαž…αŸ’αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž”αž‰αŸ’αž‡ αžΌαž“αž“αž·αž„αž‘αž‘αž½αž›Signal αžŽαžΆαž˜αž½αž™ αž‡αžŠαžΆαž™αž‡αžŸαŸ’αžšαž”αžΎαžŸαŸ’αžšαž”αžŸαŸ‹αž‡αŸ„αž›αž€αžΆαžšαžŽαŸ UART serial RS232αŸ” ο‚΄ -αžœαžΆαžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαžΆαž˜αž½αž™αž“αž·αž„αžŸαŸ’αžšαž”αž€αž„αŸ‹β€‹β€‹ 434MHz αžŸαŸ’αžšαžŸαž”αž“αžΉαž„αžŸαžš αž„αŸ‹αžŠαžΆαž‡αžŸαŸ’αžšαž”αžΎαžŸαŸ’αžšαž”αžŸαŸ‹αž‡αŸ…αž€αž“ αž‚αž„αž‡αžšαž„αž…αŸ’αžŸαŸ’αžšαž€αž“αž“β€‹ -Input voltage 5V -Idle power 3.4mA/3.3v -MAX power 10DBM -Receive sensitivity -110DBM -More Datasheet http://www.topelectronics.com.au/image-eb/HC11/HC11.pdf http://www.seeedstudio.com/wiki/images/a/a8/HC11_User_Manual.pdf
  • 11. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware αž…αŸ’β€‹ Servo Motor MG90 Modulation: Analog Torque: 4.8V: 30.60 oz-in (2.20 kg- cm) 6.0V: 34.70 oz-in (2.50 kg- cm) Speed: 4.8V: 0.11 sec/60Β° 6.0V: 0.10 sec/60Β° Weight: 0.49 oz (14.0 g) Dimensions: Length:0.91 in (23.1 mm) Width:0.48 in (12.2 mm) Height:1.14 in (29.0 mm) Motor Type: MG90 Gear Type: Metal Rotation/Support: Dual Bearings Rotational Range: 180Β° Pulse Cycle: 20 ms Pulse Width: 400-2400 Β΅s Connector Type: (add) Servo motor αžšαžΊαžΆαžŸαŸ’αžšαž”αž‡αž—αž˜αŸ‰αžΆαžΌαž‘αŸαžš αžŠαžŠαž›αž’αžΆαž…αŸ’αž²αž‡αž™αžΎαž„αž€αžΆαŸ†αžŽαžαŸ‹αž“αžΌαžœαžŠαžΊαžŸαŸ’αžšαž€αž˜αŸŠαž»αžΆαŸ†αžšαž”αžŸαŸ‹ αž’αŸαž€αžŸαžšαž„αŸ‚αž·αž›αž”αž“αž€αž“ αž‚αž„αž…αŸ’αž‡αž“αž› αŸ‡αž–αžΈ ០-180 ដឺ αž‡αžŸαŸ’αžšαž€
  • 12. αŸ’β€‹-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ‘β€‹β€‹ αžŠαŸ’αŸ‚αž€ Hardware αž†β€‹ Wireless USB serial (2303) ο‚΄ αžšαžΊαžΆαž§αž”αž€αžšαžŽαŸαž˜αž™αŸ‰αžΆαž„αžŸαžΆαŸ†αžšαž”αŸ‹convert USB to UART αž‡αžŠαžΎαž˜αž”αžΈαž—αŸ’αž‡αžΆ αž”αŸ‹αžΆαž˜αž½αž™β€‹HC11αŸ” ο‚΄ It will definitely boost development speed of projects which uses UART modules like interfacing GSM, GPS, Bluetooth, Wi-Fi … ο‚΄ By using it we can easily study these modules by sending data directly from your PC and analyzing the received data in your computer display without programming a microcontroller. Here we will use PL2303, one of the most popular USB to UART
  • 13. ្-្ αžŸαŸ’αžšαž‘αžΉαžŸαžš αžΈαž–αžΆαž€αŸ‹αž–αŸαž“αž’ ្-្-αŸ’β€‹β€‹ αžŠαŸ’αŸ‚αž€ softwareο‚΄ ο‚΄ αž€ αž‡αž’αž›αžΈαž”β€‹β€‹ ο‚΄
  • 16. αžƒ Processing C++ 3.0 αžšαžΊαžΆαž€αž˜αž˜αžœ αž·αž’αžΈαžŸαžΆαŸ†αžšαž”αŸ‹develop software αžαŸ’αž˜αžΈαžŠαžŠαž› αž‡αž‘αžΎαž”αž”αž‡αž„αž€αžΎαžαž‡ αžΎαž„αžŠαžΆαŸ†αž”αžΌαž„αž€αž“ αž‚αž„αž†αŸ’αŸ‚ αžΆαŸ†αŸ’αŸ αŸ‘αŸ’ αžŠαžŠαž› αž˜αžΆαž“αž›αž€αžαžŽαŸ‡Fit αž‡αŸ…αž“αžΉαž„ Arduino αž“αž·αž„ αž‡αžŸαŸ’αžšαž”αžΎ αž—αŸ’αž‡αžΆ C++ αž€αž“ αž‚αž„αž€αžΆαžšDesign Graphic αŸ” Processing is available for Linux, Mac OS X, and Windows. Processing αž’αžΆαž…αŸ’αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž”αž‰αŸ’αž‡αžΆ αž‡αŸ… controller αž‡αŸ’αžŸαž„αŸ—αž‡αžŠαžΆαž™αž˜αžΆαž“αž›αž€αžαžŽαŸ‡αž„αžΆαž™ αžŸαŸ’αžšαžŸαž½αž›αž˜αž·αž“αžΆαžΆαŸ†αž‰αžΆαŸ† αžŠαžΌαž…αŸ’αžΆ αž”αž‰αŸ’αž‡αžΆ αž‡αŸ…αž‡αž›αžΎ -Arduino - Raspberry pi (image process , interface control , graph plot …….) - PIC
  • 17. αž„β€‹ serial communicate ο‚΄ serial អ Protocol UART RS-232 PCαž—αŸ’αž‡αžšαž…αŸ’αž‡αžŸαŸ’αžšαž…αŸ’αžΎαž“αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αžαž—αŸ’αž‡αžΆ αž”αŸ‹αž–αžΈ PC αž‡αŸ…β€‹MICRO CONTROLLER β€‹αžš αžΊαž–αžΈ Microcontroller αž‡αŸ…αž€αžΆαž“αŸ‹Module αž‡αŸ’αžŸαž„αŸ— αžŠαžŠαž›αž‡αžšαž‡αžŸαŸ’αžšαž”αžΎProtocol αž‡αž“αŸ‡αžΆαž˜αž‡αž’αž™αž”αž™αž‘αžΆαŸ†αž“αž€αŸ‹αž‘αžΆαŸ†αž“αž„β€‹αŸ” ο‚΄ αž€αž“ αž‚αž„αž€αžΆαžšαž”αž‰αŸ’αž‡ αžΌαž“αž–αžαŸαž˜αžΆαž“αž–αžΈcomputer αž†αž›αž„αž€αžΆαžαŸ‹ USB αž‡αŸ…αž€αžΆαž“αŸ‹controllerαžœαžΆαž‡αž’αŸ‚αžΎαž€αžΆαžšαž”αž‰αŸ’αž‡ αžΌαž“αž˜αžšαž„β€‹β€‹1Bit. Function αžšαž”αžŸαŸ‹αžœαžΆαž˜αžΆαž“: if (Serial) readBytes() readBytesUntil() readString() available() availableForWrite() begin() end() find() findUntil() More information about serial : https://www.arduino.cc/en/Reference/Serial
  • 18. αž…αŸ’ PWM & MOTOR CONROL (Pulse Width Modulation) ο‚΄ PWM រឺអsignal digital αž”αžΆαŸ† αžŠαž›αž„αž‡αŸ…αžΆAnalog αžŠαžŠαž›αž‡αž™αžΎαž„αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αž‡αž’αŸ‚αžΎαž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αžαžΆαž˜αž–αž›αŸ’αž‚αžαŸ‹ αŸ’αž‚αž„αŸ‹αž‡αŸ…αž‡αž›αžΎαž‡αžŸαŸ’αžšαžšαžΏαž„αž‘αž‘αž½αž›αž€αž“ αž‚αž„αž”αžΆαŸ†αžŽαž„αž‡αž’αŸ‚αžΎ αž”αž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αž‡αž›αž”αžΏαž“αž˜αŸ‰αžΆαžΌαž‘αŸαžš αž”αžΆαŸ† αžŠαžšαž”αžΆαŸ†αžšαž½αž›αž–αž“αž›αžΊβ€‹ αž˜αŸŠαž»αžΆαŸ†β€‹β€¦.. ο‚΄ PWM រឺអ signal αž‡αžαŸ’αžšαžšαž„αž€αžΆαžšαž‡αžšαžŠαžŠαž›αžœαžΆαž‡αž’αŸ‚αžΎαž€αžΆαžšαž”αž·αž‘αž‡αž”αžΎαž€ αž‡ αžΎαž„αžšαž”αžŸαŸ‹Arduino αž€αž“ αž‚αž„αž˜αž½αž™αžαž½αž”αž‡αžαŸ’αžšαžŽαžΆ αž˜αž½αž™β€‹αžŠαžŠαž›αž‡αžšαž‡αŸ…αžœαžΆαžαžΆ Duty cycle αŸ” ο‚΄ Syntax analogWrite (pin, value)
  • 19. Motor control IN 1 IN2 EN1 ACTIO N X X 0 STOP 0 1 1 1 0 1 1 1 X STOP IN 3 IN4 EN2 ACTIO N X X 0 STOP 0 1 1 1 0 1 1 1 X STOP Syntax digitalWrite(pin,HIGH); digitalWrite(pin,LOW);
  • 20. αž† Solid work ο‚΄ SOLID WORK αžšαžΊαžΆαž€αž˜αž˜αžœ αž·αž’αžΈαž˜αž½αž™αž‡αžŸαŸ’αžšαž”αžΎαžŸαžΆαŸ†αžšαž”αŸ‹αžšαžΌαžš Design 2d αž“αž·αž„β€‹3d αž‡αŸ…αž‡αž›αžΎαž”αž›αž„αŸ‹αž‡αž˜αž€αžΆαž“αž·αž€αŸ” αž‡αŸ…αž€αž“ αž‚αž„β€‹project αž‡αž™αžΎαž„αž”αž“αž‡αžŸαŸ’αžšαž”αžΎsolid work αžŸαžΆαŸ†αžšαž”αŸ‹design αžšαžΌαž”αžšαž„αžαž½αžšαž”αžŸαŸ‹αžšαŸ‰αžΆαžΌαž”αžΌαžβ€‹αŸ”
  • 21. ៣ αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž“αž“αž€αžΆαžšαžŸαž·αž€αžΆ ៣-αŸ‘β€‹Block Diagram TRANSMITTER BLOCK PC USB SERIAL HC11 DATA INFORMATION PROCESSING INTERFACE DISPLAY HC11 ARDUINO L298D MOTOR1 MOTOR4 MOTOR2 MOTRO3 ULTRASONIC RECIEVER BLOCK
  • 22. ៣-្ Flow chart code ο‚΄ αž€ processing PC control ο‚΄ Key initialize W S A D q Forward Backward Turn Left Turn Right Serial events Draw radar Draw Line Draw object Display on screen start finish
  • 23. ខ/ Ultrasonic robot Initialize servo motor , DC motor , ultrasonic Serial events Motor DC active Servo active Ultrasonic scan Calculate distance start finish Forward Backward Turn right Turn left Draw Radar
  • 24. ៣-αŸ£β€‹αžŠαžΆαŸ†αž‡αžŽαžΎαžšαž€αžΆαžšαž–αž·αž‡αžΆαž’αž“αŸ ο‚΄ αž€ HC11 ο‚΄ αž‡αž™αžΎαž„test HC11 αž‡αžŠαžΆαž™β€‹αž”αž‡αž„αž€αžΎαžαž“αžΌαžœαž€αž˜αž˜αžœ αž·αž’αžΈαž˜αž½αž™αžŠαžŠαž›αž’αžΆαž…αŸ’αž²αž‡αž™αžΎαž„αž‡αž›αž„chat αžΆαž˜αž½αž™αž˜αž·αžαžšαž—αž€αžšαž·αžšαž”αžŸαŸ‹αž‡αž™αžΎαž„ αž€αž“ αž‚αž„αžšαž™αŸ‡αž…αŸ’αžΆαŸ†αž„αžΆαž™β€‹αŸ₯αŸ αŸ β€‹αžŠαž˜αŸ‰αžΆαžŸαŸ’αžšαžαŸ” αžšαž½αžšαž”αž‰αŸ’αž‡αžΆ αž€αŸ‹αžαžΆ αž€αž˜αž˜αžœ αž·αž’αžΈαž‡αž“αŸ‡αž˜αžΆαž“Text fieldαžŸαžΆαŸ†αžšαž”αŸ‹αžœαžΆαž™αž’αž€αžŸαžšαž…αŸ’αžΌαž› αž“αž·αž„Text area αžŸαžΆαŸ†αžšαž”αŸ‹αž‘αž‘αž½αž› massage αžŠαžŠαž›αž‡αžšαž‡αŸ’αž‰αžΎαž˜αž€αŸ”
  • 25. αžβ€‹Ultrasonic and Servo αž€αžΆαžšαžœαžΆαžŸαŸ‹αž€αžΆαŸ†αžŽαžαŸ‹αž…αŸ’αžΆαŸ†αž„αžΆαž™αžšαž”αžŸαŸ‹Ultrasonic αž€αžΆαžštest αž‡αž›αžΎαžšαž„αŸ‚αž·αž›αžšαž”αžŸαŸ‹Servo motor αž‡αžŠαžΆαž™αž—αŸ’αž‡αžΆ αž”αŸ‹αžΆαž˜αž½αž™ Ultrasonic
  • 26. ខ αž€αžΆαžšβ€‹Design Graphic αž€αž“ αž‚αž„β€‹processing ellipse(lengthX/2,lengthY/2,radius ,radius); ellipse(lengthX/2,lengthY/2,radius/1. 2 ,radius/1.2); ellipse(lengthX/2,lengthY/2,radius/1. 5 ,radius/1.5); ellipse(lengthX/2,lengthY/2,radius /2,radius/2);
  • 27. for (int dergree=0 ; dergree<=360; dergree=dergree+30){ y2= ((radius/2+30)* sin(radians(dergree)))+ lengthY/2; x2= ((radius/2+30)* cos(radians(dergree)))+lengthX/2; line (lengthX/2,lengthY/2,x2,y2); }
  • 28. ខ αž€αžΆαžšαž”αž‰αŸ’αž‡αžΆ αž‡αž›αžΎMotor αž€αž“ αž‚αž„αž‡αž–αž›αž–αž·αž‡αžΆαž’αž“αŸ αž‡αž™αžΎαž„αž‡αžƒαžΎαž‰αžαžΆαž˜αžΆαž“αž—αŸ’αž‡αž– αžšαž’αžΆαž€αŸ‹αžšαž’αž½αž›αž‡αžŠαžΆαž™αžΆαžšαžŠαž αž˜αžΆαž“αž”αž‰αŸ’αž‡αžΆ αž‡αž›αžΎαž€αžΆαžšαž€αžΆαžαŸ‹ string αž‡αž™αžΎαž„αž”αž“αž‡αžŠαžΆαŸ‡αžŸαŸ’αžšαžΆαž™ αž”αž‰αŸ’αž‡αžΆ αž‡αžŠαžΆαž™αž”αž ូរវ αž·αž’αžΈαžŸαžš αž‡αžŸαžšprogram αž‡αžŠαžΎαž˜αž”αžΈ αž€αžΆαžαŸ‹string
  • 30. αŸ¦β€‹αž‡αžŸαž…αŸ’αž€αžšαžΈαžŸαž“αŸ‚αž·αžŠαžΆαžΆ αž“ ο‚΄ αž†αž›αž„αžΆαž˜αž€αžΆαžšβ€‹αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœβ€‹αž€αž“ αž‚αž„Project ULTRASONIC ROBOT αž‡αž™αžΎαž„αž”αž“αž‡αžƒαžΎαž‰αžαžΆαžšαžΆαŸ†αž‡αžšαž„αž˜αž½αž™αž‡αž“αŸ‡ αž“αžΉαž„αž˜αžΆαž“β€‹αžΆαžšαŸ‡αžŸαžΆαŸ†αžαžΆαž“αŸ‹αž€αž“ αž‚αž„ αžΈαžœαž—αŸ’αž‡αž–αžšαžŸαŸ‹αž‡αŸ…αžŸαž–αŸ‚αž“αžαŸ’αŸƒαž“αž‡αž–αž›αž’αž“αžšαžβ€‹αŸ”β€‹αžšαžΆαŸ†αž‡αžšαž„αž‡αž“αŸ‡αž”αž“ αž½αž™αž² αžŸαŸ’αžšαž€ αž»αž˜αžαŸ’ αž‚αžΆαŸ†αž”αž‘αž–αžŸαŸ’αžšαž„αžΈαž€αž…αŸ’αžΆαŸ†αž‡αž“αŸ‡αžŠαžΉαž„αžŠαŸ’αŸ‚αž€ Interface design processing , Aduino Microcontroller , circuit electronic, Mathematic αž‡αŸαžΎαž™αžŸαž·αžŸαžΆαž“αŸŠαž»αžŸαž·αžŸαžŸαž‘αžΌαž‡αŸ…αž€αž“ αž‚αž„αž€αžΆαžšαžŠαžŸαŸ‚ αž„αž™αž›αŸ‹αž€αŸαž’αžΆαž…αŸ’αŸ’αžšαž›αŸ‹αžΆαž‘αŸŠαž»αž“ αž˜αžΌαž™αž€αž“ αž‚αž„αž€αžΆαžšαž’αž—αž·αžœαžŒαŸ’αžαž“αŸαžœ αž·αžŸαŸαž™αž”αž‡αž…αŸ’αž…αž€αžœ αž·αž‘αž™Electronic αŸ’αž„αžŠαžŠαžšαŸ” ο‚΄ αžΆαž˜αž€αžΆαžšαžšαŸ†αž–αžΉαž„αž‘αŸŠαž»αž€ultrasonic Radar robot αž“αžΉαž„αž’αžΆαž…αŸ’αž…αŸ’αžΌαž›αžšαž½αž˜αž”αžΆαŸ†αž‡αžš αžΎαž€αž“ αž‚αž„αžœ αž·αžŸαŸαž™αž‡αŸ„αž’αžΆ ,Automobile αž€αž“ αž‚αž„αžŸαŸ’αžšαž”αž‡αž‘αžŸαž€αž˜αž– αž‚αžΆ αž€αžΆαžαŸ‹αž”αž“αŸ‚αž™αž€αžΆαžšαž“αžΆαŸ†αž…αŸ’αžΌαž›αž–αžΈαž”αžšαž‡αž‘αžŸ αž–αž‡αž“αž›αžΎαž“αž‡αžŸαžŠαžΆαž€αž·αž…αŸ’αž…αžΆαžαž·αŸ” ο‚΄ αžΆαž…αŸ’αŸŠαž»αž„αž‡αžŸαŸ’αžšαž€αžΆαž™αžαŸ’ αž‚αžΆαŸ†αžŸαžΌ αž˜αž‡αž›αžΎαž€αž‘αžΉαž€αž…αŸ’αž·αžαžšαžŠαž›αŸ‹ αž’αŸ‚αž€αžŸαŸ’αžšαžΆαžœαžŸαŸ’αžšαžΆαžœαž‘αžΆαŸ†αžΆαŸ†αž„αž‘αžΆαž™αž²αž”αž“αžšαž€αžΆαžšαžαž·αžαžαžΆαŸ†αžš αž·αŸ‡αžšαž·αžαž‡αŸ… αžšαžΆαŸ†αž“αž·αžαžαŸ’αž˜αžΈαŸ—αž‡αžŠαžΎαž˜αž”αžΈ αž½αž™αž²αžŸαŸ’αžšαž”αž‡αž‘αžŸαž€αž˜αž– αž‚αžΆαž˜αžΆαž“αž—αŸ’αž‡αž–αžš αžΎαž€αž…αŸ’αžΆαŸ†αž‡αžš αžΎαž“αž€αž“ αž‚αž„αžœ αž·αžŸαŸαž™αž”αž‡αž…αŸ’αž…αž€αž‡αž‘αžŸ αžŠαžΌαž…αŸ’αž’αžš αž·αž™ αžŸαŸ’αžšαž”αž‡αž‘αžŸαž“αž“αž‡αž›αžΎαžŸαž€αž›αž‡αž›αžΆαž€β€‹αŸ”

Editor's Notes