Mundarija:
2025 Muallif: John Day | [email protected]. Oxirgi o'zgartirilgan: 2025-01-13 06:58
Muallif: Ethan Feggestad
Qiziqarli va oddiy arduino o'yini!
1 -qadam: Bongo qahramoni haqida
Bongo Hero -ning asl muallifi - Etine Daspe. Bongo Hero "Fete de la science" uchun har yili Frantsiyada o'tkaziladigan tadbir sifatida yaratilgan. Endi oddiy arduino o'yini yaratildi!
2 -qadam: materiallar
Arduino UNO va Genuino UNO × 1
Adafruit NeoPixel LED chiziqli boshlang'ich to'plami - 30 LED o'lchagich × 4
SparkFun Piezo elementi × 4
Rezistor 220 ohm × 4
SparkFun qarshilik 1M ohm x4
3 -qadam: LED chiziqlarini sinab ko'ring
LED chiziqlar 2, 3, 4 va 5 raqamli pinlarga ulanganligiga ishonch hosil qiling.
FastLED.addLeds (leds [0], NUM_LEDS_PER_STRIP).setCorrection (TypicalLEDStrip); FastLED.addLeds (leds [1], NUM_LEDS_PER_STRIP).setCorrection (TypicalLEDStrip);
FastLED.addLeds (leds [2], NUM_LEDS_PER_STRIP).setCorrection (TypicalLEDStrip);
FastLED.addLeds (leds [3], NUM_LEDS_PER_STRIP).setCorrection (TypicalLEDStrip);
4 -qadam: Piezo elementlarini sinab ko'ring
Piezo elementlari A0, A1, A2 va A3 analog pinlariga ulanganligiga ishonch hosil qiling.
LED chiziqlar = Piezo elementlari
2 = A0
3 = A1
4 = A2
5 = A3
5 -qadam: sxemalar
6 -qadam: Kod
create.arduino.cc/projecthub/etienne-daspe…
Kodga kirish uchun ushbu havoladan foydalaning