Answered step by step
Verified Expert Solution
Link Copied!

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 2 LED connected to Arduino#2 by using 2 potentiometers connected to Arduino#1 board. Boards are going to communicate over SPI protocol.
Pot1 is connected to pin A1 and going to control Led1. Pot2 is connected to pin A0 and going to control ted2.
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 2 boards, (e.g. pins to be used for SPI, and LEDs and any other settings (Master/Slave)).
(05 pts)
b. Write code for both Arduino boards. You can use any library function in your code. (30 pts) Answer A and B with explanation
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions