Skip to main content

Nguyên tắc hoạt động của máy scanner

Scanner
Nguyên tắc hoạt động cơ bản của máy scanner là sử dụng nguyên tắc phản xạ ánh sáng.


Nguồn ánh sáng (light source or lamp) được chiếu vào tài liệu cần scan, sau đó ánh sáng phản xa đi qua hệ thống quang học (gồm gương và thấu kính, lăng kính) đến bộ CCD (charge couple device, đây là 1 bộ cảm biến hình ảnh được sử dụng rộng rãi trong các thiết bị như máy ảnh, camera...)

Bộ CCD có trách nhiệm biến đổi tín hiệu ánh sáng thành các điện áp tương ứng với cường độ sáng. Sau đó, bộ ADC sẽ trong CCD sẽ chuyển đổi các tín hiệu điện áp này thành dạng số (mức xám của ảnh).

Để scan được ảnh màu, người ta quét lần lượt 3 lần với các nguồn sáng khác nhau (là những màu cơ bản RGB) và qua bộ lọc màu đặc biệt trong bộ CCD để chuyển đổi thành các giá trị số.

Bar code scanner (máy quét mã vạch)
Nguyên tắc tương tự được sử dụng trong máy scanner bar-code. (Máy này được sử dụng phổ biến trong các cửa hàng, siêu thị, kho bãi...vvv để quản lý thông tin sản phẩm)

Hình ảnh của Bar code gồm 2 phần đen và trắng. Khi chiếu ánh sáng đỏ vào bar code, ánh sáng phản xạ sẽ bị méo dạng. Nguyên nhân, phần màu đen trên bar code sẽ hấp thụ ánh sáng màu đỏ.

Bộ CCD thu nhận tín hiệu ánh sáng phản xạ dưới dạng tín hiệu điện như sau:

Tín hiệu này được chuyển sang dạng tín hiệu số bởi bộ ADC và được gửi đến bộ giải mã mã vạch (barcode scanner decoder ).

Thank to:
http://www.extremetech.com/computing/51612-how-scanners-work/2
http://www.carolinabarcode.com/how-barcode-scanners-work-a-69.html

Comments

Popular posts from this blog

[STM32] How to configure Timer 1, Channel 3 is PWM 1kHz, duty cycle 20% to control BLDC motor

 To configure Timer1 for a 1 kHz PWM signal with a 20% duty cycle on an STM32H7S3L8 microcontroller, follow these steps: 1. Understand the Timer Parameters PWM Frequency : 1 kHz → Period = 1 ms. Duty Cycle : 20% → ON time = 0.2 ms. The timer’s clock frequency is derived from the APB clock (e.g., TIMCLK). Let’s assume you know the APB clock frequency. The Timer prescaler and auto-reload register (ARR) define the PWM frequency. 2. Compute Timer Parameters Formula: PWM Frequency = Timer Clock (Prescaler + 1) * (ARR + 1) \text{PWM Frequency} = \frac{\text{Timer Clock}}{\text{(Prescaler + 1) * (ARR + 1)}} PWM Frequency = (Prescaler + 1) * (ARR + 1) Timer Clock ​ For 1 kHz PWM: A R R = Timer Clock PWM Frequency ∗ ( Prescaler + 1) − 1 ARR = \frac{\text{Timer Clock}}{\text{PWM Frequency} * (\text{Prescaler + 1)}} - 1 A RR = PWM Frequency ∗ ( Prescaler + 1) Timer Clock ​ −...

[CanadaLife] Example of answers for final test in Smart Service Ontario 2024

If you have failed the final exam in the first attempt. Congratulations, you are not odd. Here, take a look and grab some corrected answers for your next attempt.  Don't waste your money and time for more failure.  Good luck bros. Quick note: remember that, the system will change the bunch of questions after each attempt. Then your next questionnaire will be different compared with the first trial. ========================================== =============FINAL TEST=================== ========================================== TIP: Here is a list of questions you did not answer correctly. *Please note: You will only be able to view this list immediately following your test attempt. ========================================== Alcohol slows down the central nervous system and impacts how a person thinks, acts, and moves. This means alcohol is a: depressant ========================================== Alcohol is metabolized in the body at a set rate. For most people, that rate is: one...

How to use ChatGPT to get your resume shortlisted?

How to use ChatGPT to get your resume shortlisted? Core steps: Chat GPT -> Resume Creator -> LinkedIn(Copy the job description to ChatGPT) -> Add your personal information -> Copy output from ChatGPT to Instaresume.io to make the template -> Goto SkillSyncer to check ATS(Applicant Tracking Software) score, point out the missing keywords. Detail ☑️In my pursuit of job #opportunities, I encountered a familiar challenge - my resume seemingly disappeared into oblivion, yielding no responses despite my diverse skill set and numerous applications. ☑️As I delved into my research, I uncovered the existence of ATS software, the automated gatekeeper of #resumes, which swiftly filtered out those lacking relevant keywords. ☑️The outcome? Not just one #company, but over a dozen organizations recognized the potential in my resume, resulting in multiple shortlists and promising #job prospects! 💻If you want to supercharge your resume and unlock countless opportunities, don't miss o...