博文

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

21. Arduino learning notebook-- Experiment of controlling steering engine

图片
21. Arduino learning notebook-- Experiment of controlling steering engine Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino)   Here use Arduino duemilanove to control the rotation of steering engine through a potentiometer. Material preparation: A a rduino duemilanove A 10K potentiometer A steering engine A breadboard Some  connected wires It should be noted here, do not use the computer usb to s upply  power , because if the current demand is greater than 500ma, the  usb  may be burned, it is recommended to use the external power supply. The left and right   pins  of the potentiometer are connected with 3.3V and GND respectively , the middle pin is connected with the analog port 0.   Steering engine  is connected with  5V and GND, the signal port is connected to t...

16.Arduino learning notebook--PS2 rocker/game rocker experiment

图片
16. Arduino learning  note book--PS 2 rocker/game rocker 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 PS2 rocker can be used to control the car, etc. The main   structure is two 10K potentiometers and a key switch.The five ports are  respectively  VCC, X, Button, Y, GND. Let's take a look at the picture The o ld LCD screen is used to do other things, so use another  one , different models of 1602 LCD to adjust the contrast of resistance value is different .   S o this time I will switch to a potentiometer, more convenien t to adjust. Hardware connection diagram Download the code below to the arduino controller . ARDUINO   CODE 1.  #include <LiquidCrystal. H > // call the LiquidCr...

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...