博文

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

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

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