Ghid

4
Arduino Mega Alimentare 6-20 v teoretic, 7-12 optim – 2.1 mm centrul cu + jack - Gnd Vin pins - Pinii sunt cei digitali – PWM , intreruperi libere are pe 2,3,18,19 - Intreru pere - 0 - 1 - 2 - 3 - 4 - 5 - pin - 2 - 3 - 2 1 - 2 o - 1 9 - 18 - - - I2c SCL I2c SDA Serial 1RX Serial 1TX Folosite de mine - Mp3 - i r encoder encoder - 1. SD card connections: MISO to pin 50 MOSI to pin 51 SCK to pin 52 SS/CS to pin 53 2. VS1053 MP3 module: int2 MP3_XCS to pin 6 MP3_XDCS to pin 7 MP3_DREQ to pin 2 intrerupere MP3_RESET to pin 8 MISO to pin 50 MOSI to pin 51 SCK to pin 52 3. DS3231 RTC 0X68 24C32 0x57

description

Arduino

Transcript of Ghid

Arduino MegaAlimentare 6-20 v teoretic, 7-12 optim 2.1 mm centrul cu + jack Gnd Vin pins

Pinii sunt cei digitali PWM , intreruperi libere are pe 2,3,18,19 Intrerupere 0 1 2 3 4 5

pin 2 3 21 2o 19 18

I2c SCLI2c SDASerial 1RXSerial 1TX

Folosite de mine Mp3 irencoderencoder

1. SD card connections: MISO to pin 50 MOSI to pin 51 SCK to pin 52 SS/CS to pin 532. VS1053 MP3 module: int2 MP3_XCS to pin 6 MP3_XDCS to pin 7 MP3_DREQ to pin 2 intrerupere MP3_RESET to pin 8 MISO to pin 50 MOSI to pin 51 SCK to pin 523. DS3231 RTC 0X6824C32 0x57SDA to pin 20SCL to pin 21

4. DHT11 sensor pin 4

5. BMP085 0X77 ! Vcc= + 3.3 CSDA to pin 20SCL to pin 21Soft Adafruit merge bine varianta dec 20146. Encoder int 4,5Pe port H am: 17,16,6,7,8,9 (pwm-uri) Pe port D : 21,20,19,18,38Pe D Pe E : 2,3,0,1,5, Idee : de bagat MP3 dreq pe 18 si pus encoder pe 2 ca intrerupere si 5PushA to pin 17 B to pin 19 intrerupere int 4PUSH 18 int int 5

7. TEA5767 FM 0X60SDA to pin 20SCL to pin 21

8. I2c Display 0X27SDA to pin 20SCL to pin 21

9. IR int 2Senzor pin 15Led pin 3 intrerupere

10. Amplif TDA2822

11. CEAS NIXIE

22 23 24 25CBDANixie 1 zeci oreNixie 2 oreNixie 3 zeci minuteNixie 7 simboluri

CBDACBDACBDACBDA

22232425262728293031323347484950

Tub7 simboluriNumar Trimis1234567890

Pin

Simbol. 3n. 2.1Co%: 2M:1m

12. RGB LED cel mai lung pin e minus

SoftI2 scan:I2C device found at address 0x27 ! i2c displayI2C device found at address 0x57 ! AT24C32I2C device found at address 0x60 ! TEA5767I2C device found at address 0x68 ! DS3231I2C device found at address 0x77 ! BMP085done

#if ARDUINO >= 100 #include "Arduino.h"#else #include "WProgram.h"#endif