Karteikarten
Arduino interface
Karten in diesem Stapel (18)
- 1reset buttonresets the ATmega microcomtroller
- 2Usb port partused for powerind and programming the arduino
- 3tx and rx ledsindicate communication between arduino and computer
- 4digital pinsused for reading and writing, digital works on all, analog only works on PWM
- 5pin 13 ledonly builtin actuator, used for debugging
- 6ATmega microcontrollerthe hearth of the arduino
- 7GND and 5v pinsused for powering circuits
- 8analog in pinsused for analog input
- 9power ledindicates the arduino is receiving power
- 10Digital pinscan take two types of inputs: 1 or HIGH when there is voltage and 0 or LOW when there isn't
- 11digitalWrite()takes pin number and HIGH/LOW, gives a 5V to the pin if high
- 12digitalRead()takes one input, the pin number and returns 0 or 1 (LOW or HIGH)
- 13pinMode()used for configuring the pins, takes pin number and mode (INPUT or OUTPUT)
- 14setup()runs only once, when the arduino program is first uploaded
- 15loop()runs until the program shuts down
- 16delay()milliseconds to wait before continuing with program execution
- 17analogRead()takes pin number as input and returns a value, these depend on the sensor and can be used to compute other related values (ex: voltage and temperature)
- 18Serialconnection between arduino and pc,
begin() starts connection with given bitrate/s
print() prints stuff to the serial monitor
Informationen
- Beschreibung
- Basic arduino structure and interaction
- Erstellt von
- Mircea Chira
- Aufrufe
- 0
- Verlauf
-
- Erstellt von Mircea Chira · 28 Aug 2017
- Kopiert von Mircea Chira · 10 Sep 2017
- Kopiert von Mircea Chira · 10 Sep 2017
- Bewertung