博文

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 the digital  port  7 . T he hardware connection diagram Download

20.Arduino learning notebook--Use Arduino Duemilanove to download the bootloader to other chips

图片
20.Arduino learning notebook--Use Arduino Duemilanove to download the bootloader to other chips               Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino)   In this experiment, we use Arduino Duemilanove to download the bootloader to the chip. Note: after testing this method of download ing the bootloader , we found that it only can be tested successfully on   using the 328P of  Arduino Duemilanove, Arduino nano . Material preparation: 1.A c ontrol board of Arduino Duemilanove/UNO/NANO 2.A 100 Ω resistance 3. Two 22p capacitors 4. A 16M Hz rystal Oscillator 5. One Atmega8 DIP packaging chip One key, One breadboard and some connected wires. First, open the arduino IDE, in the File's Examples, select ArduinoISP, compile the program, and download it into the arduino control board.    Connect the hardware first   

19.Arduino learning notebook--Atmega8 makes the minimum arduino system

图片
19.Arduino learning n otebook-- Atmega8 makes the minimum  arduino system                        Juvtmall  ( a company supply  PCB Prototyping ,  PCBA service  and sell kinds of  components, modules  and so on)  ( Catduino has the same function of Arduino)   Atmega8 is the cheapest of the arduino's officially supported chips, so we'll take it to explain how to make the arduino minimum system on the breadboard. Prepare the material 1. One Atmega8 DIP packaging chip 2 .   One 16MHz Crystal Oscillator 3 . Two 22P capaci tors One key, One breadboard and some connected wires. Let's look at this chip A new chip needs to download the arduino's bootloader, which We use the official recommended USBtinyISP to download. Take a look at the pins of Atmega8 and ICSP pins + 5 v connects to VCC GND connect s  to GND D11, D12, D13 connect to 17,18,19 pin  respectively Reset connects to  reset Now let's look at the connect