博文

目前显示的是标签为“gorgeous”的博文

11.Arduino learning notebook - temperature sensor experiment

图片
  11.Arduino learning notebook - temperature sensor experiment      Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino) Through the last experiment, we learned the use of 1602 LCD. Here we make a simple temperature sensor, through a LM35 temperature sensor to read the room temperature, the temperature displayed on the 1602 LCD screen. The last time we use d the hand-written code  to drive the LCD, this time we directly use  LiquidCrystal library to drive, this library file allows arduino control board to control the  LCD   based on Hitachi HD44780 or be compatible with most of the chip . Work ing  in 4bit or 8bit state. The picture below shows the location of the LiquidCrystal library file for arduino we use, and the library file  only  shown here can be called by ard...

9.Arduino learning notebook--Photocontrolled LED experiment

图片
9.Arduino learning notebook--Photocontrolled LED experiment               Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino) The photosensitive resistor is also called the light pipe, and the commonly used materials are cadmium sulfide, as well as selenium, aluminum sulfide, lead sulphide and bismuth sulfide.These materials have a characteristic in which the resistance of the fabric is rapidly reduced at a given wavelength  from the light. This is because the carrier of the light is involved in the conduction, in the role of external electric field drift movement,   so that the resistance of the photosensitive resistor decreased rapidly.   The working principle of photosensitive resistance is based on the internal photoelectric effect.   At both ends of the semiconductor photosens...

7.Arduino learning notebook--PWM control the LED

图片
7.Arduino learning notebook--PWM control the LED                       Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino) This experiment uses  PWM to control a LED, which slowly turns bright and slowly darkens, then make a circle .   Here is the wiring diagram: ARDUINO code 1.  / * 2.a uthor: www.geek-workshop.com 3.  components: control board, led, wire, bread board 4.  us age : this experiment demonstrates how to make the  light of  LED connected to the  port 9 gradually change through the analogWrite() command 5.  * / 6.  int brightness = 0;/ / define integer variables brightness and its initial value, this variable is used to represent the LED brightness. 7.i nt fadeAmount = 5;/ / define integer...