Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and...
-
Upload
bruce-oneal -
Category
Documents
-
view
217 -
download
0
Transcript of Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and...
![Page 1: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/1.jpg)
Introduction ArduinoBallooning Bundle
![Page 2: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/2.jpg)
What is a Microcontroller?Small computer with a processor core,
memory and programmable input/output
Continuously repeats software commands
Example: Arduino
![Page 3: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/3.jpg)
Arduino UNOUSB Connector
Battery Connector
Power Pins
Analog Pins
Digital Pins
![Page 4: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/4.jpg)
Arduino MEGAUSB Connector
Battery Connector
Power Pins
Analog Pins
Digital PinsSerial Pins
![Page 5: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/5.jpg)
Introduction to SoftwareArduino has its own software development
toolCan be downloaded for free
Comparable to C language
All programs must have setup and loop functions
Many things have off the shelf software prewrittenLook online for example code and tutorials
![Page 6: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/6.jpg)
BareMinimumvoid setup() { // put your setup code here, to run once:
}
void loop() { // put your main code here, to run repeatedly: }
![Page 7: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/7.jpg)
Serial CommunicationTransmit and Receive (TX and RX pins)
Arduino – Computer
GPS – Aduino
![Page 8: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/8.jpg)
Specialized Pins: SPISerial Peripheral Interface
Is a synchronous serial data protocol
Used by microSD shield, and MicroMagnetometer
![Page 9: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/9.jpg)
Specialized Pins: I2C BusInter-Integrated Circuit
Uses two pins for communicationSDA: Serial Data LineSCL: Serial Clock Line
On an Uno, pins A4 and A5 are used for I2C
Used by real time clock
![Page 10: Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.](https://reader035.fdocuments.in/reader035/viewer/2022062321/56649e245503460f94b131df/html5/thumbnails/10.jpg)
1-Wire Digital BusSimilar to I2C, only 1 digital pin used (1 wire)
Can support multiple sensors
Wire must be powered using 5V and a pull-up resistor to work
Used by digital temperature sensor