博文

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

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

18.Arduino learning notebook-- SD card reading and writing experiment

图片
18. Arduino learning notebook-- SD card reading and writing 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)   This time I use arduino to drive SD card, read and write in SD card. It is necessary to note that the SD library file of arduino is not very good for 2G or over 2G , so it is recommended that you use 2G or below 2G, and the file format is in FAT . This time I use the MicroSD card of kingmax2G. Look at the hardware connection diagram Download the following code into arduino board ARDUINO CODE 1.  / * 2.  This example shows that if you record three analog pin values to a SD card, use the SD library. 3.            4.  c ircuit part 5.  * analog  pins with simulated port  0,1, 2...