Arduino in the Microelectronics Laboratory
The Arduino part of the program is covered by notes written for the laboratory of Signals and Measurement; this note only says which note answers which program topic.
What each note contains
- Hardware. Arduino PlatformArduino is a family of open single-board microcontroller boards built on Atmel AVR chips (UNO, Mega, Micro), extended with stackable shields and programmed through its own IDE.Arduino Platform → describes the Arduino boards built on Atmel AVR chips (UNO, Mega, Micro), the ATMega328P block diagram and the stackable shields.
- Programming. Lab 7 - Programming ArduinoLaboratory 7 introduces Arduino programming with setup and loop, the basic instructions and data types, the Blink sketch with LED resistor sizing, push buttons and a three-LED selector sketch.Lab 7 - Programming Arduino → covers the structure of a program (
setupandloop), the basic instructions and data types, the Blink sketch with sizing of the LED resistor, push buttons and a three-LED selector. - Serial interface, I2C and SPI. Serial Interfaces for Arduino - UART, I2C and SPISerial transmission sends one bit at a time on few wires; asynchronous (UART) frames each byte with a start bit, 5-8 data bits, optional parity and 1-2 stop bits (10 bits per 8-bit byte, 80% efficiency, bit time BT = 1/bps, receiver samples at 1.5 BT, 2.5 BT, ... and tolerates about 5.3% clock mismatch); synchronous buses are I2C (2 wires SDA and SCL with pull-ups, one master, 7-bit addresses, 9-bit bytes with ACK, 100 or 400 kbit/s) and SPI (4 wires MOSI, MISO, SCK, CS, full duplex, 4 modes CPOL/CPHA); physical levels are RS232, RS422/RS485 and the 0-20 mA current loop.Serial Interfaces for Arduino - UART, I2C and SPI → gives the theory (UART framing and timing, I2C addressing and ACK, SPI modes, RS232 and RS485 levels); Lab 10 - Arduino Standalone and Serial ProtocolsLaboratory 10 builds a standalone ATMega328P on a breadboard (16 MHz crystal, bootloader via ArduinoISP, or 8 MHz internal clock) and introduces the synchronous serial protocols I2C and SPI used to connect Arduino boards and peripherals.Lab 10 - Arduino Standalone and Serial Protocols → builds a standalone ATMega328P and introduces I2C and SPI on the bench.
- Interfaces and sensors. Lab 8 - Analog Output and Sensors with ArduinoLaboratory 8 covers digital input modes, PWM analog output with analogWrite (LED fading), the 10-bit analogRead input, the map and constrain functions, trimmer and photoresistor exercises, the LM35 temperature sensor and two additional exercises (hysteresis and potentiometer-controlled data logger).Lab 8 - Analog Output and Sensors with Arduino → covers digital input modes, PWM output with
analogWrite(theory in PWM - Duty Cycle, Resolution and DemodulationPWM transfers a modulating signal V* into the width of the pulses of a fixed-frequency square wave: with duty cycle d = t1/T and levels +-E/2 the mean is Vmed = (d - 1/2)E = E V*/Vp; the information is in the mean value and a low-pass filter removes the carrier harmonics (demodulation); the digital modulator is a timer (counter plus comparator) with N = f_clk/f_PWM counts per period, resolution n = log2 N bits and compare register equal to the duty cycle.PWM - Duty Cycle, Resolution and Demodulation →), the 10-bitanalogRead, trimmer and photoresistor exercises and the LM35 temperature sensor; Lab 9 - Arduino Libraries and Sensor IntegrationLaboratory 9 shows how to install and write Arduino libraries, connect the DHT11 temperature and humidity sensor, wire a 16-pin HD44780 LCD with a contrast trimmer, drive it with the LiquidCrystal library and combine sensor and display.Lab 9 - Arduino Libraries and Sensor Integration → covers libraries, the DHT11 temperature and humidity sensor and the 16-pin HD44780 LCD. - Circuits with WiFi. Lab 11 - WiFi and Internet with ArduinoLaboratory 11 connects an Arduino UNO to WiFi through an ESP8266-01 module (pinout, 3.3 V level shifting and supply, baud rate fix with AT commands), tests the WiFiEsp library examples and posts sensor data to the dweet.io cloud service with an HTTP GET request.Lab 11 - WiFi and Internet with Arduino → connects an Arduino UNO to WiFi through an ESP8266-01 module and posts sensor data to a cloud service.
The oscilloscope and multimeter used to check these circuits are in The OscilloscopeThe oscilloscope displays the joint trend of two or more quantities; its functional blocks are input channels, trigger and synchronization, time base and acquisition and display, and its input impedance, bandwidth, rise time, coupling, hold-off and probe compensation determine how faithfully a signal is shown.The Oscilloscope → and Electrical Measurements - Voltmeter and MultimeterAnalog and electronic instruments (voltmeter, ammeter, ohmmeter, wattmeter) compare the measurand with the unit; the loading effect is a systematic error predicted by voltage and current dividers, and digital multimeters are specified by digits, resolution, input impedance and an accuracy of the form k1 times reading plus k2 times range.Electrical Measurements - Voltmeter and Multimeter →.
Program topics without a note
The program also lists Arduino circuits with TFT and touch displays, custom sensors (distance sensor, heart-rate meter) and rover control (IR remote, WiFi, autonomous). No certified source on these specific projects is available; the closest material is the HD44780 LCD in Lab 9 and the WiFi link in Lab 11.
Versione ripasso
- Hardware: Arduino PlatformArduino is a family of open single-board microcontroller boards built on Atmel AVR chips (UNO, Mega, Micro), extended with stackable shields and programmed through its own IDE.Arduino Platform →. Programming: Lab 7 - Programming ArduinoLaboratory 7 introduces Arduino programming with setup and loop, the basic instructions and data types, the Blink sketch with LED resistor sizing, push buttons and a three-LED selector sketch.Lab 7 - Programming Arduino →.
- Serial interface, I2C and SPI: Serial Interfaces for Arduino - UART, I2C and SPISerial transmission sends one bit at a time on few wires; asynchronous (UART) frames each byte with a start bit, 5-8 data bits, optional parity and 1-2 stop bits (10 bits per 8-bit byte, 80% efficiency, bit time BT = 1/bps, receiver samples at 1.5 BT, 2.5 BT, ... and tolerates about 5.3% clock mismatch); synchronous buses are I2C (2 wires SDA and SCL with pull-ups, one master, 7-bit addresses, 9-bit bytes with ACK, 100 or 400 kbit/s) and SPI (4 wires MOSI, MISO, SCK, CS, full duplex, 4 modes CPOL/CPHA); physical levels are RS232, RS422/RS485 and the 0-20 mA current loop.Serial Interfaces for Arduino - UART, I2C and SPI →, Lab 10 - Arduino Standalone and Serial ProtocolsLaboratory 10 builds a standalone ATMega328P on a breadboard (16 MHz crystal, bootloader via ArduinoISP, or 8 MHz internal clock) and introduces the synchronous serial protocols I2C and SPI used to connect Arduino boards and peripherals.Lab 10 - Arduino Standalone and Serial Protocols →.
- Interfaces and sensors: Lab 8 - Analog Output and Sensors with ArduinoLaboratory 8 covers digital input modes, PWM analog output with analogWrite (LED fading), the 10-bit analogRead input, the map and constrain functions, trimmer and photoresistor exercises, the LM35 temperature sensor and two additional exercises (hysteresis and potentiometer-controlled data logger).Lab 8 - Analog Output and Sensors with Arduino → (PWM,
analogRead, LM35), Lab 9 - Arduino Libraries and Sensor IntegrationLaboratory 9 shows how to install and write Arduino libraries, connect the DHT11 temperature and humidity sensor, wire a 16-pin HD44780 LCD with a contrast trimmer, drive it with the LiquidCrystal library and combine sensor and display.Lab 9 - Arduino Libraries and Sensor Integration → (DHT11, HD44780 LCD). - WiFi circuits: Lab 11 - WiFi and Internet with ArduinoLaboratory 11 connects an Arduino UNO to WiFi through an ESP8266-01 module (pinout, 3.3 V level shifting and supply, baud rate fix with AT commands), tests the WiFiEsp library examples and posts sensor data to the dweet.io cloud service with an HTTP GET request.Lab 11 - WiFi and Internet with Arduino →.
- No note: TFT and touch displays, distance sensor, heart-rate meter, rover control.
- Contents: boards on AVR chips (UNO, Mega, Micro), ATMega328P block diagram, shields;
setupandloop, Blink, push buttons; standalone ATMega328P; I2C and SPI;analogWrite,analogRead, LM35, DHT11, HD44780 LCD; ESP8266-01 WiFi and cloud posting. - Tools for checking the circuits: The OscilloscopeThe oscilloscope displays the joint trend of two or more quantities; its functional blocks are input channels, trigger and synchronization, time base and acquisition and display, and its input impedance, bandwidth, rise time, coupling, hold-off and probe compensation determine how faithfully a signal is shown.The Oscilloscope →, Electrical Measurements - Voltmeter and MultimeterAnalog and electronic instruments (voltmeter, ammeter, ohmmeter, wattmeter) compare the measurand with the unit; the loading effect is a systematic error predicted by voltage and current dividers, and digital multimeters are specified by digits, resolution, input impedance and an accuracy of the form k1 times reading plus k2 times range.Electrical Measurements - Voltmeter and Multimeter →.