Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are given Arauino Doaras connected over SPI. You are supposed to control brightness of 2 LED connected to Arduino# 2 by using 2 potentiometers
You are given Arauino Doaras connected over SPI. You are supposed to control brightness of LED connected to Arduino# by using potentiometers connected to Arduino# board. Boards are going to communicate over SPI protocol.
Pot is connected to pin A and going to control Led Pot is connected to pin A and going to control ted
Hint: Slave device should implement interrupt routine to get the data sent from Master. Data is stored in SPDR
a Explain how you should connect these boards, eg pins to be used for SPI, and LEDs and any other settings MasterSlave
pts
b Write code for both Arduino boards. You can use any library function in your code. pts Answer A and B with explanation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started