Data Sheet

Guide V1.0
Email: keen@elecrow.com Web: www.elecrow.com ---Designed by Elecrow Keen
41
Compile and upload
Tips: Refer to the operation demo (Step4 to Step8).
Try changing the value 4 in the line below to lower and higher values.
//int pitch = 200 + reading / 4;
We simply take an analog reading from A0, to measure the light intensity. This value will
be in the range of something like 0 to 700.
We add 200 to this raw value, to make 200 Hz the lowest frequency and simply add the
reading divided by 4 to this value, to give us a range of around 200Hz to 370Hz.
Language reference
tone()
+ (addition)
/ (divide)
Application effect
When you use the hand slowly close to the photosensitive resistance, the buzzer sounds
will be changed.
Lesson 12: Analog temperature
Overview
This lesson we will teach you how to read the value of the thermistor.
Specification
Model: MF52-103
Insulation Material: Ceramic