• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Atmega 324A
#4
Schemat to najprostsze podłączenie na płytce stykowej.

VCC/AVCC filtrowane przez kondesator 100nF
Reset pociagniety przez rezystor 10k
Na Pinie nr 20 przez rezystor 1k połączona dioda

W schemacie błędu nie ma ale mogę zrobić zdjęcie ewentualnie.

Kod programu jest przykładem z Arduino "blink"


Kod:
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(20, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(20, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(5000);                      // wait for a second
  digitalWrite(20, LOW);    // turn the LED off by making the voltage LOW
  delay(5000);                      // wait for a second
}


Program się kompiluje, wgrywa ale atmega nie wystawia na pinie nr 20 stanu wysokiego, niskiego napięcie stałe około 1,7V
 
Odpowiedź
  


Wiadomości w tym wątku
Atmega 324A - przez armixus - 11-01-2020, 14:21
RE: Atmega 324A - przez Robson Kerman - 11-01-2020, 20:24
RE: Atmega 324A - przez kaczakat - 12-01-2020, 02:38
RE: Atmega 324A - przez armixus - 13-01-2020, 00:46
RE: Atmega 324A - przez Robson Kerman - 13-01-2020, 11:15
RE: Atmega 324A - przez armixus - 13-01-2020, 13:36
RE: Atmega 324A - przez Robson Kerman - 15-01-2020, 13:51
RE: Atmega 324A - przez kaczakat - 18-01-2020, 12:57

Skocz do:


Przeglądający: 1 gości